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

Stores the criteria-annotation matching results for each search result item.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ criteria` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Criteria` The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection. |
| `↳ matched_annotations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Annotation>` Matched annotations for the criteria. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed. |

### getCriteria

The criteria used for matching. It can be an input search criteria or a
criteria converted from a facet selection.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Criteria|null` |   |

### hasCriteria

### clearCriteria

### setCriteria

The criteria used for matching. It can be an input search criteria or a
criteria converted from a facet selection.

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

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

### getMatchedAnnotations

Matched annotations for the criteria.

| **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.Annotation>` |   |

### setMatchedAnnotations

Matched annotations for the criteria.

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

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

### getStatus

Status of the match result. Possible values:
FAILED_PRECONDITION - the criteria is not eligible for match.

OK - matching is performed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasStatus

### clearStatus

### setStatus

Status of the match result. Possible values:
FAILED_PRECONDITION - the criteria is not eligible for match.

OK - matching is performed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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