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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ criteria |
Criteria
The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection. |
↳ matched_annotations |
array<Annotation>
Matched annotations for the criteria. |
↳ status |
Google\Rpc\Status
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 |
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 |
Criteria
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMatchedAnnotations
Matched annotations for the criteria.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setMatchedAnnotations
Matched annotations for the criteria.
| Parameter | |
|---|---|
| Name | Description |
var |
array<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 |
Google\Rpc\Status|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 |
Google\Rpc\Status
|
| Returns | |
|---|---|
| Type | Description |
$this |
|