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

namespace Keyapis\Notification\V1;

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

/**
 * Фильтр по пуш-токенам
 *
 * Generated from protobuf message <code>keyapis.notification.v1.PushTokenFilter</code>
 */
class PushTokenFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По типам пуш-токенов
     *
     * Generated from protobuf field <code>repeated .keyapis.notification.v1.PushToken.Type types = 1;</code>
     */
    private $types;
    /**
     * По идентификаторам устройств пользователя.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>repeated string user_app_ids = 2;</code>
     */
    private $user_app_ids;
    /**
     * По идентификаторам пользователя
     *
     * Generated from protobuf field <code>repeated int32 user_ids = 3;</code>
     */
    private $user_ids;
    /**
     * От даты создания включительно (>=)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp begin_created_at = 4;</code>
     */
    protected $begin_created_at = null;
    /**
     * До даты создания (<)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_created_at = 5;</code>
     */
    protected $end_created_at = null;
    /**
     * От даты изменения включительно (>=)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp begin_changed_at = 6;</code>
     */
    protected $begin_changed_at = null;
    /**
     * До даты изменения (<)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_changed_at = 7;</code>
     */
    protected $end_changed_at = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $types
     *           По типам пуш-токенов
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $user_app_ids
     *           По идентификаторам устройств пользователя.
     *           # Тип: Guid
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $user_ids
     *           По идентификаторам пользователя
     *     @type \Google\Protobuf\Timestamp $begin_created_at
     *           От даты создания включительно (>=)
     *     @type \Google\Protobuf\Timestamp $end_created_at
     *           До даты создания (<)
     *     @type \Google\Protobuf\Timestamp $begin_changed_at
     *           От даты изменения включительно (>=)
     *     @type \Google\Protobuf\Timestamp $end_changed_at
     *           До даты изменения (<)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Notification\V1\KeyapisNotificationPushTokenV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По типам пуш-токенов
     *
     * Generated from protobuf field <code>repeated .keyapis.notification.v1.PushToken.Type types = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTypes()
    {
        return $this->types;
    }

    /**
     * По типам пуш-токенов
     *
     * Generated from protobuf field <code>repeated .keyapis.notification.v1.PushToken.Type types = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\Notification\V1\PushToken\Type::class);
        $this->types = $arr;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * По идентификаторам пользователя
     *
     * Generated from protobuf field <code>repeated int32 user_ids = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUserIds()
    {
        return $this->user_ids;
    }

    /**
     * По идентификаторам пользователя
     *
     * Generated from protobuf field <code>repeated int32 user_ids = 3;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUserIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->user_ids = $arr;

        return $this;
    }

    /**
     * От даты создания включительно (>=)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp begin_created_at = 4;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getBeginCreatedAt()
    {
        return $this->begin_created_at;
    }

    public function hasBeginCreatedAt()
    {
        return isset($this->begin_created_at);
    }

    public function clearBeginCreatedAt()
    {
        unset($this->begin_created_at);
    }

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

        return $this;
    }

    /**
     * До даты создания (<)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_created_at = 5;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getEndCreatedAt()
    {
        return $this->end_created_at;
    }

    public function hasEndCreatedAt()
    {
        return isset($this->end_created_at);
    }

    public function clearEndCreatedAt()
    {
        unset($this->end_created_at);
    }

    /**
     * До даты создания (<)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_created_at = 5;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setEndCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->end_created_at = $var;

        return $this;
    }

    /**
     * От даты изменения включительно (>=)
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp begin_changed_at = 6;</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 = 6;</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 = 7;</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 = 7;</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;
    }

}

