Class PlaceCitation
java.lang.Object
com.google.genai.gaos.models.interactions.PlaceCitation
- All Implemented Interfaces:
Annotation
PlaceCitation
A place citation annotation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlaceCitation(Integer endIndex, String name, String placeId, List<ReviewSnippet> reviewSnippets, Integer startIndex, String url) -
Method Summary
Modifier and TypeMethodDescriptionstatic PlaceCitation.Builderbuilder()endIndex()End of the attributed segment, exclusive.booleaninthashCode()name()Title of the place.placeId()The ID of the place, in `places/{place_id}` format.Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.Start of segment of the response that is attributed to this source.toString()type()url()URI reference of the place.withEndIndex(Integer endIndex) End of the attributed segment, exclusive.Title of the place.withPlaceId(String placeId) The ID of the place, in `places/{place_id}` format.withReviewSnippets(List<ReviewSnippet> reviewSnippets) Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.withStartIndex(Integer startIndex) Start of segment of the response that is attributed to this source.URI reference of the place.
-
Constructor Details
-
PlaceCitation
-
PlaceCitation
public PlaceCitation()
-
-
Method Details
-
endIndex
End of the attributed segment, exclusive. -
name
Title of the place. -
placeId
The ID of the place, in `places/{place_id}` format. -
reviewSnippets
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps. -
startIndex
Start of segment of the response that is attributed to this source.Index indicates the start of the segment, measured in bytes.
-
type
- Specified by:
typein interfaceAnnotation
-
url
URI reference of the place. -
builder
-
withEndIndex
End of the attributed segment, exclusive. -
withName
Title of the place. -
withPlaceId
The ID of the place, in `places/{place_id}` format. -
withReviewSnippets
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps. -
withStartIndex
Start of segment of the response that is attributed to this source.Index indicates the start of the segment, measured in bytes.
-
withUrl
URI reference of the place. -
equals
-
hashCode
public int hashCode() -
toString
-