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

namespace Keyapis\Multiapp\V1;

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

/**
 * Запрос получения списка приложений
 *
 * Generated from protobuf message <code>keyapis.multiapp.v1.GetAppListRequest</code>
 */
class GetAppListRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Фильтр
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.AppFilter filter = 1;</code>
     */
    protected $filter = null;
    protected $pagination;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\Multiapp\V1\AppFilter $filter
     *           Фильтр
     *     @type \Keyapis\Multiapp\V1\AppPaging $paging
     *           Пагинация
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Multiapp\V1\KeyapisMultiappAppV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Фильтр
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.AppFilter filter = 1;</code>
     * @return \Keyapis\Multiapp\V1\AppFilter|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.multiapp.v1.AppFilter filter = 1;</code>
     * @param \Keyapis\Multiapp\V1\AppFilter $var
     * @return $this
     */
    public function setFilter($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Multiapp\V1\AppFilter::class);
        $this->filter = $var;

        return $this;
    }

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

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

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

        return $this;
    }

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

}

