package nano;

import com.google.protobuf.nano.CodedInputByteBufferNano;
import com.google.protobuf.nano.CodedOutputByteBufferNano;
import com.google.protobuf.nano.InternalNano;
import com.google.protobuf.nano.InvalidProtocolBufferNanoException;
import com.google.protobuf.nano.MessageNano;
import com.google.protobuf.nano.WireFormatNano;
import java.io.IOException;
import nano.GetPortfolioComponentRequest;

/* compiled from: TbsSdkJava */
public interface GetPortfolioComponentResponse {

    /* compiled from: TbsSdkJava */
    public static final class GetPortfolioComponent_Response extends MessageNano {

        private static volatile GetPortfolioComponent_Response[] _emptyArray;

        private int bitField0_;

        public Component[] components;

        public GetPortfolioComponentRequest.GetPortfolioComponent_Request requestParams;

        private int stkscale_;

        private int totalnum_;

        /* compiled from: TbsSdkJava */
        public static final class Component extends MessageNano {

            private static volatile Component[] _emptyArray;

            private int bitField0_;

            private String bizflag_;

            private String bizmsg_;

            private int breakevenprice_;

            private long category_;

            private String codeName_;

            private int dilucostprice_;

            private int exchange_;

            private int idx_;

            private int indusid_;

            private String indusname_;

            private int newprice_;

            private int opendate_;

            private int plscale_;

            private int secucost_;

            private int secupl_;

            private int secuscale_;

            private int stockCode_;

            private String stockName_;

            private int tradeSession_;

            private int unplscale_;

            private long uptime_;

            public Component() {
                clear();
            }

            public static Component[] emptyArray() {
                if (_emptyArray == null) {
                    synchronized (InternalNano.LAZY_INIT_LOCK) {
                        try {
                            if (_emptyArray == null) {
                                _emptyArray = new Component[0];
                            }
                        } catch (Throwable th) {
                            throw th;
                        }
                    }
                }
                return _emptyArray;
            }

            public static Component parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException {
                return (Component) MessageNano.mergeFrom(new Component(), bArr);
            }

            public Component clear() {
                this.bitField0_ = 0;
                this.idx_ = 0;
                this.bizflag_ = "";
                this.bizmsg_ = "";
                this.uptime_ = 0;
                this.stockCode_ = 0;
                this.stockName_ = "";
                this.codeName_ = "";
                this.exchange_ = 0;
                this.category_ = 0;
                this.tradeSession_ = 0;
                this.newprice_ = 0;
                this.secucost_ = 0;
                this.dilucostprice_ = 0;
                this.breakevenprice_ = 0;
                this.plscale_ = 0;
                this.unplscale_ = 0;
                this.secuscale_ = 0;
                this.opendate_ = 0;
                this.indusid_ = 0;
                this.indusname_ = "";
                this.secupl_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public Component clearBizflag() {
                this.bizflag_ = "";
                this.bitField0_ &= -3;
                return this;
            }

            public Component clearBizmsg() {
                this.bizmsg_ = "";
                this.bitField0_ &= -5;
                return this;
            }

            public Component clearBreakevenprice() {
                this.breakevenprice_ = 0;
                this.bitField0_ &= -8193;
                return this;
            }

            public Component clearCategory() {
                this.category_ = 0;
                this.bitField0_ &= -257;
                return this;
            }

            public Component clearCodeName() {
                this.codeName_ = "";
                this.bitField0_ &= -65;
                return this;
            }

            public Component clearDilucostprice() {
                this.dilucostprice_ = 0;
                this.bitField0_ &= -4097;
                return this;
            }

            public Component clearExchange() {
                this.exchange_ = 0;
                this.bitField0_ &= -129;
                return this;
            }

            public Component clearIdx() {
                this.idx_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public Component clearIndusid() {
                this.indusid_ = 0;
                this.bitField0_ &= -262145;
                return this;
            }

            public Component clearIndusname() {
                this.indusname_ = "";
                this.bitField0_ &= -524289;
                return this;
            }

            public Component clearNewprice() {
                this.newprice_ = 0;
                this.bitField0_ &= -1025;
                return this;
            }

            public Component clearOpendate() {
                this.opendate_ = 0;
                this.bitField0_ &= -131073;
                return this;
            }

            public Component clearPlscale() {
                this.plscale_ = 0;
                this.bitField0_ &= -16385;
                return this;
            }

            public Component clearSecucost() {
                this.secucost_ = 0;
                this.bitField0_ &= -2049;
                return this;
            }

            public Component clearSecupl() {
                this.secupl_ = 0;
                this.bitField0_ &= -1048577;
                return this;
            }

            public Component clearSecuscale() {
                this.secuscale_ = 0;
                this.bitField0_ &= -65537;
                return this;
            }

            public Component clearStockCode() {
                this.stockCode_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public Component clearStockName() {
                this.stockName_ = "";
                this.bitField0_ &= -33;
                return this;
            }

            public Component clearTradeSession() {
                this.tradeSession_ = 0;
                this.bitField0_ &= -513;
                return this;
            }

            public Component clearUnplscale() {
                this.unplscale_ = 0;
                this.bitField0_ &= -32769;
                return this;
            }

            public Component clearUptime() {
                this.uptime_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.idx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.bizflag_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.bizmsg_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(4, this.uptime_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(5, this.stockCode_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(6, this.stockName_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(7, this.codeName_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(8, this.exchange_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(9, this.category_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(10, this.tradeSession_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(11, this.newprice_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(12, this.secucost_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(13, this.dilucostprice_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(14, this.breakevenprice_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(15, this.plscale_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(16, this.unplscale_);
                }
                if ((this.bitField0_ & 65536) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(17, this.secuscale_);
                }
                if ((this.bitField0_ & 131072) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(18, this.opendate_);
                }
                if ((this.bitField0_ & 262144) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(19, this.indusid_);
                }
                if ((this.bitField0_ & 524288) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(20, this.indusname_);
                }
                if ((this.bitField0_ & 1048576) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeSInt32Size(21, this.secupl_);
                }
                return computeSerializedSize;
            }

            public String getBizflag() {
                return this.bizflag_;
            }

            public String getBizmsg() {
                return this.bizmsg_;
            }

            public int getBreakevenprice() {
                return this.breakevenprice_;
            }

            public long getCategory() {
                return this.category_;
            }

            public String getCodeName() {
                return this.codeName_;
            }

            public int getDilucostprice() {
                return this.dilucostprice_;
            }

            public int getExchange() {
                return this.exchange_;
            }

            public int getIdx() {
                return this.idx_;
            }

            public int getIndusid() {
                return this.indusid_;
            }

            public String getIndusname() {
                return this.indusname_;
            }

            public int getNewprice() {
                return this.newprice_;
            }

            public int getOpendate() {
                return this.opendate_;
            }

            public int getPlscale() {
                return this.plscale_;
            }

            public int getSecucost() {
                return this.secucost_;
            }

            public int getSecupl() {
                return this.secupl_;
            }

            public int getSecuscale() {
                return this.secuscale_;
            }

            public int getStockCode() {
                return this.stockCode_;
            }

            public String getStockName() {
                return this.stockName_;
            }

            public int getTradeSession() {
                return this.tradeSession_;
            }

            public int getUnplscale() {
                return this.unplscale_;
            }

            public long getUptime() {
                return this.uptime_;
            }

            public boolean hasBizflag() {
                if ((this.bitField0_ & 2) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasBizmsg() {
                if ((this.bitField0_ & 4) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasBreakevenprice() {
                if ((this.bitField0_ & 8192) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasCategory() {
                if ((this.bitField0_ & 256) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasCodeName() {
                if ((this.bitField0_ & 64) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasDilucostprice() {
                if ((this.bitField0_ & 4096) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasExchange() {
                if ((this.bitField0_ & 128) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasIdx() {
                if ((this.bitField0_ & 1) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasIndusid() {
                if ((this.bitField0_ & 262144) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasIndusname() {
                if ((this.bitField0_ & 524288) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasNewprice() {
                if ((this.bitField0_ & 1024) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasOpendate() {
                if ((this.bitField0_ & 131072) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasPlscale() {
                if ((this.bitField0_ & 16384) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasSecucost() {
                if ((this.bitField0_ & 2048) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasSecupl() {
                if ((this.bitField0_ & 1048576) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasSecuscale() {
                if ((this.bitField0_ & 65536) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasStockCode() {
                if ((this.bitField0_ & 16) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasStockName() {
                if ((this.bitField0_ & 32) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasTradeSession() {
                if ((this.bitField0_ & 512) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasUnplscale() {
                if ((this.bitField0_ & 32768) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasUptime() {
                if ((this.bitField0_ & 8) != 0) {
                    return true;
                }
                return false;
            }

            public Component setBizflag(String str) {
                str.getClass();
                this.bizflag_ = str;
                this.bitField0_ |= 2;
                return this;
            }

            public Component setBizmsg(String str) {
                str.getClass();
                this.bizmsg_ = str;
                this.bitField0_ |= 4;
                return this;
            }

            public Component setBreakevenprice(int i10) {
                this.breakevenprice_ = i10;
                this.bitField0_ |= 8192;
                return this;
            }

            public Component setCategory(long j10) {
                this.category_ = j10;
                this.bitField0_ |= 256;
                return this;
            }

            public Component setCodeName(String str) {
                str.getClass();
                this.codeName_ = str;
                this.bitField0_ |= 64;
                return this;
            }

            public Component setDilucostprice(int i10) {
                this.dilucostprice_ = i10;
                this.bitField0_ |= 4096;
                return this;
            }

            public Component setExchange(int i10) {
                this.exchange_ = i10;
                this.bitField0_ |= 128;
                return this;
            }

            public Component setIdx(int i10) {
                this.idx_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public Component setIndusid(int i10) {
                this.indusid_ = i10;
                this.bitField0_ |= 262144;
                return this;
            }

            public Component setIndusname(String str) {
                str.getClass();
                this.indusname_ = str;
                this.bitField0_ |= 524288;
                return this;
            }

            public Component setNewprice(int i10) {
                this.newprice_ = i10;
                this.bitField0_ |= 1024;
                return this;
            }

            public Component setOpendate(int i10) {
                this.opendate_ = i10;
                this.bitField0_ |= 131072;
                return this;
            }

            public Component setPlscale(int i10) {
                this.plscale_ = i10;
                this.bitField0_ |= 16384;
                return this;
            }

            public Component setSecucost(int i10) {
                this.secucost_ = i10;
                this.bitField0_ |= 2048;
                return this;
            }

            public Component setSecupl(int i10) {
                this.secupl_ = i10;
                this.bitField0_ |= 1048576;
                return this;
            }

            public Component setSecuscale(int i10) {
                this.secuscale_ = i10;
                this.bitField0_ |= 65536;
                return this;
            }

            public Component setStockCode(int i10) {
                this.stockCode_ = i10;
                this.bitField0_ |= 16;
                return this;
            }

            public Component setStockName(String str) {
                str.getClass();
                this.stockName_ = str;
                this.bitField0_ |= 32;
                return this;
            }

            public Component setTradeSession(int i10) {
                this.tradeSession_ = i10;
                this.bitField0_ |= 512;
                return this;
            }

            public Component setUnplscale(int i10) {
                this.unplscale_ = i10;
                this.bitField0_ |= 32768;
                return this;
            }

            public Component setUptime(long j10) {
                this.uptime_ = j10;
                this.bitField0_ |= 8;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.idx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.bizflag_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.bizmsg_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt64(4, this.uptime_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.stockCode_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeString(6, this.stockName_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeString(7, this.codeName_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeUInt32(8, this.exchange_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    codedOutputByteBufferNano.writeUInt64(9, this.category_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    codedOutputByteBufferNano.writeUInt32(10, this.tradeSession_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    codedOutputByteBufferNano.writeUInt32(11, this.newprice_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    codedOutputByteBufferNano.writeUInt32(12, this.secucost_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    codedOutputByteBufferNano.writeSInt32(13, this.dilucostprice_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    codedOutputByteBufferNano.writeUInt32(14, this.breakevenprice_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    codedOutputByteBufferNano.writeSInt32(15, this.plscale_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    codedOutputByteBufferNano.writeSInt32(16, this.unplscale_);
                }
                if ((this.bitField0_ & 65536) != 0) {
                    codedOutputByteBufferNano.writeUInt32(17, this.secuscale_);
                }
                if ((this.bitField0_ & 131072) != 0) {
                    codedOutputByteBufferNano.writeUInt32(18, this.opendate_);
                }
                if ((this.bitField0_ & 262144) != 0) {
                    codedOutputByteBufferNano.writeUInt32(19, this.indusid_);
                }
                if ((this.bitField0_ & 524288) != 0) {
                    codedOutputByteBufferNano.writeString(20, this.indusname_);
                }
                if ((this.bitField0_ & 1048576) != 0) {
                    codedOutputByteBufferNano.writeSInt32(21, this.secupl_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

            public static Component parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                return new Component().mergeFrom(codedInputByteBufferNano);
            }

            public Component mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    switch(readTag) {
                        case 0:
                            return this;
                        case 8:
                            this.idx_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                            break;
                        case 18:
                            this.bizflag_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2;
                            break;
                        case 26:
                            this.bizmsg_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 4;
                            break;
                        case 32:
                            this.uptime_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 8;
                            break;
                        case 40:
                            this.stockCode_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 16;
                            break;
                        case 50:
                            this.stockName_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 32;
                            break;
                        case 58:
                            this.codeName_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 64;
                            break;
                        case 64:
                            this.exchange_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 128;
                            break;
                        case 72:
                            this.category_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 256;
                            break;
                        case 80:
                            this.tradeSession_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 512;
                            break;
                        case 88:
                            this.newprice_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1024;
                            break;
                        case 96:
                            this.secucost_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 2048;
                            break;
                        case 104:
                            this.dilucostprice_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 4096;
                            break;
                        case 112:
                            this.breakevenprice_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 8192;
                            break;
                        case 120:
                            this.plscale_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 16384;
                            break;
                        case 128:
                            this.unplscale_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 32768;
                            break;
                        case 136:
                            this.secuscale_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 65536;
                            break;
                        case 144:
                            this.opendate_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 131072;
                            break;
                        case 152:
                            this.indusid_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 262144;
                            break;
                        case 162:
                            this.indusname_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 524288;
                            break;
                        case 168:
                            this.secupl_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 1048576;
                            break;
                        default:
                            if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                break;
                            } else {
                                return this;
                            }
                    }
                }
            }
        }

        public GetPortfolioComponent_Response() {
            clear();
        }

        public static GetPortfolioComponent_Response[] emptyArray() {
            if (_emptyArray == null) {
                synchronized (InternalNano.LAZY_INIT_LOCK) {
                    try {
                        if (_emptyArray == null) {
                            _emptyArray = new GetPortfolioComponent_Response[0];
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
            }
            return _emptyArray;
        }

        public static GetPortfolioComponent_Response parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException {
            return (GetPortfolioComponent_Response) MessageNano.mergeFrom(new GetPortfolioComponent_Response(), bArr);
        }

        public GetPortfolioComponent_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.components = Component.emptyArray();
            this.totalnum_ = 0;
            this.stkscale_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public GetPortfolioComponent_Response clearStkscale() {
            this.stkscale_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public GetPortfolioComponent_Response clearTotalnum() {
            this.totalnum_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            GetPortfolioComponentRequest.GetPortfolioComponent_Request getPortfolioComponent_Request = this.requestParams;
            if (getPortfolioComponent_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, getPortfolioComponent_Request);
            }
            Component[] componentArr = this.components;
            if (componentArr != null && componentArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Component[] componentArr2 = this.components;
                    if (i10 >= componentArr2.length) {
                        break;
                    }
                    Component component = componentArr2[i10];
                    if (component != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, component);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.totalnum_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(4, this.stkscale_);
            }
            return computeSerializedSize;
        }

        public int getStkscale() {
            return this.stkscale_;
        }

        public int getTotalnum() {
            return this.totalnum_;
        }

        public boolean hasStkscale() {
            if ((this.bitField0_ & 2) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasTotalnum() {
            if ((this.bitField0_ & 1) != 0) {
                return true;
            }
            return false;
        }

        public GetPortfolioComponent_Response setStkscale(int i10) {
            this.stkscale_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public GetPortfolioComponent_Response setTotalnum(int i10) {
            this.totalnum_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            GetPortfolioComponentRequest.GetPortfolioComponent_Request getPortfolioComponent_Request = this.requestParams;
            if (getPortfolioComponent_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, getPortfolioComponent_Request);
            }
            Component[] componentArr = this.components;
            if (componentArr != null && componentArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Component[] componentArr2 = this.components;
                    if (i10 >= componentArr2.length) {
                        break;
                    }
                    Component component = componentArr2[i10];
                    if (component != null) {
                        codedOutputByteBufferNano.writeMessage(2, component);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.totalnum_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.stkscale_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

        public static GetPortfolioComponent_Response parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            return new GetPortfolioComponent_Response().mergeFrom(codedInputByteBufferNano);
        }

        public GetPortfolioComponent_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new GetPortfolioComponentRequest.GetPortfolioComponent_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    Component[] componentArr = this.components;
                    int length = componentArr == null ? 0 : componentArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Component[] componentArr2 = new Component[i10];
                    if (length != 0) {
                        System.arraycopy(componentArr, 0, componentArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Component component = new Component();
                        componentArr2[length] = component;
                        codedInputByteBufferNano.readMessage(component);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Component component2 = new Component();
                    componentArr2[length] = component2;
                    codedInputByteBufferNano.readMessage(component2);
                    this.components = componentArr2;
                } else if (readTag == 24) {
                    this.totalnum_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 32) {
                    this.stkscale_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
