Class GroundingChunk.Builder
-
- All Implemented Interfaces:
public abstract class GroundingChunk.BuilderBuilder for GroundingChunk.
-
-
Constructor Summary
Constructors Constructor Description GroundingChunk.Builder()
-
Method Summary
-
-
Method Detail
-
image
abstract GroundingChunk.Builder image(GroundingChunkImage image)
Setter for image.
image: A grounding chunk from an image search result. See the `Image` message for details.
-
image
@CanIgnoreReturnValue() GroundingChunk.Builder image(GroundingChunkImage.Builder imageBuilder)
Setter for image builder.
image: A grounding chunk from an image search result. See the `Image` message for details.
-
clearImage
@CanIgnoreReturnValue() GroundingChunk.Builder clearImage()
Clears the value of image field.
-
maps
abstract GroundingChunk.Builder maps(GroundingChunkMaps 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
@CanIgnoreReturnValue() GroundingChunk.Builder maps(GroundingChunkMaps.Builder mapsBuilder)
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
@CanIgnoreReturnValue() GroundingChunk.Builder clearMaps()
Clears the value of maps field.
-
retrievedContext
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
-
retrievedContext
@CanIgnoreReturnValue() 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
-
clearRetrievedContext
@CanIgnoreReturnValue() GroundingChunk.Builder clearRetrievedContext()
Clears the value of retrievedContext field.
-
web
abstract GroundingChunk.Builder web(GroundingChunkWeb web)
Setter for web.
web: A grounding chunk from a web page, typically from Google Search. See the `Web` message for details.
-
web
@CanIgnoreReturnValue() GroundingChunk.Builder web(GroundingChunkWeb.Builder webBuilder)
Setter for web builder.
web: A grounding chunk from a web page, typically from Google Search. See the `Web` message for details.
-
clearWeb
@CanIgnoreReturnValue() GroundingChunk.Builder clearWeb()
Clears the value of web field.
-
build
abstract GroundingChunk build()
-
-
-
-