# Google Cloud Vision Ai V1 Client - Class ServerMetadata (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 ServerMetadata.

The message that represents server metadata.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ offset` | `int|string` The offset position for the packet in its stream. |
| `↳ ingest_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server. |

### getOffset

The offset position for the packet in its stream.

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

### setOffset

The offset position for the packet in its stream.

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

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

### getIngestTime

The timestamp at which the stream server receives this packet. This is
based on the local clock of on the server side. It is guaranteed to be
monotonically increasing for the packets within each session; however
this timestamp is not comparable across packets sent to the same stream
different sessions. Session here refers to one individual gRPC streaming
request to the stream server.

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

### hasIngestTime

### clearIngestTime

### setIngestTime

The timestamp at which the stream server receives this packet. This is
based on the local clock of on the server side. It is guaranteed to be
monotonically increasing for the packets within each session; however
this timestamp is not comparable across packets sent to the same stream
different sessions. Session here refers to one individual gRPC streaming
request to the stream server.

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

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