Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ImageMetadata.
Metadata about an image from the web search.
Generated from protobuf message google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ GenerateGroundedContentResponse \ Candidate \ GroundingMetadataMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ image |
ImageMetadata\Image
Metadata about the full size image. |
↳ thumbnail |
ImageMetadata\Image
Metadata about the thumbnail. |
↳ source |
ImageMetadata\WebsiteInfo
The details about the website that the image is from. |
getImage
Metadata about the full size image.
| Returns | |
|---|---|
| Type | Description |
ImageMetadata\Image|null |
|
hasImage
clearImage
setImage
Metadata about the full size image.
| Parameter | |
|---|---|
| Name | Description |
var |
ImageMetadata\Image
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getThumbnail
Metadata about the thumbnail.
| Returns | |
|---|---|
| Type | Description |
ImageMetadata\Image|null |
|
hasThumbnail
clearThumbnail
setThumbnail
Metadata about the thumbnail.
| Parameter | |
|---|---|
| Name | Description |
var |
ImageMetadata\Image
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSource
The details about the website that the image is from.
| Returns | |
|---|---|
| Type | Description |
ImageMetadata\WebsiteInfo|null |
|
hasSource
clearSource
setSource
The details about the website that the image is from.
| Parameter | |
|---|---|
| Name | Description |
var |
ImageMetadata\WebsiteInfo
|
| Returns | |
|---|---|
| Type | Description |
$this |
|