<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_control/v1/keyapis_telemetry_control_template_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.TemplateDeviceFilter</code>
 */
class TemplateDeviceFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По типу энергоресурса
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateDevice.MetricType metric_types = 1;</code>
     */
    private $metric_types;
    /**
     * По ID модели счетчика
     *
     * Generated from protobuf field <code>repeated int32 model_ids = 2;</code>
     */
    private $model_ids;
    /**
     * По типу тарифного плана. Для ПУ электроэнергии
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateDevice.PlanType plan_types = 3;</code>
     */
    private $plan_types;
    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_types = 4;</code>
     */
    private $indicator_vendor_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $metric_types
     *           По типу энергоресурса
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $model_ids
     *           По ID модели счетчика
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $plan_types
     *           По типу тарифного плана. Для ПУ электроэнергии
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $indicator_vendor_types
     *           По посреднику получения показаний
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlTemplateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По типу энергоресурса
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateDevice.MetricType metric_types = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMetricTypes()
    {
        return $this->metric_types;
    }

    /**
     * По типу энергоресурса
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateDevice.MetricType metric_types = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMetricTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\TemplateDevice\MetricType::class);
        $this->metric_types = $arr;

        return $this;
    }

    /**
     * По ID модели счетчика
     *
     * Generated from protobuf field <code>repeated int32 model_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getModelIds()
    {
        return $this->model_ids;
    }

    /**
     * По ID модели счетчика
     *
     * Generated from protobuf field <code>repeated int32 model_ids = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setModelIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->model_ids = $arr;

        return $this;
    }

    /**
     * По типу тарифного плана. Для ПУ электроэнергии
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateDevice.PlanType plan_types = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPlanTypes()
    {
        return $this->plan_types;
    }

    /**
     * По типу тарифного плана. Для ПУ электроэнергии
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateDevice.PlanType plan_types = 3;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPlanTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\TemplateDevice\PlanType::class);
        $this->plan_types = $arr;

        return $this;
    }

    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_types = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIndicatorVendorTypes()
    {
        return $this->indicator_vendor_types;
    }

    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_types = 4;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIndicatorVendorTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\TemplateIndicator\VendorType::class);
        $this->indicator_vendor_types = $arr;

        return $this;
    }

}

