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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ annotations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.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<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformEventBody>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AppPlatformEventBody>` |

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