<?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.SIPDispatchRuleCallee</code>
 */
class SIPDispatchRuleCallee 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 randomize = 3;</code>
     */
    protected $randomize = 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 $randomize
     *           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 randomize = 3;</code>
     * @return bool
     */
    public function getRandomize()
    {
        return $this->randomize;
    }

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

        return $this;
    }

}

