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

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

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

        private static volatile BizStat_Response[] _emptyArray;

        private int bitField0_;

        public BizStatRequest.BizStat_Request requestParams;

        public BizStat[] responseParams;

        private int totalnum_;

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

            private static volatile BizStat[] _emptyArray;

            private int bitField0_;

            private int bscount_;

            private long category_;

            private String codeName_;

            private int exchange_;

            private int idx_;

            private int keepdays_;

            private int lastdate_;

            private int opendate_;

            private int secstartdate_;

            private int secuamount_;

            private int stockCode_;

            private String stockName_;

            private long totalpl_;

            private int tradeSession_;

            private int tradecount_;

            private int wincount_;

            public BizStat() {
                clear();
            }

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

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

            public BizStat clear() {
                this.bitField0_ = 0;
                this.opendate_ = 0;
                this.lastdate_ = 0;
                this.tradecount_ = 0;
                this.wincount_ = 0;
                this.keepdays_ = 0;
                this.totalpl_ = 0;
                this.secstartdate_ = 0;
                this.secuamount_ = 0;
                this.idx_ = 0;
                this.stockCode_ = 0;
                this.stockName_ = "";
                this.codeName_ = "";
                this.exchange_ = 0;
                this.category_ = 0;
                this.tradeSession_ = 0;
                this.bscount_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public BizStat clearBscount() {
                this.bscount_ = 0;
                this.bitField0_ &= -32769;
                return this;
            }

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

            public BizStat clearCodeName() {
                this.codeName_ = "";
                this.bitField0_ &= -2049;
                return this;
            }

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

            public BizStat clearIdx() {
                this.idx_ = 0;
                this.bitField0_ &= -257;
                return this;
            }

            public BizStat clearKeepdays() {
                this.keepdays_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public BizStat clearLastdate() {
                this.lastdate_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public BizStat clearOpendate() {
                this.opendate_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public BizStat clearSecstartdate() {
                this.secstartdate_ = 0;
                this.bitField0_ &= -65;
                return this;
            }

            public BizStat clearSecuamount() {
                this.secuamount_ = 0;
                this.bitField0_ &= -129;
                return this;
            }

            public BizStat clearStockCode() {
                this.stockCode_ = 0;
                this.bitField0_ &= -513;
                return this;
            }

            public BizStat clearStockName() {
                this.stockName_ = "";
                this.bitField0_ &= -1025;
                return this;
            }

            public BizStat clearTotalpl() {
                this.totalpl_ = 0;
                this.bitField0_ &= -33;
                return this;
            }

            public BizStat clearTradeSession() {
                this.tradeSession_ = 0;
                this.bitField0_ &= -16385;
                return this;
            }

            public BizStat clearTradecount() {
                this.tradecount_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public BizStat clearWincount() {
                this.wincount_ = 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.computeUInt32Size(1, this.opendate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.lastdate_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.tradecount_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.wincount_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(5, this.keepdays_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt64Size(6, this.totalpl_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(7, this.secstartdate_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(8, this.secuamount_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(9, this.idx_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(10, this.stockCode_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(11, this.stockName_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(12, this.codeName_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(13, this.exchange_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(14, this.category_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(15, this.tradeSession_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(16, this.bscount_);
                }
                return computeSerializedSize;
            }

            public int getBscount() {
                return this.bscount_;
            }

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

            public String getCodeName() {
                return this.codeName_;
            }

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

            public int getIdx() {
                return this.idx_;
            }

            public int getKeepdays() {
                return this.keepdays_;
            }

            public int getLastdate() {
                return this.lastdate_;
            }

            public int getOpendate() {
                return this.opendate_;
            }

            public int getSecstartdate() {
                return this.secstartdate_;
            }

            public int getSecuamount() {
                return this.secuamount_;
            }

            public int getStockCode() {
                return this.stockCode_;
            }

            public String getStockName() {
                return this.stockName_;
            }

            public long getTotalpl() {
                return this.totalpl_;
            }

            public int getTradeSession() {
                return this.tradeSession_;
            }

            public int getTradecount() {
                return this.tradecount_;
            }

            public int getWincount() {
                return this.wincount_;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            public BizStat setBscount(int i10) {
                this.bscount_ = i10;
                this.bitField0_ |= 32768;
                return this;
            }

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

            public BizStat setCodeName(String str) {
                str.getClass();
                this.codeName_ = str;
                this.bitField0_ |= 2048;
                return this;
            }

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

            public BizStat setIdx(int i10) {
                this.idx_ = i10;
                this.bitField0_ |= 256;
                return this;
            }

            public BizStat setKeepdays(int i10) {
                this.keepdays_ = i10;
                this.bitField0_ |= 16;
                return this;
            }

            public BizStat setLastdate(int i10) {
                this.lastdate_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public BizStat setOpendate(int i10) {
                this.opendate_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public BizStat setSecstartdate(int i10) {
                this.secstartdate_ = i10;
                this.bitField0_ |= 64;
                return this;
            }

            public BizStat setSecuamount(int i10) {
                this.secuamount_ = i10;
                this.bitField0_ |= 128;
                return this;
            }

            public BizStat setStockCode(int i10) {
                this.stockCode_ = i10;
                this.bitField0_ |= 512;
                return this;
            }

            public BizStat setStockName(String str) {
                str.getClass();
                this.stockName_ = str;
                this.bitField0_ |= 1024;
                return this;
            }

            public BizStat setTotalpl(long j10) {
                this.totalpl_ = j10;
                this.bitField0_ |= 32;
                return this;
            }

            public BizStat setTradeSession(int i10) {
                this.tradeSession_ = i10;
                this.bitField0_ |= 16384;
                return this;
            }

            public BizStat setTradecount(int i10) {
                this.tradecount_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public BizStat setWincount(int i10) {
                this.wincount_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.opendate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.lastdate_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.tradecount_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.wincount_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.keepdays_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeSInt64(6, this.totalpl_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeUInt32(7, this.secstartdate_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeUInt32(8, this.secuamount_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    codedOutputByteBufferNano.writeUInt32(9, this.idx_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    codedOutputByteBufferNano.writeUInt32(10, this.stockCode_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    codedOutputByteBufferNano.writeString(11, this.stockName_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    codedOutputByteBufferNano.writeString(12, this.codeName_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    codedOutputByteBufferNano.writeUInt32(13, this.exchange_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    codedOutputByteBufferNano.writeUInt64(14, this.category_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    codedOutputByteBufferNano.writeUInt32(15, this.tradeSession_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    codedOutputByteBufferNano.writeUInt32(16, this.bscount_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public BizStat mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    switch(readTag) {
                        case 0:
                            return this;
                        case 8:
                            this.opendate_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                            break;
                        case 16:
                            this.lastdate_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 2;
                            break;
                        case 24:
                            this.tradecount_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4;
                            break;
                        case 32:
                            this.wincount_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 8;
                            break;
                        case 40:
                            this.keepdays_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 16;
                            break;
                        case 48:
                            this.totalpl_ = codedInputByteBufferNano.readSInt64();
                            this.bitField0_ |= 32;
                            break;
                        case 56:
                            this.secstartdate_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 64;
                            break;
                        case 64:
                            this.secuamount_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 128;
                            break;
                        case 72:
                            this.idx_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 256;
                            break;
                        case 80:
                            this.stockCode_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 512;
                            break;
                        case 90:
                            this.stockName_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 1024;
                            break;
                        case 98:
                            this.codeName_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2048;
                            break;
                        case 104:
                            this.exchange_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4096;
                            break;
                        case 112:
                            this.category_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 8192;
                            break;
                        case 120:
                            this.tradeSession_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 16384;
                            break;
                        case 128:
                            this.bscount_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 32768;
                            break;
                        default:
                            if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                break;
                            } else {
                                return this;
                            }
                    }
                }
            }
        }

        public BizStat_Response() {
            clear();
        }

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

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

        public BizStat_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.responseParams = BizStat.emptyArray();
            this.totalnum_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public BizStat_Response clearTotalnum() {
            this.totalnum_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            BizStatRequest.BizStat_Request bizStat_Request = this.requestParams;
            if (bizStat_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, bizStat_Request);
            }
            BizStat[] bizStatArr = this.responseParams;
            if (bizStatArr != null && bizStatArr.length > 0) {
                int i10 = 0;
                while (true) {
                    BizStat[] bizStatArr2 = this.responseParams;
                    if (i10 >= bizStatArr2.length) {
                        break;
                    }
                    BizStat bizStat = bizStatArr2[i10];
                    if (bizStat != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, bizStat);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.totalnum_);
            }
            return computeSerializedSize;
        }

        public int getTotalnum() {
            return this.totalnum_;
        }

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

        public BizStat_Response setTotalnum(int i10) {
            this.totalnum_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            BizStatRequest.BizStat_Request bizStat_Request = this.requestParams;
            if (bizStat_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, bizStat_Request);
            }
            BizStat[] bizStatArr = this.responseParams;
            if (bizStatArr != null && bizStatArr.length > 0) {
                int i10 = 0;
                while (true) {
                    BizStat[] bizStatArr2 = this.responseParams;
                    if (i10 >= bizStatArr2.length) {
                        break;
                    }
                    BizStat bizStat = bizStatArr2[i10];
                    if (bizStat != null) {
                        codedOutputByteBufferNano.writeMessage(2, bizStat);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.totalnum_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public BizStat_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new BizStatRequest.BizStat_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    BizStat[] bizStatArr = this.responseParams;
                    int length = bizStatArr == null ? 0 : bizStatArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    BizStat[] bizStatArr2 = new BizStat[i10];
                    if (length != 0) {
                        System.arraycopy(bizStatArr, 0, bizStatArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        BizStat bizStat = new BizStat();
                        bizStatArr2[length] = bizStat;
                        codedInputByteBufferNano.readMessage(bizStat);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    BizStat bizStat2 = new BizStat();
                    bizStatArr2[length] = bizStat2;
                    codedInputByteBufferNano.readMessage(bizStat2);
                    this.responseParams = bizStatArr2;
                } else if (readTag == 24) {
                    this.totalnum_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
