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

namespace Keyapis\AccessManagement\V1;

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

/**
 * Связка шаблона группы и группы пользователя.
 * Задает область ресурсов (resource scope), доступную пользователю.
 * Используется для контроля доступа к шаблону группы
 *
 * Generated from protobuf message <code>keyapis.access_management.v1.GroupTemplateGroup</code>
 */
class GroupTemplateGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $group_id = '';
    /**
     * Идентификатор шаблона группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_template_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $group_template_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $group_id
     *           Идентификатор группы.
     *           # Тип: Guid
     *     @type string $group_template_id
     *           Идентификатор шаблона группы.
     *           # Тип: Guid
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessManagement\V1\KeyapisAccessManagementTemplateV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Идентификатор шаблона группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_template_id = 2 [(.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 = 2 [(.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;
    }

}

