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

namespace Deviceapis\Device\V1;

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

/**
 * Настройки OSD
 *
 * Generated from protobuf message <code>deviceapis.device.v1.SafeCityOsd</code>
 */
class SafeCityOsd extends \Google\Protobuf\Internal\Message
{
    /**
     * Флаг включения OSD
     *
     * Generated from protobuf field <code>bool is_osd_enabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $is_osd_enabled = false;
    /**
     * Текст
     *
     * Generated from protobuf field <code>string textline = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $textline = '';
    /**
     * Размер текста, пикселей
     *
     * Generated from protobuf field <code>int32 textsize = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $textsize = 0;
    /**
     * Размещение текста
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.SafeCityOsd.PlacementType placement_type = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $placement_type = 0;
    /**
     * Вариант добавления даты
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.SafeCityOsd.ShowDatetimeType show_datetime_type = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $show_datetime_type = 0;
    /**
     * Флаг отображения количества кадров в секунду
     *
     * Generated from protobuf field <code>bool is_show_fps = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $is_show_fps = false;
    /**
     * Флаг отображения битрейта
     *
     * Generated from protobuf field <code>bool is_show_bitrate = 7;</code>
     */
    protected $is_show_bitrate = false;
    /**
     * Флаг отображения количества потоков
     *
     * Generated from protobuf field <code>bool is_show_count_of_streams = 8;</code>
     */
    protected $is_show_count_of_streams = false;
    /**
     * Флаг отображения имени устройства
     *
     * Generated from protobuf field <code>bool is_show_name_of_device = 9;</code>
     */
    protected $is_show_name_of_device = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_osd_enabled
     *           Флаг включения OSD
     *     @type string $textline
     *           Текст
     *     @type int $textsize
     *           Размер текста, пикселей
     *     @type int $placement_type
     *           Размещение текста
     *     @type int $show_datetime_type
     *           Вариант добавления даты
     *     @type bool $is_show_fps
     *           Флаг отображения количества кадров в секунду
     *     @type bool $is_show_bitrate
     *           Флаг отображения битрейта
     *     @type bool $is_show_count_of_streams
     *           Флаг отображения количества потоков
     *     @type bool $is_show_name_of_device
     *           Флаг отображения имени устройства
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceSafeOsdV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Текст
     *
     * Generated from protobuf field <code>string textline = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getTextline()
    {
        return $this->textline;
    }

    /**
     * Текст
     *
     * Generated from protobuf field <code>string textline = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setTextline($var)
    {
        GPBUtil::checkString($var, True);
        $this->textline = $var;

        return $this;
    }

    /**
     * Размер текста, пикселей
     *
     * Generated from protobuf field <code>int32 textsize = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return int
     */
    public function getTextsize()
    {
        return $this->textsize;
    }

    /**
     * Размер текста, пикселей
     *
     * Generated from protobuf field <code>int32 textsize = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setTextsize($var)
    {
        GPBUtil::checkInt32($var);
        $this->textsize = $var;

        return $this;
    }

    /**
     * Размещение текста
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.SafeCityOsd.PlacementType placement_type = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return int
     */
    public function getPlacementType()
    {
        return $this->placement_type;
    }

    /**
     * Размещение текста
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.SafeCityOsd.PlacementType placement_type = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setPlacementType($var)
    {
        GPBUtil::checkEnum($var, \Deviceapis\Device\V1\SafeCityOsd\PlacementType::class);
        $this->placement_type = $var;

        return $this;
    }

    /**
     * Вариант добавления даты
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.SafeCityOsd.ShowDatetimeType show_datetime_type = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return int
     */
    public function getShowDatetimeType()
    {
        return $this->show_datetime_type;
    }

    /**
     * Вариант добавления даты
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.SafeCityOsd.ShowDatetimeType show_datetime_type = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setShowDatetimeType($var)
    {
        GPBUtil::checkEnum($var, \Deviceapis\Device\V1\SafeCityOsd\ShowDatetimeType::class);
        $this->show_datetime_type = $var;

        return $this;
    }

    /**
     * Флаг отображения количества кадров в секунду
     *
     * Generated from protobuf field <code>bool is_show_fps = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return bool
     */
    public function getIsShowFps()
    {
        return $this->is_show_fps;
    }

    /**
     * Флаг отображения количества кадров в секунду
     *
     * Generated from protobuf field <code>bool is_show_fps = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setIsShowFps($var)
    {
        GPBUtil::checkBool($var);
        $this->is_show_fps = $var;

        return $this;
    }

    /**
     * Флаг отображения битрейта
     *
     * Generated from protobuf field <code>bool is_show_bitrate = 7;</code>
     * @return bool
     */
    public function getIsShowBitrate()
    {
        return $this->is_show_bitrate;
    }

    /**
     * Флаг отображения битрейта
     *
     * Generated from protobuf field <code>bool is_show_bitrate = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsShowBitrate($var)
    {
        GPBUtil::checkBool($var);
        $this->is_show_bitrate = $var;

        return $this;
    }

    /**
     * Флаг отображения количества потоков
     *
     * Generated from protobuf field <code>bool is_show_count_of_streams = 8;</code>
     * @return bool
     */
    public function getIsShowCountOfStreams()
    {
        return $this->is_show_count_of_streams;
    }

    /**
     * Флаг отображения количества потоков
     *
     * Generated from protobuf field <code>bool is_show_count_of_streams = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsShowCountOfStreams($var)
    {
        GPBUtil::checkBool($var);
        $this->is_show_count_of_streams = $var;

        return $this;
    }

    /**
     * Флаг отображения имени устройства
     *
     * Generated from protobuf field <code>bool is_show_name_of_device = 9;</code>
     * @return bool
     */
    public function getIsShowNameOfDevice()
    {
        return $this->is_show_name_of_device;
    }

    /**
     * Флаг отображения имени устройства
     *
     * Generated from protobuf field <code>bool is_show_name_of_device = 9;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsShowNameOfDevice($var)
    {
        GPBUtil::checkBool($var);
        $this->is_show_name_of_device = $var;

        return $this;
    }

}

