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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\SIPInboundTrunkInfo $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.SIPInboundTrunkInfo trunk = 1;</code>
     * @return \Livekit\SIPInboundTrunkInfo|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.SIPInboundTrunkInfo trunk = 1;</code>
     * @param \Livekit\SIPInboundTrunkInfo $var
     * @return $this
     */
    public function setTrunk($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SIPInboundTrunkInfo::class);
        $this->trunk = $var;

        return $this;
    }

}

