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

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

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

        private static volatile FutureBasis_Response[] _emptyArray;

        public InfoData futureInfo;

        public InfoData indexInfo;

        public FutureBasisRequest.FutureBasis_Request inputParams;

        public BasisData[] outputParams;

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

            private static volatile BasisData[] _emptyArray;

            private int bitField0_;

            private int dateTime_;

            private long futureVolume_;

            private int holdVolume_;

            private long indexVolume_;

            private int openFuture_;

            private int openIndex_;

            private int priceFuture_;

            private int priceIndex_;

            public BasisData() {
                clear();
            }

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

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

            public BasisData clear() {
                this.bitField0_ = 0;
                this.dateTime_ = 0;
                this.priceFuture_ = 0;
                this.priceIndex_ = 0;
                this.indexVolume_ = 0;
                this.holdVolume_ = 0;
                this.futureVolume_ = 0;
                this.openFuture_ = 0;
                this.openIndex_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public BasisData clearDateTime() {
                this.dateTime_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public BasisData clearFutureVolume() {
                this.futureVolume_ = 0;
                this.bitField0_ &= -33;
                return this;
            }

            public BasisData clearHoldVolume() {
                this.holdVolume_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public BasisData clearIndexVolume() {
                this.indexVolume_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public BasisData clearOpenFuture() {
                this.openFuture_ = 0;
                this.bitField0_ &= -65;
                return this;
            }

            public BasisData clearOpenIndex() {
                this.openIndex_ = 0;
                this.bitField0_ &= -129;
                return this;
            }

            public BasisData clearPriceFuture() {
                this.priceFuture_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public BasisData clearPriceIndex() {
                this.priceIndex_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.dateTime_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.priceFuture_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.priceIndex_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(4, this.indexVolume_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(5, this.holdVolume_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(6, this.futureVolume_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(7, this.openFuture_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(8, this.openIndex_);
                }
                return computeSerializedSize;
            }

            public int getDateTime() {
                return this.dateTime_;
            }

            public long getFutureVolume() {
                return this.futureVolume_;
            }

            public int getHoldVolume() {
                return this.holdVolume_;
            }

            public long getIndexVolume() {
                return this.indexVolume_;
            }

            public int getOpenFuture() {
                return this.openFuture_;
            }

            public int getOpenIndex() {
                return this.openIndex_;
            }

            public int getPriceFuture() {
                return this.priceFuture_;
            }

            public int getPriceIndex() {
                return this.priceIndex_;
            }

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

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

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

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

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

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

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

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

            public BasisData setDateTime(int i10) {
                this.dateTime_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public BasisData setFutureVolume(long j10) {
                this.futureVolume_ = j10;
                this.bitField0_ |= 32;
                return this;
            }

            public BasisData setHoldVolume(int i10) {
                this.holdVolume_ = i10;
                this.bitField0_ |= 16;
                return this;
            }

            public BasisData setIndexVolume(long j10) {
                this.indexVolume_ = j10;
                this.bitField0_ |= 8;
                return this;
            }

            public BasisData setOpenFuture(int i10) {
                this.openFuture_ = i10;
                this.bitField0_ |= 64;
                return this;
            }

            public BasisData setOpenIndex(int i10) {
                this.openIndex_ = i10;
                this.bitField0_ |= 128;
                return this;
            }

            public BasisData setPriceFuture(int i10) {
                this.priceFuture_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public BasisData setPriceIndex(int i10) {
                this.priceIndex_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.dateTime_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.priceFuture_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.priceIndex_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt64(4, this.indexVolume_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.holdVolume_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeUInt64(6, this.futureVolume_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeUInt32(7, this.openFuture_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeUInt32(8, this.openIndex_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public BasisData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.dateTime_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.priceFuture_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.priceIndex_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.indexVolume_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.holdVolume_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 16;
                    } else if (readTag == 48) {
                        this.futureVolume_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 32;
                    } else if (readTag == 56) {
                        this.openFuture_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 64;
                    } else if (readTag == 64) {
                        this.openIndex_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 128;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile InfoData[] _emptyArray;

            private int bitField0_;

            private long category_;

            private String code_;

            private int exchange_;

            private int id_;

            private String name_;

            private int session_;

            public InfoData() {
                clear();
            }

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

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

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

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

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

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

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

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

            public InfoData 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.name_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.code_);
                }
                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_ & 4) != 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_ & 2) != 0) {
                    return true;
                }
                return false;
            }

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

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

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

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

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

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

            public InfoData 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.name_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.code_);
                }
                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 InfoData parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                return new InfoData().mergeFrom(codedInputByteBufferNano);
            }

            public InfoData 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.name_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 26) {
                        this.code_ = 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 FutureBasis_Response() {
            clear();
        }

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

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

        public FutureBasis_Response clear() {
            this.inputParams = null;
            this.outputParams = BasisData.emptyArray();
            this.futureInfo = null;
            this.indexInfo = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            FutureBasisRequest.FutureBasis_Request futureBasis_Request = this.inputParams;
            if (futureBasis_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, futureBasis_Request);
            }
            BasisData[] basisDataArr = this.outputParams;
            if (basisDataArr != null && basisDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    BasisData[] basisDataArr2 = this.outputParams;
                    if (i10 >= basisDataArr2.length) {
                        break;
                    }
                    BasisData basisData = basisDataArr2[i10];
                    if (basisData != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, basisData);
                    }
                    i10++;
                }
            }
            InfoData infoData = this.futureInfo;
            if (infoData != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, infoData);
            }
            InfoData infoData2 = this.indexInfo;
            if (infoData2 != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(4, infoData2);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            FutureBasisRequest.FutureBasis_Request futureBasis_Request = this.inputParams;
            if (futureBasis_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, futureBasis_Request);
            }
            BasisData[] basisDataArr = this.outputParams;
            if (basisDataArr != null && basisDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    BasisData[] basisDataArr2 = this.outputParams;
                    if (i10 >= basisDataArr2.length) {
                        break;
                    }
                    BasisData basisData = basisDataArr2[i10];
                    if (basisData != null) {
                        codedOutputByteBufferNano.writeMessage(2, basisData);
                    }
                    i10++;
                }
            }
            InfoData infoData = this.futureInfo;
            if (infoData != null) {
                codedOutputByteBufferNano.writeMessage(3, infoData);
            }
            InfoData infoData2 = this.indexInfo;
            if (infoData2 != null) {
                codedOutputByteBufferNano.writeMessage(4, infoData2);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public FutureBasis_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.inputParams == null) {
                        this.inputParams = new FutureBasisRequest.FutureBasis_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.inputParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    BasisData[] basisDataArr = this.outputParams;
                    int length = basisDataArr == null ? 0 : basisDataArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    BasisData[] basisDataArr2 = new BasisData[i10];
                    if (length != 0) {
                        System.arraycopy(basisDataArr, 0, basisDataArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        BasisData basisData = new BasisData();
                        basisDataArr2[length] = basisData;
                        codedInputByteBufferNano.readMessage(basisData);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    BasisData basisData2 = new BasisData();
                    basisDataArr2[length] = basisData2;
                    codedInputByteBufferNano.readMessage(basisData2);
                    this.outputParams = basisDataArr2;
                } else if (readTag == 26) {
                    if (this.futureInfo == null) {
                        this.futureInfo = new InfoData();
                    }
                    codedInputByteBufferNano.readMessage(this.futureInfo);
                } else if (readTag == 34) {
                    if (this.indexInfo == null) {
                        this.indexInfo = new InfoData();
                    }
                    codedInputByteBufferNano.readMessage(this.indexInfo);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
