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

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

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

        private static volatile HistoryAmount_Response[] _emptyArray;

        private int bitField0_;

        private long currentFlowAmount_;

        private long flowAmountWithin10Days_;

        private long flowAmountWithin1Year_;

        private long flowAmountWithin22Days_;

        private long flowAmountWithin5Days_;

        private long flowAmountWithin66Days_;

        public HistoryAmountRequest.HistoryAmount_Request requestData;

        public ExchangeHistoryAmount[] responseData;

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

            private static volatile ExchangeHistoryAmount[] _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 currentAmount_;

                private long initAmount_;

                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.initAmount_ = 0;
                    this.currentAmount_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

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

                public DailyPoint clearInitAmount() {
                    this.initAmount_ = 0;
                    this.bitField0_ &= -3;
                    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.computeUInt64Size(4, this.initAmount_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeUInt64Size(5, this.currentAmount_);
                    }
                    return computeSerializedSize;
                }

                public long getCurrentAmount() {
                    return this.currentAmount_;
                }

                public long getInitAmount() {
                    return this.initAmount_;
                }

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

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

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

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

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

                public DailyPoint setInitAmount(long j10) {
                    this.initAmount_ = j10;
                    this.bitField0_ |= 2;
                    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.writeUInt64(4, this.initAmount_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeUInt64(5, this.currentAmount_);
                    }
                    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 == 32) {
                            this.initAmount_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 2;
                        } else if (readTag == 40) {
                            this.currentAmount_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 4;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public ExchangeHistoryAmount() {
                clear();
            }

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

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

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

            public ExchangeHistoryAmount 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 ExchangeHistoryAmount 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 ExchangeHistoryAmount parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                return new ExchangeHistoryAmount().mergeFrom(codedInputByteBufferNano);
            }

            public ExchangeHistoryAmount 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 HistoryAmount_Response() {
            clear();
        }

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

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

        public HistoryAmount_Response clear() {
            this.bitField0_ = 0;
            this.responseData = ExchangeHistoryAmount.emptyArray();
            this.requestData = null;
            this.currentFlowAmount_ = 0;
            this.flowAmountWithin5Days_ = 0;
            this.flowAmountWithin10Days_ = 0;
            this.flowAmountWithin22Days_ = 0;
            this.flowAmountWithin66Days_ = 0;
            this.flowAmountWithin1Year_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public HistoryAmount_Response clearCurrentFlowAmount() {
            this.currentFlowAmount_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public HistoryAmount_Response clearFlowAmountWithin10Days() {
            this.flowAmountWithin10Days_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public HistoryAmount_Response clearFlowAmountWithin1Year() {
            this.flowAmountWithin1Year_ = 0;
            this.bitField0_ &= -33;
            return this;
        }

        public HistoryAmount_Response clearFlowAmountWithin22Days() {
            this.flowAmountWithin22Days_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public HistoryAmount_Response clearFlowAmountWithin5Days() {
            this.flowAmountWithin5Days_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public HistoryAmount_Response clearFlowAmountWithin66Days() {
            this.flowAmountWithin66Days_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            ExchangeHistoryAmount[] exchangeHistoryAmountArr = this.responseData;
            if (exchangeHistoryAmountArr != null && exchangeHistoryAmountArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ExchangeHistoryAmount[] exchangeHistoryAmountArr2 = this.responseData;
                    if (i10 >= exchangeHistoryAmountArr2.length) {
                        break;
                    }
                    ExchangeHistoryAmount exchangeHistoryAmount = exchangeHistoryAmountArr2[i10];
                    if (exchangeHistoryAmount != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, exchangeHistoryAmount);
                    }
                    i10++;
                }
            }
            HistoryAmountRequest.HistoryAmount_Request historyAmount_Request = this.requestData;
            if (historyAmount_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, historyAmount_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.currentFlowAmount_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(4, this.flowAmountWithin5Days_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(5, this.flowAmountWithin10Days_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(6, this.flowAmountWithin22Days_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(7, this.flowAmountWithin66Days_);
            }
            if ((this.bitField0_ & 32) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(8, this.flowAmountWithin1Year_);
            }
            return computeSerializedSize;
        }

        public long getCurrentFlowAmount() {
            return this.currentFlowAmount_;
        }

        public long getFlowAmountWithin10Days() {
            return this.flowAmountWithin10Days_;
        }

        public long getFlowAmountWithin1Year() {
            return this.flowAmountWithin1Year_;
        }

        public long getFlowAmountWithin22Days() {
            return this.flowAmountWithin22Days_;
        }

        public long getFlowAmountWithin5Days() {
            return this.flowAmountWithin5Days_;
        }

        public long getFlowAmountWithin66Days() {
            return this.flowAmountWithin66Days_;
        }

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

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

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

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

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

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

        public HistoryAmount_Response setCurrentFlowAmount(long j10) {
            this.currentFlowAmount_ = j10;
            this.bitField0_ |= 1;
            return this;
        }

        public HistoryAmount_Response setFlowAmountWithin10Days(long j10) {
            this.flowAmountWithin10Days_ = j10;
            this.bitField0_ |= 4;
            return this;
        }

        public HistoryAmount_Response setFlowAmountWithin1Year(long j10) {
            this.flowAmountWithin1Year_ = j10;
            this.bitField0_ |= 32;
            return this;
        }

        public HistoryAmount_Response setFlowAmountWithin22Days(long j10) {
            this.flowAmountWithin22Days_ = j10;
            this.bitField0_ |= 8;
            return this;
        }

        public HistoryAmount_Response setFlowAmountWithin5Days(long j10) {
            this.flowAmountWithin5Days_ = j10;
            this.bitField0_ |= 2;
            return this;
        }

        public HistoryAmount_Response setFlowAmountWithin66Days(long j10) {
            this.flowAmountWithin66Days_ = j10;
            this.bitField0_ |= 16;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            ExchangeHistoryAmount[] exchangeHistoryAmountArr = this.responseData;
            if (exchangeHistoryAmountArr != null && exchangeHistoryAmountArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ExchangeHistoryAmount[] exchangeHistoryAmountArr2 = this.responseData;
                    if (i10 >= exchangeHistoryAmountArr2.length) {
                        break;
                    }
                    ExchangeHistoryAmount exchangeHistoryAmount = exchangeHistoryAmountArr2[i10];
                    if (exchangeHistoryAmount != null) {
                        codedOutputByteBufferNano.writeMessage(1, exchangeHistoryAmount);
                    }
                    i10++;
                }
            }
            HistoryAmountRequest.HistoryAmount_Request historyAmount_Request = this.requestData;
            if (historyAmount_Request != null) {
                codedOutputByteBufferNano.writeMessage(2, historyAmount_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeInt64(3, this.currentFlowAmount_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeInt64(4, this.flowAmountWithin5Days_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeInt64(5, this.flowAmountWithin10Days_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeInt64(6, this.flowAmountWithin22Days_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeInt64(7, this.flowAmountWithin66Days_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeInt64(8, this.flowAmountWithin1Year_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public HistoryAmount_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 10);
                    ExchangeHistoryAmount[] exchangeHistoryAmountArr = this.responseData;
                    int length = exchangeHistoryAmountArr == null ? 0 : exchangeHistoryAmountArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    ExchangeHistoryAmount[] exchangeHistoryAmountArr2 = new ExchangeHistoryAmount[i10];
                    if (length != 0) {
                        System.arraycopy(exchangeHistoryAmountArr, 0, exchangeHistoryAmountArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        ExchangeHistoryAmount exchangeHistoryAmount = new ExchangeHistoryAmount();
                        exchangeHistoryAmountArr2[length] = exchangeHistoryAmount;
                        codedInputByteBufferNano.readMessage(exchangeHistoryAmount);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    ExchangeHistoryAmount exchangeHistoryAmount2 = new ExchangeHistoryAmount();
                    exchangeHistoryAmountArr2[length] = exchangeHistoryAmount2;
                    codedInputByteBufferNano.readMessage(exchangeHistoryAmount2);
                    this.responseData = exchangeHistoryAmountArr2;
                } else if (readTag == 18) {
                    if (this.requestData == null) {
                        this.requestData = new HistoryAmountRequest.HistoryAmount_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestData);
                } else if (readTag == 24) {
                    this.currentFlowAmount_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 1;
                } else if (readTag == 32) {
                    this.flowAmountWithin5Days_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 2;
                } else if (readTag == 40) {
                    this.flowAmountWithin10Days_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 4;
                } else if (readTag == 48) {
                    this.flowAmountWithin22Days_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 8;
                } else if (readTag == 56) {
                    this.flowAmountWithin66Days_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 16;
                } else if (readTag == 64) {
                    this.flowAmountWithin1Year_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 32;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
