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

namespace Deviceapis\Device\V1;

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

/**
 * Запрос получения считывателя
 *
 * Generated from protobuf message <code>deviceapis.device.v1.GetReaderRequest</code>
 */
class GetReaderRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор.
     * id=100 - Считыватель внутренний.
     * id=1 - Считыватель внешний №1.
     * id=2 - Считыватель внешний №2 и тд
     *
     * Generated from protobuf field <code>int32 id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор.
     *           id=100 - Считыватель внутренний.
     *           id=1 - Считыватель внешний №1.
     *           id=2 - Считыватель внешний №2 и тд
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceReaderV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор.
     * id=100 - Считыватель внутренний.
     * id=1 - Считыватель внешний №1.
     * id=2 - Считыватель внешний №2 и тд
     *
     * Generated from protobuf field <code>int32 id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Идентификатор.
     * id=100 - Считыватель внутренний.
     * id=1 - Считыватель внешний №1.
     * id=2 - Считыватель внешний №2 и тд
     *
     * Generated from protobuf field <code>int32 id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->id = $var;

        return $this;
    }

}

