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 \ V1Methods
__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 |
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 |
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 |
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 |
|