<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/monitoring/v3/metric.proto

namespace Google\Cloud\Monitoring\V3;

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

/**
 * Represents the values of a time series associated with a
 * TimeSeriesDescriptor.
 *
 * Generated from protobuf message <code>google.monitoring.v3.TimeSeriesData</code>
 */
class TimeSeriesData extends \Google\Protobuf\Internal\Message
{
    /**
     * The values of the labels in the time series identifier, given in the same
     * order as the `label_descriptors` field of the TimeSeriesDescriptor
     * associated with this object. Each value must have a value of the type
     * given in the corresponding entry of `label_descriptors`.
     *
     * Generated from protobuf field <code>repeated .google.monitoring.v3.LabelValue label_values = 1;</code>
     */
    private $label_values;
    /**
     * The points in the time series.
     *
     * Generated from protobuf field <code>repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;</code>
     */
    private $point_data;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Monitoring\V3\LabelValue[]|\Google\Protobuf\Internal\RepeatedField $label_values
     *           The values of the labels in the time series identifier, given in the same
     *           order as the `label_descriptors` field of the TimeSeriesDescriptor
     *           associated with this object. Each value must have a value of the type
     *           given in the corresponding entry of `label_descriptors`.
     *     @type \Google\Cloud\Monitoring\V3\TimeSeriesData\PointData[]|\Google\Protobuf\Internal\RepeatedField $point_data
     *           The points in the time series.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Monitoring\V3\Metric::initOnce();
        parent::__construct($data);
    }

    /**
     * The values of the labels in the time series identifier, given in the same
     * order as the `label_descriptors` field of the TimeSeriesDescriptor
     * associated with this object. Each value must have a value of the type
     * given in the corresponding entry of `label_descriptors`.
     *
     * Generated from protobuf field <code>repeated .google.monitoring.v3.LabelValue label_values = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLabelValues()
    {
        return $this->label_values;
    }

    /**
     * The values of the labels in the time series identifier, given in the same
     * order as the `label_descriptors` field of the TimeSeriesDescriptor
     * associated with this object. Each value must have a value of the type
     * given in the corresponding entry of `label_descriptors`.
     *
     * Generated from protobuf field <code>repeated .google.monitoring.v3.LabelValue label_values = 1;</code>
     * @param \Google\Cloud\Monitoring\V3\LabelValue[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLabelValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\LabelValue::class);
        $this->label_values = $arr;

        return $this;
    }

    /**
     * The points in the time series.
     *
     * Generated from protobuf field <code>repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPointData()
    {
        return $this->point_data;
    }

    /**
     * The points in the time series.
     *
     * Generated from protobuf field <code>repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;</code>
     * @param \Google\Cloud\Monitoring\V3\TimeSeriesData\PointData[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPointData($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\TimeSeriesData\PointData::class);
        $this->point_data = $arr;

        return $this;
    }

}

