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

namespace Keyapis\Device\V1;

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

/**
 * Запрос на замену устройства
 *
 * Generated from protobuf message <code>keyapis.device.v1.PostDeviceReplaceRequest</code>
 */
class PostDeviceReplaceRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $id = 0;
    /**
     * Хост
     *
     * Generated from protobuf field <code>string host = 2;</code>
     */
    protected $host = '';
    /**
     * MAC-адрес.
     * # Диапазон: 17..17.
     * # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *
     * Generated from protobuf field <code>string mac_address = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $mac_address = '';
    /**
     * Серийный номер
     *
     * Generated from protobuf field <code>string serial_number = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $serial_number = '';
    /**
     * Логин (для модели спутник)
     *
     * Generated from protobuf field <code>string login = 5;</code>
     */
    protected $login = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор устройства
     *     @type string $host
     *           Хост
     *     @type string $mac_address
     *           MAC-адрес.
     *           # Диапазон: 17..17.
     *           # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *     @type string $serial_number
     *           Серийный номер
     *     @type string $login
     *           Логин (для модели спутник)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceDeviceV1::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Идентификатор устройства
     *
     * 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;
    }

    /**
     * Хост
     *
     * Generated from protobuf field <code>string host = 2;</code>
     * @return string
     */
    public function getHost()
    {
        return $this->host;
    }

    /**
     * Хост
     *
     * Generated from protobuf field <code>string host = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->host = $var;

        return $this;
    }

    /**
     * MAC-адрес.
     * # Диапазон: 17..17.
     * # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *
     * Generated from protobuf field <code>string mac_address = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getMacAddress()
    {
        return $this->mac_address;
    }

    /**
     * MAC-адрес.
     * # Диапазон: 17..17.
     * # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *
     * Generated from protobuf field <code>string mac_address = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setMacAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->mac_address = $var;

        return $this;
    }

    /**
     * Серийный номер
     *
     * Generated from protobuf field <code>string serial_number = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSerialNumber()
    {
        return $this->serial_number;
    }

    /**
     * Серийный номер
     *
     * Generated from protobuf field <code>string serial_number = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSerialNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->serial_number = $var;

        return $this;
    }

    /**
     * Логин (для модели спутник)
     *
     * Generated from protobuf field <code>string login = 5;</code>
     * @return string
     */
    public function getLogin()
    {
        return $this->login;
    }

    /**
     * Логин (для модели спутник)
     *
     * Generated from protobuf field <code>string login = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setLogin($var)
    {
        GPBUtil::checkString($var, True);
        $this->login = $var;

        return $this;
    }

}

