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

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

        private static volatile SetGetStatus_Request[] _emptyArray;

        private int bitField0_;

        private String detail_;

        private long id_;

        private int role_;

        private int status_;

        public SetGetStatus_Request() {
            clear();
        }

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

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

        public SetGetStatus_Request clear() {
            this.bitField0_ = 0;
            this.id_ = 0;
            this.status_ = 0;
            this.role_ = 0;
            this.detail_ = "";
            this.cachedSize = -1;
            return this;
        }

        public SetGetStatus_Request clearDetail() {
            this.detail_ = "";
            this.bitField0_ &= -9;
            return this;
        }

        public SetGetStatus_Request clearId() {
            this.id_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public SetGetStatus_Request clearRole() {
            this.role_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public SetGetStatus_Request clearStatus() {
            this.status_ = 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.computeInt64Size(1, this.id_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.status_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.role_);
            }
            if ((this.bitField0_ & 8) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(4, this.detail_);
            }
            return computeSerializedSize;
        }

        public String getDetail() {
            return this.detail_;
        }

        public long getId() {
            return this.id_;
        }

        public int getRole() {
            return this.role_;
        }

        public int getStatus() {
            return this.status_;
        }

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

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

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

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

        public SetGetStatus_Request setDetail(String str) {
            str.getClass();
            this.detail_ = str;
            this.bitField0_ |= 8;
            return this;
        }

        public SetGetStatus_Request setId(long j10) {
            this.id_ = j10;
            this.bitField0_ |= 1;
            return this;
        }

        public SetGetStatus_Request setRole(int i10) {
            this.role_ = i10;
            this.bitField0_ |= 4;
            return this;
        }

        public SetGetStatus_Request setStatus(int i10) {
            this.status_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeInt64(1, this.id_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.status_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.role_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeString(4, this.detail_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SetGetStatus_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.id_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.status_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.role_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 4;
                } else if (readTag == 34) {
                    this.detail_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 8;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
