<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: centrifugo/api/v1/api.proto

namespace RoadRunner\Centrifugal\API\DTO\V1;

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

/**
 * Generated from protobuf message <code>centrifugal.centrifugo.api.DeviceTopicFilter</code>
 */
class DeviceTopicFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string device_ids = 1;</code>
     */
    private $device_ids;
    /**
     * Generated from protobuf field <code>repeated string device_providers = 2;</code>
     */
    private $device_providers;
    /**
     * Generated from protobuf field <code>repeated string device_platforms = 3;</code>
     */
    private $device_platforms;
    /**
     * Generated from protobuf field <code>repeated string device_users = 4;</code>
     */
    private $device_users;
    /**
     * Generated from protobuf field <code>repeated string topics = 5;</code>
     */
    private $topics;
    /**
     * Generated from protobuf field <code>string topic_prefix = 6;</code>
     */
    protected $topic_prefix = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $device_ids
     *     @type string[] $device_providers
     *     @type string[] $device_platforms
     *     @type string[] $device_users
     *     @type string[] $topics
     *     @type string $topic_prefix
     * }
     */
    public function __construct($data = NULL) {
        \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated string device_ids = 1;</code>
     * @return RepeatedField<string>
     */
    public function getDeviceIds()
    {
        return $this->device_ids;
    }

    /**
     * Generated from protobuf field <code>repeated string device_ids = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setDeviceIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->device_ids = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string device_providers = 2;</code>
     * @return RepeatedField<string>
     */
    public function getDeviceProviders()
    {
        return $this->device_providers;
    }

    /**
     * Generated from protobuf field <code>repeated string device_providers = 2;</code>
     * @param string[] $var
     * @return $this
     */
    public function setDeviceProviders($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->device_providers = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string device_platforms = 3;</code>
     * @return RepeatedField<string>
     */
    public function getDevicePlatforms()
    {
        return $this->device_platforms;
    }

    /**
     * Generated from protobuf field <code>repeated string device_platforms = 3;</code>
     * @param string[] $var
     * @return $this
     */
    public function setDevicePlatforms($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->device_platforms = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string device_users = 4;</code>
     * @return RepeatedField<string>
     */
    public function getDeviceUsers()
    {
        return $this->device_users;
    }

    /**
     * Generated from protobuf field <code>repeated string device_users = 4;</code>
     * @param string[] $var
     * @return $this
     */
    public function setDeviceUsers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->device_users = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string topics = 5;</code>
     * @return RepeatedField<string>
     */
    public function getTopics()
    {
        return $this->topics;
    }

    /**
     * Generated from protobuf field <code>repeated string topics = 5;</code>
     * @param string[] $var
     * @return $this
     */
    public function setTopics($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->topics = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string topic_prefix = 6;</code>
     * @return string
     */
    public function getTopicPrefix()
    {
        return $this->topic_prefix;
    }

    /**
     * Generated from protobuf field <code>string topic_prefix = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setTopicPrefix($var)
    {
        GPBUtil::checkString($var, True);
        $this->topic_prefix = $var;

        return $this;
    }

}

