Package com.google.genai.types
Class GroundingChunk
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingChunk
Grounding chunk.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingChunk.Builderbuilder()Instantiates a builder for GroundingChunk.static GroundingChunkDeserializes a JSON string to a GroundingChunk object.abstract Optional<GroundingChunkMaps>maps()Grounding chunk from Google Maps.abstract Optional<GroundingChunkRetrievedContext>Grounding chunk from context retrieved by the retrieval tools.abstract GroundingChunk.BuilderCreates a builder with the same values as this instance.abstract Optional<GroundingChunkWeb>web()Grounding chunk from the web.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GroundingChunk
public GroundingChunk()
-
-
Method Details
-
maps
Grounding chunk from Google Maps. This field is not supported in Gemini API. -
retrievedContext
Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API. -
web
Grounding chunk from the web. -
builder
Instantiates a builder for GroundingChunk. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingChunk object.
-