<?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.SIPOutboundTrunkUpdate</code>
 */
class SIPOutboundTrunkUpdate extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string address = 1;</code>
     */
    protected $address = null;
    /**
     * Generated from protobuf field <code>optional .livekit.SIPTransport transport = 2;</code>
     */
    protected $transport = null;
    /**
     * Generated from protobuf field <code>optional string destination_country = 9;</code>
     */
    protected $destination_country = null;
    /**
     * Generated from protobuf field <code>.livekit.ListUpdate numbers = 3;</code>
     */
    protected $numbers = null;
    /**
     * Generated from protobuf field <code>optional string auth_username = 4 [(.logger.redact) = true];</code>
     */
    protected $auth_username = null;
    /**
     * Generated from protobuf field <code>optional string auth_password = 5 [(.logger.redact) = true];</code>
     */
    protected $auth_password = null;
    /**
     * Generated from protobuf field <code>optional string name = 6;</code>
     */
    protected $name = null;
    /**
     * Generated from protobuf field <code>optional string metadata = 7 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     */
    protected $metadata = null;
    /**
     * Generated from protobuf field <code>optional .livekit.SIPMediaEncryption media_encryption = 8;</code>
     */
    protected $media_encryption = null;
    /**
     * Generated from protobuf field <code>optional string from_host = 10;</code>
     */
    protected $from_host = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $address
     *     @type int $transport
     *     @type string $destination_country
     *     @type \Livekit\ListUpdate $numbers
     *     @type string $auth_username
     *     @type string $auth_password
     *     @type string $name
     *     @type string $metadata
     *     @type int $media_encryption
     *     @type string $from_host
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitSip::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string address = 1;</code>
     * @return string
     */
    public function getAddress()
    {
        return isset($this->address) ? $this->address : '';
    }

    public function hasAddress()
    {
        return isset($this->address);
    }

    public function clearAddress()
    {
        unset($this->address);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .livekit.SIPTransport transport = 2;</code>
     * @return int
     */
    public function getTransport()
    {
        return isset($this->transport) ? $this->transport : 0;
    }

    public function hasTransport()
    {
        return isset($this->transport);
    }

    public function clearTransport()
    {
        unset($this->transport);
    }

    /**
     * Generated from protobuf field <code>optional .livekit.SIPTransport transport = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTransport($var)
    {
        GPBUtil::checkEnum($var, \Livekit\SIPTransport::class);
        $this->transport = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string destination_country = 9;</code>
     * @return string
     */
    public function getDestinationCountry()
    {
        return isset($this->destination_country) ? $this->destination_country : '';
    }

    public function hasDestinationCountry()
    {
        return isset($this->destination_country);
    }

    public function clearDestinationCountry()
    {
        unset($this->destination_country);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.ListUpdate numbers = 3;</code>
     * @return \Livekit\ListUpdate|null
     */
    public function getNumbers()
    {
        return $this->numbers;
    }

    public function hasNumbers()
    {
        return isset($this->numbers);
    }

    public function clearNumbers()
    {
        unset($this->numbers);
    }

    /**
     * Generated from protobuf field <code>.livekit.ListUpdate numbers = 3;</code>
     * @param \Livekit\ListUpdate $var
     * @return $this
     */
    public function setNumbers($var)
    {
        GPBUtil::checkMessage($var, \Livekit\ListUpdate::class);
        $this->numbers = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string auth_username = 4 [(.logger.redact) = true];</code>
     * @return string
     */
    public function getAuthUsername()
    {
        return isset($this->auth_username) ? $this->auth_username : '';
    }

    public function hasAuthUsername()
    {
        return isset($this->auth_username);
    }

    public function clearAuthUsername()
    {
        unset($this->auth_username);
    }

    /**
     * Generated from protobuf field <code>optional string auth_username = 4 [(.logger.redact) = true];</code>
     * @param string $var
     * @return $this
     */
    public function setAuthUsername($var)
    {
        GPBUtil::checkString($var, True);
        $this->auth_username = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string auth_password = 5 [(.logger.redact) = true];</code>
     * @return string
     */
    public function getAuthPassword()
    {
        return isset($this->auth_password) ? $this->auth_password : '';
    }

    public function hasAuthPassword()
    {
        return isset($this->auth_password);
    }

    public function clearAuthPassword()
    {
        unset($this->auth_password);
    }

    /**
     * Generated from protobuf field <code>optional string auth_password = 5 [(.logger.redact) = true];</code>
     * @param string $var
     * @return $this
     */
    public function setAuthPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->auth_password = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string name = 6;</code>
     * @return string
     */
    public function getName()
    {
        return isset($this->name) ? $this->name : '';
    }

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string metadata = 7 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @return string
     */
    public function getMetadata()
    {
        return isset($this->metadata) ? $this->metadata : '';
    }

    public function hasMetadata()
    {
        return isset($this->metadata);
    }

    public function clearMetadata()
    {
        unset($this->metadata);
    }

    /**
     * Generated from protobuf field <code>optional string metadata = 7 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @param string $var
     * @return $this
     */
    public function setMetadata($var)
    {
        GPBUtil::checkString($var, True);
        $this->metadata = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .livekit.SIPMediaEncryption media_encryption = 8;</code>
     * @return int
     */
    public function getMediaEncryption()
    {
        return isset($this->media_encryption) ? $this->media_encryption : 0;
    }

    public function hasMediaEncryption()
    {
        return isset($this->media_encryption);
    }

    public function clearMediaEncryption()
    {
        unset($this->media_encryption);
    }

    /**
     * Generated from protobuf field <code>optional .livekit.SIPMediaEncryption media_encryption = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setMediaEncryption($var)
    {
        GPBUtil::checkEnum($var, \Livekit\SIPMediaEncryption::class);
        $this->media_encryption = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string from_host = 10;</code>
     * @return string
     */
    public function getFromHost()
    {
        return isset($this->from_host) ? $this->from_host : '';
    }

    public function hasFromHost()
    {
        return isset($this->from_host);
    }

    public function clearFromHost()
    {
        unset($this->from_host);
    }

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

        return $this;
    }

}

