<?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.CreateSIPOutboundTrunkRequest</code>
 */
class CreateSIPOutboundTrunkRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Trunk ID is ignored
     *
     * Generated from protobuf field <code>.livekit.SIPOutboundTrunkInfo trunk = 1;</code>
     */
    protected $trunk = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\SIPOutboundTrunkInfo $trunk
     *           Trunk ID is ignored
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitSip::initOnce();
        parent::__construct($data);
    }

    /**
     * Trunk ID is ignored
     *
     * Generated from protobuf field <code>.livekit.SIPOutboundTrunkInfo trunk = 1;</code>
     * @return \Livekit\SIPOutboundTrunkInfo|null
     */
    public function getTrunk()
    {
        return $this->trunk;
    }

    public function hasTrunk()
    {
        return isset($this->trunk);
    }

    public function clearTrunk()
    {
        unset($this->trunk);
    }

    /**
     * Trunk ID is ignored
     *
     * Generated from protobuf field <code>.livekit.SIPOutboundTrunkInfo trunk = 1;</code>
     * @param \Livekit\SIPOutboundTrunkInfo $var
     * @return $this
     */
    public function setTrunk($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SIPOutboundTrunkInfo::class);
        $this->trunk = $var;

        return $this;
    }

}

