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

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

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

        private static volatile EnterRoom_Response[] _emptyArray;

        private int bitField0_;

        public EnterRoomRequest.EnterRoom_Request input;

        private int status_;

        public EnterRoom_Response() {
            clear();
        }

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

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

        public EnterRoom_Response clear() {
            this.bitField0_ = 0;
            this.input = null;
            this.status_ = 0;
            this.cachedSize = -1;
            return this;
        }

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

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            EnterRoomRequest.EnterRoom_Request enterRoom_Request = this.input;
            if (enterRoom_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, enterRoom_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeInt32Size(2, this.status_);
            }
            return computeSerializedSize;
        }

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

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

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

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            EnterRoomRequest.EnterRoom_Request enterRoom_Request = this.input;
            if (enterRoom_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, enterRoom_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeInt32(2, this.status_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public EnterRoom_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.input == null) {
                        this.input = new EnterRoomRequest.EnterRoom_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 16) {
                    this.status_ = codedInputByteBufferNano.readInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
