Google Cloud Vision Ai V1 Client - Class AnnotationMatchingResult (0.3.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
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
Returns
Type
Description
$this

getMatchedAnnotations

Matched annotations for the criteria.

Returns
Type
Description

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

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
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: