@@ -667,6 +667,22 @@ message GroundingChunk {
667667
668668 // Chunk from Google Maps.
669669 message Maps {
670+ message PlaceAnswerSources {
671+ // Encapsulates a review snippet.
672+ message ReviewSnippet {
673+ // Id of the review referencing the place.
674+ string review_id = 1 ;
675+
676+ // A link to show the review on Google Maps.
677+ string google_maps_uri = 2 ;
678+
679+ // Title of the review.
680+ string title = 3 ;
681+ }
682+
683+ // Snippets of reviews that are used to generate the answer.
684+ repeated ReviewSnippet review_snippets = 1 ;
685+ }
670686 // URI reference of the chunk.
671687 optional string uri = 1 ;
672688
@@ -679,6 +695,11 @@ message GroundingChunk {
679695 // This Place's resource name, in `places/{place_id}` format. Can be used
680696 // to look up the Place.
681697 optional string place_id = 4 ;
698+
699+ // Sources used to generate the place answer.
700+ // This includes review snippets and photos that were used to generate the
701+ // answer, as well as uris to flag content.
702+ PlaceAnswerSources place_answer_sources = 5 ;
682703 }
683704
684705 // Chunk type.
@@ -741,6 +762,23 @@ message GroundingMetadata {
741762 (google.api.field_behavior ) = OPTIONAL ,
742763 (google.api.field_behavior ) = OUTPUT_ONLY
743764 ];
765+
766+ // Source content flagging uri for a place or review. This is currently
767+ // populated only for Google Maps grounding.
768+ message SourceFlaggingUri {
769+ // Id of the place or review.
770+ string source_id = 1 ;
771+
772+ // A link where users can flag a problem with the source (place or review).
773+ // (-- The link is generated by Google and it does not contain
774+ // information from the user query. It may contain information of the
775+ // content it is flagging, which can be used to identify places. --)
776+ string flag_content_uri = 2 ;
777+ }
778+
779+ // List of source flagging uris. This is currently populated only for Google
780+ // Maps grounding.
781+ repeated SourceFlaggingUri source_flagging_uris = 9 ;
744782}
745783
746784// Google search entry point.
0 commit comments