<?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;

/**
 * UpdatePhoneNumberRequest - Request to update a phone number
 *
 * Generated from protobuf message <code>livekit.UpdatePhoneNumberRequest</code>
 */
class UpdatePhoneNumberRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Use phone number ID for direct lookup
     *
     * Generated from protobuf field <code>optional string id = 1;</code>
     */
    protected $id = null;
    /**
     * Use phone number string for lookup
     *
     * Generated from protobuf field <code>optional string phone_number = 2;</code>
     */
    protected $phone_number = null;
    /**
     * SIP dispatch rule ID to assign to the phone number
     *
     * Generated from protobuf field <code>optional string sip_dispatch_rule_id = 3 [(.logger.name) = "sipDispatchRuleID"];</code>
     */
    protected $sip_dispatch_rule_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *           Use phone number ID for direct lookup
     *     @type string $phone_number
     *           Use phone number string for lookup
     *     @type string $sip_dispatch_rule_id
     *           SIP dispatch rule ID to assign to the phone number
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitPhoneNumber::initOnce();
        parent::__construct($data);
    }

    /**
     * Use phone number ID for direct lookup
     *
     * Generated from protobuf field <code>optional string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return isset($this->id) ? $this->id : '';
    }

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

    /**
     * Use phone number ID for direct lookup
     *
     * Generated from protobuf field <code>optional string id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $var;

        return $this;
    }

    /**
     * Use phone number string for lookup
     *
     * Generated from protobuf field <code>optional string phone_number = 2;</code>
     * @return string
     */
    public function getPhoneNumber()
    {
        return isset($this->phone_number) ? $this->phone_number : '';
    }

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

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

    /**
     * Use phone number string for lookup
     *
     * Generated from protobuf field <code>optional string phone_number = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setPhoneNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->phone_number = $var;

        return $this;
    }

    /**
     * SIP dispatch rule ID to assign to the phone number
     *
     * Generated from protobuf field <code>optional string sip_dispatch_rule_id = 3 [(.logger.name) = "sipDispatchRuleID"];</code>
     * @return string
     */
    public function getSipDispatchRuleId()
    {
        return isset($this->sip_dispatch_rule_id) ? $this->sip_dispatch_rule_id : '';
    }

    public function hasSipDispatchRuleId()
    {
        return isset($this->sip_dispatch_rule_id);
    }

    public function clearSipDispatchRuleId()
    {
        unset($this->sip_dispatch_rule_id);
    }

    /**
     * SIP dispatch rule ID to assign to the phone number
     *
     * Generated from protobuf field <code>optional string sip_dispatch_rule_id = 3 [(.logger.name) = "sipDispatchRuleID"];</code>
     * @param string $var
     * @return $this
     */
    public function setSipDispatchRuleId($var)
    {
        GPBUtil::checkString($var, True);
        $this->sip_dispatch_rule_id = $var;

        return $this;
    }

}

