<?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.GetGroupTemplateGroupListRequest</code>
 */
class GetGroupTemplateGroupListRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Фильтр связей шаблонов групп и группы пользователя
     *
     * Generated from protobuf field <code>.keyapis.access_management.v1.GroupTemplateGroupFilter filter = 1;</code>
     */
    protected $filter = null;
    protected $pagination;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\AccessManagement\V1\GroupTemplateGroupFilter $filter
     *           Фильтр связей шаблонов групп и группы пользователя
     *     @type \Keyapis\AccessManagement\V1\GroupTemplateGroupPaging $paging
     *           Пагинация
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessManagement\V1\KeyapisAccessManagementTemplateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Фильтр связей шаблонов групп и группы пользователя
     *
     * Generated from protobuf field <code>.keyapis.access_management.v1.GroupTemplateGroupFilter filter = 1;</code>
     * @return \Keyapis\AccessManagement\V1\GroupTemplateGroupFilter|null
     */
    public function getFilter()
    {
        return $this->filter;
    }

    public function hasFilter()
    {
        return isset($this->filter);
    }

    public function clearFilter()
    {
        unset($this->filter);
    }

    /**
     * Фильтр связей шаблонов групп и группы пользователя
     *
     * Generated from protobuf field <code>.keyapis.access_management.v1.GroupTemplateGroupFilter filter = 1;</code>
     * @param \Keyapis\AccessManagement\V1\GroupTemplateGroupFilter $var
     * @return $this
     */
    public function setFilter($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\AccessManagement\V1\GroupTemplateGroupFilter::class);
        $this->filter = $var;

        return $this;
    }

    /**
     * Пагинация
     *
     * Generated from protobuf field <code>.keyapis.access_management.v1.GroupTemplateGroupPaging paging = 2;</code>
     * @return \Keyapis\AccessManagement\V1\GroupTemplateGroupPaging|null
     */
    public function getPaging()
    {
        return $this->readOneof(2);
    }

    public function hasPaging()
    {
        return $this->hasOneof(2);
    }

    /**
     * Пагинация
     *
     * Generated from protobuf field <code>.keyapis.access_management.v1.GroupTemplateGroupPaging paging = 2;</code>
     * @param \Keyapis\AccessManagement\V1\GroupTemplateGroupPaging $var
     * @return $this
     */
    public function setPaging($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\AccessManagement\V1\GroupTemplateGroupPaging::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getPagination()
    {
        return $this->whichOneof("pagination");
    }

}

