Google Cloud Vision Ai V1 Client - Class SearchHypernym (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class SearchHypernym.

Search resource: SearchHypernym.

For example, { hypernym: "vehicle" hyponyms: ["sedan", "truck"] } This means in SMART_SEARCH mode, searching for "vehicle" will also return results with "sedan" or "truck" as annotations.

Generated from protobuf message google.cloud.visionai.v1.SearchHypernym

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

↳ hypernym string

Optional. The hypernym.

↳ hyponyms array

Optional. Hyponyms that the hypernym is mapped to.

getName

Resource name of the SearchHypernym.

Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

Returns
Type Description
string

setName

Resource name of the SearchHypernym.

Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

Parameter
Name Description
var string
Returns
Type Description
$this

getHypernym

Optional. The hypernym.

Returns
Type Description
string

setHypernym

Optional. The hypernym.

Parameter
Name Description
var string
Returns
Type Description
$this

getHyponyms

Optional. Hyponyms that the hypernym is mapped to.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setHyponyms

Optional. Hyponyms that the hypernym is mapped to.

Parameter
Name Description
var string[]
Returns
Type Description
$this