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

namespace Keyapis\AccessManagement\V1;

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

/**
 * Ошибки валидации.
 * Эти проверки выполняются до обращения в базу данных
 *
 * Generated from protobuf message <code>keyapis.access_management.v1.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\AccessManagement\V1\KeyapisAccessManagementGroupV1::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;
    }

}

