Monitoring/src/V3/TimeSeries.php
public function setPoints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\Point::class);
        $this->points = $arr;

        return $this;
    }
public function setPoints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\Point::class);
        $this->points = $arr;

        return $this;
    }
public function setPoints ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Monitoring \ V3 \ Point :: class ) ; $ this -> points = $ arr ; return $ this ; }
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.

Generated from protobuf field <code>repeated .google.monitoring.v3.Point points = 5;</code>
@param \Google\Cloud\Monitoring\V3\Point[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The data points of this time series . When listing time series points are returned in reverse time order . When creating a time series this field must contain exactly one point and the point s type must be the same as the value type of the associated metric . If the associated metric s descriptor must be auto - created then the value type of the descriptor is determined by the point s type which must be BOOL INT64 DOUBLE or DISTRIBUTION .