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

namespace Keyapis\Device\V1;

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

/**
 * Задача на открытие точки доступа.
 * Очередь key.device.open_access_point
 *
 * Generated from protobuf message <code>keyapis.device.v1.OpenAccessPointTask</code>
 */
class OpenAccessPointTask extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $request_id = '';
    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $device_id = 0;
    /**
     * Номер реле
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value relay_index = 3;</code>
     */
    protected $relay_index = null;
    /**
     * Задержка в секундах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value delay = 4;</code>
     */
    protected $delay = null;
    /**
     * ГРЗ авто
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue car_number = 5;</code>
     */
    protected $car_number = null;
    /**
     * Тип ТС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue vehicle = 6;</code>
     */
    protected $vehicle = null;
    /**
     * Наименование курьерской компании
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_company_name = 7;</code>
     */
    protected $courier_company_name = null;
    /**
     * Номер заказа
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue order_number = 8;</code>
     */
    protected $order_number = null;
    /**
     * Идентификатор курьера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_id = 9;</code>
     */
    protected $courier_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $request_id
     *           Идентификатор запроса
     *     @type int $device_id
     *           Идентификатор устройства
     *     @type \Google\Protobuf\Int32Value $relay_index
     *           Номер реле
     *     @type \Google\Protobuf\Int32Value $delay
     *           Задержка в секундах
     *     @type \Google\Protobuf\StringValue $car_number
     *           ГРЗ авто
     *     @type \Google\Protobuf\StringValue $vehicle
     *           Тип ТС
     *     @type \Google\Protobuf\StringValue $courier_company_name
     *           Наименование курьерской компании
     *     @type \Google\Protobuf\StringValue $order_number
     *           Номер заказа
     *     @type \Google\Protobuf\StringValue $courier_id
     *           Идентификатор курьера
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceEventsV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getRequestId()
    {
        return $this->request_id;
    }

    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setRequestId($var)
    {
        GPBUtil::checkString($var, True);
        $this->request_id = $var;

        return $this;
    }

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

    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setDeviceId($var)
    {
        GPBUtil::checkInt32($var);
        $this->device_id = $var;

        return $this;
    }

    /**
     * Номер реле
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value relay_index = 3;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getRelayIndex()
    {
        return $this->relay_index;
    }

    public function hasRelayIndex()
    {
        return isset($this->relay_index);
    }

    public function clearRelayIndex()
    {
        unset($this->relay_index);
    }

    /**
     * Returns the unboxed value from <code>getRelayIndex()</code>

     * Номер реле
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value relay_index = 3;</code>
     * @return int|null
     */
    public function getRelayIndexUnwrapped()
    {
        return $this->readWrapperValue("relay_index");
    }

    /**
     * Номер реле
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value relay_index = 3;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setRelayIndex($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->relay_index = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.

     * Номер реле
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value relay_index = 3;</code>
     * @param int|null $var
     * @return $this
     */
    public function setRelayIndexUnwrapped($var)
    {
        $this->writeWrapperValue("relay_index", $var);
        return $this;}

    /**
     * Задержка в секундах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value delay = 4;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getDelay()
    {
        return $this->delay;
    }

    public function hasDelay()
    {
        return isset($this->delay);
    }

    public function clearDelay()
    {
        unset($this->delay);
    }

    /**
     * Returns the unboxed value from <code>getDelay()</code>

     * Задержка в секундах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value delay = 4;</code>
     * @return int|null
     */
    public function getDelayUnwrapped()
    {
        return $this->readWrapperValue("delay");
    }

    /**
     * Задержка в секундах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value delay = 4;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setDelay($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->delay = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.

     * Задержка в секундах
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value delay = 4;</code>
     * @param int|null $var
     * @return $this
     */
    public function setDelayUnwrapped($var)
    {
        $this->writeWrapperValue("delay", $var);
        return $this;}

    /**
     * ГРЗ авто
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue car_number = 5;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getCarNumber()
    {
        return $this->car_number;
    }

    public function hasCarNumber()
    {
        return isset($this->car_number);
    }

    public function clearCarNumber()
    {
        unset($this->car_number);
    }

    /**
     * Returns the unboxed value from <code>getCarNumber()</code>

     * ГРЗ авто
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue car_number = 5;</code>
     * @return string|null
     */
    public function getCarNumberUnwrapped()
    {
        return $this->readWrapperValue("car_number");
    }

    /**
     * ГРЗ авто
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue car_number = 5;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setCarNumber($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->car_number = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * ГРЗ авто
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue car_number = 5;</code>
     * @param string|null $var
     * @return $this
     */
    public function setCarNumberUnwrapped($var)
    {
        $this->writeWrapperValue("car_number", $var);
        return $this;}

    /**
     * Тип ТС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue vehicle = 6;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getVehicle()
    {
        return $this->vehicle;
    }

    public function hasVehicle()
    {
        return isset($this->vehicle);
    }

    public function clearVehicle()
    {
        unset($this->vehicle);
    }

    /**
     * Returns the unboxed value from <code>getVehicle()</code>

     * Тип ТС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue vehicle = 6;</code>
     * @return string|null
     */
    public function getVehicleUnwrapped()
    {
        return $this->readWrapperValue("vehicle");
    }

    /**
     * Тип ТС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue vehicle = 6;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setVehicle($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->vehicle = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * Тип ТС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue vehicle = 6;</code>
     * @param string|null $var
     * @return $this
     */
    public function setVehicleUnwrapped($var)
    {
        $this->writeWrapperValue("vehicle", $var);
        return $this;}

    /**
     * Наименование курьерской компании
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_company_name = 7;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getCourierCompanyName()
    {
        return $this->courier_company_name;
    }

    public function hasCourierCompanyName()
    {
        return isset($this->courier_company_name);
    }

    public function clearCourierCompanyName()
    {
        unset($this->courier_company_name);
    }

    /**
     * Returns the unboxed value from <code>getCourierCompanyName()</code>

     * Наименование курьерской компании
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_company_name = 7;</code>
     * @return string|null
     */
    public function getCourierCompanyNameUnwrapped()
    {
        return $this->readWrapperValue("courier_company_name");
    }

    /**
     * Наименование курьерской компании
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_company_name = 7;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setCourierCompanyName($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->courier_company_name = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * Наименование курьерской компании
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_company_name = 7;</code>
     * @param string|null $var
     * @return $this
     */
    public function setCourierCompanyNameUnwrapped($var)
    {
        $this->writeWrapperValue("courier_company_name", $var);
        return $this;}

    /**
     * Номер заказа
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue order_number = 8;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getOrderNumber()
    {
        return $this->order_number;
    }

    public function hasOrderNumber()
    {
        return isset($this->order_number);
    }

    public function clearOrderNumber()
    {
        unset($this->order_number);
    }

    /**
     * Returns the unboxed value from <code>getOrderNumber()</code>

     * Номер заказа
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue order_number = 8;</code>
     * @return string|null
     */
    public function getOrderNumberUnwrapped()
    {
        return $this->readWrapperValue("order_number");
    }

    /**
     * Номер заказа
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue order_number = 8;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setOrderNumber($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->order_number = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * Номер заказа
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue order_number = 8;</code>
     * @param string|null $var
     * @return $this
     */
    public function setOrderNumberUnwrapped($var)
    {
        $this->writeWrapperValue("order_number", $var);
        return $this;}

    /**
     * Идентификатор курьера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_id = 9;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getCourierId()
    {
        return $this->courier_id;
    }

    public function hasCourierId()
    {
        return isset($this->courier_id);
    }

    public function clearCourierId()
    {
        unset($this->courier_id);
    }

    /**
     * Returns the unboxed value from <code>getCourierId()</code>

     * Идентификатор курьера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_id = 9;</code>
     * @return string|null
     */
    public function getCourierIdUnwrapped()
    {
        return $this->readWrapperValue("courier_id");
    }

    /**
     * Идентификатор курьера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_id = 9;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setCourierId($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->courier_id = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * Идентификатор курьера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue courier_id = 9;</code>
     * @param string|null $var
     * @return $this
     */
    public function setCourierIdUnwrapped($var)
    {
        $this->writeWrapperValue("courier_id", $var);
        return $this;}

}

