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;

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

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

        private static volatile CodeListUpdate_Response[] _emptyArray;

        private int bitField0_;

        private int finalVersion_;

        private int remainSize_;

        public CodeList[] updateList;

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

            private static volatile CodeList[] _emptyArray;

            private int bitField0_;

            private long category_;

            private String codeName_;

            private int exchange_;

            private int flag_;

            private int stockCode_;

            private String stockName_;

            private int tradeSession_;

            private int version_;

            public CodeList() {
                clear();
            }

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

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

            public CodeList clear() {
                this.bitField0_ = 0;
                this.stockCode_ = 0;
                this.stockName_ = "";
                this.codeName_ = "";
                this.flag_ = 0;
                this.exchange_ = 0;
                this.category_ = 0;
                this.tradeSession_ = 0;
                this.version_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

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

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

            public CodeList clearFlag() {
                this.flag_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

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

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

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

            public CodeList clearVersion() {
                this.version_ = 0;
                this.bitField0_ &= -129;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.stockCode_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.stockName_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.codeName_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(4, this.flag_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(5, this.exchange_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(6, this.category_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(7, this.tradeSession_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(8, this.version_);
                }
                return computeSerializedSize;
            }

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

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

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

            public int getFlag() {
                return this.flag_;
            }

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

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

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

            public int getVersion() {
                return this.version_;
            }

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

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

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

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

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

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

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

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

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

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

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

            public CodeList setFlag(int i10) {
                this.flag_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

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

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

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

            public CodeList setVersion(int i10) {
                this.version_ = i10;
                this.bitField0_ |= 128;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.stockCode_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.stockName_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.codeName_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeSInt32(4, this.flag_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.exchange_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeUInt64(6, this.category_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeUInt32(7, this.tradeSession_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeUInt32(8, this.version_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public CodeList mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.stockCode_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        this.stockName_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 26) {
                        this.codeName_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.flag_ = codedInputByteBufferNano.readSInt32();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.exchange_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 16;
                    } else if (readTag == 48) {
                        this.category_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 32;
                    } else if (readTag == 56) {
                        this.tradeSession_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 64;
                    } else if (readTag == 64) {
                        this.version_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 128;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public CodeListUpdate_Response() {
            clear();
        }

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

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

        public CodeListUpdate_Response clear() {
            this.bitField0_ = 0;
            this.updateList = CodeList.emptyArray();
            this.finalVersion_ = 0;
            this.remainSize_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public CodeListUpdate_Response clearFinalVersion() {
            this.finalVersion_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public CodeListUpdate_Response clearRemainSize() {
            this.remainSize_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            CodeList[] codeListArr = this.updateList;
            if (codeListArr != null && codeListArr.length > 0) {
                int i10 = 0;
                while (true) {
                    CodeList[] codeListArr2 = this.updateList;
                    if (i10 >= codeListArr2.length) {
                        break;
                    }
                    CodeList codeList = codeListArr2[i10];
                    if (codeList != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, codeList);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.finalVersion_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.remainSize_);
            }
            return computeSerializedSize;
        }

        public int getFinalVersion() {
            return this.finalVersion_;
        }

        public int getRemainSize() {
            return this.remainSize_;
        }

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

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

        public CodeListUpdate_Response setFinalVersion(int i10) {
            this.finalVersion_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public CodeListUpdate_Response setRemainSize(int i10) {
            this.remainSize_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            CodeList[] codeListArr = this.updateList;
            if (codeListArr != null && codeListArr.length > 0) {
                int i10 = 0;
                while (true) {
                    CodeList[] codeListArr2 = this.updateList;
                    if (i10 >= codeListArr2.length) {
                        break;
                    }
                    CodeList codeList = codeListArr2[i10];
                    if (codeList != null) {
                        codedOutputByteBufferNano.writeMessage(1, codeList);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.finalVersion_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.remainSize_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public CodeListUpdate_Response 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);
                    CodeList[] codeListArr = this.updateList;
                    int length = codeListArr == null ? 0 : codeListArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    CodeList[] codeListArr2 = new CodeList[i10];
                    if (length != 0) {
                        System.arraycopy(codeListArr, 0, codeListArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        CodeList codeList = new CodeList();
                        codeListArr2[length] = codeList;
                        codedInputByteBufferNano.readMessage(codeList);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    CodeList codeList2 = new CodeList();
                    codeListArr2[length] = codeList2;
                    codedInputByteBufferNano.readMessage(codeList2);
                    this.updateList = codeListArr2;
                } else if (readTag == 16) {
                    this.finalVersion_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 24) {
                    this.remainSize_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
