Package com.google.genai.types
Class GroundingChunkImage
-
- All Implemented Interfaces:
public abstract class GroundingChunkImage extends JsonSerializable
An `Image` chunk is 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 Classes Modifier and Type Class Description public abstract classGroundingChunkImage.BuilderBuilder for GroundingChunkImage.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GroundingChunkImage()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>sourceUri()The URI of the image search result page. abstract Optional<String>imageUri()The URI of the image. abstract Optional<String>title()The title of the image search result page. abstract Optional<String>domain()The domain of the image search result page. static GroundingChunkImage.Builderbuilder()Instantiates a builder for GroundingChunkImage. abstract GroundingChunkImage.BuildertoBuilder()Creates a builder with the same values as this instance. static GroundingChunkImagefromJson(String jsonString)Deserializes a JSON string to a GroundingChunkImage object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
builder
static GroundingChunkImage.Builder builder()
Instantiates a builder for GroundingChunkImage.
-
toBuilder
abstract GroundingChunkImage.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GroundingChunkImage fromJson(String jsonString)
Deserializes a JSON string to a GroundingChunkImage object.
-
-
-
-