Package com.google.genai.types
Class GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
-
- All Implemented Interfaces:
public abstract class GroundingChunkMapsPlaceAnswerSourcesReviewSnippet extends JsonSerializable
Encapsulates a review snippet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGroundingChunkMapsPlaceAnswerSourcesReviewSnippet.BuilderBuilder for GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GroundingChunkMapsPlaceAnswerSourcesReviewSnippet()
-
Method Summary
Modifier and Type Method Description abstract Optional<GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution>authorAttribution()This review's author. abstract Optional<String>flagContentUri()A link where users can flag a problem with the review. abstract Optional<String>googleMapsUri()A link to show the review on Google Maps. abstract Optional<String>relativePublishTimeDescription()A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. abstract Optional<String>review()A reference representing this place review which may be used to look up this place review again. abstract Optional<String>reviewId()Id of the review referencing the place. abstract Optional<String>title()Title of the review. static GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.Builderbuilder()Instantiates a builder for GroundingChunkMapsPlaceAnswerSourcesReviewSnippet. abstract GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.BuildertoBuilder()Creates a builder with the same values as this instance. static GroundingChunkMapsPlaceAnswerSourcesReviewSnippetfromJson(String jsonString)Deserializes a JSON string to a GroundingChunkMapsPlaceAnswerSourcesReviewSnippet 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
-
authorAttribution
abstract Optional<GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution> authorAttribution()
This review's author.
-
flagContentUri
abstract Optional<String> flagContentUri()
A link where users can flag a problem with the review.
-
googleMapsUri
abstract Optional<String> googleMapsUri()
A link to show the review on Google Maps.
-
relativePublishTimeDescription
abstract Optional<String> relativePublishTimeDescription()
A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
-
review
abstract Optional<String> review()
A reference representing this place review which may be used to look up this place review again.
-
builder
static GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.Builder builder()
Instantiates a builder for GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.
-
toBuilder
abstract GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GroundingChunkMapsPlaceAnswerSourcesReviewSnippet fromJson(String jsonString)
Deserializes a JSON string to a GroundingChunkMapsPlaceAnswerSourcesReviewSnippet object.
-
-
-
-