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

namespace Keyapis\Vc\V1;

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

/**
 * Ошибка VCfront
 *
 * Generated from protobuf message <code>keyapis.vc.v1.VcDictionaryError</code>
 */
class VcDictionaryError extends \Google\Protobuf\Internal\Message
{
    /**
     * Сервис
     *
     * Generated from protobuf field <code>string service = 1;</code>
     */
    protected $service = '';
    /**
     * Продукт
     *
     * Generated from protobuf field <code>string product = 2;</code>
     */
    protected $product = '';
    /**
     * Сообщение
     *
     * Generated from protobuf field <code>string message = 3;</code>
     */
    protected $message = '';
    /**
     * Причины
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.VcDictionaryError.Reason reasons = 4;</code>
     */
    private $reasons;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $service
     *           Сервис
     *     @type string $product
     *           Продукт
     *     @type string $message
     *           Сообщение
     *     @type array<\Keyapis\Vc\V1\VcDictionaryError\Reason>|\Google\Protobuf\Internal\RepeatedField $reasons
     *           Причины
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraDictionaryV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Сервис
     *
     * Generated from protobuf field <code>string service = 1;</code>
     * @return string
     */
    public function getService()
    {
        return $this->service;
    }

    /**
     * Сервис
     *
     * Generated from protobuf field <code>string service = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setService($var)
    {
        GPBUtil::checkString($var, True);
        $this->service = $var;

        return $this;
    }

    /**
     * Продукт
     *
     * Generated from protobuf field <code>string product = 2;</code>
     * @return string
     */
    public function getProduct()
    {
        return $this->product;
    }

    /**
     * Продукт
     *
     * Generated from protobuf field <code>string product = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setProduct($var)
    {
        GPBUtil::checkString($var, True);
        $this->product = $var;

        return $this;
    }

    /**
     * Сообщение
     *
     * Generated from protobuf field <code>string message = 3;</code>
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * Сообщение
     *
     * Generated from protobuf field <code>string message = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;

        return $this;
    }

    /**
     * Причины
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.VcDictionaryError.Reason reasons = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getReasons()
    {
        return $this->reasons;
    }

    /**
     * Причины
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.VcDictionaryError.Reason reasons = 4;</code>
     * @param array<\Keyapis\Vc\V1\VcDictionaryError\Reason>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setReasons($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Keyapis\Vc\V1\VcDictionaryError\Reason::class);
        $this->reasons = $arr;

        return $this;
    }

}

