@@ -660,13 +660,32 @@ message GroundingChunk {
660660 optional string text = 3 ;
661661 }
662662
663+ // Chunk from Google Maps.
664+ message Maps {
665+ // URI reference of the chunk.
666+ optional string uri = 1 ;
667+
668+ // Title of the chunk.
669+ optional string title = 2 ;
670+
671+ // Text of the chunk.
672+ optional string text = 3 ;
673+
674+ // This Place's resource name, in `places/{place_id}` format. Can be used
675+ // to look up the Place.
676+ optional string place_id = 4 ;
677+ }
678+
663679 // Chunk type.
664680 oneof chunk_type {
665681 // Grounding chunk from the web.
666682 Web web = 1 ;
667683
668684 // Grounding chunk from context retrieved by the retrieval tools.
669685 RetrievedContext retrieved_context = 2 ;
686+
687+ // Grounding chunk from Google Maps.
688+ Maps maps = 3 ;
670689 }
671690}
672691
@@ -709,6 +728,14 @@ message GroundingMetadata {
709728 (google.api.field_behavior ) = OPTIONAL ,
710729 (google.api.field_behavior ) = OUTPUT_ONLY
711730 ];
731+
732+ // Optional. Output only. Resource name of the Google Maps widget context
733+ // token to be used with the PlacesContextElement widget to render contextual
734+ // data. This is populated only for Google Maps grounding.
735+ optional string google_maps_widget_context_token = 8 [
736+ (google.api.field_behavior ) = OPTIONAL ,
737+ (google.api.field_behavior ) = OUTPUT_ONLY
738+ ];
712739}
713740
714741// Google search entry point.
0 commit comments