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

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

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

        private static volatile IndexTrend_Response[] _emptyArray;

        public IndexTrendRequest.IndexTrend_Request inputParam;

        public TrendData[] outputParam;

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

            private static volatile TrendData[] _emptyArray;

            private int bitField0_;

            private int close_;

            private int date_;

            public DetailData index;

            public LineData[] line;

            private int price_;

            private int time_;

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

                private static volatile DetailData[] _emptyArray;

                private int bitField0_;

                private long category_;

                private String code_;

                private int exchange_;

                private int id_;

                private String name_;

                private int session_;

                public DetailData() {
                    clear();
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                private static volatile LineData[] _emptyArray;

                private long amount_;

                private int average_;

                private int bitField0_;

                private long inflow_;

                private int price_;

                private int time_;

                private long volume_;

                public LineData() {
                    clear();
                }

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

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

                public LineData clear() {
                    this.bitField0_ = 0;
                    this.time_ = 0;
                    this.price_ = 0;
                    this.average_ = 0;
                    this.amount_ = 0;
                    this.volume_ = 0;
                    this.inflow_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

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

                public LineData clearAverage() {
                    this.average_ = 0;
                    this.bitField0_ &= -5;
                    return this;
                }

                public LineData clearInflow() {
                    this.inflow_ = 0;
                    this.bitField0_ &= -33;
                    return this;
                }

                public LineData clearPrice() {
                    this.price_ = 0;
                    this.bitField0_ &= -3;
                    return this;
                }

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

                public LineData clearVolume() {
                    this.volume_ = 0;
                    this.bitField0_ &= -17;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.time_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.price_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.average_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(4, this.amount_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.volume_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(6, this.inflow_);
                    }
                    return computeSerializedSize;
                }

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

                public int getAverage() {
                    return this.average_;
                }

                public long getInflow() {
                    return this.inflow_;
                }

                public int getPrice() {
                    return this.price_;
                }

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

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

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

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

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

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

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

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

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

                public LineData setAverage(int i10) {
                    this.average_ = i10;
                    this.bitField0_ |= 4;
                    return this;
                }

                public LineData setInflow(long j10) {
                    this.inflow_ = j10;
                    this.bitField0_ |= 32;
                    return this;
                }

                public LineData setPrice(int i10) {
                    this.price_ = i10;
                    this.bitField0_ |= 2;
                    return this;
                }

                public LineData setTime(int i10) {
                    this.time_ = i10;
                    this.bitField0_ |= 1;
                    return this;
                }

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

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeUInt32(1, this.time_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeUInt32(2, this.price_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeUInt32(3, this.average_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        codedOutputByteBufferNano.writeUInt64(4, this.amount_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        codedOutputByteBufferNano.writeUInt64(5, this.volume_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        codedOutputByteBufferNano.writeInt64(6, this.inflow_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public LineData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.time_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                        } else if (readTag == 16) {
                            this.price_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 2;
                        } else if (readTag == 24) {
                            this.average_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4;
                        } else if (readTag == 32) {
                            this.amount_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 8;
                        } else if (readTag == 40) {
                            this.volume_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 16;
                        } else if (readTag == 48) {
                            this.inflow_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 32;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public TrendData() {
                clear();
            }

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

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

            public TrendData clear() {
                this.bitField0_ = 0;
                this.index = null;
                this.line = LineData.emptyArray();
                this.price_ = 0;
                this.close_ = 0;
                this.date_ = 0;
                this.time_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

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

            public TrendData clearPrice() {
                this.price_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

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

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                DetailData detailData = this.index;
                if (detailData != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, detailData);
                }
                LineData[] lineDataArr = this.line;
                if (lineDataArr != null && lineDataArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        LineData[] lineDataArr2 = this.line;
                        if (i10 >= lineDataArr2.length) {
                            break;
                        }
                        LineData lineData = lineDataArr2[i10];
                        if (lineData != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, lineData);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.price_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.close_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(5, this.date_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(6, this.time_);
                }
                return computeSerializedSize;
            }

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

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

            public int getPrice() {
                return this.price_;
            }

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

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

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

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

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

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

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

            public TrendData setPrice(int i10) {
                this.price_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public TrendData setTime(int i10) {
                this.time_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                DetailData detailData = this.index;
                if (detailData != null) {
                    codedOutputByteBufferNano.writeMessage(1, detailData);
                }
                LineData[] lineDataArr = this.line;
                if (lineDataArr != null && lineDataArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        LineData[] lineDataArr2 = this.line;
                        if (i10 >= lineDataArr2.length) {
                            break;
                        }
                        LineData lineData = lineDataArr2[i10];
                        if (lineData != null) {
                            codedOutputByteBufferNano.writeMessage(2, lineData);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.price_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.close_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.date_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(6, this.time_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public TrendData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        if (this.index == null) {
                            this.index = new DetailData();
                        }
                        codedInputByteBufferNano.readMessage(this.index);
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        LineData[] lineDataArr = this.line;
                        int length = lineDataArr == null ? 0 : lineDataArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        LineData[] lineDataArr2 = new LineData[i10];
                        if (length != 0) {
                            System.arraycopy(lineDataArr, 0, lineDataArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            LineData lineData = new LineData();
                            lineDataArr2[length] = lineData;
                            codedInputByteBufferNano.readMessage(lineData);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        LineData lineData2 = new LineData();
                        lineDataArr2[length] = lineData2;
                        codedInputByteBufferNano.readMessage(lineData2);
                        this.line = lineDataArr2;
                    } else if (readTag == 24) {
                        this.price_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 32) {
                        this.close_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 40) {
                        this.date_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 48) {
                        this.time_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public IndexTrend_Response() {
            clear();
        }

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

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

        public IndexTrend_Response clear() {
            this.inputParam = null;
            this.outputParam = TrendData.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            IndexTrendRequest.IndexTrend_Request indexTrend_Request = this.inputParam;
            if (indexTrend_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, indexTrend_Request);
            }
            TrendData[] trendDataArr = this.outputParam;
            if (trendDataArr != null && trendDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    TrendData[] trendDataArr2 = this.outputParam;
                    if (i10 >= trendDataArr2.length) {
                        break;
                    }
                    TrendData trendData = trendDataArr2[i10];
                    if (trendData != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, trendData);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            IndexTrendRequest.IndexTrend_Request indexTrend_Request = this.inputParam;
            if (indexTrend_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, indexTrend_Request);
            }
            TrendData[] trendDataArr = this.outputParam;
            if (trendDataArr != null && trendDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    TrendData[] trendDataArr2 = this.outputParam;
                    if (i10 >= trendDataArr2.length) {
                        break;
                    }
                    TrendData trendData = trendDataArr2[i10];
                    if (trendData != null) {
                        codedOutputByteBufferNano.writeMessage(2, trendData);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public IndexTrend_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.inputParam == null) {
                        this.inputParam = new IndexTrendRequest.IndexTrend_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.inputParam);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    TrendData[] trendDataArr = this.outputParam;
                    int length = trendDataArr == null ? 0 : trendDataArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    TrendData[] trendDataArr2 = new TrendData[i10];
                    if (length != 0) {
                        System.arraycopy(trendDataArr, 0, trendDataArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        TrendData trendData = new TrendData();
                        trendDataArr2[length] = trendData;
                        codedInputByteBufferNano.readMessage(trendData);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    TrendData trendData2 = new TrendData();
                    trendDataArr2[length] = trendData2;
                    codedInputByteBufferNano.readMessage(trendData2);
                    this.outputParam = trendDataArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
