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

namespace Keyapis\Multiapp\V1;

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

/**
 * Связь шаблона уведомлений и партнера.
 * # Описание модели
 *
 * Generated from protobuf message <code>keyapis.multiapp.v1.NotificationTemplatePartner</code>
 */
class NotificationTemplatePartner extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор шаблона уведомления.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string notification_template_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $notification_template_id = '';
    /**
     * Идентификатор партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string partner_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $partner_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $notification_template_id
     *           Идентификатор шаблона уведомления.
     *           # Тип: Guid
     *     @type string $partner_id
     *           Идентификатор партнера.
     *           # Тип: Guid
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Multiapp\V1\KeyapisMultiappNotificationTemplateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор шаблона уведомления.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string notification_template_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getNotificationTemplateId()
    {
        return $this->notification_template_id;
    }

    /**
     * Идентификатор шаблона уведомления.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string notification_template_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setNotificationTemplateId($var)
    {
        GPBUtil::checkString($var, True);
        $this->notification_template_id = $var;

        return $this;
    }

    /**
     * Идентификатор партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string partner_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPartnerId()
    {
        return $this->partner_id;
    }

    /**
     * Идентификатор партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string partner_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPartnerId($var)
    {
        GPBUtil::checkString($var, True);
        $this->partner_id = $var;

        return $this;
    }

}

