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

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

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

        private static volatile HistoryTurnover_Response[] _emptyArray;

        private int bitField0_;

        private String currentNetPurchasedAmountText_;

        private long currentNetPurchasedAmount_;

        private String netPurchasedAmountWithin10DaysText_;

        private long netPurchasedAmountWithin10Days_;

        private long netPurchasedAmountWithin1Year_;

        private long netPurchasedAmountWithin22Days_;

        private String netPurchasedAmountWithin5DaysText_;

        private long netPurchasedAmountWithin5Days_;

        private long netPurchasedAmountWithin66Days_;

        public HistoryTurnoverRequest.HistoryTurnover_Request requestData;

        public ExchangeHistoryTurnover[] responseData;

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

            private static volatile ExchangeHistoryTurnover[] _emptyArray;

            private int bitField0_;

            public DailyPoint[] dailyLine;

            private int tradeDirection_;

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

                private static volatile DailyPoint[] _emptyArray;

                private int bitField0_;

                private long buyTurnover_;

                private long sellTurnover_;

                private int tradeDate_;

                public DailyPoint() {
                    clear();
                }

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

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

                public DailyPoint clear() {
                    this.bitField0_ = 0;
                    this.tradeDate_ = 0;
                    this.buyTurnover_ = 0;
                    this.sellTurnover_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public DailyPoint clearBuyTurnover() {
                    this.buyTurnover_ = 0;
                    this.bitField0_ &= -3;
                    return this;
                }

                public DailyPoint clearSellTurnover() {
                    this.sellTurnover_ = 0;
                    this.bitField0_ &= -5;
                    return this;
                }

                public DailyPoint clearTradeDate() {
                    this.tradeDate_ = 0;
                    this.bitField0_ &= -2;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.tradeDate_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.buyTurnover_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(3, this.sellTurnover_);
                    }
                    return computeSerializedSize;
                }

                public long getBuyTurnover() {
                    return this.buyTurnover_;
                }

                public long getSellTurnover() {
                    return this.sellTurnover_;
                }

                public int getTradeDate() {
                    return this.tradeDate_;
                }

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

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

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

                public DailyPoint setBuyTurnover(long j10) {
                    this.buyTurnover_ = j10;
                    this.bitField0_ |= 2;
                    return this;
                }

                public DailyPoint setSellTurnover(long j10) {
                    this.sellTurnover_ = j10;
                    this.bitField0_ |= 4;
                    return this;
                }

                public DailyPoint setTradeDate(int i10) {
                    this.tradeDate_ = i10;
                    this.bitField0_ |= 1;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeUInt32(1, this.tradeDate_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeInt64(2, this.buyTurnover_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeInt64(3, this.sellTurnover_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public DailyPoint mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.tradeDate_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                        } else if (readTag == 16) {
                            this.buyTurnover_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 2;
                        } else if (readTag == 24) {
                            this.sellTurnover_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 4;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public ExchangeHistoryTurnover() {
                clear();
            }

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

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

            public ExchangeHistoryTurnover clear() {
                this.bitField0_ = 0;
                this.tradeDirection_ = 0;
                this.dailyLine = DailyPoint.emptyArray();
                this.cachedSize = -1;
                return this;
            }

            public ExchangeHistoryTurnover clearTradeDirection() {
                this.tradeDirection_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.tradeDirection_);
                }
                DailyPoint[] dailyPointArr = this.dailyLine;
                if (dailyPointArr != null && dailyPointArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        DailyPoint[] dailyPointArr2 = this.dailyLine;
                        if (i10 >= dailyPointArr2.length) {
                            break;
                        }
                        DailyPoint dailyPoint = dailyPointArr2[i10];
                        if (dailyPoint != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, dailyPoint);
                        }
                        i10++;
                    }
                }
                return computeSerializedSize;
            }

            public int getTradeDirection() {
                return this.tradeDirection_;
            }

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

            public ExchangeHistoryTurnover setTradeDirection(int i10) {
                this.tradeDirection_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.tradeDirection_);
                }
                DailyPoint[] dailyPointArr = this.dailyLine;
                if (dailyPointArr != null && dailyPointArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        DailyPoint[] dailyPointArr2 = this.dailyLine;
                        if (i10 >= dailyPointArr2.length) {
                            break;
                        }
                        DailyPoint dailyPoint = dailyPointArr2[i10];
                        if (dailyPoint != null) {
                            codedOutputByteBufferNano.writeMessage(2, dailyPoint);
                        }
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public ExchangeHistoryTurnover mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.tradeDirection_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        DailyPoint[] dailyPointArr = this.dailyLine;
                        int length = dailyPointArr == null ? 0 : dailyPointArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        DailyPoint[] dailyPointArr2 = new DailyPoint[i10];
                        if (length != 0) {
                            System.arraycopy(dailyPointArr, 0, dailyPointArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            DailyPoint dailyPoint = new DailyPoint();
                            dailyPointArr2[length] = dailyPoint;
                            codedInputByteBufferNano.readMessage(dailyPoint);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        DailyPoint dailyPoint2 = new DailyPoint();
                        dailyPointArr2[length] = dailyPoint2;
                        codedInputByteBufferNano.readMessage(dailyPoint2);
                        this.dailyLine = dailyPointArr2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public HistoryTurnover_Response() {
            clear();
        }

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

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

        public HistoryTurnover_Response clear() {
            this.bitField0_ = 0;
            this.responseData = ExchangeHistoryTurnover.emptyArray();
            this.requestData = null;
            this.currentNetPurchasedAmount_ = 0;
            this.netPurchasedAmountWithin5Days_ = 0;
            this.netPurchasedAmountWithin10Days_ = 0;
            this.netPurchasedAmountWithin22Days_ = 0;
            this.netPurchasedAmountWithin66Days_ = 0;
            this.netPurchasedAmountWithin1Year_ = 0;
            this.currentNetPurchasedAmountText_ = "";
            this.netPurchasedAmountWithin5DaysText_ = "";
            this.netPurchasedAmountWithin10DaysText_ = "";
            this.cachedSize = -1;
            return this;
        }

        public HistoryTurnover_Response clearCurrentNetPurchasedAmount() {
            this.currentNetPurchasedAmount_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public HistoryTurnover_Response clearCurrentNetPurchasedAmountText() {
            this.currentNetPurchasedAmountText_ = "";
            this.bitField0_ &= -65;
            return this;
        }

        public HistoryTurnover_Response clearNetPurchasedAmountWithin10Days() {
            this.netPurchasedAmountWithin10Days_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public HistoryTurnover_Response clearNetPurchasedAmountWithin10DaysText() {
            this.netPurchasedAmountWithin10DaysText_ = "";
            this.bitField0_ &= -257;
            return this;
        }

        public HistoryTurnover_Response clearNetPurchasedAmountWithin1Year() {
            this.netPurchasedAmountWithin1Year_ = 0;
            this.bitField0_ &= -33;
            return this;
        }

        public HistoryTurnover_Response clearNetPurchasedAmountWithin22Days() {
            this.netPurchasedAmountWithin22Days_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public HistoryTurnover_Response clearNetPurchasedAmountWithin5Days() {
            this.netPurchasedAmountWithin5Days_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public HistoryTurnover_Response clearNetPurchasedAmountWithin5DaysText() {
            this.netPurchasedAmountWithin5DaysText_ = "";
            this.bitField0_ &= -129;
            return this;
        }

        public HistoryTurnover_Response clearNetPurchasedAmountWithin66Days() {
            this.netPurchasedAmountWithin66Days_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            ExchangeHistoryTurnover[] exchangeHistoryTurnoverArr = this.responseData;
            if (exchangeHistoryTurnoverArr != null && exchangeHistoryTurnoverArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ExchangeHistoryTurnover[] exchangeHistoryTurnoverArr2 = this.responseData;
                    if (i10 >= exchangeHistoryTurnoverArr2.length) {
                        break;
                    }
                    ExchangeHistoryTurnover exchangeHistoryTurnover = exchangeHistoryTurnoverArr2[i10];
                    if (exchangeHistoryTurnover != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, exchangeHistoryTurnover);
                    }
                    i10++;
                }
            }
            HistoryTurnoverRequest.HistoryTurnover_Request historyTurnover_Request = this.requestData;
            if (historyTurnover_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, historyTurnover_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.currentNetPurchasedAmount_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(4, this.netPurchasedAmountWithin5Days_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(5, this.netPurchasedAmountWithin10Days_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(6, this.netPurchasedAmountWithin22Days_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(7, this.netPurchasedAmountWithin66Days_);
            }
            if ((this.bitField0_ & 32) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(8, this.netPurchasedAmountWithin1Year_);
            }
            if ((this.bitField0_ & 64) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(9, this.currentNetPurchasedAmountText_);
            }
            if ((this.bitField0_ & 128) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(10, this.netPurchasedAmountWithin5DaysText_);
            }
            if ((this.bitField0_ & 256) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(11, this.netPurchasedAmountWithin10DaysText_);
            }
            return computeSerializedSize;
        }

        public long getCurrentNetPurchasedAmount() {
            return this.currentNetPurchasedAmount_;
        }

        public String getCurrentNetPurchasedAmountText() {
            return this.currentNetPurchasedAmountText_;
        }

        public long getNetPurchasedAmountWithin10Days() {
            return this.netPurchasedAmountWithin10Days_;
        }

        public String getNetPurchasedAmountWithin10DaysText() {
            return this.netPurchasedAmountWithin10DaysText_;
        }

        public long getNetPurchasedAmountWithin1Year() {
            return this.netPurchasedAmountWithin1Year_;
        }

        public long getNetPurchasedAmountWithin22Days() {
            return this.netPurchasedAmountWithin22Days_;
        }

        public long getNetPurchasedAmountWithin5Days() {
            return this.netPurchasedAmountWithin5Days_;
        }

        public String getNetPurchasedAmountWithin5DaysText() {
            return this.netPurchasedAmountWithin5DaysText_;
        }

        public long getNetPurchasedAmountWithin66Days() {
            return this.netPurchasedAmountWithin66Days_;
        }

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

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

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

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

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

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

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

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

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

        public HistoryTurnover_Response setCurrentNetPurchasedAmount(long j10) {
            this.currentNetPurchasedAmount_ = j10;
            this.bitField0_ |= 1;
            return this;
        }

        public HistoryTurnover_Response setCurrentNetPurchasedAmountText(String str) {
            str.getClass();
            this.currentNetPurchasedAmountText_ = str;
            this.bitField0_ |= 64;
            return this;
        }

        public HistoryTurnover_Response setNetPurchasedAmountWithin10Days(long j10) {
            this.netPurchasedAmountWithin10Days_ = j10;
            this.bitField0_ |= 4;
            return this;
        }

        public HistoryTurnover_Response setNetPurchasedAmountWithin10DaysText(String str) {
            str.getClass();
            this.netPurchasedAmountWithin10DaysText_ = str;
            this.bitField0_ |= 256;
            return this;
        }

        public HistoryTurnover_Response setNetPurchasedAmountWithin1Year(long j10) {
            this.netPurchasedAmountWithin1Year_ = j10;
            this.bitField0_ |= 32;
            return this;
        }

        public HistoryTurnover_Response setNetPurchasedAmountWithin22Days(long j10) {
            this.netPurchasedAmountWithin22Days_ = j10;
            this.bitField0_ |= 8;
            return this;
        }

        public HistoryTurnover_Response setNetPurchasedAmountWithin5Days(long j10) {
            this.netPurchasedAmountWithin5Days_ = j10;
            this.bitField0_ |= 2;
            return this;
        }

        public HistoryTurnover_Response setNetPurchasedAmountWithin5DaysText(String str) {
            str.getClass();
            this.netPurchasedAmountWithin5DaysText_ = str;
            this.bitField0_ |= 128;
            return this;
        }

        public HistoryTurnover_Response setNetPurchasedAmountWithin66Days(long j10) {
            this.netPurchasedAmountWithin66Days_ = j10;
            this.bitField0_ |= 16;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            ExchangeHistoryTurnover[] exchangeHistoryTurnoverArr = this.responseData;
            if (exchangeHistoryTurnoverArr != null && exchangeHistoryTurnoverArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ExchangeHistoryTurnover[] exchangeHistoryTurnoverArr2 = this.responseData;
                    if (i10 >= exchangeHistoryTurnoverArr2.length) {
                        break;
                    }
                    ExchangeHistoryTurnover exchangeHistoryTurnover = exchangeHistoryTurnoverArr2[i10];
                    if (exchangeHistoryTurnover != null) {
                        codedOutputByteBufferNano.writeMessage(1, exchangeHistoryTurnover);
                    }
                    i10++;
                }
            }
            HistoryTurnoverRequest.HistoryTurnover_Request historyTurnover_Request = this.requestData;
            if (historyTurnover_Request != null) {
                codedOutputByteBufferNano.writeMessage(2, historyTurnover_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeInt64(3, this.currentNetPurchasedAmount_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeInt64(4, this.netPurchasedAmountWithin5Days_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeInt64(5, this.netPurchasedAmountWithin10Days_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeInt64(6, this.netPurchasedAmountWithin22Days_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeInt64(7, this.netPurchasedAmountWithin66Days_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeInt64(8, this.netPurchasedAmountWithin1Year_);
            }
            if ((this.bitField0_ & 64) != 0) {
                codedOutputByteBufferNano.writeString(9, this.currentNetPurchasedAmountText_);
            }
            if ((this.bitField0_ & 128) != 0) {
                codedOutputByteBufferNano.writeString(10, this.netPurchasedAmountWithin5DaysText_);
            }
            if ((this.bitField0_ & 256) != 0) {
                codedOutputByteBufferNano.writeString(11, this.netPurchasedAmountWithin10DaysText_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public HistoryTurnover_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                switch(readTag) {
                    case 0:
                        return this;
                    case 10:
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 10);
                        ExchangeHistoryTurnover[] exchangeHistoryTurnoverArr = this.responseData;
                        int length = exchangeHistoryTurnoverArr == null ? 0 : exchangeHistoryTurnoverArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        ExchangeHistoryTurnover[] exchangeHistoryTurnoverArr2 = new ExchangeHistoryTurnover[i10];
                        if (length != 0) {
                            System.arraycopy(exchangeHistoryTurnoverArr, 0, exchangeHistoryTurnoverArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            ExchangeHistoryTurnover exchangeHistoryTurnover = new ExchangeHistoryTurnover();
                            exchangeHistoryTurnoverArr2[length] = exchangeHistoryTurnover;
                            codedInputByteBufferNano.readMessage(exchangeHistoryTurnover);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        ExchangeHistoryTurnover exchangeHistoryTurnover2 = new ExchangeHistoryTurnover();
                        exchangeHistoryTurnoverArr2[length] = exchangeHistoryTurnover2;
                        codedInputByteBufferNano.readMessage(exchangeHistoryTurnover2);
                        this.responseData = exchangeHistoryTurnoverArr2;
                        break;
                    case 18:
                        if (this.requestData == null) {
                            this.requestData = new HistoryTurnoverRequest.HistoryTurnover_Request();
                        }
                        codedInputByteBufferNano.readMessage(this.requestData);
                        break;
                    case 24:
                        this.currentNetPurchasedAmount_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                        break;
                    case 32:
                        this.netPurchasedAmountWithin5Days_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                        break;
                    case 40:
                        this.netPurchasedAmountWithin10Days_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                        break;
                    case 48:
                        this.netPurchasedAmountWithin22Days_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 8;
                        break;
                    case 56:
                        this.netPurchasedAmountWithin66Days_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 16;
                        break;
                    case 64:
                        this.netPurchasedAmountWithin1Year_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 32;
                        break;
                    case 74:
                        this.currentNetPurchasedAmountText_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 64;
                        break;
                    case 82:
                        this.netPurchasedAmountWithin5DaysText_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 128;
                        break;
                    case 90:
                        this.netPurchasedAmountWithin10DaysText_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 256;
                        break;
                    default:
                        if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            break;
                        } else {
                            return this;
                        }
                }
            }
        }
    }
}
