<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/multiapp/v1/keyapis_multiapp_partner_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.PartnerFilter</code>
 */
class PartnerFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     */
    protected $text = null;
    /**
     * От даты обновления партнера включительно (больше или равно)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp begin_changed_at = 2;</code>
     */
    protected $begin_changed_at = null;
    /**
     * До даты обновления партнера (меньше)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_changed_at = 3;</code>
     */
    protected $end_changed_at = null;
    /**
     * По идентификаторам доступных шаблонов.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>repeated string template_ids = 4;</code>
     */
    private $template_ids;
    /**
     * Показывать удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_show_deleted = 5;</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 \Google\Protobuf\Timestamp $begin_changed_at
     *           От даты обновления партнера включительно (больше или равно)
     *     @type \Google\Protobuf\Timestamp $end_changed_at
     *           До даты обновления партнера (меньше)
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $template_ids
     *           По идентификаторам доступных шаблонов.
     *           # Тип: Guid
     *     @type \Google\Protobuf\BoolValue $is_show_deleted
     *           Показывать удаленные
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Multiapp\V1\KeyapisMultiappPartnerV1::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;}

    /**
     * От даты обновления партнера включительно (больше или равно)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp begin_changed_at = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getBeginChangedAt()
    {
        return $this->begin_changed_at;
    }

    public function hasBeginChangedAt()
    {
        return isset($this->begin_changed_at);
    }

    public function clearBeginChangedAt()
    {
        unset($this->begin_changed_at);
    }

    /**
     * От даты обновления партнера включительно (больше или равно)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp begin_changed_at = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setBeginChangedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->begin_changed_at = $var;

        return $this;
    }

    /**
     * До даты обновления партнера (меньше)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_changed_at = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getEndChangedAt()
    {
        return $this->end_changed_at;
    }

    public function hasEndChangedAt()
    {
        return isset($this->end_changed_at);
    }

    public function clearEndChangedAt()
    {
        unset($this->end_changed_at);
    }

    /**
     * До даты обновления партнера (меньше)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_changed_at = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setEndChangedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->end_changed_at = $var;

        return $this;
    }

    /**
     * По идентификаторам доступных шаблонов.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>repeated string template_ids = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTemplateIds()
    {
        return $this->template_ids;
    }

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

        return $this;
    }

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

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

}

