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

namespace Keyapis\Vc\V1;

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

/**
 * Запрос на получение списка камер
 *
 * Generated from protobuf message <code>keyapis.vc.v1.GetCameraListRequest</code>
 */
class GetCameraListRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Ограничение выборки
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraScope scope = 1;</code>
     */
    protected $scope = null;
    /**
     * Фильтр
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraFilter filter = 2;</code>
     */
    protected $filter = null;
    protected $pagination;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\Vc\V1\CameraScope $scope
     *           Ограничение выборки
     *     @type \Keyapis\Vc\V1\CameraFilter $filter
     *           Фильтр
     *     @type \Keyapis\Vc\V1\CameraPaging $paging
     *           Постраничный вывод
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Ограничение выборки
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraScope scope = 1;</code>
     * @return \Keyapis\Vc\V1\CameraScope|null
     */
    public function getScope()
    {
        return $this->scope;
    }

    public function hasScope()
    {
        return isset($this->scope);
    }

    public function clearScope()
    {
        unset($this->scope);
    }

    /**
     * Ограничение выборки
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraScope scope = 1;</code>
     * @param \Keyapis\Vc\V1\CameraScope $var
     * @return $this
     */
    public function setScope($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Vc\V1\CameraScope::class);
        $this->scope = $var;

        return $this;
    }

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

        return $this;
    }

    /**
     * Постраничный вывод
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraPaging paging = 3;</code>
     * @return \Keyapis\Vc\V1\CameraPaging|null
     */
    public function getPaging()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Постраничный вывод
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraPaging paging = 3;</code>
     * @param \Keyapis\Vc\V1\CameraPaging $var
     * @return $this
     */
    public function setPaging($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Vc\V1\CameraPaging::class);
        $this->writeOneof(3, $var);

        return $this;
    }

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

}

