Class GroundingChunk.Builder
- Enclosing class:
- GroundingChunk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GroundingChunkbuild()Clears the value of image field.Clears the value of maps field.Clears the value of retrievedContext field.clearWeb()Clears the value of web field.abstract GroundingChunk.Builderimage(GroundingChunkImage image) Setter for image.image(GroundingChunkImage.Builder imageBuilder) Setter for image builder.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
-
image
Setter for image.image: A grounding chunk from an image search result. See the `Image` message for details.
-
image
Setter for image builder.image: A grounding chunk from an image search result. See the `Image` message for details.
-
clearImage
Clears the value of image field. -
maps
Setter for maps.maps: A `Maps` chunk is a piece of evidence that comes from Google Maps.
It contains information about a place, such as its name, address, and reviews. This is used to provide the user with rich, location-based information.
-
maps
Setter for maps builder.maps: A `Maps` chunk is a piece of evidence that comes from Google Maps.
It contains information about a place, such as its name, address, and reviews. This is used to provide the user with rich, location-based information.
-
clearMaps
Clears the value of maps field. -
retrievedContext
public abstract GroundingChunk.Builder retrievedContext(GroundingChunkRetrievedContext retrievedContext) Setter for retrievedContext.retrievedContext: A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details. This field is not supported in Gemini API.
-
retrievedContext
@CanIgnoreReturnValue public GroundingChunk.Builder retrievedContext(GroundingChunkRetrievedContext.Builder retrievedContextBuilder) Setter for retrievedContext builder.retrievedContext: A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details. This field is not supported in Gemini API.
-
clearRetrievedContext
Clears the value of retrievedContext field. -
web
Setter for web.web: A grounding chunk from a web page, typically from Google Search. See the `Web` message for details.
-
web
Setter for web builder.web: A grounding chunk from a web page, typically from Google Search. See the `Web` message for details.
-
clearWeb
Clears the value of web field. -
build
-