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

namespace Keyapis\Exchange\V1\MessageMobilePushCall;

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

/**
 * Сообщение
 *
 * Generated from protobuf message <code>keyapis.exchange.v1.MessageMobilePushCall.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_token = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sip_token = '';
    /**
     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_server_host = 6;</code>
     */
    protected $sip_server_host = null;
    /**
     * Порт SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value sip_server_port = 7;</code>
     */
    protected $sip_server_port = null;
    /**
     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_login = 8;</code>
     */
    protected $sip_account_login = null;
    /**
     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_password = 9;</code>
     */
    protected $sip_account_password = null;
    /**
     * Адрес STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue stun_server_host = 10;</code>
     */
    protected $stun_server_host = null;
    /**
     * Порт STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value stun_server_port = 11;</code>
     */
    protected $stun_server_port = null;
    /**
     * Момент инициации звонка
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp call_created_at = 12 [(.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_token
     *           SIP-токен
     *     @type \Google\Protobuf\StringValue $sip_server_host
     *           Адрес SIP сервера
     *     @type \Google\Protobuf\Int32Value $sip_server_port
     *           Порт SIP сервера
     *     @type \Google\Protobuf\StringValue $sip_account_login
     *           Логин SIP аккаунта
     *     @type \Google\Protobuf\StringValue $sip_account_password
     *           Пароль SIP аккаунта
     *     @type \Google\Protobuf\StringValue $stun_server_host
     *           Адрес STUN сервера
     *     @type \Google\Protobuf\Int32Value $stun_server_port
     *           Порт STUN сервера
     *     @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_token = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSipToken()
    {
        return $this->sip_token;
    }

    /**
     * SIP-токен
     *
     * Generated from protobuf field <code>string sip_token = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSipToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->sip_token = $var;

        return $this;
    }

    /**
     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_server_host = 6;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getSipServerHost()
    {
        return $this->sip_server_host;
    }

    public function hasSipServerHost()
    {
        return isset($this->sip_server_host);
    }

    public function clearSipServerHost()
    {
        unset($this->sip_server_host);
    }

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

     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_server_host = 6;</code>
     * @return string|null
     */
    public function getSipServerHostUnwrapped()
    {
        return $this->readWrapperValue("sip_server_host");
    }

    /**
     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_server_host = 6;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setSipServerHost($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->sip_server_host = $var;

        return $this;
    }

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

     * Адрес SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_server_host = 6;</code>
     * @param string|null $var
     * @return $this
     */
    public function setSipServerHostUnwrapped($var)
    {
        $this->writeWrapperValue("sip_server_host", $var);
        return $this;}

    /**
     * Порт SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value sip_server_port = 7;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getSipServerPort()
    {
        return $this->sip_server_port;
    }

    public function hasSipServerPort()
    {
        return isset($this->sip_server_port);
    }

    public function clearSipServerPort()
    {
        unset($this->sip_server_port);
    }

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

     * Порт SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value sip_server_port = 7;</code>
     * @return int|null
     */
    public function getSipServerPortUnwrapped()
    {
        return $this->readWrapperValue("sip_server_port");
    }

    /**
     * Порт SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value sip_server_port = 7;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setSipServerPort($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->sip_server_port = $var;

        return $this;
    }

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

     * Порт SIP сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value sip_server_port = 7;</code>
     * @param int|null $var
     * @return $this
     */
    public function setSipServerPortUnwrapped($var)
    {
        $this->writeWrapperValue("sip_server_port", $var);
        return $this;}

    /**
     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_login = 8;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getSipAccountLogin()
    {
        return $this->sip_account_login;
    }

    public function hasSipAccountLogin()
    {
        return isset($this->sip_account_login);
    }

    public function clearSipAccountLogin()
    {
        unset($this->sip_account_login);
    }

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

     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_login = 8;</code>
     * @return string|null
     */
    public function getSipAccountLoginUnwrapped()
    {
        return $this->readWrapperValue("sip_account_login");
    }

    /**
     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_login = 8;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setSipAccountLogin($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->sip_account_login = $var;

        return $this;
    }

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

     * Логин SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_login = 8;</code>
     * @param string|null $var
     * @return $this
     */
    public function setSipAccountLoginUnwrapped($var)
    {
        $this->writeWrapperValue("sip_account_login", $var);
        return $this;}

    /**
     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_password = 9;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getSipAccountPassword()
    {
        return $this->sip_account_password;
    }

    public function hasSipAccountPassword()
    {
        return isset($this->sip_account_password);
    }

    public function clearSipAccountPassword()
    {
        unset($this->sip_account_password);
    }

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

     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_password = 9;</code>
     * @return string|null
     */
    public function getSipAccountPasswordUnwrapped()
    {
        return $this->readWrapperValue("sip_account_password");
    }

    /**
     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_password = 9;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setSipAccountPassword($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->sip_account_password = $var;

        return $this;
    }

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

     * Пароль SIP аккаунта
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue sip_account_password = 9;</code>
     * @param string|null $var
     * @return $this
     */
    public function setSipAccountPasswordUnwrapped($var)
    {
        $this->writeWrapperValue("sip_account_password", $var);
        return $this;}

    /**
     * Адрес STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue stun_server_host = 10;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getStunServerHost()
    {
        return $this->stun_server_host;
    }

    public function hasStunServerHost()
    {
        return isset($this->stun_server_host);
    }

    public function clearStunServerHost()
    {
        unset($this->stun_server_host);
    }

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

     * Адрес STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue stun_server_host = 10;</code>
     * @return string|null
     */
    public function getStunServerHostUnwrapped()
    {
        return $this->readWrapperValue("stun_server_host");
    }

    /**
     * Адрес STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue stun_server_host = 10;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setStunServerHost($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->stun_server_host = $var;

        return $this;
    }

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

     * Адрес STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue stun_server_host = 10;</code>
     * @param string|null $var
     * @return $this
     */
    public function setStunServerHostUnwrapped($var)
    {
        $this->writeWrapperValue("stun_server_host", $var);
        return $this;}

    /**
     * Порт STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value stun_server_port = 11;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getStunServerPort()
    {
        return $this->stun_server_port;
    }

    public function hasStunServerPort()
    {
        return isset($this->stun_server_port);
    }

    public function clearStunServerPort()
    {
        unset($this->stun_server_port);
    }

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

     * Порт STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value stun_server_port = 11;</code>
     * @return int|null
     */
    public function getStunServerPortUnwrapped()
    {
        return $this->readWrapperValue("stun_server_port");
    }

    /**
     * Порт STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value stun_server_port = 11;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setStunServerPort($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->stun_server_port = $var;

        return $this;
    }

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

     * Порт STUN сервера
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value stun_server_port = 11;</code>
     * @param int|null $var
     * @return $this
     */
    public function setStunServerPortUnwrapped($var)
    {
        $this->writeWrapperValue("stun_server_port", $var);
        return $this;}

    /**
     * Момент инициации звонка
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp call_created_at = 12 [(.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 = 12 [(.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\MessageMobilePushCall_Message::class);

