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

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

        private static volatile EnterRoom_Request[] _emptyArray;

        private int begin_;

        private int bitField0_;

        private long cid_;

        private String name_;

        private String nick_;

        private int role_;

        private int room_;

        private int status_;

        private long uid_;

        public EnterRoom_Request() {
            clear();
        }

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

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

        public EnterRoom_Request clear() {
            this.bitField0_ = 0;
            this.uid_ = 0;
            this.cid_ = 0;
            this.name_ = "";
            this.nick_ = "";
            this.room_ = 0;
            this.begin_ = 0;
            this.status_ = 0;
            this.role_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public EnterRoom_Request clearBegin() {
            this.begin_ = 0;
            this.bitField0_ &= -33;
            return this;
        }

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

        public EnterRoom_Request clearName() {
            this.name_ = "";
            this.bitField0_ &= -5;
            return this;
        }

        public EnterRoom_Request clearNick() {
            this.nick_ = "";
            this.bitField0_ &= -9;
            return this;
        }

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

        public EnterRoom_Request clearRoom() {
            this.room_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        public EnterRoom_Request clearStatus() {
            this.status_ = 0;
            this.bitField0_ &= -65;
            return this;
        }

        public EnterRoom_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.computeStringSize(3, this.name_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(4, this.nick_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(5, this.room_);
            }
            if ((this.bitField0_ & 32) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(6, this.begin_);
            }
            if ((this.bitField0_ & 64) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(7, this.status_);
            }
            if ((this.bitField0_ & 128) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(8, this.role_);
            }
            return computeSerializedSize;
        }

        public int getBegin() {
            return this.begin_;
        }

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

        public String getName() {
            return this.name_;
        }

        public String getNick() {
            return this.nick_;
        }

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

        public int getRoom() {
            return this.room_;
        }

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

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

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

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

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

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

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

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

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

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

        public EnterRoom_Request setBegin(int i10) {
            this.begin_ = i10;
            this.bitField0_ |= 32;
            return this;
        }

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

        public EnterRoom_Request setName(String str) {
            str.getClass();
            this.name_ = str;
            this.bitField0_ |= 4;
            return this;
        }

        public EnterRoom_Request setNick(String str) {
            str.getClass();
            this.nick_ = str;
            this.bitField0_ |= 8;
            return this;
        }

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

        public EnterRoom_Request setRoom(int i10) {
            this.room_ = i10;
            this.bitField0_ |= 16;
            return this;
        }

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

        public EnterRoom_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.writeString(3, this.name_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeString(4, this.nick_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeUInt32(5, this.room_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeUInt32(6, this.begin_);
            }
            if ((this.bitField0_ & 64) != 0) {
                codedOutputByteBufferNano.writeInt32(7, this.status_);
            }
            if ((this.bitField0_ & 128) != 0) {
                codedOutputByteBufferNano.writeUInt32(8, this.role_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public EnterRoom_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 == 26) {
                    this.name_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 4;
                } else if (readTag == 34) {
                    this.nick_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 8;
                } else if (readTag == 40) {
                    this.room_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 16;
                } else if (readTag == 48) {
                    this.begin_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 32;
                } else if (readTag == 56) {
                    this.status_ = codedInputByteBufferNano.readInt32();
                    this.bitField0_ |= 64;
                } else if (readTag == 64) {
                    this.role_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 128;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
