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

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

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

        private static volatile HisMin_Response[] _emptyArray;

        public HisMinRequest.HisMin_Request input;

        public his_ln output;

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

            private static volatile his_ln[] _emptyArray;

            private int bitField0_;

            private int closePrice_;

            public his_pt[] dataLine;

            private int tradeDate_;

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

                private static volatile his_pt[] _emptyArray;

                private long amt_;

                private int ave_;

                private int bitField0_;

                private int prc_;

                private long time_;

                private long vol_;

                public his_pt() {
                    clear();
                }

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

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

                public his_pt clear() {
                    this.bitField0_ = 0;
                    this.time_ = 0;
                    this.prc_ = 0;
                    this.ave_ = 0;
                    this.vol_ = 0;
                    this.amt_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public his_pt clearAmt() {
                    this.amt_ = 0;
                    this.bitField0_ &= -17;
                    return this;
                }

                public his_pt clearAve() {
                    this.ave_ = 0;
                    this.bitField0_ &= -5;
                    return this;
                }

                public his_pt clearPrc() {
                    this.prc_ = 0;
                    this.bitField0_ &= -3;
                    return this;
                }

                public his_pt clearTime() {
                    this.time_ = 0;
                    this.bitField0_ &= -2;
                    return this;
                }

                public his_pt clearVol() {
                    this.vol_ = 0;
                    this.bitField0_ &= -9;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(1, this.time_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.prc_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.ave_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(4, this.vol_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeSInt64Size(5, this.amt_);
                    }
                    return computeSerializedSize;
                }

                public long getAmt() {
                    return this.amt_;
                }

                public int getAve() {
                    return this.ave_;
                }

                public int getPrc() {
                    return this.prc_;
                }

                public long getTime() {
                    return this.time_;
                }

                public long getVol() {
                    return this.vol_;
                }

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

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

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

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

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

                public his_pt setAmt(long j10) {
                    this.amt_ = j10;
                    this.bitField0_ |= 16;
                    return this;
                }

                public his_pt setAve(int i10) {
                    this.ave_ = i10;
                    this.bitField0_ |= 4;
                    return this;
                }

                public his_pt setPrc(int i10) {
                    this.prc_ = i10;
                    this.bitField0_ |= 2;
                    return this;
                }

                public his_pt setTime(long j10) {
                    this.time_ = j10;
                    this.bitField0_ |= 1;
                    return this;
                }

                public his_pt setVol(long j10) {
                    this.vol_ = j10;
                    this.bitField0_ |= 8;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeInt64(1, this.time_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeUInt32(2, this.prc_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeUInt32(3, this.ave_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        codedOutputByteBufferNano.writeUInt64(4, this.vol_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        codedOutputByteBufferNano.writeSInt64(5, this.amt_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public his_pt mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.time_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 1;
                        } else if (readTag == 16) {
                            this.prc_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 2;
                        } else if (readTag == 24) {
                            this.ave_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4;
                        } else if (readTag == 32) {
                            this.vol_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 8;
                        } else if (readTag == 40) {
                            this.amt_ = codedInputByteBufferNano.readSInt64();
                            this.bitField0_ |= 16;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public his_ln() {
                clear();
            }

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

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

            public his_ln clear() {
                this.bitField0_ = 0;
                this.dataLine = his_pt.emptyArray();
                this.tradeDate_ = 0;
                this.closePrice_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public his_ln clearClosePrice() {
                this.closePrice_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

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

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                his_pt[] his_ptArr = this.dataLine;
                if (his_ptArr != null && his_ptArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        his_pt[] his_ptArr2 = this.dataLine;
                        if (i10 >= his_ptArr2.length) {
                            break;
                        }
                        his_pt his_pt2 = his_ptArr2[i10];
                        if (his_pt2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, his_pt2);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.tradeDate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.closePrice_);
                }
                return computeSerializedSize;
            }

            public int getClosePrice() {
                return this.closePrice_;
            }

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

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

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

            public his_ln setClosePrice(int i10) {
                this.closePrice_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

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

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                his_pt[] his_ptArr = this.dataLine;
                if (his_ptArr != null && his_ptArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        his_pt[] his_ptArr2 = this.dataLine;
                        if (i10 >= his_ptArr2.length) {
                            break;
                        }
                        his_pt his_pt2 = his_ptArr2[i10];
                        if (his_pt2 != null) {
                            codedOutputByteBufferNano.writeMessage(1, his_pt2);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.tradeDate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.closePrice_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public his_ln 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);
                        his_pt[] his_ptArr = this.dataLine;
                        int length = his_ptArr == null ? 0 : his_ptArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        his_pt[] his_ptArr2 = new his_pt[i10];
                        if (length != 0) {
                            System.arraycopy(his_ptArr, 0, his_ptArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            his_pt his_pt2 = new his_pt();
                            his_ptArr2[length] = his_pt2;
                            codedInputByteBufferNano.readMessage(his_pt2);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        his_pt his_pt3 = new his_pt();
                        his_ptArr2[length] = his_pt3;
                        codedInputByteBufferNano.readMessage(his_pt3);
                        this.dataLine = his_ptArr2;
                    } else if (readTag == 16) {
                        this.tradeDate_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 24) {
                        this.closePrice_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public HisMin_Response() {
            clear();
        }

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

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

        public HisMin_Response clear() {
            this.input = null;
            this.output = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            HisMinRequest.HisMin_Request hisMin_Request = this.input;
            if (hisMin_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, hisMin_Request);
            }
            his_ln his_ln2 = this.output;
            if (his_ln2 != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, his_ln2);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            HisMinRequest.HisMin_Request hisMin_Request = this.input;
            if (hisMin_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, hisMin_Request);
            }
            his_ln his_ln2 = this.output;
            if (his_ln2 != null) {
                codedOutputByteBufferNano.writeMessage(2, his_ln2);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public HisMin_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.input == null) {
                        this.input = new HisMinRequest.HisMin_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    if (this.output == null) {
                        this.output = new his_ln();
                    }
                    codedInputByteBufferNano.readMessage(this.output);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
