# Google Cloud Vision Ai V1 Client - Class RequestMetadata (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class RequestMetadata.

RequestMetadata is the metadata message for the request.

Generated from protobuf message `google.cloud.visionai.v1.RequestMetadata`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ stream` | `string` Stream name. |
| `↳ event` | `string` Evevt name. |
| `↳ series` | `string` Series name. |
| `↳ lease_id` | `string` Lease id. |
| `↳ owner` | `string` Owner name. |
| `↳ lease_term` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later. |

### getStream

Stream name.

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

### setStream

Stream name.

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

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

### getEvent

Evevt name.

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

### setEvent

Evevt name.

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

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

### getSeries

Series name.

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

### setSeries

Series name.

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

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

### getLeaseId

Lease id.

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

### setLeaseId

Lease id.

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

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

### getOwner

Owner name.

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

### setOwner

Owner name.

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

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

### getLeaseTerm

Lease term specifies how long the client wants the session to be maintained
by the server after the client leaves. If the lease term is not set, the
server will release the session immediately and the client cannot reconnect
to the same session later.

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

### hasLeaseTerm

### clearLeaseTerm

### setLeaseTerm

Lease term specifies how long the client wants the session to be maintained
by the server after the client leaves. If the lease term is not set, the
server will release the session immediately and the client cannot reconnect
to the same session later.

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

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