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

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

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

        private static volatile VoiceCall_Response[] _emptyArray;

        public VoiceCallRequest.VoiceCall_Request input;

        public CallDetail output;

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

            private static volatile CallDetail[] _emptyArray;

            private int bitField0_;

            public CallObject object;

            private int status_;

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

                private static volatile CallObject[] _emptyArray;

                private int begin_;

                private int bitField0_;

                private long cid_;

                private String name_;

                private String nick_;

                private int room_;

                private long uid_;

                public CallObject() {
                    clear();
                }

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

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

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

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

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

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

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

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

                public CallObject 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.begin_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(6, this.room_);
                    }
                    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 getRoom() {
                    return this.room_;
                }

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

                public boolean hasBegin() {
                    if ((this.bitField0_ & 16) != 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 hasRoom() {
                    if ((this.bitField0_ & 32) != 0) {
                        return true;
                    }
                    return false;
                }

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

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

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

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

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

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

                public CallObject 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.begin_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        codedOutputByteBufferNano.writeUInt32(6, this.room_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public CallObject 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.begin_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 16;
                        } else if (readTag == 48) {
                            this.room_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 32;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public CallDetail() {
                clear();
            }

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

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

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

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

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                CallObject callObject = this.object;
                if (callObject != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, callObject);
                }
                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 CallDetail setStatus(int i10) {
                this.status_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

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

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

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

        public VoiceCall_Response() {
            clear();
        }

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

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

        public VoiceCall_Response clear() {
            this.input = null;
            this.output = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            VoiceCallRequest.VoiceCall_Request voiceCall_Request = this.input;
            if (voiceCall_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, voiceCall_Request);
            }
            CallDetail callDetail = this.output;
            if (callDetail != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, callDetail);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            VoiceCallRequest.VoiceCall_Request voiceCall_Request = this.input;
            if (voiceCall_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, voiceCall_Request);
            }
            CallDetail callDetail = this.output;
            if (callDetail != null) {
                codedOutputByteBufferNano.writeMessage(2, callDetail);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public VoiceCall_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 VoiceCallRequest.VoiceCall_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    if (this.output == null) {
                        this.output = new CallDetail();
                    }
                    codedInputByteBufferNano.readMessage(this.output);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
