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

namespace Deviceapis\Device\V1;

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

/**
 * Настройки RTSP
 *
 * Generated from protobuf message <code>deviceapis.device.v1.Rtsp</code>
 */
class Rtsp extends \Google\Protobuf\Internal\Message
{
    /**
     * Флаг включения RTSP сервера
     *
     * Generated from protobuf field <code>bool is_rtsp_server_on = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $is_rtsp_server_on = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_rtsp_server_on
     *           Флаг включения RTSP сервера
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceRtspV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Флаг включения RTSP сервера
     *
     * Generated from protobuf field <code>bool is_rtsp_server_on = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return bool
     */
    public function getIsRtspServerOn()
    {
        return $this->is_rtsp_server_on;
    }

    /**
     * Флаг включения RTSP сервера
     *
     * Generated from protobuf field <code>bool is_rtsp_server_on = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setIsRtspServerOn($var)
    {
        GPBUtil::checkBool($var);
        $this->is_rtsp_server_on = $var;

        return $this;
    }

}

