# Google Cloud Video Stitcher V1 Client - Class Event (1.2.0)

1.2.0 (latest) 1.1.2 1.0.4 0.9.1 0.8.4 0.7.3 0.6.2 0.5.1 0.3.4 Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class Event.

Describes an event and a trigger URI.

Generated from protobuf message `google.cloud.video.stitcher.v1.Event`

## Namespace

Google \\ Cloud \\ Video \\ Stitcher \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Describes the event that occurred. |
| `↳ uri` | `string` The URI to trigger for this event. |
| `↳ id` | `string` The ID of the event. |
| `↳ offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The offset in seconds if the event type is `PROGRESS`. |

### getType

Describes the event that occurred.

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

### setType

Describes the event that occurred.

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

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

### getUri

The URI to trigger for this event.

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

### setUri

The URI to trigger for this event.

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

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

### getId

The ID of the event.

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

### setId

The ID of the event.

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

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

### getOffset

The offset in seconds if the event type is `PROGRESS`.

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

### hasOffset

### clearOffset

### setOffset

The offset in seconds if the event type is `PROGRESS`.

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

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