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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.PrivateLink</code>
 */
class PrivateLink extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string private_link_id = 1 [(.logger.name) = "privateLinkID"];</code>
     */
    protected $private_link_id = '';
    /**
     * Generated from protobuf field <code>string name = 2;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string region = 4;</code>
     */
    protected $region = '';
    /**
     * Generated from protobuf field <code>uint32 port = 5;</code>
     */
    protected $port = 0;
    /**
     * Generated from protobuf field <code>string endpoint = 6;</code>
     */
    protected $endpoint = '';
    /**
     * Generated from protobuf field <code>string connection_endpoint = 7;</code>
     */
    protected $connection_endpoint = '';
    /**
     * Generated from protobuf field <code>string cloud_region = 8;</code>
     */
    protected $cloud_region = '';
    protected $config;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $private_link_id
     *     @type string $name
     *     @type string $region
     *     @type int $port
     *     @type string $endpoint
     *     @type string $connection_endpoint
     *     @type string $cloud_region
     *     @type \Livekit\PrivateLink\AWSConfig $aws
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitCloudAgent::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string private_link_id = 1 [(.logger.name) = "privateLinkID"];</code>
     * @return string
     */
    public function getPrivateLinkId()
    {
        return $this->private_link_id;
    }

    /**
     * Generated from protobuf field <code>string private_link_id = 1 [(.logger.name) = "privateLinkID"];</code>
     * @param string $var
     * @return $this
     */
    public function setPrivateLinkId($var)
    {
        GPBUtil::checkString($var, True);
        $this->private_link_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string region = 4;</code>
     * @return string
     */
    public function getRegion()
    {
        return $this->region;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 port = 5;</code>
     * @return int
     */
    public function getPort()
    {
        return $this->port;
    }

    /**
     * Generated from protobuf field <code>uint32 port = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setPort($var)
    {
        GPBUtil::checkUint32($var);
        $this->port = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string endpoint = 6;</code>
     * @return string
     */
    public function getEndpoint()
    {
        return $this->endpoint;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string connection_endpoint = 7;</code>
     * @return string
     */
    public function getConnectionEndpoint()
    {
        return $this->connection_endpoint;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string cloud_region = 8;</code>
     * @return string
     */
    public function getCloudRegion()
    {
        return $this->cloud_region;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.PrivateLink.AWSConfig aws = 3 [deprecated = true];</code>
     * @return \Livekit\PrivateLink\AWSConfig|null
     * @deprecated
     */
    public function getAws()
    {
        if ($this->hasOneof(3)) {
            @trigger_error('aws is deprecated.', E_USER_DEPRECATED);
        }
        return $this->readOneof(3);
    }

    public function hasAws()
    {
        if ($this->hasOneof(3)) {
            @trigger_error('aws is deprecated.', E_USER_DEPRECATED);
        }
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.livekit.PrivateLink.AWSConfig aws = 3 [deprecated = true];</code>
     * @param \Livekit\PrivateLink\AWSConfig $var
     * @return $this
     * @deprecated
     */
    public function setAws($var)
    {
        @trigger_error('aws is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkMessage($var, \Livekit\PrivateLink\AWSConfig::class);
        $this->writeOneof(3, $var);

        return $this;
    }

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

}

