<?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.NotificationTemplateFilter</code>
 */
class NotificationTemplateFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Заголовок шаблона;
     * # - Тело шаблона;
     * # - Системное наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     */
    protected $text = null;
    /**
     * По идентификаторам партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>repeated string partner_ids = 2;</code>
     */
    private $partner_ids;
    /**
     * Показывать удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_show_deleted = 3;</code>
     */
    protected $is_show_deleted = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\StringValue $text
     *           По тексту.
     *           Если значение не передано то поиск по нему не производится.
     *           # Диапазон: 3..64.
     *           # Поиск производится по полям:
     *           # - Заголовок шаблона;
     *           # - Тело шаблона;
     *           # - Системное наименование
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $partner_ids
     *           По идентификаторам партнера.
     *           # Тип: Guid
     *     @type \Google\Protobuf\BoolValue $is_show_deleted
     *           Показывать удаленные
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Multiapp\V1\KeyapisMultiappNotificationTemplateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Заголовок шаблона;
     * # - Тело шаблона;
     * # - Системное наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getText()
    {
        return $this->text;
    }

    public function hasText()
    {
        return isset($this->text);
    }

    public function clearText()
    {
        unset($this->text);
    }

    /**
     * Returns the unboxed value from <code>getText()</code>

     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Заголовок шаблона;
     * # - Тело шаблона;
     * # - Системное наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     * @return string|null
     */
    public function getTextUnwrapped()
    {
        return $this->readWrapperValue("text");
    }

    /**
     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Заголовок шаблона;
     * # - Тело шаблона;
     * # - Системное наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->text = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Заголовок шаблона;
     * # - Тело шаблона;
     * # - Системное наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     * @param string|null $var
     * @return $this
     */
    public function setTextUnwrapped($var)
    {
        $this->writeWrapperValue("text", $var);
        return $this;}

    /**
     * По идентификаторам партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>repeated string partner_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPartnerIds()
    {
        return $this->partner_ids;
    }

    /**
     * По идентификаторам партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>repeated string partner_ids = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPartnerIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->partner_ids = $arr;

        return $this;
    }

    /**
     * Показывать удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_show_deleted = 3;</code>
     * @return \Google\Protobuf\BoolValue|null
     */
    public function getIsShowDeleted()
    {
        return $this->is_show_deleted;
    }

    public function hasIsShowDeleted()
    {
        return isset($this->is_show_deleted);
    }

    public function clearIsShowDeleted()
    {
        unset($this->is_show_deleted);
    }

    /**
     * Returns the unboxed value from <code>getIsShowDeleted()</code>

     * Показывать удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_show_deleted = 3;</code>
     * @return bool|null
     */
    public function getIsShowDeletedUnwrapped()
    {
        return $this->readWrapperValue("is_show_deleted");
    }

    /**
     * Показывать удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_show_deleted = 3;</code>
     * @param \Google\Protobuf\BoolValue $var
     * @return $this
     */
    public function setIsShowDeleted($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
        $this->is_show_deleted = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

     * Показывать удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_show_deleted = 3;</code>
     * @param bool|null $var
     * @return $this
     */
    public function setIsShowDeletedUnwrapped($var)
    {
        $this->writeWrapperValue("is_show_deleted", $var);
        return $this;}

}

