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

namespace Keyapis\TelemetryControl\V1;

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

/**
 * Фильтр для запроса моделей приборов учета.
 * При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ.
 * При передаче нескольких разных параметров фильтра они работают в выборке через И
 *
 * Generated from protobuf message <code>keyapis.telemetry_control.v1.DictionaryDeviceModelFilter</code>
 */
class DictionaryDeviceModelFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По заголовку элемента
     *
     * Generated from protobuf field <code>repeated string titles = 1;</code>
     */
    private $titles;
    /**
     * По типам модели
     *
     * Generated from protobuf field <code>repeated string model_kinds = 2;</code>
     */
    private $model_kinds;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $titles
     *           По заголовку элемента
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $model_kinds
     *           По типам модели
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlDictionaryV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По заголовку элемента
     *
     * Generated from protobuf field <code>repeated string titles = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTitles()
    {
        return $this->titles;
    }

    /**
     * По заголовку элемента
     *
     * Generated from protobuf field <code>repeated string titles = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTitles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->titles = $arr;

        return $this;
    }

    /**
     * По типам модели
     *
     * Generated from protobuf field <code>repeated string model_kinds = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getModelKinds()
    {
        return $this->model_kinds;
    }

    /**
     * По типам модели
     *
     * Generated from protobuf field <code>repeated string model_kinds = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setModelKinds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->model_kinds = $arr;

        return $this;
    }

}

