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

namespace Keyapis\Exchange\V1\SendingSmsTask;

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

/**
 * Переменные шаблона
 *
 * Generated from protobuf message <code>keyapis.exchange.v1.SendingSmsTask.TemplateVariable</code>
 */
class TemplateVariable extends \Google\Protobuf\Internal\Message
{
    /**
     * Наименование
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $name = '';
    /**
     * Значение
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $value = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Наименование
     *     @type string $value
     *           Значение
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Exchange\V1\KeyapisExchangeEventsV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Наименование
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Наименование
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Значение
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Значение
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->value = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TemplateVariable::class, \Keyapis\Exchange\V1\SendingSmsTask_TemplateVariable::class);

