Package com.google.genai.types
Class GroundingChunkMapsPlaceAnswerSources
-
- All Implemented Interfaces:
public abstract class GroundingChunkMapsPlaceAnswerSources extends JsonSerializable
The sources that were used to generate the place answer.
This includes review snippets and photos that were used to generate the answer, as well as URIs to flag content.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGroundingChunkMapsPlaceAnswerSources.BuilderBuilder for GroundingChunkMapsPlaceAnswerSources.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GroundingChunkMapsPlaceAnswerSources()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>>reviewSnippet()Snippets of reviews that were used to generate the answer. abstract Optional<String>flagContentUri()A link where users can flag a problem with the generated answer. abstract Optional<List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>>reviewSnippets()Snippets of reviews that were used to generate the answer. static GroundingChunkMapsPlaceAnswerSources.Builderbuilder()Instantiates a builder for GroundingChunkMapsPlaceAnswerSources. abstract GroundingChunkMapsPlaceAnswerSources.BuildertoBuilder()Creates a builder with the same values as this instance. static GroundingChunkMapsPlaceAnswerSourcesfromJson(String jsonString)Deserializes a JSON string to a GroundingChunkMapsPlaceAnswerSources 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
-
reviewSnippet
abstract Optional<List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>> reviewSnippet()
Snippets of reviews that were used to generate the answer.
-
flagContentUri
abstract Optional<String> flagContentUri()
A link where users can flag a problem with the generated answer.
-
reviewSnippets
abstract Optional<List<GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>> reviewSnippets()
Snippets of reviews that were used to generate the answer.
-
builder
static GroundingChunkMapsPlaceAnswerSources.Builder builder()
Instantiates a builder for GroundingChunkMapsPlaceAnswerSources.
-
toBuilder
abstract GroundingChunkMapsPlaceAnswerSources.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GroundingChunkMapsPlaceAnswerSources fromJson(String jsonString)
Deserializes a JSON string to a GroundingChunkMapsPlaceAnswerSources object.
-
-
-
-