<?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.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 = '';
    /**
     * Optionally append random suffix
     *
     * Generated from protobuf field <code>bool no_randomness = 3;</code>
     */
    protected $no_randomness = false;

    /**
     * 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
     *     @type bool $no_randomness
     *           Optionally append random suffix
     * }
     */
    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;
    }

    /**
     * Optionally append random suffix
     *
     * Generated from protobuf field <code>bool no_randomness = 3;</code>
     * @return bool
     */
    public function getNoRandomness()
    {
        return $this->no_randomness;
    }

    /**
     * Optionally append random suffix
     *
     * Generated from protobuf field <code>bool no_randomness = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setNoRandomness($var)
    {
        GPBUtil::checkBool($var);
        $this->no_randomness = $var;

        return $this;
    }

}

