# Stackdriver Monitoring V3 Client - Class PointData (2.2.2)

2.2.2 (latest) 2.2.1 2.1.2 2.0.1 1.12.1 1.11.1 1.10.3 1.9.0 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.2 1.2.2 Reference documentation and code samples for the Stackdriver Monitoring V3 Client class PointData.

A point's value columns and time interval. Each point has one or more
point values corresponding to the entries in `point_descriptors` field in
the TimeSeriesDescriptor associated with this object.

Generated from protobuf message `google.monitoring.v3.TimeSeriesData.PointData`

## Namespace

Google \\ Cloud \\ Monitoring \\ V3 \\ TimeSeriesData

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ values` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TypedValue>` The values that make up the point. |
| `↳ time_interval` | `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TimeInterval` The time interval associated with the point. |

### getValues

The values that make up the point.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TypedValue>` |   |

### setValues

The values that make up the point.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TypedValue>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTimeInterval

The time interval associated with the point.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TimeInterval|null` |   |

### hasTimeInterval

### clearTimeInterval

### setTimeInterval

The time interval associated with the point.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.TimeInterval` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |