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

namespace Keyapis\Exchange\V1\MessagePushCall;

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

/**
 * Сообщение
 *
 * Generated from protobuf message <code>keyapis.exchange.v1.MessagePushCall.Message</code>
 */
class Message extends \Google\Protobuf\Internal\Message
{
    /**
     * Заголовок уведомления
     *
     * Generated from protobuf field <code>string title = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $title = '';
    /**
     * Идентификатор устройства источника
     *
     * 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.StringValue device_title = 3;</code>
     */
    protected $device_title = null;
    /**
     * Идентификатор камеры устройства источника.
     * Тип: Guid
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue device_camera_id = 4;</code>
     */
    protected $device_camera_id = null;
    /**
     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>string sip_server_host = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sip_server_host = '';
    /**
     * Порт SIP сервера
     *
     * Generated from protobuf field <code>int32 sip_server_port = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sip_server_port = 0;
    /**
     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>string sip_account_login = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sip_account_login = '';
    /**
     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>string sip_account_password = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sip_account_password = '';
    /**
     * Момент инициации звонка
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp call_created_at = 9 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $call_created_at = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $title
     *           Заголовок уведомления
     *     @type int $device_id
     *           Идентификатор устройства источника
     *     @type \Google\Protobuf\StringValue $device_title
     *           Название устройства источника
     *     @type \Google\Protobuf\StringValue $device_camera_id
     *           Идентификатор камеры устройства источника.
     *           Тип: Guid
     *     @type string $sip_server_host
     *           Адрес SIP сервера
     *     @type int $sip_server_port
     *           Порт SIP сервера
     *     @type string $sip_account_login
     *           Логин SIP аккаунта
     *     @type string $sip_account_password
     *           Пароль SIP аккаунта
     *     @type \Google\Protobuf\Timestamp $call_created_at
     *           Момент инициации звонка
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Exchange\V1\KeyapisExchangeMessageV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Заголовок уведомления
     *
     * Generated from protobuf field <code>string title = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Заголовок уведомления
     *
     * Generated from protobuf field <code>string title = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $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.StringValue device_title = 3;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getDeviceTitle()
    {
        return $this->device_title;
    }

    public function hasDeviceTitle()
    {
        return isset($this->device_title);
    }

    public function clearDeviceTitle()
    {
        unset($this->device_title);
    }

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

     * Название устройства источника
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue device_title = 3;</code>
     * @return string|null
     */
    public function getDeviceTitleUnwrapped()
    {
        return $this->readWrapperValue("device_title");
    }

    /**
     * Название устройства источника
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue device_title = 3;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setDeviceTitle($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->device_title = $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 device_title = 3;</code>
     * @param string|null $var
     * @return $this
     */
    public function setDeviceTitleUnwrapped($var)
    {
        $this->writeWrapperValue("device_title", $var);
        return $this;}

    /**
     * Идентификатор камеры устройства источника.
     * Тип: Guid
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue device_camera_id = 4;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getDeviceCameraId()
    {
        return $this->device_camera_id;
    }

    public function hasDeviceCameraId()
    {
        return isset($this->device_camera_id);
    }

    public function clearDeviceCameraId()
    {
        unset($this->device_camera_id);
    }

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

     * Идентификатор камеры устройства источника.
     * Тип: Guid
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue device_camera_id = 4;</code>
     * @return string|null
     */
    public function getDeviceCameraIdUnwrapped()
    {
        return $this->readWrapperValue("device_camera_id");
    }

    /**
     * Идентификатор камеры устройства источника.
     * Тип: Guid
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue device_camera_id = 4;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setDeviceCameraId($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->device_camera_id = $var;

        return $this;
    }

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

     * Идентификатор камеры устройства источника.
     * Тип: Guid
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue device_camera_id = 4;</code>
     * @param string|null $var
     * @return $this
     */
    public function setDeviceCameraIdUnwrapped($var)
    {
        $this->writeWrapperValue("device_camera_id", $var);
        return $this;}

    /**
     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>string sip_server_host = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSipServerHost()
    {
        return $this->sip_server_host;
    }

    /**
     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>string sip_server_host = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSipServerHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->sip_server_host = $var;

        return $this;
    }

    /**
     * Порт SIP сервера
     *
     * Generated from protobuf field <code>int32 sip_server_port = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getSipServerPort()
    {
        return $this->sip_server_port;
    }

    /**
     * Порт SIP сервера
     *
     * Generated from protobuf field <code>int32 sip_server_port = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setSipServerPort($var)
    {
        GPBUtil::checkInt32($var);
        $this->sip_server_port = $var;

        return $this;
    }

    /**
     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>string sip_account_login = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSipAccountLogin()
    {
        return $this->sip_account_login;
    }

    /**
     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>string sip_account_login = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSipAccountLogin($var)
    {
        GPBUtil::checkString($var, True);
        $this->sip_account_login = $var;

        return $this;
    }

    /**
     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>string sip_account_password = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSipAccountPassword()
    {
        return $this->sip_account_password;
    }

    /**
     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>string sip_account_password = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSipAccountPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->sip_account_password = $var;

        return $this;
    }

    /**
     * Момент инициации звонка
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp call_created_at = 9 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCallCreatedAt()
    {
        return $this->call_created_at;
    }

    public function hasCallCreatedAt()
    {
        return isset($this->call_created_at);
    }

    public function clearCallCreatedAt()
    {
        unset($this->call_created_at);
    }

    /**
     * Момент инициации звонка
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp call_created_at = 9 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCallCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->call_created_at = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Message::class, \Keyapis\Exchange\V1\MessagePushCall_Message::class);

