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

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

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

        private static volatile CandleStickNew_Response[] _emptyArray;

        public FHSP[] fhsp;

        public HisShares[] hisshares;

        public CandleStick[] kLines;

        public CandleStickRequest.CandleStick_Request requestParams;

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

            private static volatile CandleStick[] _emptyArray;

            private long amount_;

            private int bitField0_;

            private int close_;

            private long datetime_;

            private int high_;

            private int low_;

            private int open_;

            private long shares_;

            private long volume_;

            public CandleStick() {
                clear();
            }

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

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

            public CandleStick clear() {
                this.bitField0_ = 0;
                this.datetime_ = 0;
                this.open_ = 0;
                this.close_ = 0;
                this.high_ = 0;
                this.low_ = 0;
                this.volume_ = 0;
                this.amount_ = 0;
                this.shares_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public CandleStick clearAmount() {
                this.amount_ = 0;
                this.bitField0_ &= -65;
                return this;
            }

            public CandleStick clearClose() {
                this.close_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public CandleStick clearDatetime() {
                this.datetime_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public CandleStick clearHigh() {
                this.high_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public CandleStick clearLow() {
                this.low_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public CandleStick clearOpen() {
                this.open_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public CandleStick clearShares() {
                this.shares_ = 0;
                this.bitField0_ &= -129;
                return this;
            }

            public CandleStick clearVolume() {
                this.volume_ = 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.computeInt64Size(1, this.datetime_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.open_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.close_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.high_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(5, this.low_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(6, this.volume_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(7, this.amount_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt64Size(8, this.shares_);
                }
                return computeSerializedSize;
            }

            public long getAmount() {
                return this.amount_;
            }

            public int getClose() {
                return this.close_;
            }

            public long getDatetime() {
                return this.datetime_;
            }

            public int getHigh() {
                return this.high_;
            }

            public int getLow() {
                return this.low_;
            }

            public int getOpen() {
                return this.open_;
            }

            public long getShares() {
                return this.shares_;
            }

            public long getVolume() {
                return this.volume_;
            }

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

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

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

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

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

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

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

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

            public CandleStick setAmount(long j10) {
                this.amount_ = j10;
                this.bitField0_ |= 64;
                return this;
            }

            public CandleStick setClose(int i10) {
                this.close_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public CandleStick setDatetime(long j10) {
                this.datetime_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public CandleStick setHigh(int i10) {
                this.high_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public CandleStick setLow(int i10) {
                this.low_ = i10;
                this.bitField0_ |= 16;
                return this;
            }

            public CandleStick setOpen(int i10) {
                this.open_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public CandleStick setShares(long j10) {
                this.shares_ = j10;
                this.bitField0_ |= 128;
                return this;
            }

            public CandleStick setVolume(long j10) {
                this.volume_ = j10;
                this.bitField0_ |= 32;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(1, this.datetime_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.open_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.close_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.high_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.low_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeUInt64(6, this.volume_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeUInt64(7, this.amount_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeUInt64(8, this.shares_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public CandleStick mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.datetime_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.open_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.close_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.high_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.low_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 16;
                    } else if (readTag == 48) {
                        this.volume_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 32;
                    } else if (readTag == 56) {
                        this.amount_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 64;
                    } else if (readTag == 64) {
                        this.shares_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 128;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile FHSP[] _emptyArray;

            private long addShares_;

            private int bitField0_;

            private long bonus_;

            private int exDate_;

            private int rightsPrice_;

            private long rights_;

            private long splitShares_;

            public FHSP() {
                clear();
            }

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

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

            public FHSP clear() {
                this.bitField0_ = 0;
                this.exDate_ = 0;
                this.bonus_ = 0;
                this.splitShares_ = 0;
                this.addShares_ = 0;
                this.rights_ = 0;
                this.rightsPrice_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public FHSP clearAddShares() {
                this.addShares_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public FHSP clearBonus() {
                this.bonus_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public FHSP clearExDate() {
                this.exDate_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public FHSP clearRights() {
                this.rights_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public FHSP clearRightsPrice() {
                this.rightsPrice_ = 0;
                this.bitField0_ &= -33;
                return this;
            }

            public FHSP clearSplitShares() {
                this.splitShares_ = 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.computeFixed32Size(1, this.exDate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.bonus_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.splitShares_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(4, this.addShares_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(5, this.rights_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt32Size(6, this.rightsPrice_);
                }
                return computeSerializedSize;
            }

            public long getAddShares() {
                return this.addShares_;
            }

            public long getBonus() {
                return this.bonus_;
            }

            public int getExDate() {
                return this.exDate_;
            }

            public long getRights() {
                return this.rights_;
            }

            public int getRightsPrice() {
                return this.rightsPrice_;
            }

            public long getSplitShares() {
                return this.splitShares_;
            }

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

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

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

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

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

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

            public FHSP setAddShares(long j10) {
                this.addShares_ = j10;
                this.bitField0_ |= 8;
                return this;
            }

            public FHSP setBonus(long j10) {
                this.bonus_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public FHSP setExDate(int i10) {
                this.exDate_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public FHSP setRights(long j10) {
                this.rights_ = j10;
                this.bitField0_ |= 16;
                return this;
            }

            public FHSP setRightsPrice(int i10) {
                this.rightsPrice_ = i10;
                this.bitField0_ |= 32;
                return this;
            }

            public FHSP setSplitShares(long j10) {
                this.splitShares_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeFixed32(1, this.exDate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.bonus_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.splitShares_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeInt64(4, this.addShares_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeInt64(5, this.rights_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeInt32(6, this.rightsPrice_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public FHSP mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 13) {
                        this.exDate_ = codedInputByteBufferNano.readFixed32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.bonus_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.splitShares_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.addShares_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.rights_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 16;
                    } else if (readTag == 48) {
                        this.rightsPrice_ = codedInputByteBufferNano.readInt32();
                        this.bitField0_ |= 32;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile HisShares[] _emptyArray;

            private int bitField0_;

            private int hsdate_;

            private long shares_;

            public HisShares() {
                clear();
            }

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

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

            public HisShares clear() {
                this.bitField0_ = 0;
                this.hsdate_ = 0;
                this.shares_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public HisShares clearHsdate() {
                this.hsdate_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public HisShares clearShares() {
                this.shares_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeFixed32Size(1, this.hsdate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt64Size(2, this.shares_);
                }
                return computeSerializedSize;
            }

            public int getHsdate() {
                return this.hsdate_;
            }

            public long getShares() {
                return this.shares_;
            }

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

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

            public HisShares setHsdate(int i10) {
                this.hsdate_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public HisShares setShares(long j10) {
                this.shares_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeFixed32(1, this.hsdate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt64(2, this.shares_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public HisShares mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 13) {
                        this.hsdate_ = codedInputByteBufferNano.readFixed32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.shares_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public CandleStickNew_Response() {
            clear();
        }

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

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

        public CandleStickNew_Response clear() {
            this.requestParams = null;
            this.kLines = CandleStick.emptyArray();
            this.hisshares = HisShares.emptyArray();
            this.fhsp = FHSP.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            CandleStickRequest.CandleStick_Request candleStick_Request = this.requestParams;
            if (candleStick_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, candleStick_Request);
            }
            CandleStick[] candleStickArr = this.kLines;
            int i10 = 0;
            if (candleStickArr != null && candleStickArr.length > 0) {
                int i11 = 0;
                while (true) {
                    CandleStick[] candleStickArr2 = this.kLines;
                    if (i11 >= candleStickArr2.length) {
                        break;
                    }
                    CandleStick candleStick = candleStickArr2[i11];
                    if (candleStick != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, candleStick);
                    }
                    i11++;
                }
            }
            HisShares[] hisSharesArr = this.hisshares;
            if (hisSharesArr != null && hisSharesArr.length > 0) {
                int i12 = 0;
                while (true) {
                    HisShares[] hisSharesArr2 = this.hisshares;
                    if (i12 >= hisSharesArr2.length) {
                        break;
                    }
                    HisShares hisShares = hisSharesArr2[i12];
                    if (hisShares != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, hisShares);
                    }
                    i12++;
                }
            }
            FHSP[] fhspArr = this.fhsp;
            if (fhspArr != null && fhspArr.length > 0) {
                while (true) {
                    FHSP[] fhspArr2 = this.fhsp;
                    if (i10 >= fhspArr2.length) {
                        break;
                    }
                    FHSP fhsp2 = fhspArr2[i10];
                    if (fhsp2 != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, fhsp2);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            CandleStickRequest.CandleStick_Request candleStick_Request = this.requestParams;
            if (candleStick_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, candleStick_Request);
            }
            CandleStick[] candleStickArr = this.kLines;
            int i10 = 0;
            if (candleStickArr != null && candleStickArr.length > 0) {
                int i11 = 0;
                while (true) {
                    CandleStick[] candleStickArr2 = this.kLines;
                    if (i11 >= candleStickArr2.length) {
                        break;
                    }
                    CandleStick candleStick = candleStickArr2[i11];
                    if (candleStick != null) {
                        codedOutputByteBufferNano.writeMessage(2, candleStick);
                    }
                    i11++;
                }
            }
            HisShares[] hisSharesArr = this.hisshares;
            if (hisSharesArr != null && hisSharesArr.length > 0) {
                int i12 = 0;
                while (true) {
                    HisShares[] hisSharesArr2 = this.hisshares;
                    if (i12 >= hisSharesArr2.length) {
                        break;
                    }
                    HisShares hisShares = hisSharesArr2[i12];
                    if (hisShares != null) {
                        codedOutputByteBufferNano.writeMessage(3, hisShares);
                    }
                    i12++;
                }
            }
            FHSP[] fhspArr = this.fhsp;
            if (fhspArr != null && fhspArr.length > 0) {
                while (true) {
                    FHSP[] fhspArr2 = this.fhsp;
                    if (i10 >= fhspArr2.length) {
                        break;
                    }
                    FHSP fhsp2 = fhspArr2[i10];
                    if (fhsp2 != null) {
                        codedOutputByteBufferNano.writeMessage(4, fhsp2);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public CandleStickNew_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new CandleStickRequest.CandleStick_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    CandleStick[] candleStickArr = this.kLines;
                    int length = candleStickArr == null ? 0 : candleStickArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    CandleStick[] candleStickArr2 = new CandleStick[i10];
                    if (length != 0) {
                        System.arraycopy(candleStickArr, 0, candleStickArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        CandleStick candleStick = new CandleStick();
                        candleStickArr2[length] = candleStick;
                        codedInputByteBufferNano.readMessage(candleStick);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    CandleStick candleStick2 = new CandleStick();
                    candleStickArr2[length] = candleStick2;
                    codedInputByteBufferNano.readMessage(candleStick2);
                    this.kLines = candleStickArr2;
                } else if (readTag == 26) {
                    int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 26);
                    HisShares[] hisSharesArr = this.hisshares;
                    int length2 = hisSharesArr == null ? 0 : hisSharesArr.length;
                    int i11 = repeatedFieldArrayLength2 + length2;
                    HisShares[] hisSharesArr2 = new HisShares[i11];
                    if (length2 != 0) {
                        System.arraycopy(hisSharesArr, 0, hisSharesArr2, 0, length2);
                    }
                    while (length2 < i11 - 1) {
                        HisShares hisShares = new HisShares();
                        hisSharesArr2[length2] = hisShares;
                        codedInputByteBufferNano.readMessage(hisShares);
                        codedInputByteBufferNano.readTag();
                        length2++;
                    }
                    HisShares hisShares2 = new HisShares();
                    hisSharesArr2[length2] = hisShares2;
                    codedInputByteBufferNano.readMessage(hisShares2);
                    this.hisshares = hisSharesArr2;
                } else if (readTag == 34) {
                    int repeatedFieldArrayLength3 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 34);
                    FHSP[] fhspArr = this.fhsp;
                    int length3 = fhspArr == null ? 0 : fhspArr.length;
                    int i12 = repeatedFieldArrayLength3 + length3;
                    FHSP[] fhspArr2 = new FHSP[i12];
                    if (length3 != 0) {
                        System.arraycopy(fhspArr, 0, fhspArr2, 0, length3);
                    }
                    while (length3 < i12 - 1) {
                        FHSP fhsp2 = new FHSP();
                        fhspArr2[length3] = fhsp2;
                        codedInputByteBufferNano.readMessage(fhsp2);
                        codedInputByteBufferNano.readTag();
                        length3++;
                    }
                    FHSP fhsp3 = new FHSP();
                    fhspArr2[length3] = fhsp3;
                    codedInputByteBufferNano.readMessage(fhsp3);
                    this.fhsp = fhspArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
