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

namespace Google\Apps\Meet\V2;

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

/**
 * Request to create a space.
 *
 * Generated from protobuf message <code>google.apps.meet.v2.CreateSpaceRequest</code>
 */
class CreateSpaceRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Space to be created. As of May 2023, the input space can be empty. Later on
     * the input space can be non-empty when space configuration is introduced.
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.Space space = 1;</code>
     */
    protected $space = null;

    /**
     * @param \Google\Apps\Meet\V2\Space $space Space to be created. As of May 2023, the input space can be empty. Later on
     *                                          the input space can be non-empty when space configuration is introduced.
     *
     * @return \Google\Apps\Meet\V2\CreateSpaceRequest
     *
     * @experimental
     */
    public static function build(\Google\Apps\Meet\V2\Space $space): self
    {
        return (new self())
            ->setSpace($space);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Apps\Meet\V2\Space $space
     *           Space to be created. As of May 2023, the input space can be empty. Later on
     *           the input space can be non-empty when space configuration is introduced.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Space to be created. As of May 2023, the input space can be empty. Later on
     * the input space can be non-empty when space configuration is introduced.
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.Space space = 1;</code>
     * @return \Google\Apps\Meet\V2\Space|null
     */
    public function getSpace()
    {
        return $this->space;
    }

    public function hasSpace()
    {
        return isset($this->space);
    }

    public function clearSpace()
    {
        unset($this->space);
    }

    /**
     * Space to be created. As of May 2023, the input space can be empty. Later on
     * the input space can be non-empty when space configuration is introduced.
     *
     * Generated from protobuf field <code>.google.apps.meet.v2.Space space = 1;</code>
     * @param \Google\Apps\Meet\V2\Space $var
     * @return $this
     */
    public function setSpace($var)
    {
        GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\Space::class);
        $this->space = $var;

        return $this;
    }

}

