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

Prediction output format for Image and Text Classification.

Generated from protobuf message `google.cloud.visionai.v1.ClassificationPredictionResult`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ids` | `int[]|string[]` The resource IDs of the AnnotationSpecs that had been identified. |
| `↳ display_names` | `string[]` The display names of the AnnotationSpecs that had been identified, order matches the IDs. |
| `↳ confidences` | `float[]` The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids. |

### getIds

The resource IDs of the AnnotationSpecs that had been identified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setIds

The resource IDs of the AnnotationSpecs that had been identified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]|string[]` |

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

### getDisplayNames

The display names of the AnnotationSpecs that had been identified, order
matches the IDs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDisplayNames

The display names of the AnnotationSpecs that had been identified, order
matches the IDs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getConfidences

The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence. Order matches the Ids.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<float>` |   |

### setConfidences

The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence. Order matches the Ids.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float[]` |

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