<?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.control_device
 *
 * Generated from protobuf message <code>keyapis.device.v1.ControlDeviceTask</code>
 */
class ControlDeviceTask 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>string model = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $model = '';
    /**
     * Адрес устройства
     *
     * Generated from protobuf field <code>string host = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $host = '';
    /**
     * Имя пользователя устройства
     *
     * Generated from protobuf field <code>string username = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $username = '';
    /**
     * Пароль пользователья устройства
     *
     * Generated from protobuf field <code>string password = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $password = '';
    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 device_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $device_id = 0;
    /**
     * Распознование лиц
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.FaceRecognition face_recognition = 7;</code>
     */
    protected $face_recognition = null;
    /**
     * Пресет устройства
     *
     * Generated from protobuf field <code>.keyapis.device.v1.Preset preset = 8;</code>
     */
    protected $preset = null;
    /**
     * Таймзона NTP
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue ntp_timezone = 9;</code>
     */
    protected $ntp_timezone = null;
    /**
     * Sip аккаунт
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.SipAccount sip_account = 10;</code>
     */
    protected $sip_account = null;
    /**
     * Параметры калитки
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.Gate gate = 11;</code>
     */
    protected $gate = null;
    /**
     * Консьерж
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.Concierge concierge = 12;</code>
     */
    protected $concierge = null;
    /**
     * Автосбор
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.Autocollect autocollect = 13;</code>
     */
    protected $autocollect = null;
    /**
     * Параметр sl3
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.Sl3 sl3 = 14;</code>
     */
    protected $sl3 = null;
    /**
     * Настройки вызова экстренной службы
     *
     * Generated from protobuf field <code>.keyapis.device.v1.EmergencyCallSettings emergency_call_settings = 15;</code>
     */
    protected $emergency_call_settings = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $request_id
     *           Идентификатор запроса
     *     @type string $model
     *           Модель
     *     @type string $host
     *           Адрес устройства
     *     @type string $username
     *           Имя пользователя устройства
     *     @type string $password
     *           Пароль пользователья устройства
     *     @type int $device_id
     *           Идентификатор устройства
     *     @type \Keyapis\Device\V1\ControlDeviceTask\FaceRecognition $face_recognition
     *           Распознование лиц
     *     @type \Keyapis\Device\V1\Preset $preset
     *           Пресет устройства
     *     @type \Google\Protobuf\StringValue $ntp_timezone
     *           Таймзона NTP
     *     @type \Keyapis\Device\V1\ConfigureDeviceTask\SipAccount $sip_account
     *           Sip аккаунт
     *     @type \Keyapis\Device\V1\ConfigureDeviceTask\Gate $gate
     *           Параметры калитки
     *     @type \Keyapis\Device\V1\ControlDeviceTask\Concierge $concierge
     *           Консьерж
     *     @type \Keyapis\Device\V1\ControlDeviceTask\Autocollect $autocollect
     *           Автосбор
     *     @type \Keyapis\Device\V1\ConfigureDeviceTask\Sl3 $sl3
     *           Параметр sl3
     *     @type \Keyapis\Device\V1\EmergencyCallSettings $emergency_call_settings
     *           Настройки вызова экстренной службы
     * }
     */
    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>string model = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getModel()
    {
        return $this->model;
    }

    /**
     * Модель
     *
     * Generated from protobuf field <code>string model = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->model = $var;

        return $this;
    }

    /**
     * Адрес устройства
     *
     * Generated from protobuf field <code>string host = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getHost()
    {
        return $this->host;
    }

    /**
     * Адрес устройства
     *
     * Generated from protobuf field <code>string host = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->host = $var;

        return $this;
    }

    /**
     * Имя пользователя устройства
     *
     * Generated from protobuf field <code>string username = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * Имя пользователя устройства
     *
     * Generated from protobuf field <code>string username = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUsername($var)
    {
        GPBUtil::checkString($var, True);
        $this->username = $var;

        return $this;
    }

    /**
     * Пароль пользователья устройства
     *
     * Generated from protobuf field <code>string password = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Пароль пользователья устройства
     *
     * Generated from protobuf field <code>string password = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->password = $var;

        return $this;
    }

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

    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 device_id = 6 [(.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>.keyapis.device.v1.ControlDeviceTask.FaceRecognition face_recognition = 7;</code>
     * @return \Keyapis\Device\V1\ControlDeviceTask\FaceRecognition|null
     */
    public function getFaceRecognition()
    {
        return $this->face_recognition;
    }

    public function hasFaceRecognition()
    {
        return isset($this->face_recognition);
    }

    public function clearFaceRecognition()
    {
        unset($this->face_recognition);
    }

    /**
     * Распознование лиц
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.FaceRecognition face_recognition = 7;</code>
     * @param \Keyapis\Device\V1\ControlDeviceTask\FaceRecognition $var
     * @return $this
     */
    public function setFaceRecognition($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ControlDeviceTask\FaceRecognition::class);
        $this->face_recognition = $var;

        return $this;
    }

    /**
     * Пресет устройства
     *
     * Generated from protobuf field <code>.keyapis.device.v1.Preset preset = 8;</code>
     * @return \Keyapis\Device\V1\Preset|null
     */
    public function getPreset()
    {
        return $this->preset;
    }

    public function hasPreset()
    {
        return isset($this->preset);
    }

    public function clearPreset()
    {
        unset($this->preset);
    }

    /**
     * Пресет устройства
     *
     * Generated from protobuf field <code>.keyapis.device.v1.Preset preset = 8;</code>
     * @param \Keyapis\Device\V1\Preset $var
     * @return $this
     */
    public function setPreset($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\Preset::class);
        $this->preset = $var;

        return $this;
    }

    /**
     * Таймзона NTP
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue ntp_timezone = 9;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getNtpTimezone()
    {
        return $this->ntp_timezone;
    }

    public function hasNtpTimezone()
    {
        return isset($this->ntp_timezone);
    }

    public function clearNtpTimezone()
    {
        unset($this->ntp_timezone);
    }

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

     * Таймзона NTP
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue ntp_timezone = 9;</code>
     * @return string|null
     */
    public function getNtpTimezoneUnwrapped()
    {
        return $this->readWrapperValue("ntp_timezone");
    }

    /**
     * Таймзона NTP
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue ntp_timezone = 9;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setNtpTimezone($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->ntp_timezone = $var;

        return $this;
    }

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

     * Таймзона NTP
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue ntp_timezone = 9;</code>
     * @param string|null $var
     * @return $this
     */
    public function setNtpTimezoneUnwrapped($var)
    {
        $this->writeWrapperValue("ntp_timezone", $var);
        return $this;}

    /**
     * Sip аккаунт
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.SipAccount sip_account = 10;</code>
     * @return \Keyapis\Device\V1\ConfigureDeviceTask\SipAccount|null
     */
    public function getSipAccount()
    {
        return $this->sip_account;
    }

    public function hasSipAccount()
    {
        return isset($this->sip_account);
    }

    public function clearSipAccount()
    {
        unset($this->sip_account);
    }

    /**
     * Sip аккаунт
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.SipAccount sip_account = 10;</code>
     * @param \Keyapis\Device\V1\ConfigureDeviceTask\SipAccount $var
     * @return $this
     */
    public function setSipAccount($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ConfigureDeviceTask\SipAccount::class);
        $this->sip_account = $var;

        return $this;
    }

    /**
     * Параметры калитки
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.Gate gate = 11;</code>
     * @return \Keyapis\Device\V1\ConfigureDeviceTask\Gate|null
     */
    public function getGate()
    {
        return $this->gate;
    }

    public function hasGate()
    {
        return isset($this->gate);
    }

    public function clearGate()
    {
        unset($this->gate);
    }

    /**
     * Параметры калитки
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.Gate gate = 11;</code>
     * @param \Keyapis\Device\V1\ConfigureDeviceTask\Gate $var
     * @return $this
     */
    public function setGate($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ConfigureDeviceTask\Gate::class);
        $this->gate = $var;

        return $this;
    }

    /**
     * Консьерж
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.Concierge concierge = 12;</code>
     * @return \Keyapis\Device\V1\ControlDeviceTask\Concierge|null
     */
    public function getConcierge()
    {
        return $this->concierge;
    }

    public function hasConcierge()
    {
        return isset($this->concierge);
    }

    public function clearConcierge()
    {
        unset($this->concierge);
    }

    /**
     * Консьерж
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.Concierge concierge = 12;</code>
     * @param \Keyapis\Device\V1\ControlDeviceTask\Concierge $var
     * @return $this
     */
    public function setConcierge($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ControlDeviceTask\Concierge::class);
        $this->concierge = $var;

        return $this;
    }

    /**
     * Автосбор
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.Autocollect autocollect = 13;</code>
     * @return \Keyapis\Device\V1\ControlDeviceTask\Autocollect|null
     */
    public function getAutocollect()
    {
        return $this->autocollect;
    }

    public function hasAutocollect()
    {
        return isset($this->autocollect);
    }

    public function clearAutocollect()
    {
        unset($this->autocollect);
    }

    /**
     * Автосбор
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ControlDeviceTask.Autocollect autocollect = 13;</code>
     * @param \Keyapis\Device\V1\ControlDeviceTask\Autocollect $var
     * @return $this
     */
    public function setAutocollect($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ControlDeviceTask\Autocollect::class);
        $this->autocollect = $var;

        return $this;
    }

    /**
     * Параметр sl3
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.Sl3 sl3 = 14;</code>
     * @return \Keyapis\Device\V1\ConfigureDeviceTask\Sl3|null
     */
    public function getSl3()
    {
        return $this->sl3;
    }

    public function hasSl3()
    {
        return isset($this->sl3);
    }

    public function clearSl3()
    {
        unset($this->sl3);
    }

    /**
     * Параметр sl3
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.Sl3 sl3 = 14;</code>
     * @param \Keyapis\Device\V1\ConfigureDeviceTask\Sl3 $var
     * @return $this
     */
    public function setSl3($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ConfigureDeviceTask\Sl3::class);
        $this->sl3 = $var;

        return $this;
    }

    /**
     * Настройки вызова экстренной службы
     *
     * Generated from protobuf field <code>.keyapis.device.v1.EmergencyCallSettings emergency_call_settings = 15;</code>
     * @return \Keyapis\Device\V1\EmergencyCallSettings|null
     */
    public function getEmergencyCallSettings()
    {
        return $this->emergency_call_settings;
    }

    public function hasEmergencyCallSettings()
    {
        return isset($this->emergency_call_settings);
    }

    public function clearEmergencyCallSettings()
    {
        unset($this->emergency_call_settings);
    }

    /**
     * Настройки вызова экстренной службы
     *
     * Generated from protobuf field <code>.keyapis.device.v1.EmergencyCallSettings emergency_call_settings = 15;</code>
     * @param \Keyapis\Device\V1\EmergencyCallSettings $var
     * @return $this
     */
    public function setEmergencyCallSettings($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\EmergencyCallSettings::class);
        $this->emergency_call_settings = $var;

        return $this;
    }

}

