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.GetPortfolioOperationRequest;

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

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

        private static volatile GetPortfolioOperation_Response[] _emptyArray;

        private int bitField0_;

        public Operation[] operation;

        public GetPortfolioOperationRequest.GetPortfolioOperation_Request requestParams;

        private int totalnum_;

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

            private static volatile Operation[] _emptyArray;

            private int bitField0_;

            private String bizflag_;

            private String bizmsg_;

            private long category_;

            private String codeName_;

            private int dealprice_;

            private long dealtime_;

            private int entflag_;

            private String entmsg_;

            private long entrustNo_;

            private int entrustprice_;

            private long entrusttime_;

            private int exchange_;

            private int idx_;

            private int ownratio_;

            private String remark_;

            private int statuscode_;

            private String statusmsg_;

            private int stkposdst_;

            private int stkpospre_;

            private int stockCode_;

            private String stockName_;

            private int tradeSession_;

            public Operation() {
                clear();
            }

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

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

            public Operation clear() {
                this.bitField0_ = 0;
                this.idx_ = 0;
                this.ownratio_ = 0;
                this.entrusttime_ = 0;
                this.remark_ = "";
                this.stockCode_ = 0;
                this.stockName_ = "";
                this.codeName_ = "";
                this.exchange_ = 0;
                this.category_ = 0;
                this.tradeSession_ = 0;
                this.entrustprice_ = 0;
                this.dealprice_ = 0;
                this.stkpospre_ = 0;
                this.stkposdst_ = 0;
                this.entrustNo_ = 0;
                this.statuscode_ = 0;
                this.statusmsg_ = "";
                this.entflag_ = 0;
                this.entmsg_ = "";
                this.bizflag_ = "";
                this.bizmsg_ = "";
                this.dealtime_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

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

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

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

            public Operation clearDealprice() {
                this.dealprice_ = 0;
                this.bitField0_ &= -2049;
                return this;
            }

            public Operation clearDealtime() {
                this.dealtime_ = 0;
                this.bitField0_ &= -2097153;
                return this;
            }

            public Operation clearEntflag() {
                this.entflag_ = 0;
                this.bitField0_ &= -131073;
                return this;
            }

            public Operation clearEntmsg() {
                this.entmsg_ = "";
                this.bitField0_ &= -262145;
                return this;
            }

            public Operation clearEntrustNo() {
                this.entrustNo_ = 0;
                this.bitField0_ &= -16385;
                return this;
            }

            public Operation clearEntrustprice() {
                this.entrustprice_ = 0;
                this.bitField0_ &= -1025;
                return this;
            }

            public Operation clearEntrusttime() {
                this.entrusttime_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

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

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

            public Operation clearOwnratio() {
                this.ownratio_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public Operation clearRemark() {
                this.remark_ = "";
                this.bitField0_ &= -9;
                return this;
            }

            public Operation clearStatuscode() {
                this.statuscode_ = 0;
                this.bitField0_ &= -32769;
                return this;
            }

            public Operation clearStatusmsg() {
                this.statusmsg_ = "";
                this.bitField0_ &= -65537;
                return this;
            }

            public Operation clearStkposdst() {
                this.stkposdst_ = 0;
                this.bitField0_ &= -8193;
                return this;
            }

            public Operation clearStkpospre() {
                this.stkpospre_ = 0;
                this.bitField0_ &= -4097;
                return this;
            }

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

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

            public Operation clearTradeSession() {
                this.tradeSession_ = 0;
                this.bitField0_ &= -513;
                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.computeInt32Size(2, this.ownratio_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(3, this.entrusttime_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(4, this.remark_);
                }
                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.entrustprice_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(12, this.dealprice_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(13, this.stkpospre_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(14, this.stkposdst_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(15, this.entrustNo_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(17, this.statuscode_);
                }
                if ((this.bitField0_ & 65536) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(18, this.statusmsg_);
                }
                if ((this.bitField0_ & 131072) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(19, this.entflag_);
                }
                if ((this.bitField0_ & 262144) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(20, this.entmsg_);
                }
                if ((this.bitField0_ & 524288) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(21, this.bizflag_);
                }
                if ((this.bitField0_ & 1048576) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(22, this.bizmsg_);
                }
                if ((this.bitField0_ & 2097152) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt64Size(23, this.dealtime_);
                }
                return computeSerializedSize;
            }

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

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

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

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

            public int getDealprice() {
                return this.dealprice_;
            }

            public long getDealtime() {
                return this.dealtime_;
            }

            public int getEntflag() {
                return this.entflag_;
            }

            public String getEntmsg() {
                return this.entmsg_;
            }

            public long getEntrustNo() {
                return this.entrustNo_;
            }

            public int getEntrustprice() {
                return this.entrustprice_;
            }

            public long getEntrusttime() {
                return this.entrusttime_;
            }

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

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

            public int getOwnratio() {
                return this.ownratio_;
            }

            public String getRemark() {
                return this.remark_;
            }

            public int getStatuscode() {
                return this.statuscode_;
            }

            public String getStatusmsg() {
                return this.statusmsg_;
            }

            public int getStkposdst() {
                return this.stkposdst_;
            }

            public int getStkpospre() {
                return this.stkpospre_;
            }

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

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

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

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

            public boolean hasBizmsg() {
                if ((this.bitField0_ & 1048576) != 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 hasDealprice() {
                if ((this.bitField0_ & 2048) != 0) {
                    return true;
                }
                return false;
            }

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

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

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

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

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

            public boolean hasEntrusttime() {
                if ((this.bitField0_ & 4) != 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 hasOwnratio() {
                if ((this.bitField0_ & 2) != 0) {
                    return true;
                }
                return false;
            }

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

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

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

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

            public boolean hasStkpospre() {
                if ((this.bitField0_ & 4096) != 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 Operation setBizflag(String str) {
                str.getClass();
                this.bizflag_ = str;
                this.bitField0_ |= 524288;
                return this;
            }

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

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

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

            public Operation setDealprice(int i10) {
                this.dealprice_ = i10;
                this.bitField0_ |= 2048;
                return this;
            }

            public Operation setDealtime(long j10) {
                this.dealtime_ = j10;
                this.bitField0_ |= 2097152;
                return this;
            }

            public Operation setEntflag(int i10) {
                this.entflag_ = i10;
                this.bitField0_ |= 131072;
                return this;
            }

            public Operation setEntmsg(String str) {
                str.getClass();
                this.entmsg_ = str;
                this.bitField0_ |= 262144;
                return this;
            }

            public Operation setEntrustNo(long j10) {
                this.entrustNo_ = j10;
                this.bitField0_ |= 16384;
                return this;
            }

            public Operation setEntrustprice(int i10) {
                this.entrustprice_ = i10;
                this.bitField0_ |= 1024;
                return this;
            }

            public Operation setEntrusttime(long j10) {
                this.entrusttime_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

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

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

            public Operation setOwnratio(int i10) {
                this.ownratio_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public Operation setRemark(String str) {
                str.getClass();
                this.remark_ = str;
                this.bitField0_ |= 8;
                return this;
            }

            public Operation setStatuscode(int i10) {
                this.statuscode_ = i10;
                this.bitField0_ |= 32768;
                return this;
            }

            public Operation setStatusmsg(String str) {
                str.getClass();
                this.statusmsg_ = str;
                this.bitField0_ |= 65536;
                return this;
            }

            public Operation setStkposdst(int i10) {
                this.stkposdst_ = i10;
                this.bitField0_ |= 8192;
                return this;
            }

            public Operation setStkpospre(int i10) {
                this.stkpospre_ = i10;
                this.bitField0_ |= 4096;
                return this;
            }

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

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

            public Operation setTradeSession(int i10) {
                this.tradeSession_ = i10;
                this.bitField0_ |= 512;
                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.writeInt32(2, this.ownratio_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt64(3, this.entrusttime_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeString(4, this.remark_);
                }
                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.entrustprice_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    codedOutputByteBufferNano.writeUInt32(12, this.dealprice_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    codedOutputByteBufferNano.writeUInt32(13, this.stkpospre_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    codedOutputByteBufferNano.writeUInt32(14, this.stkposdst_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    codedOutputByteBufferNano.writeUInt64(15, this.entrustNo_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    codedOutputByteBufferNano.writeInt32(17, this.statuscode_);
                }
                if ((this.bitField0_ & 65536) != 0) {
                    codedOutputByteBufferNano.writeString(18, this.statusmsg_);
                }
                if ((this.bitField0_ & 131072) != 0) {
                    codedOutputByteBufferNano.writeInt32(19, this.entflag_);
                }
                if ((this.bitField0_ & 262144) != 0) {
                    codedOutputByteBufferNano.writeString(20, this.entmsg_);
                }
                if ((this.bitField0_ & 524288) != 0) {
                    codedOutputByteBufferNano.writeString(21, this.bizflag_);
                }
                if ((this.bitField0_ & 1048576) != 0) {
                    codedOutputByteBufferNano.writeString(22, this.bizmsg_);
                }
                if ((this.bitField0_ & 2097152) != 0) {
                    codedOutputByteBufferNano.writeUInt64(23, this.dealtime_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Operation 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 16:
                            this.ownratio_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 2;
                            break;
                        case 24:
                            this.entrusttime_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 4;
                            break;
                        case 34:
                            this.remark_ = codedInputByteBufferNano.readString();
                            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.entrustprice_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1024;
                            break;
                        case 96:
                            this.dealprice_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 2048;
                            break;
                        case 104:
                            this.stkpospre_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4096;
                            break;
                        case 112:
                            this.stkposdst_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 8192;
                            break;
                        case 120:
                            this.entrustNo_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 16384;
                            break;
                        case 136:
                            this.statuscode_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 32768;
                            break;
                        case 146:
                            this.statusmsg_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 65536;
                            break;
                        case 152:
                            this.entflag_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 131072;
                            break;
                        case 162:
                            this.entmsg_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 262144;
                            break;
                        case 170:
                            this.bizflag_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 524288;
                            break;
                        case 178:
                            this.bizmsg_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 1048576;
                            break;
                        case 184:
                            this.dealtime_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 2097152;
                            break;
                        default:
                            if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                break;
                            } else {
                                return this;
                            }
                    }
                }
            }
        }

        public GetPortfolioOperation_Response() {
            clear();
        }

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

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

        public GetPortfolioOperation_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.operation = Operation.emptyArray();
            this.totalnum_ = 0;
            this.cachedSize = -1;
            return this;
        }

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

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            GetPortfolioOperationRequest.GetPortfolioOperation_Request getPortfolioOperation_Request = this.requestParams;
            if (getPortfolioOperation_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, getPortfolioOperation_Request);
            }
            Operation[] operationArr = this.operation;
            if (operationArr != null && operationArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Operation[] operationArr2 = this.operation;
                    if (i10 >= operationArr2.length) {
                        break;
                    }
                    Operation operation2 = operationArr2[i10];
                    if (operation2 != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, operation2);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.totalnum_);
            }
            return computeSerializedSize;
        }

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

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

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

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            GetPortfolioOperationRequest.GetPortfolioOperation_Request getPortfolioOperation_Request = this.requestParams;
            if (getPortfolioOperation_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, getPortfolioOperation_Request);
            }
            Operation[] operationArr = this.operation;
            if (operationArr != null && operationArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Operation[] operationArr2 = this.operation;
                    if (i10 >= operationArr2.length) {
                        break;
                    }
                    Operation operation2 = operationArr2[i10];
                    if (operation2 != null) {
                        codedOutputByteBufferNano.writeMessage(2, operation2);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.totalnum_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public GetPortfolioOperation_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 GetPortfolioOperationRequest.GetPortfolioOperation_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    Operation[] operationArr = this.operation;
                    int length = operationArr == null ? 0 : operationArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Operation[] operationArr2 = new Operation[i10];
                    if (length != 0) {
                        System.arraycopy(operationArr, 0, operationArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Operation operation2 = new Operation();
                        operationArr2[length] = operation2;
                        codedInputByteBufferNano.readMessage(operation2);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Operation operation3 = new Operation();
                    operationArr2[length] = operation3;
                    codedInputByteBufferNano.readMessage(operation3);
                    this.operation = operationArr2;
                } else if (readTag == 24) {
                    this.totalnum_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
