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

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

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

        private static volatile InstitutionalTrends_Response[] _emptyArray;

        public InstitutionalTrendsRequest.InstitutionalTrends_Request input;

        public InstitutionalTrendsData output;

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

            private static volatile InstitutionalTrendsData[] _emptyArray;

            private int bitField0_;

            private int calEndDate_;

            private int calStartDate_;

            public int[] calendarDate;

            private int date_;

            public InstitutionalTrendsDetail[] history;

            public InstitutionalTrendsDetail[] latest;

            public InstitutionalTrendsDetail[] recent;

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

                private static volatile InstitutionalTrendsDetail[] _emptyArray;

                private int bitField0_;

                private int condays_;

                private String name_;

                private String org_;

                private long sum_;

                private long total_;

                public InstitutionalTrendsDetail() {
                    clear();
                }

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

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

                public InstitutionalTrendsDetail clear() {
                    this.bitField0_ = 0;
                    this.org_ = "";
                    this.name_ = "";
                    this.sum_ = 0;
                    this.total_ = 0;
                    this.condays_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public InstitutionalTrendsDetail clearCondays() {
                    this.condays_ = 0;
                    this.bitField0_ &= -17;
                    return this;
                }

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

                public InstitutionalTrendsDetail clearOrg() {
                    this.org_ = "";
                    this.bitField0_ &= -2;
                    return this;
                }

                public InstitutionalTrendsDetail clearSum() {
                    this.sum_ = 0;
                    this.bitField0_ &= -5;
                    return this;
                }

                public InstitutionalTrendsDetail clearTotal() {
                    this.total_ = 0;
                    this.bitField0_ &= -9;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(1, this.org_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.name_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.sum_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(4, this.total_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(5, this.condays_);
                    }
                    return computeSerializedSize;
                }

                public int getCondays() {
                    return this.condays_;
                }

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

                public String getOrg() {
                    return this.org_;
                }

                public long getSum() {
                    return this.sum_;
                }

                public long getTotal() {
                    return this.total_;
                }

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

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

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

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

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

                public InstitutionalTrendsDetail setCondays(int i10) {
                    this.condays_ = i10;
                    this.bitField0_ |= 16;
                    return this;
                }

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

                public InstitutionalTrendsDetail setOrg(String str) {
                    str.getClass();
                    this.org_ = str;
                    this.bitField0_ |= 1;
                    return this;
                }

                public InstitutionalTrendsDetail setSum(long j10) {
                    this.sum_ = j10;
                    this.bitField0_ |= 4;
                    return this;
                }

                public InstitutionalTrendsDetail setTotal(long j10) {
                    this.total_ = j10;
                    this.bitField0_ |= 8;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeString(1, this.org_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeString(2, this.name_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeInt64(3, this.sum_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        codedOutputByteBufferNano.writeUInt64(4, this.total_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        codedOutputByteBufferNano.writeUInt32(5, this.condays_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public InstitutionalTrendsDetail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 10) {
                            this.org_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 1;
                        } else if (readTag == 18) {
                            this.name_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2;
                        } else if (readTag == 24) {
                            this.sum_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 4;
                        } else if (readTag == 32) {
                            this.total_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 8;
                        } else if (readTag == 40) {
                            this.condays_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 16;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public InstitutionalTrendsData() {
                clear();
            }

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

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

            public InstitutionalTrendsData clear() {
                this.bitField0_ = 0;
                this.latest = InstitutionalTrendsDetail.emptyArray();
                this.recent = InstitutionalTrendsDetail.emptyArray();
                this.date_ = 0;
                this.history = InstitutionalTrendsDetail.emptyArray();
                this.calendarDate = WireFormatNano.EMPTY_INT_ARRAY;
                this.calStartDate_ = 0;
                this.calEndDate_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public InstitutionalTrendsData clearCalEndDate() {
                this.calEndDate_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public InstitutionalTrendsData clearCalStartDate() {
                this.calStartDate_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

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

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int[] iArr;
                int computeSerializedSize = super.computeSerializedSize();
                InstitutionalTrendsDetail[] institutionalTrendsDetailArr = this.latest;
                int i10 = 0;
                if (institutionalTrendsDetailArr != null && institutionalTrendsDetailArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr2 = this.latest;
                        if (i11 >= institutionalTrendsDetailArr2.length) {
                            break;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail = institutionalTrendsDetailArr2[i11];
                        if (institutionalTrendsDetail != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, institutionalTrendsDetail);
                        }
                        i11++;
                    }
                }
                InstitutionalTrendsDetail[] institutionalTrendsDetailArr3 = this.recent;
                if (institutionalTrendsDetailArr3 != null && institutionalTrendsDetailArr3.length > 0) {
                    int i12 = 0;
                    while (true) {
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr4 = this.recent;
                        if (i12 >= institutionalTrendsDetailArr4.length) {
                            break;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail2 = institutionalTrendsDetailArr4[i12];
                        if (institutionalTrendsDetail2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, institutionalTrendsDetail2);
                        }
                        i12++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.date_);
                }
                InstitutionalTrendsDetail[] institutionalTrendsDetailArr5 = this.history;
                if (institutionalTrendsDetailArr5 != null && institutionalTrendsDetailArr5.length > 0) {
                    int i13 = 0;
                    while (true) {
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr6 = this.history;
                        if (i13 >= institutionalTrendsDetailArr6.length) {
                            break;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail3 = institutionalTrendsDetailArr6[i13];
                        if (institutionalTrendsDetail3 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, institutionalTrendsDetail3);
                        }
                        i13++;
                    }
                }
                int[] iArr2 = this.calendarDate;
                if (iArr2 != null && iArr2.length > 0) {
                    int i14 = 0;
                    while (true) {
                        iArr = this.calendarDate;
                        if (i10 >= iArr.length) {
                            break;
                        }
                        i14 += CodedOutputByteBufferNano.computeUInt32SizeNoTag(iArr[i10]);
                        i10++;
                    }
                    computeSerializedSize = computeSerializedSize + i14 + iArr.length;
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(6, this.calStartDate_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(7, this.calEndDate_);
                }
                return computeSerializedSize;
            }

            public int getCalEndDate() {
                return this.calEndDate_;
            }

            public int getCalStartDate() {
                return this.calStartDate_;
            }

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

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

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

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

            public InstitutionalTrendsData setCalEndDate(int i10) {
                this.calEndDate_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public InstitutionalTrendsData setCalStartDate(int i10) {
                this.calStartDate_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

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

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                InstitutionalTrendsDetail[] institutionalTrendsDetailArr = this.latest;
                int i10 = 0;
                if (institutionalTrendsDetailArr != null && institutionalTrendsDetailArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr2 = this.latest;
                        if (i11 >= institutionalTrendsDetailArr2.length) {
                            break;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail = institutionalTrendsDetailArr2[i11];
                        if (institutionalTrendsDetail != null) {
                            codedOutputByteBufferNano.writeMessage(1, institutionalTrendsDetail);
                        }
                        i11++;
                    }
                }
                InstitutionalTrendsDetail[] institutionalTrendsDetailArr3 = this.recent;
                if (institutionalTrendsDetailArr3 != null && institutionalTrendsDetailArr3.length > 0) {
                    int i12 = 0;
                    while (true) {
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr4 = this.recent;
                        if (i12 >= institutionalTrendsDetailArr4.length) {
                            break;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail2 = institutionalTrendsDetailArr4[i12];
                        if (institutionalTrendsDetail2 != null) {
                            codedOutputByteBufferNano.writeMessage(2, institutionalTrendsDetail2);
                        }
                        i12++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.date_);
                }
                InstitutionalTrendsDetail[] institutionalTrendsDetailArr5 = this.history;
                if (institutionalTrendsDetailArr5 != null && institutionalTrendsDetailArr5.length > 0) {
                    int i13 = 0;
                    while (true) {
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr6 = this.history;
                        if (i13 >= institutionalTrendsDetailArr6.length) {
                            break;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail3 = institutionalTrendsDetailArr6[i13];
                        if (institutionalTrendsDetail3 != null) {
                            codedOutputByteBufferNano.writeMessage(4, institutionalTrendsDetail3);
                        }
                        i13++;
                    }
                }
                int[] iArr = this.calendarDate;
                if (iArr != null && iArr.length > 0) {
                    while (true) {
                        int[] iArr2 = this.calendarDate;
                        if (i10 >= iArr2.length) {
                            break;
                        }
                        codedOutputByteBufferNano.writeUInt32(5, iArr2[i10]);
                        i10++;
                    }
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(6, this.calStartDate_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(7, this.calEndDate_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public InstitutionalTrendsData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 10);
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr = this.latest;
                        int length = institutionalTrendsDetailArr == null ? 0 : institutionalTrendsDetailArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr2 = new InstitutionalTrendsDetail[i10];
                        if (length != 0) {
                            System.arraycopy(institutionalTrendsDetailArr, 0, institutionalTrendsDetailArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            InstitutionalTrendsDetail institutionalTrendsDetail = new InstitutionalTrendsDetail();
                            institutionalTrendsDetailArr2[length] = institutionalTrendsDetail;
                            codedInputByteBufferNano.readMessage(institutionalTrendsDetail);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail2 = new InstitutionalTrendsDetail();
                        institutionalTrendsDetailArr2[length] = institutionalTrendsDetail2;
                        codedInputByteBufferNano.readMessage(institutionalTrendsDetail2);
                        this.latest = institutionalTrendsDetailArr2;
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr3 = this.recent;
                        int length2 = institutionalTrendsDetailArr3 == null ? 0 : institutionalTrendsDetailArr3.length;
                        int i11 = repeatedFieldArrayLength2 + length2;
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr4 = new InstitutionalTrendsDetail[i11];
                        if (length2 != 0) {
                            System.arraycopy(institutionalTrendsDetailArr3, 0, institutionalTrendsDetailArr4, 0, length2);
                        }
                        while (length2 < i11 - 1) {
                            InstitutionalTrendsDetail institutionalTrendsDetail3 = new InstitutionalTrendsDetail();
                            institutionalTrendsDetailArr4[length2] = institutionalTrendsDetail3;
                            codedInputByteBufferNano.readMessage(institutionalTrendsDetail3);
                            codedInputByteBufferNano.readTag();
                            length2++;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail4 = new InstitutionalTrendsDetail();
                        institutionalTrendsDetailArr4[length2] = institutionalTrendsDetail4;
                        codedInputByteBufferNano.readMessage(institutionalTrendsDetail4);
                        this.recent = institutionalTrendsDetailArr4;
                    } else if (readTag == 24) {
                        this.date_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 34) {
                        int repeatedFieldArrayLength3 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 34);
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr5 = this.history;
                        int length3 = institutionalTrendsDetailArr5 == null ? 0 : institutionalTrendsDetailArr5.length;
                        int i12 = repeatedFieldArrayLength3 + length3;
                        InstitutionalTrendsDetail[] institutionalTrendsDetailArr6 = new InstitutionalTrendsDetail[i12];
                        if (length3 != 0) {
                            System.arraycopy(institutionalTrendsDetailArr5, 0, institutionalTrendsDetailArr6, 0, length3);
                        }
                        while (length3 < i12 - 1) {
                            InstitutionalTrendsDetail institutionalTrendsDetail5 = new InstitutionalTrendsDetail();
                            institutionalTrendsDetailArr6[length3] = institutionalTrendsDetail5;
                            codedInputByteBufferNano.readMessage(institutionalTrendsDetail5);
                            codedInputByteBufferNano.readTag();
                            length3++;
                        }
                        InstitutionalTrendsDetail institutionalTrendsDetail6 = new InstitutionalTrendsDetail();
                        institutionalTrendsDetailArr6[length3] = institutionalTrendsDetail6;
                        codedInputByteBufferNano.readMessage(institutionalTrendsDetail6);
                        this.history = institutionalTrendsDetailArr6;
                    } else if (readTag == 40) {
                        int repeatedFieldArrayLength4 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 40);
                        int[] iArr = this.calendarDate;
                        int length4 = iArr == null ? 0 : iArr.length;
                        int i13 = repeatedFieldArrayLength4 + length4;
                        int[] iArr2 = new int[i13];
                        if (length4 != 0) {
                            System.arraycopy(iArr, 0, iArr2, 0, length4);
                        }
                        while (length4 < i13 - 1) {
                            iArr2[length4] = codedInputByteBufferNano.readUInt32();
                            codedInputByteBufferNano.readTag();
                            length4++;
                        }
                        iArr2[length4] = codedInputByteBufferNano.readUInt32();
                        this.calendarDate = iArr2;
                    } else if (readTag == 42) {
                        int pushLimit = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                        int position = codedInputByteBufferNano.getPosition();
                        int i14 = 0;
                        while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                            codedInputByteBufferNano.readUInt32();
                            i14++;
                        }
                        codedInputByteBufferNano.rewindToPosition(position);
                        int[] iArr3 = this.calendarDate;
                        int length5 = iArr3 == null ? 0 : iArr3.length;
                        int i15 = i14 + length5;
                        int[] iArr4 = new int[i15];
                        if (length5 != 0) {
                            System.arraycopy(iArr3, 0, iArr4, 0, length5);
                        }
                        while (length5 < i15) {
                            iArr4[length5] = codedInputByteBufferNano.readUInt32();
                            length5++;
                        }
                        this.calendarDate = iArr4;
                        codedInputByteBufferNano.popLimit(pushLimit);
                    } else if (readTag == 48) {
                        this.calStartDate_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 56) {
                        this.calEndDate_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public InstitutionalTrends_Response() {
            clear();
        }

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

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

        public InstitutionalTrends_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();
            InstitutionalTrendsRequest.InstitutionalTrends_Request institutionalTrends_Request = this.input;
            if (institutionalTrends_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, institutionalTrends_Request);
            }
            InstitutionalTrendsData institutionalTrendsData = this.output;
            if (institutionalTrendsData != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, institutionalTrendsData);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            InstitutionalTrendsRequest.InstitutionalTrends_Request institutionalTrends_Request = this.input;
            if (institutionalTrends_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, institutionalTrends_Request);
            }
            InstitutionalTrendsData institutionalTrendsData = this.output;
            if (institutionalTrendsData != null) {
                codedOutputByteBufferNano.writeMessage(2, institutionalTrendsData);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

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