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

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

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

        private static volatile QuoteRange_Response[] _emptyArray;

        public QuoteRangeRequest.QuoteRange_Request request;

        public StatisticData[] statistic;

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

            private static volatile StatisticData[] _emptyArray;

            private int bitField0_;

            private long largestDecrease_;

            private long largestIncrease_;

            private long rangeIncrease_;

            public StockInfo stockInfo;

            private int tradeDateCount_;

            public StatisticData() {
                clear();
            }

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

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

            public StatisticData clear() {
                this.bitField0_ = 0;
                this.stockInfo = null;
                this.largestIncrease_ = 0;
                this.largestDecrease_ = 0;
                this.rangeIncrease_ = 0;
                this.tradeDateCount_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public StatisticData clearLargestDecrease() {
                this.largestDecrease_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public StatisticData clearLargestIncrease() {
                this.largestIncrease_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public StatisticData clearRangeIncrease() {
                this.rangeIncrease_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public StatisticData clearTradeDateCount() {
                this.tradeDateCount_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.largestIncrease_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.largestDecrease_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(4, this.rangeIncrease_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(5, this.tradeDateCount_);
                }
                return computeSerializedSize;
            }

            public long getLargestDecrease() {
                return this.largestDecrease_;
            }

            public long getLargestIncrease() {
                return this.largestIncrease_;
            }

            public long getRangeIncrease() {
                return this.rangeIncrease_;
            }

            public int getTradeDateCount() {
                return this.tradeDateCount_;
            }

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

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

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

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

            public StatisticData setLargestDecrease(long j10) {
                this.largestDecrease_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public StatisticData setLargestIncrease(long j10) {
                this.largestIncrease_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public StatisticData setRangeIncrease(long j10) {
                this.rangeIncrease_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public StatisticData setTradeDateCount(int i10) {
                this.tradeDateCount_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    codedOutputByteBufferNano.writeMessage(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.largestIncrease_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.largestDecrease_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeInt64(4, this.rangeIncrease_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.tradeDateCount_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public StatisticData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        if (this.stockInfo == null) {
                            this.stockInfo = new StockInfo();
                        }
                        codedInputByteBufferNano.readMessage(this.stockInfo);
                    } else if (readTag == 16) {
                        this.largestIncrease_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 24) {
                        this.largestDecrease_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                    } else if (readTag == 32) {
                        this.rangeIncrease_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                    } else if (readTag == 40) {
                        this.tradeDateCount_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile StockInfo[] _emptyArray;

            private int bitField0_;

            private long category_;

            private String code_;

            private int exchange_;

            private int id_;

            private String name_;

            private int session_;

            public StockInfo() {
                clear();
            }

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

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

            public StockInfo clear() {
                this.bitField0_ = 0;
                this.id_ = 0;
                this.code_ = "";
                this.name_ = "";
                this.exchange_ = 0;
                this.category_ = 0;
                this.session_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

            public StockInfo clearCode() {
                this.code_ = "";
                this.bitField0_ &= -3;
                return this;
            }

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

            public StockInfo clearId() {
                this.id_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public StockInfo clearName() {
                this.name_ = "";
                this.bitField0_ &= -5;
                return this;
            }

            public StockInfo clearSession() {
                this.session_ = 0;
                this.bitField0_ &= -33;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.code_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.name_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.exchange_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.category_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(6, this.session_);
                }
                return computeSerializedSize;
            }

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

            public String getCode() {
                return this.code_;
            }

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

            public int getId() {
                return this.id_;
            }

            public String getName() {
                return this.name_;
            }

            public int getSession() {
                return this.session_;
            }

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

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

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

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

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

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

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

            public StockInfo setCode(String str) {
                str.getClass();
                this.code_ = str;
                this.bitField0_ |= 2;
                return this;
            }

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

            public StockInfo setId(int i10) {
                this.id_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public StockInfo setName(String str) {
                str.getClass();
                this.name_ = str;
                this.bitField0_ |= 4;
                return this;
            }

            public StockInfo setSession(int i10) {
                this.session_ = i10;
                this.bitField0_ |= 32;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.code_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.name_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.exchange_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt64(5, this.category_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeUInt32(6, this.session_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public StockInfo mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.id_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        this.code_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 26) {
                        this.name_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.exchange_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.category_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 16;
                    } else if (readTag == 48) {
                        this.session_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 32;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public QuoteRange_Response() {
            clear();
        }

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

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

        public QuoteRange_Response clear() {
            this.request = null;
            this.statistic = StatisticData.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            QuoteRangeRequest.QuoteRange_Request quoteRange_Request = this.request;
            if (quoteRange_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, quoteRange_Request);
            }
            StatisticData[] statisticDataArr = this.statistic;
            if (statisticDataArr != null && statisticDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    StatisticData[] statisticDataArr2 = this.statistic;
                    if (i10 >= statisticDataArr2.length) {
                        break;
                    }
                    StatisticData statisticData = statisticDataArr2[i10];
                    if (statisticData != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, statisticData);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            QuoteRangeRequest.QuoteRange_Request quoteRange_Request = this.request;
            if (quoteRange_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, quoteRange_Request);
            }
            StatisticData[] statisticDataArr = this.statistic;
            if (statisticDataArr != null && statisticDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    StatisticData[] statisticDataArr2 = this.statistic;
                    if (i10 >= statisticDataArr2.length) {
                        break;
                    }
                    StatisticData statisticData = statisticDataArr2[i10];
                    if (statisticData != null) {
                        codedOutputByteBufferNano.writeMessage(2, statisticData);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public QuoteRange_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.request == null) {
                        this.request = new QuoteRangeRequest.QuoteRange_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.request);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    StatisticData[] statisticDataArr = this.statistic;
                    int length = statisticDataArr == null ? 0 : statisticDataArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    StatisticData[] statisticDataArr2 = new StatisticData[i10];
                    if (length != 0) {
                        System.arraycopy(statisticDataArr, 0, statisticDataArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        StatisticData statisticData = new StatisticData();
                        statisticDataArr2[length] = statisticData;
                        codedInputByteBufferNano.readMessage(statisticData);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    StatisticData statisticData2 = new StatisticData();
                    statisticDataArr2[length] = statisticData2;
                    codedInputByteBufferNano.readMessage(statisticData2);
                    this.statistic = statisticDataArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
