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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.SIPNamedDest</code>
 */
class SIPNamedDest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string display_name = 3;</code>
     */
    protected $display_name = '';
    protected $uri;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $display_name
     *     @type string $raw
     *           <sip:user\@sip.example.com:5060;transport=tcp>
     *     @type \Livekit\SIPUri $values
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitSip::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string display_name = 3;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Generated from protobuf field <code>string display_name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * <sip:user\@sip.example.com:5060;transport=tcp>
     *
     * Generated from protobuf field <code>string raw = 1;</code>
     * @return string
     */
    public function getRaw()
    {
        return $this->readOneof(1);
    }

    public function hasRaw()
    {
        return $this->hasOneof(1);
    }

    /**
     * <sip:user\@sip.example.com:5060;transport=tcp>
     *
     * Generated from protobuf field <code>string raw = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRaw($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SIPUri values = 2;</code>
     * @return \Livekit\SIPUri|null
     */
    public function getValues()
    {
        return $this->readOneof(2);
    }

    public function hasValues()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.livekit.SIPUri values = 2;</code>
     * @param \Livekit\SIPUri $var
     * @return $this
     */
    public function setValues($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SIPUri::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getUri()
    {
        return $this->whichOneof("uri");
    }

}

