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

namespace Keyapis\Vc\V1;

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

/**
 * Бейдж данных мониторинга камеры
 *
 * Generated from protobuf message <code>keyapis.vc.v1.CameraMonitoringBadge</code>
 */
class CameraMonitoringBadge extends \Google\Protobuf\Internal\Message
{
    /**
     * Цвет
     *
     * Generated from protobuf field <code>string color = 1;</code>
     */
    protected $color = '';
    /**
     * Наименование
     *
     * Generated from protobuf field <code>string title = 2;</code>
     */
    protected $title = '';
    /**
     * Дополнительные данные
     *
     * Generated from protobuf field <code>map<string, string> additional_data = 3;</code>
     */
    private $additional_data;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $color
     *           Цвет
     *     @type string $title
     *           Наименование
     *     @type array|\Google\Protobuf\Internal\MapField $additional_data
     *           Дополнительные данные
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcMonitoringV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Цвет
     *
     * Generated from protobuf field <code>string color = 1;</code>
     * @return string
     */
    public function getColor()
    {
        return $this->color;
    }

    /**
     * Цвет
     *
     * Generated from protobuf field <code>string color = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setColor($var)
    {
        GPBUtil::checkString($var, True);
        $this->color = $var;

        return $this;
    }

    /**
     * Наименование
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Наименование
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Дополнительные данные
     *
     * Generated from protobuf field <code>map<string, string> additional_data = 3;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getAdditionalData()
    {
        return $this->additional_data;
    }

    /**
     * Дополнительные данные
     *
     * Generated from protobuf field <code>map<string, string> additional_data = 3;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setAdditionalData($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->additional_data = $arr;

        return $this;
    }

}

