<?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.DisplayExternalLinkFeatures</code>
 */
class DisplayExternalLinkFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool is_allow = 1;</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 link = 3;</code>
     */
    protected $link = null;
    /**
     * Generated from protobuf field <code>optional string shared_by = 4;</code>
     */
    protected $shared_by = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_allow
     *     @type bool $is_active
     *     @type string $link
     *     @type string $shared_by
     * }
     */
    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;
    }

    /**
     * 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 link = 3;</code>
     * @return string
     */
    public function getLink()
    {
        return isset($this->link) ? $this->link : '';
    }

    public function hasLink()
    {
        return isset($this->link);
    }

    public function clearLink()
    {
        unset($this->link);
    }

    /**
     * Generated from protobuf field <code>optional string link = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setLink($var)
    {
        GPBUtil::checkString($var, True);
        $this->link = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string shared_by = 4;</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 = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setSharedBy($var)
    {
        GPBUtil::checkString($var, True);
        $this->shared_by = $var;

        return $this;
    }

}

