<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/access_management/v1/keyapis_access_management_group_v1.proto

namespace Keyapis\AccessManagement\V1;

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

/**
 * Запрос создания группы по шаблону
 *
 * Generated from protobuf message <code>keyapis.access_management.v1.PostGroupByTemplateRequest</code>
 */
class PostGroupByTemplateRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор шаблона группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_template_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $group_template_id = '';
    /**
     * Наименование создаваемой по шаблону группы.
     * В наименование группы будет добавлен суффикс GroupTemplate.group_title_suffix.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string group_title = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $group_title = '';
    /**
     * Специфичные для создаваемой по шаблону группы Claim requirements, они будут добавлены к requirements создаваемой по шаблону группы.
     * # Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated .keyapis.access_management.v1.Claim group_requirements = 3;</code>
     */
    private $group_requirements;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $group_template_id
     *           Идентификатор шаблона группы.
     *           # Тип: Guid
     *     @type string $group_title
     *           Наименование создаваемой по шаблону группы.
     *           В наименование группы будет добавлен суффикс GroupTemplate.group_title_suffix.
     *           # Диапазон: 3..256
     *     @type array<\Keyapis\AccessManagement\V1\Claim>|\Google\Protobuf\Internal\RepeatedField $group_requirements
     *           Специфичные для создаваемой по шаблону группы Claim requirements, они будут добавлены к requirements создаваемой по шаблону группы.
     *           # Диапазон: 0..10
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessManagement\V1\KeyapisAccessManagementGroupV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор шаблона группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_template_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getGroupTemplateId()
    {
        return $this->group_template_id;
    }

    /**
     * Идентификатор шаблона группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_template_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setGroupTemplateId($var)
    {
        GPBUtil::checkString($var, True);
        $this->group_template_id = $var;

        return $this;
    }

    /**
     * Наименование создаваемой по шаблону группы.
     * В наименование группы будет добавлен суффикс GroupTemplate.group_title_suffix.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string group_title = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getGroupTitle()
    {
        return $this->group_title;
    }

    /**
     * Наименование создаваемой по шаблону группы.
     * В наименование группы будет добавлен суффикс GroupTemplate.group_title_suffix.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string group_title = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setGroupTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->group_title = $var;

        return $this;
    }

    /**
     * Специфичные для создаваемой по шаблону группы Claim requirements, они будут добавлены к requirements создаваемой по шаблону группы.
     * # Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated .keyapis.access_management.v1.Claim group_requirements = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGroupRequirements()
    {
        return $this->group_requirements;
    }

    /**
     * Специфичные для создаваемой по шаблону группы Claim requirements, они будут добавлены к requirements создаваемой по шаблону группы.
     * # Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated .keyapis.access_management.v1.Claim group_requirements = 3;</code>
     * @param array<\Keyapis\AccessManagement\V1\Claim>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGroupRequirements($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Keyapis\AccessManagement\V1\Claim::class);
        $this->group_requirements = $arr;

        return $this;
    }

}

