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

namespace Deviceapis\Device\V1\GetSafeCityEmergencyStatusResponse;

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

/**
 * Статус оповещения
 *
 * Generated from protobuf message <code>deviceapis.device.v1.GetSafeCityEmergencyStatusResponse.CurrentStatus</code>
 */
class CurrentStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * Признак работающего оповещения в текущий момент
     *
     * Generated from protobuf field <code>bool is_running = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $is_running = false;
    /**
     * Тип проигрывания
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.EmergencyScenario.PlayOrderType emergency_scenario_play_order_type = 2;</code>
     */
    protected $emergency_scenario_play_order_type = 0;
    /**
     * Имя файла
     *
     * Generated from protobuf field <code>string file_name = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $file_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_running
     *           Признак работающего оповещения в текущий момент
     *     @type int $emergency_scenario_play_order_type
     *           Тип проигрывания
     *     @type string $file_name
     *           Имя файла
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceSafeEmergencyV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Признак работающего оповещения в текущий момент
     *
     * Generated from protobuf field <code>bool is_running = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return bool
     */
    public function getIsRunning()
    {
        return $this->is_running;
    }

    /**
     * Признак работающего оповещения в текущий момент
     *
     * Generated from protobuf field <code>bool is_running = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param bool $var
     * @return $this
     */
    public function setIsRunning($var)
    {
        GPBUtil::checkBool($var);
        $this->is_running = $var;

        return $this;
    }

    /**
     * Тип проигрывания
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.EmergencyScenario.PlayOrderType emergency_scenario_play_order_type = 2;</code>
     * @return int
     */
    public function getEmergencyScenarioPlayOrderType()
    {
        return $this->emergency_scenario_play_order_type;
    }

    /**
     * Тип проигрывания
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.EmergencyScenario.PlayOrderType emergency_scenario_play_order_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setEmergencyScenarioPlayOrderType($var)
    {
        GPBUtil::checkEnum($var, \Deviceapis\Device\V1\EmergencyScenario\PlayOrderType::class);
        $this->emergency_scenario_play_order_type = $var;

        return $this;
    }

    /**
     * Имя файла
     *
     * Generated from protobuf field <code>string file_name = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getFileName()
    {
        return $this->file_name;
    }

    /**
     * Имя файла
     *
     * Generated from protobuf field <code>string file_name = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setFileName($var)
    {
        GPBUtil::checkString($var, True);
        $this->file_name = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CurrentStatus::class, \Deviceapis\Device\V1\GetSafeCityEmergencyStatusResponse_CurrentStatus::class);

