Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class AppPlatformCloudFunctionRequest.
For any cloud function based customer processing logic, customer's cloud function is expected to receive AppPlatformCloudFunctionRequest as request and send back AppPlatformCloudFunctionResponse as response.
Message of request from AppPlatform to Cloud Function.
Generated from protobuf message google.cloud.visionai.v1.AppPlatformCloudFunctionRequest
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ app_platform_metadata |
AppPlatformMetadata
The metadata of the AppPlatform for customer to identify the source of the payload. |
↳ annotations |
array<AppPlatformCloudFunctionRequest\StructedInputAnnotation>
The actual annotations to be processed by the customized Cloud Function. |
getAppPlatformMetadata
The metadata of the AppPlatform for customer to identify the source of the payload.
| Returns | |
|---|---|
| Type | Description |
AppPlatformMetadata|null |
|
hasAppPlatformMetadata
clearAppPlatformMetadata
setAppPlatformMetadata
The metadata of the AppPlatform for customer to identify the source of the payload.
| Parameter | |
|---|---|
| Name | Description |
var |
AppPlatformMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnnotations
The actual annotations to be processed by the customized Cloud Function.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAnnotations
The actual annotations to be processed by the customized Cloud Function.
| Parameter | |
|---|---|
| Name | Description |
var |
array<AppPlatformCloudFunctionRequest\StructedInputAnnotation>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|