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

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

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

        private static volatile TopIndustry_Response[] _emptyArray;

        public TopIndustryRequest.TopIndustry_Request input;

        public TopBuyIndustryData output;

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

            private static volatile TopBuyIndustryData[] _emptyArray;

            private int bitField0_;

            private int calEndDate_;

            private int calStartDate_;

            public int[] calendarDate;

            private int date_;

            public TopDetail[] history;

            public TopDetail[] latest;

            public TopDetail[] recent;

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

                private static volatile TopDetail[] _emptyArray;

                private int bitField0_;

                private long buyingStrength_;

                private long categorySec_;

                private long category_;

                private String codeSec_;

                private String code_;

                private int exchangeSec_;

                private int exchange_;

                private int idSec_;

                private int id_;

                private String nameSec_;

                private String name_;

                private long net_;

                private long sellingStrength_;

                private int sessionSec_;

                private int session_;

                private int stockWeightTotalPercent_;

                private long sum_;

                private int topDays_;

                public TopDetail() {
                    clear();
                }

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

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

                public TopDetail clear() {
                    this.bitField0_ = 0;
                    this.id_ = 0;
                    this.code_ = "";
                    this.name_ = "";
                    this.exchange_ = 0;
                    this.category_ = 0;
                    this.session_ = 0;
                    this.sum_ = 0;
                    this.idSec_ = 0;
                    this.codeSec_ = "";
                    this.nameSec_ = "";
                    this.exchangeSec_ = 0;
                    this.categorySec_ = 0;
                    this.sessionSec_ = 0;
                    this.topDays_ = 0;
                    this.net_ = 0;
                    this.buyingStrength_ = 0;
                    this.sellingStrength_ = 0;
                    this.stockWeightTotalPercent_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public TopDetail clearBuyingStrength() {
                    this.buyingStrength_ = 0;
                    this.bitField0_ &= -32769;
                    return this;
                }

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

                public TopDetail clearCategorySec() {
                    this.categorySec_ = 0;
                    this.bitField0_ &= -2049;
                    return this;
                }

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

                public TopDetail clearCodeSec() {
                    this.codeSec_ = "";
                    this.bitField0_ &= -257;
                    return this;
                }

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

                public TopDetail clearExchangeSec() {
                    this.exchangeSec_ = 0;
                    this.bitField0_ &= -1025;
                    return this;
                }

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

                public TopDetail clearIdSec() {
                    this.idSec_ = 0;
                    this.bitField0_ &= -129;
                    return this;
                }

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

                public TopDetail clearNameSec() {
                    this.nameSec_ = "";
                    this.bitField0_ &= -513;
                    return this;
                }

                public TopDetail clearNet() {
                    this.net_ = 0;
                    this.bitField0_ &= -16385;
                    return this;
                }

                public TopDetail clearSellingStrength() {
                    this.sellingStrength_ = 0;
                    this.bitField0_ &= -65537;
                    return this;
                }

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

                public TopDetail clearSessionSec() {
                    this.sessionSec_ = 0;
                    this.bitField0_ &= -4097;
                    return this;
                }

                public TopDetail clearStockWeightTotalPercent() {
                    this.stockWeightTotalPercent_ = 0;
                    this.bitField0_ &= -131073;
                    return this;
                }

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

                public TopDetail clearTopDays() {
                    this.topDays_ = 0;
                    this.bitField0_ &= -8193;
                    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.computeInt64Size(7, this.sum_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(8, this.idSec_);
                    }
                    if ((this.bitField0_ & 256) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(9, this.codeSec_);
                    }
                    if ((this.bitField0_ & 512) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(10, this.nameSec_);
                    }
                    if ((this.bitField0_ & 1024) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(11, this.exchangeSec_);
                    }
                    if ((this.bitField0_ & 2048) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(12, this.categorySec_);
                    }
                    if ((this.bitField0_ & 4096) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(13, this.sessionSec_);
                    }
                    if ((this.bitField0_ & 8192) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(14, this.topDays_);
                    }
                    if ((this.bitField0_ & 16384) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(15, this.net_);
                    }
                    if ((this.bitField0_ & 32768) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(16, this.buyingStrength_);
                    }
                    if ((this.bitField0_ & 65536) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(17, this.sellingStrength_);
                    }
                    if ((this.bitField0_ & 131072) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeInt32Size(18, this.stockWeightTotalPercent_);
                    }
                    return computeSerializedSize;
                }

                public long getBuyingStrength() {
                    return this.buyingStrength_;
                }

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

                public long getCategorySec() {
                    return this.categorySec_;
                }

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

                public String getCodeSec() {
                    return this.codeSec_;
                }

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

                public int getExchangeSec() {
                    return this.exchangeSec_;
                }

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

                public int getIdSec() {
                    return this.idSec_;
                }

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

                public String getNameSec() {
                    return this.nameSec_;
                }

                public long getNet() {
                    return this.net_;
                }

                public long getSellingStrength() {
                    return this.sellingStrength_;
                }

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

                public int getSessionSec() {
                    return this.sessionSec_;
                }

                public int getStockWeightTotalPercent() {
                    return this.stockWeightTotalPercent_;
                }

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

                public int getTopDays() {
                    return this.topDays_;
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                public TopDetail setBuyingStrength(long j10) {
                    this.buyingStrength_ = j10;
                    this.bitField0_ |= 32768;
                    return this;
                }

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

                public TopDetail setCategorySec(long j10) {
                    this.categorySec_ = j10;
                    this.bitField0_ |= 2048;
                    return this;
                }

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

                public TopDetail setCodeSec(String str) {
                    str.getClass();
                    this.codeSec_ = str;
                    this.bitField0_ |= 256;
                    return this;
                }

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

                public TopDetail setExchangeSec(int i10) {
                    this.exchangeSec_ = i10;
                    this.bitField0_ |= 1024;
                    return this;
                }

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

                public TopDetail setIdSec(int i10) {
                    this.idSec_ = i10;
                    this.bitField0_ |= 128;
                    return this;
                }

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

                public TopDetail setNameSec(String str) {
                    str.getClass();
                    this.nameSec_ = str;
                    this.bitField0_ |= 512;
                    return this;
                }

                public TopDetail setNet(long j10) {
                    this.net_ = j10;
                    this.bitField0_ |= 16384;
                    return this;
                }

                public TopDetail setSellingStrength(long j10) {
                    this.sellingStrength_ = j10;
                    this.bitField0_ |= 65536;
                    return this;
                }

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

                public TopDetail setSessionSec(int i10) {
                    this.sessionSec_ = i10;
                    this.bitField0_ |= 4096;
                    return this;
                }

                public TopDetail setStockWeightTotalPercent(int i10) {
                    this.stockWeightTotalPercent_ = i10;
                    this.bitField0_ |= 131072;
                    return this;
                }

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

                public TopDetail setTopDays(int i10) {
                    this.topDays_ = i10;
                    this.bitField0_ |= 8192;
                    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.writeInt64(7, this.sum_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        codedOutputByteBufferNano.writeUInt32(8, this.idSec_);
                    }
                    if ((this.bitField0_ & 256) != 0) {
                        codedOutputByteBufferNano.writeString(9, this.codeSec_);
                    }
                    if ((this.bitField0_ & 512) != 0) {
                        codedOutputByteBufferNano.writeString(10, this.nameSec_);
                    }
                    if ((this.bitField0_ & 1024) != 0) {
                        codedOutputByteBufferNano.writeUInt32(11, this.exchangeSec_);
                    }
                    if ((this.bitField0_ & 2048) != 0) {
                        codedOutputByteBufferNano.writeUInt64(12, this.categorySec_);
                    }
                    if ((this.bitField0_ & 4096) != 0) {
                        codedOutputByteBufferNano.writeUInt32(13, this.sessionSec_);
                    }
                    if ((this.bitField0_ & 8192) != 0) {
                        codedOutputByteBufferNano.writeInt32(14, this.topDays_);
                    }
                    if ((this.bitField0_ & 16384) != 0) {
                        codedOutputByteBufferNano.writeInt64(15, this.net_);
                    }
                    if ((this.bitField0_ & 32768) != 0) {
                        codedOutputByteBufferNano.writeInt64(16, this.buyingStrength_);
                    }
                    if ((this.bitField0_ & 65536) != 0) {
                        codedOutputByteBufferNano.writeInt64(17, this.sellingStrength_);
                    }
                    if ((this.bitField0_ & 131072) != 0) {
                        codedOutputByteBufferNano.writeInt32(18, this.stockWeightTotalPercent_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public TopDetail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        switch(readTag) {
                            case 0:
                                return this;
                            case 8:
                                this.id_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 1;
                                break;
                            case 18:
                                this.code_ = codedInputByteBufferNano.readString();
                                this.bitField0_ |= 2;
                                break;
                            case 26:
                                this.name_ = codedInputByteBufferNano.readString();
                                this.bitField0_ |= 4;
                                break;
                            case 32:
                                this.exchange_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 8;
                                break;
                            case 40:
                                this.category_ = codedInputByteBufferNano.readUInt64();
                                this.bitField0_ |= 16;
                                break;
                            case 48:
                                this.session_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 32;
                                break;
                            case 56:
                                this.sum_ = codedInputByteBufferNano.readInt64();
                                this.bitField0_ |= 64;
                                break;
                            case 64:
                                this.idSec_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 128;
                                break;
                            case 74:
                                this.codeSec_ = codedInputByteBufferNano.readString();
                                this.bitField0_ |= 256;
                                break;
                            case 82:
                                this.nameSec_ = codedInputByteBufferNano.readString();
                                this.bitField0_ |= 512;
                                break;
                            case 88:
                                this.exchangeSec_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 1024;
                                break;
                            case 96:
                                this.categorySec_ = codedInputByteBufferNano.readUInt64();
                                this.bitField0_ |= 2048;
                                break;
                            case 104:
                                this.sessionSec_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 4096;
                                break;
                            case 112:
                                this.topDays_ = codedInputByteBufferNano.readInt32();
                                this.bitField0_ |= 8192;
                                break;
                            case 120:
                                this.net_ = codedInputByteBufferNano.readInt64();
                                this.bitField0_ |= 16384;
                                break;
                            case 128:
                                this.buyingStrength_ = codedInputByteBufferNano.readInt64();
                                this.bitField0_ |= 32768;
                                break;
                            case 136:
                                this.sellingStrength_ = codedInputByteBufferNano.readInt64();
                                this.bitField0_ |= 65536;
                                break;
                            case 144:
                                this.stockWeightTotalPercent_ = codedInputByteBufferNano.readInt32();
                                this.bitField0_ |= 131072;
                                break;
                            default:
                                if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                    break;
                                } else {
                                    return this;
                                }
                        }
                    }
                }
            }

            public TopBuyIndustryData() {
                clear();
            }

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

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

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

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

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

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

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int[] iArr;
                int computeSerializedSize = super.computeSerializedSize();
                TopDetail[] topDetailArr = this.latest;
                int i10 = 0;
                if (topDetailArr != null && topDetailArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        TopDetail[] topDetailArr2 = this.latest;
                        if (i11 >= topDetailArr2.length) {
                            break;
                        }
                        TopDetail topDetail = topDetailArr2[i11];
                        if (topDetail != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, topDetail);
                        }
                        i11++;
                    }
                }
                TopDetail[] topDetailArr3 = this.recent;
                if (topDetailArr3 != null && topDetailArr3.length > 0) {
                    int i12 = 0;
                    while (true) {
                        TopDetail[] topDetailArr4 = this.recent;
                        if (i12 >= topDetailArr4.length) {
                            break;
                        }
                        TopDetail topDetail2 = topDetailArr4[i12];
                        if (topDetail2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, topDetail2);
                        }
                        i12++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.date_);
                }
                TopDetail[] topDetailArr5 = this.history;
                if (topDetailArr5 != null && topDetailArr5.length > 0) {
                    int i13 = 0;
                    while (true) {
                        TopDetail[] topDetailArr6 = this.history;
                        if (i13 >= topDetailArr6.length) {
                            break;
                        }
                        TopDetail topDetail3 = topDetailArr6[i13];
                        if (topDetail3 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, topDetail3);
                        }
                        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 TopBuyIndustryData setCalEndDate(int i10) {
                this.calEndDate_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

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

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

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                TopDetail[] topDetailArr = this.latest;
                int i10 = 0;
                if (topDetailArr != null && topDetailArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        TopDetail[] topDetailArr2 = this.latest;
                        if (i11 >= topDetailArr2.length) {
                            break;
                        }
                        TopDetail topDetail = topDetailArr2[i11];
                        if (topDetail != null) {
                            codedOutputByteBufferNano.writeMessage(1, topDetail);
                        }
                        i11++;
                    }
                }
                TopDetail[] topDetailArr3 = this.recent;
                if (topDetailArr3 != null && topDetailArr3.length > 0) {
                    int i12 = 0;
                    while (true) {
                        TopDetail[] topDetailArr4 = this.recent;
                        if (i12 >= topDetailArr4.length) {
                            break;
                        }
                        TopDetail topDetail2 = topDetailArr4[i12];
                        if (topDetail2 != null) {
                            codedOutputByteBufferNano.writeMessage(2, topDetail2);
                        }
                        i12++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.date_);
                }
                TopDetail[] topDetailArr5 = this.history;
                if (topDetailArr5 != null && topDetailArr5.length > 0) {
                    int i13 = 0;
                    while (true) {
                        TopDetail[] topDetailArr6 = this.history;
                        if (i13 >= topDetailArr6.length) {
                            break;
                        }
                        TopDetail topDetail3 = topDetailArr6[i13];
                        if (topDetail3 != null) {
                            codedOutputByteBufferNano.writeMessage(4, topDetail3);
                        }
                        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 TopBuyIndustryData parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                return new TopBuyIndustryData().mergeFrom(codedInputByteBufferNano);
            }

            public TopBuyIndustryData 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);
                        TopDetail[] topDetailArr = this.latest;
                        int length = topDetailArr == null ? 0 : topDetailArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        TopDetail[] topDetailArr2 = new TopDetail[i10];
                        if (length != 0) {
                            System.arraycopy(topDetailArr, 0, topDetailArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            TopDetail topDetail = new TopDetail();
                            topDetailArr2[length] = topDetail;
                            codedInputByteBufferNano.readMessage(topDetail);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        TopDetail topDetail2 = new TopDetail();
                        topDetailArr2[length] = topDetail2;
                        codedInputByteBufferNano.readMessage(topDetail2);
                        this.latest = topDetailArr2;
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        TopDetail[] topDetailArr3 = this.recent;
                        int length2 = topDetailArr3 == null ? 0 : topDetailArr3.length;
                        int i11 = repeatedFieldArrayLength2 + length2;
                        TopDetail[] topDetailArr4 = new TopDetail[i11];
                        if (length2 != 0) {
                            System.arraycopy(topDetailArr3, 0, topDetailArr4, 0, length2);
                        }
                        while (length2 < i11 - 1) {
                            TopDetail topDetail3 = new TopDetail();
                            topDetailArr4[length2] = topDetail3;
                            codedInputByteBufferNano.readMessage(topDetail3);
                            codedInputByteBufferNano.readTag();
                            length2++;
                        }
                        TopDetail topDetail4 = new TopDetail();
                        topDetailArr4[length2] = topDetail4;
                        codedInputByteBufferNano.readMessage(topDetail4);
                        this.recent = topDetailArr4;
                    } else if (readTag == 24) {
                        this.date_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 34) {
                        int repeatedFieldArrayLength3 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 34);
                        TopDetail[] topDetailArr5 = this.history;
                        int length3 = topDetailArr5 == null ? 0 : topDetailArr5.length;
                        int i12 = repeatedFieldArrayLength3 + length3;
                        TopDetail[] topDetailArr6 = new TopDetail[i12];
                        if (length3 != 0) {
                            System.arraycopy(topDetailArr5, 0, topDetailArr6, 0, length3);
                        }
                        while (length3 < i12 - 1) {
                            TopDetail topDetail5 = new TopDetail();
                            topDetailArr6[length3] = topDetail5;
                            codedInputByteBufferNano.readMessage(topDetail5);
                            codedInputByteBufferNano.readTag();
                            length3++;
                        }
                        TopDetail topDetail6 = new TopDetail();
                        topDetailArr6[length3] = topDetail6;
                        codedInputByteBufferNano.readMessage(topDetail6);
                        this.history = topDetailArr6;
                    } 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 TopIndustry_Response() {
            clear();
        }

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

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

        public TopIndustry_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();
            TopIndustryRequest.TopIndustry_Request topIndustry_Request = this.input;
            if (topIndustry_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, topIndustry_Request);
            }
            TopBuyIndustryData topBuyIndustryData = this.output;
            if (topBuyIndustryData != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, topBuyIndustryData);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            TopIndustryRequest.TopIndustry_Request topIndustry_Request = this.input;
            if (topIndustry_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, topIndustry_Request);
            }
            TopBuyIndustryData topBuyIndustryData = this.output;
            if (topBuyIndustryData != null) {
                codedOutputByteBufferNano.writeMessage(2, topBuyIndustryData);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

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