# Google Cloud Chronicle V1 Client - Class RelativeTime (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 RelativeTime.

time representation for last x units.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ time_unit` | `int` |
| `↳ start_time_val` | `int|string` |

### getTimeUnit

Generated from protobuf field `.google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setTimeUnit

Generated from protobuf field `.google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getStartTimeVal

Generated from protobuf field `int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### setStartTimeVal

Generated from protobuf field `int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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