Package com.google.genai.types
Class GroundingChunkImage
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingChunkImage
A piece of evidence that comes from an image search result.
It contains the URI of the image search result and the URI of the image. This is used to provide the user with a link to the source of the information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GroundingChunkImage. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingChunkImage.Builderbuilder()Instantiates a builder for GroundingChunkImage.domain()The domain of the image search result page.static GroundingChunkImageDeserializes a JSON string to a GroundingChunkImage object.imageUri()The URI of the image.The URI of the image search result page.title()The title of the image search result page.abstract GroundingChunkImage.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GroundingChunkImage
public GroundingChunkImage()
-
-
Method Details
-
sourceUri
The URI of the image search result page. -
imageUri
The URI of the image. -
title
The title of the image search result page. -
domain
The domain of the image search result page. -
builder
Instantiates a builder for GroundingChunkImage. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingChunkImage object.
-