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

Message of content of appPlatform event

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ event_message` | `string` Human readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!". |
| `↳ payload` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` For the case of Pub/Sub, it will be stored in the message attributes. ​​pubsub.proto |
| `↳ event_id` | `string` User defined Event Id, used to classify event, within a delivery interval, events from the same application instance with the same id will be de-duplicated \& only first one will be sent out. Empty event_id will be treated as "". |

### getEventMessage

Human readable string of the event like "There are more than 6 people in
the scene". or "Shelf is empty!".

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

### setEventMessage

Human readable string of the event like "There are more than 6 people in
the scene". or "Shelf is empty!".

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

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

### getPayload

For the case of Pub/Sub, it will be stored in the message attributes.

​​pubsub.proto

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

### hasPayload

### clearPayload

### setPayload

For the case of Pub/Sub, it will be stored in the message attributes.

​​pubsub.proto

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

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

### getEventId

User defined Event Id, used to classify event, within a delivery interval,
events from the same application instance with the same id will be
de-duplicated \& only first one will be sent out. Empty event_id will be
treated as "".

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

### setEventId

User defined Event Id, used to classify event, within a delivery interval,
events from the same application instance with the same id will be
de-duplicated \& only first one will be sent out. Empty event_id will be
treated as "".

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

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