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

namespace Keyapis\TelemetryMetric\V1;

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

/**
 * Запрос получения количества устройств на больших списках
 *
 * Generated from protobuf message <code>keyapis.telemetry_metric.v1.PostMeasurementReportDateCountRequest</code>
 */
class PostMeasurementReportDateCountRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Сутки в часовом поясе дома, на начало которых строится отчёт.
     * # Формат: YYYY-MM-DD (ISO 8601)
     *
     * Generated from protobuf field <code>string date_at = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $date_at = '';
    /**
     * Список идентификаторов счётчиков.
     * # Если массив пустой, в ответе ничего не возвращается
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 2;</code>
     */
    private $device_ids;
    /**
     * Типы энергоресурсов
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_metric.v1.Measurement.MetricType metric_types = 3;</code>
     */
    private $metric_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $date_at
     *           Сутки в часовом поясе дома, на начало которых строится отчёт.
     *           # Формат: YYYY-MM-DD (ISO 8601)
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_ids
     *           Список идентификаторов счётчиков.
     *           # Если массив пустой, в ответе ничего не возвращается
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $metric_types
     *           Типы энергоресурсов
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryMetric\V1\KeyapisTelemetryMetricMeasurementV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Сутки в часовом поясе дома, на начало которых строится отчёт.
     * # Формат: YYYY-MM-DD (ISO 8601)
     *
     * Generated from protobuf field <code>string date_at = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDateAt()
    {
        return $this->date_at;
    }

    /**
     * Сутки в часовом поясе дома, на начало которых строится отчёт.
     * # Формат: YYYY-MM-DD (ISO 8601)
     *
     * Generated from protobuf field <code>string date_at = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDateAt($var)
    {
        GPBUtil::checkString($var, True);
        $this->date_at = $var;

        return $this;
    }

    /**
     * Список идентификаторов счётчиков.
     * # Если массив пустой, в ответе ничего не возвращается
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceIds()
    {
        return $this->device_ids;
    }

    /**
     * Список идентификаторов счётчиков.
     * # Если массив пустой, в ответе ничего не возвращается
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDeviceIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->device_ids = $arr;

        return $this;
    }

    /**
     * Типы энергоресурсов
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_metric.v1.Measurement.MetricType metric_types = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMetricTypes()
    {
        return $this->metric_types;
    }

    /**
     * Типы энергоресурсов
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_metric.v1.Measurement.MetricType metric_types = 3;</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\TelemetryMetric\V1\Measurement\MetricType::class);
        $this->metric_types = $arr;

        return $this;
    }

}

