# Google Cloud Video Live Stream V1 Client - Class TimecodeConfig (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class TimecodeConfig.

Timecode configuration.

Generated from protobuf message `google.cloud.video.livestream.v1.TimecodeConfig`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `int` The source of the timecode that will later be used in outputs/manifests. It determines the initial timecode/timestamp (first frame) of output streams. |
| `↳ utc_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` UTC offset. Must be whole seconds, between -18 hours and +18 hours. |
| `↳ time_zone` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeZone.html` Time zone e.g. "America/Los_Angeles". |

### getSource

The source of the timecode that will later be used in outputs/manifests.

It determines the initial timecode/timestamp (first frame) of output
streams.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TimecodeSource](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.TimecodeConfig.TimecodeSource). |

### setSource

The source of the timecode that will later be used in outputs/manifests.

It determines the initial timecode/timestamp (first frame) of output
streams.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TimecodeSource](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.TimecodeConfig.TimecodeSource). |

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

### getUtcOffset

UTC offset. Must be whole seconds, between -18 hours and +18 hours.

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

### hasUtcOffset

### setUtcOffset

UTC offset. Must be whole seconds, between -18 hours and +18 hours.

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

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

### getTimeZone

Time zone e.g. "America/Los_Angeles".

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

### hasTimeZone

### setTimeZone

Time zone e.g. "America/Los_Angeles".

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

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

### getTimeOffset

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