<?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;

/**
 * Фильтр для запроса связей шаблона группы и группы пользователя.
 * При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ.
 * При передаче нескольких разных параметров фильтра они работают в выборке через И
 *
 * Generated from protobuf message <code>keyapis.access_management.v1.GroupTemplateGroupFilter</code>
 */
class GroupTemplateGroupFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По Идентификатору группы пользователя
     *
     * Generated from protobuf field <code>repeated string group_ids = 1;</code>
     */
    private $group_ids;
    /**
     * По шаблону группы
     *
     * Generated from protobuf field <code>repeated string group_template_ids = 2;</code>
     */
    private $group_template_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $group_ids
     *           По Идентификатору группы пользователя
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $group_template_ids
     *           По шаблону группы
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessManagement\V1\KeyapisAccessManagementTemplateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По Идентификатору группы пользователя
     *
     * Generated from protobuf field <code>repeated string group_ids = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGroupIds()
    {
        return $this->group_ids;
    }

    /**
     * По Идентификатору группы пользователя
     *
     * Generated from protobuf field <code>repeated string group_ids = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGroupIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->group_ids = $arr;

        return $this;
    }

    /**
     * По шаблону группы
     *
     * Generated from protobuf field <code>repeated string group_template_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGroupTemplateIds()
    {
        return $this->group_template_ids;
    }

    /**
     * По шаблону группы
     *
     * Generated from protobuf field <code>repeated string group_template_ids = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGroupTemplateIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->group_template_ids = $arr;

        return $this;
    }

}

