Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class AppPlatformCloudFunctionResponse.
Message of the response from customer's Cloud Function to AppPlatform.
Generated from protobuf message google.cloud.visionai.v1.AppPlatformCloudFunctionResponse
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ annotations |
array<AppPlatformCloudFunctionResponse\StructedOutputAnnotation>
The modified annotations that is returned back to AppPlatform. If the annotations fields are empty, then those annotations will be dropped by AppPlatform. |
↳ annotation_passthrough |
bool
If set to true, AppPlatform will use original annotations instead of dropping them, even if it is empty in the annotations filed. |
↳ events |
array<AppPlatformEventBody>
The event notifications that is returned back to AppPlatform. Typically it will then be configured to be consumed/forwared to a operator that handles events, such as Pub/Sub operator. |
getAnnotations
The modified annotations that is returned back to AppPlatform.
If the annotations fields are empty, then those annotations will be dropped by AppPlatform.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAnnotations
The modified annotations that is returned back to AppPlatform.
If the annotations fields are empty, then those annotations will be dropped by AppPlatform.
| Parameter | |
|---|---|
| Name | Description |
var |
array<AppPlatformCloudFunctionResponse\StructedOutputAnnotation>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnnotationPassthrough
If set to true, AppPlatform will use original annotations instead of dropping them, even if it is empty in the annotations filed.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setAnnotationPassthrough
If set to true, AppPlatform will use original annotations instead of dropping them, even if it is empty in the annotations filed.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEvents
The event notifications that is returned back to AppPlatform. Typically it will then be configured to be consumed/forwared to a operator that handles events, such as Pub/Sub operator.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setEvents
The event notifications that is returned back to AppPlatform. Typically it will then be configured to be consumed/forwared to a operator that handles events, such as Pub/Sub operator.
| Parameter | |
|---|---|
| Name | Description |
var |
array<AppPlatformEventBody>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|