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 QueryHistoryRequest {

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

        private static volatile QueryHistory_Request[] _emptyArray;

        private int bitField0_;

        private long cid_;

        private long last_;

        private int size_;

        private int type_;

        private long uid_;

        public QueryHistory_Request() {
            clear();
        }

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

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

        public QueryHistory_Request clear() {
            this.bitField0_ = 0;
            this.uid_ = 0;
            this.cid_ = 0;
            this.last_ = 0;
            this.size_ = 0;
            this.type_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public QueryHistory_Request clearCid() {
            this.cid_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public QueryHistory_Request clearLast() {
            this.last_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public QueryHistory_Request clearSize() {
            this.size_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public QueryHistory_Request clearType() {
            this.type_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        public QueryHistory_Request clearUid() {
            this.uid_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(1, this.uid_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.cid_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.last_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(4, this.size_);
            }
            if ((this.bitField0_ & 16) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(5, this.type_);
            }
            return computeSerializedSize;
        }

        public long getCid() {
            return this.cid_;
        }

        public long getLast() {
            return this.last_;
        }

        public int getSize() {
            return this.size_;
        }

        public int getType() {
            return this.type_;
        }

        public long getUid() {
            return this.uid_;
        }

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

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

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

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

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

        public QueryHistory_Request setCid(long j10) {
            this.cid_ = j10;
            this.bitField0_ |= 2;
            return this;
        }

        public QueryHistory_Request setLast(long j10) {
            this.last_ = j10;
            this.bitField0_ |= 4;
            return this;
        }

        public QueryHistory_Request setSize(int i10) {
            this.size_ = i10;
            this.bitField0_ |= 8;
            return this;
        }

        public QueryHistory_Request setType(int i10) {
            this.type_ = i10;
            this.bitField0_ |= 16;
            return this;
        }

        public QueryHistory_Request setUid(long j10) {
            this.uid_ = j10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeInt64(1, this.uid_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeInt64(2, this.cid_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeInt64(3, this.last_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeInt32(4, this.size_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeUInt32(5, this.type_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public QueryHistory_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.uid_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.cid_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.last_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 4;
                } else if (readTag == 32) {
                    this.size_ = codedInputByteBufferNano.readInt32();
                    this.bitField0_ |= 8;
                } else if (readTag == 40) {
                    this.type_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 16;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
