<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_sip.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.SIPDispatchRuleIndividual</code>
 */
class SIPDispatchRuleIndividual extends \Google\Protobuf\Internal\Message
{
    /**
     * Prefix used on new room name
     *
     * Generated from protobuf field <code>string room_prefix = 1;</code>
     */
    protected $room_prefix = '';
    /**
     * Optional pin required to enter room
     *
     * Generated from protobuf field <code>string pin = 2;</code>
     */
    protected $pin = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_prefix
     *           Prefix used on new room name
     *     @type string $pin
     *           Optional pin required to enter room
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitSip::initOnce();
        parent::__construct($data);
    }

    /**
     * Prefix used on new room name
     *
     * Generated from protobuf field <code>string room_prefix = 1;</code>
     * @return string
     */
    public function getRoomPrefix()
    {
        return $this->room_prefix;
    }

    /**
     * Prefix used on new room name
     *
     * Generated from protobuf field <code>string room_prefix = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRoomPrefix($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_prefix = $var;

        return $this;
    }

    /**
     * Optional pin required to enter room
     *
     * Generated from protobuf field <code>string pin = 2;</code>
     * @return string
     */
    public function getPin()
    {
        return $this->pin;
    }

    /**
     * Optional pin required to enter room
     *
     * Generated from protobuf field <code>string pin = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setPin($var)
    {
        GPBUtil::checkString($var, True);
        $this->pin = $var;

        return $this;
    }

}

