<?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.ExternalMediaPlayerFeatures</code>
 */
class ExternalMediaPlayerFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool allowed_external_media_player = 1 [deprecated = true];</code>
     * @deprecated
     */
    protected $allowed_external_media_player = null;
    /**
     * Generated from protobuf field <code>bool is_allow = 5;</code>
     */
    protected $is_allow = false;
    /**
     * Generated from protobuf field <code>bool is_active = 2 [(.buf.validate.field) = {</code>
     */
    protected $is_active = false;
    /**
     * Generated from protobuf field <code>optional string shared_by = 3 [(.buf.validate.field) = {</code>
     */
    protected $shared_by = null;
    /**
     * Generated from protobuf field <code>optional string url = 4 [(.buf.validate.field) = {</code>
     */
    protected $url = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $allowed_external_media_player
     *     @type bool $is_allow
     *     @type bool $is_active
     *     @type string $shared_by
     *     @type string $url
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCreateRoom::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bool allowed_external_media_player = 1 [deprecated = true];</code>
     * @return bool
     * @deprecated
     */
    public function getAllowedExternalMediaPlayer()
    {
        if (isset($this->allowed_external_media_player)) {
            @trigger_error('allowed_external_media_player is deprecated.', E_USER_DEPRECATED);
        }
        return isset($this->allowed_external_media_player) ? $this->allowed_external_media_player : false;
    }

    public function hasAllowedExternalMediaPlayer()
    {
        if (isset($this->allowed_external_media_player)) {
            @trigger_error('allowed_external_media_player is deprecated.', E_USER_DEPRECATED);
        }
        return isset($this->allowed_external_media_player);
    }

    public function clearAllowedExternalMediaPlayer()
    {
        @trigger_error('allowed_external_media_player is deprecated.', E_USER_DEPRECATED);
        unset($this->allowed_external_media_player);
    }

    /**
     * Generated from protobuf field <code>optional bool allowed_external_media_player = 1 [deprecated = true];</code>
     * @param bool $var
     * @return $this
     * @deprecated
     */
    public function setAllowedExternalMediaPlayer($var)
    {
        @trigger_error('allowed_external_media_player is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkBool($var);
        $this->allowed_external_media_player = $var;

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>bool is_active = 2 [(.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>optional string shared_by = 3 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getSharedBy()
    {
        return isset($this->shared_by) ? $this->shared_by : '';
    }

    public function hasSharedBy()
    {
        return isset($this->shared_by);
    }

    public function clearSharedBy()
    {
        unset($this->shared_by);
    }

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

        return $this;
    }

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

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

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

        return $this;
    }

}

