# Google Cloud Contact Center Insights V1 Client - Class TimeSeries (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class TimeSeries.

A time series representing conversations over time.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1 \\ CalculateStatsResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ interval_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The duration of each interval. |
| `↳ points` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.CalculateStatsResponse.TimeSeries.Interval>` An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window. |

### getIntervalDuration

The duration of each interval.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasIntervalDuration

### clearIntervalDuration

### setIntervalDuration

The duration of each interval.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getPoints

An ordered list of intervals from earliest to latest, where each interval
represents the number of conversations that transpired during the time
window.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.CalculateStatsResponse.TimeSeries.Interval>` |   |

### setPoints

An ordered list of intervals from earliest to latest, where each interval
represents the number of conversations that transpired during the time
window.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.CalculateStatsResponse.TimeSeries.Interval>` |

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