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

namespace Keyapis\TelemetryControl\V1\TemplateDeviceFilter;

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

/**
 * Ошибки валидации.
 * Эти проверки выполняются до обращения в базу данных
 *
 * Generated from protobuf message <code>keyapis.telemetry_control.v1.TemplateDeviceFilter.ValidationError</code>
 */
class ValidationError extends \Google\Protobuf\Internal\Message
{
    /**
     * Путь к полю в формате наименования protobuf
     *
     * Generated from protobuf field <code>string path = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $path = '';
    /**
     * Валидационное сообщение
     *
     * Generated from protobuf field <code>string message = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $path
     *           Путь к полю в формате наименования protobuf
     *     @type string $message
     *           Валидационное сообщение
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlTemplateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Путь к полю в формате наименования protobuf
     *
     * Generated from protobuf field <code>string path = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * Путь к полю в формате наименования protobuf
     *
     * Generated from protobuf field <code>string path = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

    /**
     * Валидационное сообщение
     *
     * Generated from protobuf field <code>string message = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * Валидационное сообщение
     *
     * Generated from protobuf field <code>string message = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValidationError::class, \Keyapis\TelemetryControl\V1\TemplateDeviceFilter_ValidationError::class);

