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

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

        private static volatile VoiceCall_Request[] _emptyArray;

        private int bitField0_;

        private long cid_;

        private String name_;

        private String nick_;

        private long uid_;

        public VoiceCall_Request() {
            clear();
        }

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

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

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

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

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

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

        public VoiceCall_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.computeStringSize(2, this.name_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.cid_);
            }
            if ((this.bitField0_ & 8) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(4, this.nick_);
            }
            return computeSerializedSize;
        }

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

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

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

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

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

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

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

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

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

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

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

        public VoiceCall_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.writeString(2, this.name_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeInt64(3, this.cid_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeString(4, this.nick_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public VoiceCall_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 == 18) {
                    this.name_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.cid_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 4;
                } else if (readTag == 34) {
                    this.nick_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 8;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
