<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/apps/meet/v2/resource.proto

namespace Google\Apps\Meet\V2;

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

/**
 * The configuration pertaining to a meeting space.
 *
 * Generated from protobuf message <code>google.apps.meet.v2.SpaceConfig</code>
 */
class SpaceConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Access type of the meeting space that determines who can join without
     * knocking. Default: The user's default access settings.  Controlled by the
     * user's admin for enterprise users or RESTRICTED.
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.SpaceConfig.AccessType access_type = 1;</code>
     */
    protected $access_type = 0;
    /**
     * Defines the entry points that can be used to join meetings hosted in this
     * meeting space.
     * Default: EntryPointAccess.ALL
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2;</code>
     */
    protected $entry_point_access = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $access_type
     *           Access type of the meeting space that determines who can join without
     *           knocking. Default: The user's default access settings.  Controlled by the
     *           user's admin for enterprise users or RESTRICTED.
     *     @type int $entry_point_access
     *           Defines the entry points that can be used to join meetings hosted in this
     *           meeting space.
     *           Default: EntryPointAccess.ALL
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce();
        parent::__construct($data);
    }

    /**
     * Access type of the meeting space that determines who can join without
     * knocking. Default: The user's default access settings.  Controlled by the
     * user's admin for enterprise users or RESTRICTED.
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.SpaceConfig.AccessType access_type = 1;</code>
     * @return int
     */
    public function getAccessType()
    {
        return $this->access_type;
    }

    /**
     * Access type of the meeting space that determines who can join without
     * knocking. Default: The user's default access settings.  Controlled by the
     * user's admin for enterprise users or RESTRICTED.
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.SpaceConfig.AccessType access_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAccessType($var)
    {
        GPBUtil::checkEnum($var, \Google\Apps\Meet\V2\SpaceConfig\AccessType::class);
        $this->access_type = $var;

        return $this;
    }

    /**
     * Defines the entry points that can be used to join meetings hosted in this
     * meeting space.
     * Default: EntryPointAccess.ALL
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2;</code>
     * @return int
     */
    public function getEntryPointAccess()
    {
        return $this->entry_point_access;
    }

    /**
     * Defines the entry points that can be used to join meetings hosted in this
     * meeting space.
     * Default: EntryPointAccess.ALL
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setEntryPointAccess($var)
    {
        GPBUtil::checkEnum($var, \Google\Apps\Meet\V2\SpaceConfig\EntryPointAccess::class);
        $this->entry_point_access = $var;

        return $this;
    }

}

