<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_control/v1/keyapis_telemetry_control_device_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.DeviceIndicatorMetricPointFilter</code>
 */
class DeviceIndicatorMetricPointFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По Идентификатору индикатора
     *
     * Generated from protobuf field <code>repeated int32 indicator_id = 1;</code>
     */
    private $indicator_id;
    /**
     * По Идентификатору ТУ
     *
     * Generated from protobuf field <code>repeated string metric_point_id = 2;</code>
     */
    private $metric_point_id;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $indicator_id
     *           По Идентификатору индикатора
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $metric_point_id
     *           По Идентификатору ТУ
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По Идентификатору индикатора
     *
     * Generated from protobuf field <code>repeated int32 indicator_id = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIndicatorId()
    {
        return $this->indicator_id;
    }

    /**
     * По Идентификатору индикатора
     *
     * Generated from protobuf field <code>repeated int32 indicator_id = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIndicatorId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->indicator_id = $arr;

        return $this;
    }

    /**
     * По Идентификатору ТУ
     *
     * Generated from protobuf field <code>repeated string metric_point_id = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMetricPointId()
    {
        return $this->metric_point_id;
    }

    /**
     * По Идентификатору ТУ
     *
     * Generated from protobuf field <code>repeated string metric_point_id = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMetricPointId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->metric_point_id = $arr;

        return $this;
    }

}

