# Google Cloud Chronicle V1 Client - Class Input (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class Input.

Input to the query like time window.

Generated from protobuf message `google.cloud.chronicle.v1.DashboardQuery.Input`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1 \\ DashboardQuery

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ time_window` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` time range to fetch the data for. |
| `↳ relative_time` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardQuery.Input.RelativeTime` time range for last x units. |

### getTimeWindow

time range to fetch the data for.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html|null` |   |

### hasTimeWindow

### setTimeWindow

time range to fetch the data for.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` |

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

### getRelativeTime

time range for last x units.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardQuery.Input.RelativeTime|null` |   |

### hasRelativeTime

### setRelativeTime

time range for last x units.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardQuery.Input.RelativeTime` |

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

### getTimeInput

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |