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

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

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

        private static volatile SimilarCandle_Response[] _emptyArray;

        public SimilarCandleRequest.SimilarCandle_Request input;

        public SimilarDetail output;

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

            private static volatile SimilarDetail[] _emptyArray;

            public int[] bestLine;

            private int bitField0_;

            private int fallProbability_;

            private int lastDate_;

            private int maxReturn_;

            public int[] meanLine;

            private int minReturn_;

            private int predictDays_;

            private int riseProbability_;

            public CompareSample[] similarList;

            private int totalSize_;

            public int[] worstLine;

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

                private static volatile CompareSample[] _emptyArray;

                private int bitField0_;

                private long category_;

                private String code_;

                private int date_;

                private int exchange_;

                private int id_;

                private String name_;

                private int score_;

                private int session_;

                public CompareSample() {
                    clear();
                }

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

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

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

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

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

                public CompareSample clearDate() {
                    this.date_ = 0;
                    this.bitField0_ &= -129;
                    return this;
                }

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

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

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

                public CompareSample clearScore() {
                    this.score_ = 0;
                    this.bitField0_ &= -65;
                    return this;
                }

                public CompareSample 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) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(6, this.session_);
                    }
                    if ((this.bitField0_ & 64) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(7, this.score_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(8, this.date_);
                    }
                    return computeSerializedSize;
                }

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

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

                public int getDate() {
                    return this.date_;
                }

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

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

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

                public int getScore() {
                    return this.score_;
                }

                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 hasDate() {
                    if ((this.bitField0_ & 128) != 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 hasScore() {
                    if ((this.bitField0_ & 64) != 0) {
                        return true;
                    }
                    return false;
                }

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

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

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

                public CompareSample setDate(int i10) {
                    this.date_ = i10;
                    this.bitField0_ |= 128;
                    return this;
                }

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

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

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

                public CompareSample setScore(int i10) {
                    this.score_ = i10;
                    this.bitField0_ |= 64;
                    return this;
                }

                public CompareSample 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_);
                    }
                    if ((this.bitField0_ & 64) != 0) {
                        codedOutputByteBufferNano.writeUInt32(7, this.score_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        codedOutputByteBufferNano.writeUInt32(8, this.date_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public CompareSample 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 (readTag == 56) {
                            this.score_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 64;
                        } else if (readTag == 64) {
                            this.date_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 128;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public SimilarDetail() {
                clear();
            }

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

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

            public SimilarDetail clear() {
                this.bitField0_ = 0;
                this.lastDate_ = 0;
                this.similarList = CompareSample.emptyArray();
                this.riseProbability_ = 0;
                this.fallProbability_ = 0;
                this.maxReturn_ = 0;
                this.minReturn_ = 0;
                int[] iArr = WireFormatNano.EMPTY_INT_ARRAY;
                this.bestLine = iArr;
                this.worstLine = iArr;
                this.meanLine = iArr;
                this.totalSize_ = 0;
                this.predictDays_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public SimilarDetail clearFallProbability() {
                this.fallProbability_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public SimilarDetail clearLastDate() {
                this.lastDate_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public SimilarDetail clearMaxReturn() {
                this.maxReturn_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public SimilarDetail clearMinReturn() {
                this.minReturn_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public SimilarDetail clearPredictDays() {
                this.predictDays_ = 0;
                this.bitField0_ &= -65;
                return this;
            }

            public SimilarDetail clearRiseProbability() {
                this.riseProbability_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public SimilarDetail clearTotalSize() {
                this.totalSize_ = 0;
                this.bitField0_ &= -33;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int[] iArr;
                int[] iArr2;
                int[] iArr3;
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.lastDate_);
                }
                CompareSample[] compareSampleArr = this.similarList;
                int i10 = 0;
                if (compareSampleArr != null && compareSampleArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        CompareSample[] compareSampleArr2 = this.similarList;
                        if (i11 >= compareSampleArr2.length) {
                            break;
                        }
                        CompareSample compareSample = compareSampleArr2[i11];
                        if (compareSample != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, compareSample);
                        }
                        i11++;
                    }
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.riseProbability_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.fallProbability_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(5, this.maxReturn_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(6, this.minReturn_);
                }
                int[] iArr4 = this.bestLine;
                if (iArr4 != null && iArr4.length > 0) {
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        iArr3 = this.bestLine;
                        if (i12 >= iArr3.length) {
                            break;
                        }
                        i13 += CodedOutputByteBufferNano.computeUInt32SizeNoTag(iArr3[i12]);
                        i12++;
                    }
                    computeSerializedSize = computeSerializedSize + i13 + iArr3.length;
                }
                int[] iArr5 = this.worstLine;
                if (iArr5 != null && iArr5.length > 0) {
                    int i14 = 0;
                    int i15 = 0;
                    while (true) {
                        iArr2 = this.worstLine;
                        if (i14 >= iArr2.length) {
                            break;
                        }
                        i15 += CodedOutputByteBufferNano.computeUInt32SizeNoTag(iArr2[i14]);
                        i14++;
                    }
                    computeSerializedSize = computeSerializedSize + i15 + iArr2.length;
                }
                int[] iArr6 = this.meanLine;
                if (iArr6 != null && iArr6.length > 0) {
                    int i16 = 0;
                    while (true) {
                        iArr = this.meanLine;
                        if (i10 >= iArr.length) {
                            break;
                        }
                        i16 += CodedOutputByteBufferNano.computeUInt32SizeNoTag(iArr[i10]);
                        i10++;
                    }
                    computeSerializedSize = computeSerializedSize + i16 + iArr.length;
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(10, this.totalSize_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(11, this.predictDays_);
                }
                return computeSerializedSize;
            }

            public int getFallProbability() {
                return this.fallProbability_;
            }

            public int getLastDate() {
                return this.lastDate_;
            }

            public int getMaxReturn() {
                return this.maxReturn_;
            }

            public int getMinReturn() {
                return this.minReturn_;
            }

            public int getPredictDays() {
                return this.predictDays_;
            }

            public int getRiseProbability() {
                return this.riseProbability_;
            }

            public int getTotalSize() {
                return this.totalSize_;
            }

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

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

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

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

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

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

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

            public SimilarDetail setFallProbability(int i10) {
                this.fallProbability_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public SimilarDetail setLastDate(int i10) {
                this.lastDate_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public SimilarDetail setMaxReturn(int i10) {
                this.maxReturn_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public SimilarDetail setMinReturn(int i10) {
                this.minReturn_ = i10;
                this.bitField0_ |= 16;
                return this;
            }

            public SimilarDetail setPredictDays(int i10) {
                this.predictDays_ = i10;
                this.bitField0_ |= 64;
                return this;
            }

            public SimilarDetail setRiseProbability(int i10) {
                this.riseProbability_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public SimilarDetail setTotalSize(int i10) {
                this.totalSize_ = i10;
                this.bitField0_ |= 32;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.lastDate_);
                }
                CompareSample[] compareSampleArr = this.similarList;
                int i10 = 0;
                if (compareSampleArr != null && compareSampleArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        CompareSample[] compareSampleArr2 = this.similarList;
                        if (i11 >= compareSampleArr2.length) {
                            break;
                        }
                        CompareSample compareSample = compareSampleArr2[i11];
                        if (compareSample != null) {
                            codedOutputByteBufferNano.writeMessage(2, compareSample);
                        }
                        i11++;
                    }
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.riseProbability_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.fallProbability_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeSInt32(5, this.maxReturn_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeSInt32(6, this.minReturn_);
                }
                int[] iArr = this.bestLine;
                if (iArr != null && iArr.length > 0) {
                    int i12 = 0;
                    while (true) {
                        int[] iArr2 = this.bestLine;
                        if (i12 >= iArr2.length) {
                            break;
                        }
                        codedOutputByteBufferNano.writeUInt32(7, iArr2[i12]);
                        i12++;
                    }
                }
                int[] iArr3 = this.worstLine;
                if (iArr3 != null && iArr3.length > 0) {
                    int i13 = 0;
                    while (true) {
                        int[] iArr4 = this.worstLine;
                        if (i13 >= iArr4.length) {
                            break;
                        }
                        codedOutputByteBufferNano.writeUInt32(8, iArr4[i13]);
                        i13++;
                    }
                }
                int[] iArr5 = this.meanLine;
                if (iArr5 != null && iArr5.length > 0) {
                    while (true) {
                        int[] iArr6 = this.meanLine;
                        if (i10 >= iArr6.length) {
                            break;
                        }
                        codedOutputByteBufferNano.writeUInt32(9, iArr6[i10]);
                        i10++;
                    }
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeUInt32(10, this.totalSize_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeUInt32(11, this.predictDays_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public SimilarDetail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    switch(readTag) {
                        case 0:
                            return this;
                        case 8:
                            this.lastDate_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                            break;
                        case 18:
                            int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                            CompareSample[] compareSampleArr = this.similarList;
                            int length = compareSampleArr == null ? 0 : compareSampleArr.length;
                            int i10 = repeatedFieldArrayLength + length;
                            CompareSample[] compareSampleArr2 = new CompareSample[i10];
                            if (length != 0) {
                                System.arraycopy(compareSampleArr, 0, compareSampleArr2, 0, length);
                            }
                            while (length < i10 - 1) {
                                CompareSample compareSample = new CompareSample();
                                compareSampleArr2[length] = compareSample;
                                codedInputByteBufferNano.readMessage(compareSample);
                                codedInputByteBufferNano.readTag();
                                length++;
                            }
                            CompareSample compareSample2 = new CompareSample();
                            compareSampleArr2[length] = compareSample2;
                            codedInputByteBufferNano.readMessage(compareSample2);
                            this.similarList = compareSampleArr2;
                            break;
                        case 24:
                            this.riseProbability_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 2;
                            break;
                        case 32:
                            this.fallProbability_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4;
                            break;
                        case 40:
                            this.maxReturn_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 8;
                            break;
                        case 48:
                            this.minReturn_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 16;
                            break;
                        case 56:
                            int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 56);
                            int[] iArr = this.bestLine;
                            int length2 = iArr == null ? 0 : iArr.length;
                            int i11 = repeatedFieldArrayLength2 + length2;
                            int[] iArr2 = new int[i11];
                            if (length2 != 0) {
                                System.arraycopy(iArr, 0, iArr2, 0, length2);
                            }
                            while (length2 < i11 - 1) {
                                iArr2[length2] = codedInputByteBufferNano.readUInt32();
                                codedInputByteBufferNano.readTag();
                                length2++;
                            }
                            iArr2[length2] = codedInputByteBufferNano.readUInt32();
                            this.bestLine = iArr2;
                            break;
                        case 58:
                            int pushLimit = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                            int position = codedInputByteBufferNano.getPosition();
                            int i12 = 0;
                            while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                                codedInputByteBufferNano.readUInt32();
                                i12++;
                            }
                            codedInputByteBufferNano.rewindToPosition(position);
                            int[] iArr3 = this.bestLine;
                            int length3 = iArr3 == null ? 0 : iArr3.length;
                            int i13 = i12 + length3;
                            int[] iArr4 = new int[i13];
                            if (length3 != 0) {
                                System.arraycopy(iArr3, 0, iArr4, 0, length3);
                            }
                            while (length3 < i13) {
                                iArr4[length3] = codedInputByteBufferNano.readUInt32();
                                length3++;
                            }
                            this.bestLine = iArr4;
                            codedInputByteBufferNano.popLimit(pushLimit);
                            break;
                        case 64:
                            int repeatedFieldArrayLength3 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 64);
                            int[] iArr5 = this.worstLine;
                            int length4 = iArr5 == null ? 0 : iArr5.length;
                            int i14 = repeatedFieldArrayLength3 + length4;
                            int[] iArr6 = new int[i14];
                            if (length4 != 0) {
                                System.arraycopy(iArr5, 0, iArr6, 0, length4);
                            }
                            while (length4 < i14 - 1) {
                                iArr6[length4] = codedInputByteBufferNano.readUInt32();
                                codedInputByteBufferNano.readTag();
                                length4++;
                            }
                            iArr6[length4] = codedInputByteBufferNano.readUInt32();
                            this.worstLine = iArr6;
                            break;
                        case 66:
                            int pushLimit2 = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                            int position2 = codedInputByteBufferNano.getPosition();
                            int i15 = 0;
                            while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                                codedInputByteBufferNano.readUInt32();
                                i15++;
                            }
                            codedInputByteBufferNano.rewindToPosition(position2);
                            int[] iArr7 = this.worstLine;
                            int length5 = iArr7 == null ? 0 : iArr7.length;
                            int i16 = i15 + length5;
                            int[] iArr8 = new int[i16];
                            if (length5 != 0) {
                                System.arraycopy(iArr7, 0, iArr8, 0, length5);
                            }
                            while (length5 < i16) {
                                iArr8[length5] = codedInputByteBufferNano.readUInt32();
                                length5++;
                            }
                            this.worstLine = iArr8;
                            codedInputByteBufferNano.popLimit(pushLimit2);
                            break;
                        case 72:
                            int repeatedFieldArrayLength4 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 72);
                            int[] iArr9 = this.meanLine;
                            int length6 = iArr9 == null ? 0 : iArr9.length;
                            int i17 = repeatedFieldArrayLength4 + length6;
                            int[] iArr10 = new int[i17];
                            if (length6 != 0) {
                                System.arraycopy(iArr9, 0, iArr10, 0, length6);
                            }
                            while (length6 < i17 - 1) {
                                iArr10[length6] = codedInputByteBufferNano.readUInt32();
                                codedInputByteBufferNano.readTag();
                                length6++;
                            }
                            iArr10[length6] = codedInputByteBufferNano.readUInt32();
                            this.meanLine = iArr10;
                            break;
                        case 74:
                            int pushLimit3 = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                            int position3 = codedInputByteBufferNano.getPosition();
                            int i18 = 0;
                            while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                                codedInputByteBufferNano.readUInt32();
                                i18++;
                            }
                            codedInputByteBufferNano.rewindToPosition(position3);
                            int[] iArr11 = this.meanLine;
                            int length7 = iArr11 == null ? 0 : iArr11.length;
                            int i19 = i18 + length7;
                            int[] iArr12 = new int[i19];
                            if (length7 != 0) {
                                System.arraycopy(iArr11, 0, iArr12, 0, length7);
                            }
                            while (length7 < i19) {
                                iArr12[length7] = codedInputByteBufferNano.readUInt32();
                                length7++;
                            }
                            this.meanLine = iArr12;
                            codedInputByteBufferNano.popLimit(pushLimit3);
                            break;
                        case 80:
                            this.totalSize_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 32;
                            break;
                        case 88:
                            this.predictDays_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 64;
                            break;
                        default:
                            if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                break;
                            } else {
                                return this;
                            }
                    }
                }
            }
        }

        public SimilarCandle_Response() {
            clear();
        }

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

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

        public SimilarCandle_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();
            SimilarCandleRequest.SimilarCandle_Request similarCandle_Request = this.input;
            if (similarCandle_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, similarCandle_Request);
            }
            SimilarDetail similarDetail = this.output;
            if (similarDetail != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, similarDetail);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            SimilarCandleRequest.SimilarCandle_Request similarCandle_Request = this.input;
            if (similarCandle_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, similarCandle_Request);
            }
            SimilarDetail similarDetail = this.output;
            if (similarDetail != null) {
                codedOutputByteBufferNano.writeMessage(2, similarDetail);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SimilarCandle_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 SimilarCandleRequest.SimilarCandle_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    if (this.output == null) {
                        this.output = new SimilarDetail();
                    }
                    codedInputByteBufferNano.readMessage(this.output);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
