@@ -145,7 +145,6 @@ enum TaskType {
145145}
146146
147147// Request to generate a completion from the model.
148- // NEXT ID: 18
149148message GenerateContentRequest {
150149 // Required. The name of the `Model` to use for generating the completion.
151150 //
@@ -192,7 +191,6 @@ message GenerateContentRequest {
192191
193192// Configuration options for model generation and outputs. Not all parameters
194193// are configurable for every model.
195- // Next ID: 29
196194message GenerationConfig {
197195 // Optional. Number of generated responses to return. If unset, this will
198196 // default to 1. Please note that this doesn't work for previous generation
@@ -253,8 +251,10 @@ message GenerationConfig {
253251
254252 // Optional. An internal detail. Use `responseJsonSchema` rather than this
255253 // field.
256- google.protobuf.Value response_json_schema_ordered = 28
257- [(google.api.field_behavior ) = OPTIONAL ];
254+ google.protobuf.Value response_json_schema_ordered = 28 [
255+ json_name = "responseJsonSchema" ,
256+ (google.api.field_behavior ) = OPTIONAL
257+ ];
258258
259259 // Optional. Presence penalty applied to the next token's logprobs if the
260260 // token has already been seen in the response.
@@ -461,6 +461,9 @@ message Candidate {
461461 // The model was expected to generate an image, but none was generated.
462462 NO_IMAGE = 16 ;
463463
464+ // Image generation stopped due to recitation.
465+ IMAGE_RECITATION = 17 ;
466+
464467 // Model generated a tool call but no tools were enabled in the request.
465468 UNEXPECTED_TOOL_CALL = 12 ;
466469
@@ -616,6 +619,13 @@ message GroundingMetadata {
616619
617620 // Web search queries for the following-up web search.
618621 repeated string web_search_queries = 5 ;
622+
623+ // Optional. Resource name of the Google Maps widget context token that can be
624+ // used with the PlacesContextElement widget in order to render contextual
625+ // data. Only populated in the case that grounding with Google Maps is
626+ // enabled.
627+ optional string google_maps_widget_context_token = 7
628+ [(google.api.field_behavior ) = OPTIONAL ];
619629}
620630
621631// Google search entry point.
0 commit comments