Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class ImageQuery.
Image query for search endpoint request.
Generated from protobuf message google.cloud.visionai.v1.ImageQuery
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ input_image |
string
Input image in raw bytes. |
↳ asset |
string
Resource name of the asset. Only supported in IMAGE corpus type. Format: |
getInputImage
Input image in raw bytes.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasInputImage
setInputImage
Input image in raw bytes.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAsset
Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
hasAsset
setAsset
Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImage
| Returns | |
|---|---|
| Type | Description |
string |
|