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

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

        private static volatile FutureBasis_Request[] _emptyArray;

        private int bitField0_;

        private int futureId_;

        private int indexId_;

        private int lastTime_;

        private int limitSize_;

        public FutureBasis_Request() {
            clear();
        }

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

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

        public FutureBasis_Request clear() {
            this.bitField0_ = 0;
            this.lastTime_ = 0;
            this.limitSize_ = 0;
            this.futureId_ = 0;
            this.indexId_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public FutureBasis_Request clearFutureId() {
            this.futureId_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public FutureBasis_Request clearIndexId() {
            this.indexId_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public FutureBasis_Request clearLastTime() {
            this.lastTime_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public FutureBasis_Request clearLimitSize() {
            this.limitSize_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.lastTime_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(2, this.limitSize_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.futureId_);
            }
            if ((this.bitField0_ & 8) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(4, this.indexId_);
            }
            return computeSerializedSize;
        }

        public int getFutureId() {
            return this.futureId_;
        }

        public int getIndexId() {
            return this.indexId_;
        }

        public int getLastTime() {
            return this.lastTime_;
        }

        public int getLimitSize() {
            return this.limitSize_;
        }

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

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

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

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

        public FutureBasis_Request setFutureId(int i10) {
            this.futureId_ = i10;
            this.bitField0_ |= 4;
            return this;
        }

        public FutureBasis_Request setIndexId(int i10) {
            this.indexId_ = i10;
            this.bitField0_ |= 8;
            return this;
        }

        public FutureBasis_Request setLastTime(int i10) {
            this.lastTime_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public FutureBasis_Request setLimitSize(int i10) {
            this.limitSize_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(1, this.lastTime_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeSInt32(2, this.limitSize_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.futureId_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.indexId_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public FutureBasis_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.lastTime_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.limitSize_ = codedInputByteBufferNano.readSInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.futureId_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 4;
                } else if (readTag == 32) {
                    this.indexId_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 8;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
