<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: livekit_phone_number.proto

namespace Livekit;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * GetPhoneNumberResponse - Response containing the phone number
 *
 * Generated from protobuf message <code>livekit.GetPhoneNumberResponse</code>
 */
class GetPhoneNumberResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The phone number details
     *
     * Generated from protobuf field <code>.livekit.PhoneNumber phone_number = 1;</code>
     */
    protected $phone_number = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\PhoneNumber $phone_number
     *           The phone number details
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitPhoneNumber::initOnce();
        parent::__construct($data);
    }

    /**
     * The phone number details
     *
     * Generated from protobuf field <code>.livekit.PhoneNumber phone_number = 1;</code>
     * @return \Livekit\PhoneNumber|null
     */
    public function getPhoneNumber()
    {
        return $this->phone_number;
    }

    public function hasPhoneNumber()
    {
        return isset($this->phone_number);
    }

    public function clearPhoneNumber()
    {
        unset($this->phone_number);
    }

    /**
     * The phone number details
     *
     * Generated from protobuf field <code>.livekit.PhoneNumber phone_number = 1;</code>
     * @param \Livekit\PhoneNumber $var
     * @return $this
     */
    public function setPhoneNumber($var)
    {
        GPBUtil::checkMessage($var, \Livekit\PhoneNumber::class);
        $this->phone_number = $var;

        return $this;
    }

}

