<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_rfid_v1.proto

namespace Deviceapis\Device\V1;

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

/**
 * Запрос получения списка сущностей Rfid по фильтру
 *
 * Generated from protobuf message <code>deviceapis.device.v1.GetRfidListRequest</code>
 */
class GetRfidListRequest extends \Google\Protobuf\Internal\Message
{
    protected $pagination;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Deviceapis\Device\V1\RfidPaging $paging
     *           Постраничный вывод
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceRfidV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Постраничный вывод
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.RfidPaging paging = 1;</code>
     * @return \Deviceapis\Device\V1\RfidPaging|null
     */
    public function getPaging()
    {
        return $this->readOneof(1);
    }

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

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

        return $this;
    }

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

}

