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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ app_platform_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformMetadata` The metadata of the AppPlatform for customer to identify the source of the payload. |
| `↳ annotations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformMetadata|null` |   |

### hasAppPlatformMetadata

### clearAppPlatformMetadata

### setAppPlatformMetadata

The metadata of the AppPlatform for customer to identify the source of the
payload.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformMetadata` |

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

### getAnnotations

The actual annotations to be processed by the customized Cloud Function.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformCloudFunctionRequest.StructedInputAnnotation>` |   |

### setAnnotations

The actual annotations to be processed by the customized Cloud Function.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformCloudFunctionRequest.StructedInputAnnotation>` |

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