Package com.google.genai.types
Class GroundingChunk.Builder
java.lang.Object
com.google.genai.types.GroundingChunk.Builder
- Enclosing class:
- GroundingChunk
Builder for GroundingChunk.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GroundingChunkbuild()Clears the value of maps field.Clears the value of retrievedContext field.clearWeb()Clears the value of web field.abstract GroundingChunk.Buildermaps(GroundingChunkMaps maps) Setter for maps.maps(GroundingChunkMaps.Builder mapsBuilder) Setter for maps builder.abstract GroundingChunk.BuilderretrievedContext(GroundingChunkRetrievedContext retrievedContext) Setter for retrievedContext.retrievedContext(GroundingChunkRetrievedContext.Builder retrievedContextBuilder) Setter for retrievedContext builder.abstract GroundingChunk.Builderweb(GroundingChunkWeb web) Setter for web.web(GroundingChunkWeb.Builder webBuilder) Setter for web builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maps
Setter for maps.maps: Grounding chunk from Google Maps. This field is not supported in Gemini API.
-
maps
Setter for maps builder.maps: Grounding chunk from Google Maps. This field is not supported in Gemini API.
-
clearMaps
Clears the value of maps field. -
retrievedContext
public abstract GroundingChunk.Builder retrievedContext(GroundingChunkRetrievedContext retrievedContext) Setter for retrievedContext.retrievedContext: Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API.
-
retrievedContext
@CanIgnoreReturnValue public GroundingChunk.Builder retrievedContext(GroundingChunkRetrievedContext.Builder retrievedContextBuilder) Setter for retrievedContext builder.retrievedContext: Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API.
-
clearRetrievedContext
Clears the value of retrievedContext field. -
web
Setter for web.web: Grounding chunk from the web.
-
web
Setter for web builder.web: Grounding chunk from the web.
-
clearWeb
Clears the value of web field. -
build
-