<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: plugnmeet_create_room.proto

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.SipDialInFeatures</code>
 */
class SipDialInFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool is_allow = 1;</code>
     */
    protected $is_allow = false;
    /**
     * If true, the system will immediately prepare the room for SIP dial-in
     * by creating a dispatch rule and assigning a PIN upon creation.
     * If false, this must be done later via a separate API call.
     *
     * Generated from protobuf field <code>bool enable_dial_in_on_create = 2;</code>
     */
    protected $enable_dial_in_on_create = false;
    /**
     * Generated from protobuf field <code>bool hide_phone_number = 3;</code>
     */
    protected $hide_phone_number = false;
    /**
     * all internal usage fields
     *
     * Generated from protobuf field <code>bool is_active = 4 [(.buf.validate.field) = {</code>
     */
    protected $is_active = false;
    /**
     * Generated from protobuf field <code>repeated string phone_numbers = 5 [(.buf.validate.field) = {</code>
     */
    private $phone_numbers;
    /**
     * Generated from protobuf field <code>optional string pin = 6 [(.buf.validate.field) = {</code>
     */
    protected $pin = null;
    /**
     * Generated from protobuf field <code>optional string dispatch_rule_id = 7 [(.buf.validate.field) = {</code>
     */
    protected $dispatch_rule_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_allow
     *     @type bool $enable_dial_in_on_create
     *           If true, the system will immediately prepare the room for SIP dial-in
     *           by creating a dispatch rule and assigning a PIN upon creation.
     *           If false, this must be done later via a separate API call.
     *     @type bool $hide_phone_number
     *     @type bool $is_active
     *           all internal usage fields
     *     @type string[] $phone_numbers
     *     @type string $pin
     *     @type string $dispatch_rule_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCreateRoom::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool is_allow = 1;</code>
     * @return bool
     */
    public function getIsAllow()
    {
        return $this->is_allow;
    }

    /**
     * Generated from protobuf field <code>bool is_allow = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAllow($var)
    {
        GPBUtil::checkBool($var);
        $this->is_allow = $var;

        return $this;
    }

    /**
     * If true, the system will immediately prepare the room for SIP dial-in
     * by creating a dispatch rule and assigning a PIN upon creation.
     * If false, this must be done later via a separate API call.
     *
     * Generated from protobuf field <code>bool enable_dial_in_on_create = 2;</code>
     * @return bool
     */
    public function getEnableDialInOnCreate()
    {
        return $this->enable_dial_in_on_create;
    }

    /**
     * If true, the system will immediately prepare the room for SIP dial-in
     * by creating a dispatch rule and assigning a PIN upon creation.
     * If false, this must be done later via a separate API call.
     *
     * Generated from protobuf field <code>bool enable_dial_in_on_create = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableDialInOnCreate($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_dial_in_on_create = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool hide_phone_number = 3;</code>
     * @return bool
     */
    public function getHidePhoneNumber()
    {
        return $this->hide_phone_number;
    }

    /**
     * Generated from protobuf field <code>bool hide_phone_number = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setHidePhoneNumber($var)
    {
        GPBUtil::checkBool($var);
        $this->hide_phone_number = $var;

        return $this;
    }

    /**
     * all internal usage fields
     *
     * Generated from protobuf field <code>bool is_active = 4 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsActive()
    {
        return $this->is_active;
    }

    /**
     * all internal usage fields
     *
     * Generated from protobuf field <code>bool is_active = 4 [(.buf.validate.field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setIsActive($var)
    {
        GPBUtil::checkBool($var);
        $this->is_active = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string phone_numbers = 5 [(.buf.validate.field) = {</code>
     * @return RepeatedField<string>
     */
    public function getPhoneNumbers()
    {
        return $this->phone_numbers;
    }

    /**
     * Generated from protobuf field <code>repeated string phone_numbers = 5 [(.buf.validate.field) = {</code>
     * @param string[] $var
     * @return $this
     */
    public function setPhoneNumbers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->phone_numbers = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string pin = 6 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getPin()
    {
        return isset($this->pin) ? $this->pin : '';
    }

    public function hasPin()
    {
        return isset($this->pin);
    }

    public function clearPin()
    {
        unset($this->pin);
    }

    /**
     * Generated from protobuf field <code>optional string pin = 6 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setPin($var)
    {
        GPBUtil::checkString($var, True);
        $this->pin = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string dispatch_rule_id = 7 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getDispatchRuleId()
    {
        return isset($this->dispatch_rule_id) ? $this->dispatch_rule_id : '';
    }

    public function hasDispatchRuleId()
    {
        return isset($this->dispatch_rule_id);
    }

    public function clearDispatchRuleId()
    {
        unset($this->dispatch_rule_id);
    }

    /**
     * Generated from protobuf field <code>optional string dispatch_rule_id = 7 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setDispatchRuleId($var)
    {
        GPBUtil::checkString($var, True);
        $this->dispatch_rule_id = $var;

        return $this;
    }

}

