<?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;

/**
 * Задача на удаление sip-аккаунта.
 * Очередь key.device.delete_sip_account
 *
 * Generated from protobuf message <code>keyapis.device.v1.DeleteSipAccountTask</code>
 */
class DeleteSipAccountTask 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.Timestamp deleted_at = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $deleted_at = null;
    /**
     * Sip-login устройства
     *
     * Generated from protobuf field <code>string sip_login = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sip_login = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $request_id
     *           Идентификатор запроса
     *     @type int $device_id
     *           Идентификатор устройства
     *     @type \Google\Protobuf\Timestamp $deleted_at
     *           Дата и время удаления устройства
     *     @type string $sip_login
     *           Sip-login устройства
     * }
     */
    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.Timestamp deleted_at = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getDeletedAt()
    {
        return $this->deleted_at;
    }

    public function hasDeletedAt()
    {
        return isset($this->deleted_at);
    }

    public function clearDeletedAt()
    {
        unset($this->deleted_at);
    }

    /**
     * Дата и время удаления устройства
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp deleted_at = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setDeletedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->deleted_at = $var;

        return $this;
    }

    /**
     * Sip-login устройства
     *
     * Generated from protobuf field <code>string sip_login = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSipLogin()
    {
        return $this->sip_login;
    }

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

        return $this;
    }

}

