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

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

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

        private static volatile VTradeReset_Response[] _emptyArray;

        private int bitField0_;

        public VTradeResetRequest.VTradeReset_Request requestParams;

        public ResetLog[] resetLog;

        private int totalNum_;

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

            private static volatile ResetLog[] _emptyArray;

            private int bitField0_;

            private int logIdx_;

            private int resetIdx_;

            private long resetTime_;

            public ResetLog() {
                clear();
            }

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

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

            public ResetLog clear() {
                this.bitField0_ = 0;
                this.logIdx_ = 0;
                this.resetIdx_ = 0;
                this.resetTime_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public ResetLog clearLogIdx() {
                this.logIdx_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public ResetLog clearResetIdx() {
                this.resetIdx_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public ResetLog clearResetTime() {
                this.resetTime_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.logIdx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.resetIdx_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt64Size(3, this.resetTime_);
                }
                return computeSerializedSize;
            }

            public int getLogIdx() {
                return this.logIdx_;
            }

            public int getResetIdx() {
                return this.resetIdx_;
            }

            public long getResetTime() {
                return this.resetTime_;
            }

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

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

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

            public ResetLog setLogIdx(int i10) {
                this.logIdx_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public ResetLog setResetIdx(int i10) {
                this.resetIdx_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public ResetLog setResetTime(long j10) {
                this.resetTime_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.logIdx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.resetIdx_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt64(3, this.resetTime_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public ResetLog mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.logIdx_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.resetIdx_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.resetTime_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 4;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public VTradeReset_Response() {
            clear();
        }

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

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

        public VTradeReset_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.resetLog = ResetLog.emptyArray();
            this.totalNum_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public VTradeReset_Response clearTotalNum() {
            this.totalNum_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            VTradeResetRequest.VTradeReset_Request vTradeReset_Request = this.requestParams;
            if (vTradeReset_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, vTradeReset_Request);
            }
            ResetLog[] resetLogArr = this.resetLog;
            if (resetLogArr != null && resetLogArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ResetLog[] resetLogArr2 = this.resetLog;
                    if (i10 >= resetLogArr2.length) {
                        break;
                    }
                    ResetLog resetLog2 = resetLogArr2[i10];
                    if (resetLog2 != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, resetLog2);
                    }
                    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 VTradeReset_Response setTotalNum(int i10) {
            this.totalNum_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            VTradeResetRequest.VTradeReset_Request vTradeReset_Request = this.requestParams;
            if (vTradeReset_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, vTradeReset_Request);
            }
            ResetLog[] resetLogArr = this.resetLog;
            if (resetLogArr != null && resetLogArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ResetLog[] resetLogArr2 = this.resetLog;
                    if (i10 >= resetLogArr2.length) {
                        break;
                    }
                    ResetLog resetLog2 = resetLogArr2[i10];
                    if (resetLog2 != null) {
                        codedOutputByteBufferNano.writeMessage(2, resetLog2);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.totalNum_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public VTradeReset_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 VTradeResetRequest.VTradeReset_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    ResetLog[] resetLogArr = this.resetLog;
                    int length = resetLogArr == null ? 0 : resetLogArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    ResetLog[] resetLogArr2 = new ResetLog[i10];
                    if (length != 0) {
                        System.arraycopy(resetLogArr, 0, resetLogArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        ResetLog resetLog2 = new ResetLog();
                        resetLogArr2[length] = resetLog2;
                        codedInputByteBufferNano.readMessage(resetLog2);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    ResetLog resetLog3 = new ResetLog();
                    resetLogArr2[length] = resetLog3;
                    codedInputByteBufferNano.readMessage(resetLog3);
                    this.resetLog = resetLogArr2;
                } else if (readTag == 24) {
                    this.totalNum_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
