@@ -1141,7 +1141,8 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponse
11411141 # @return [String]
11421142 attr_accessor :response_id
11431143
1144- # Usage metadata about response(s).
1144+ # Usage metadata about the content generation request and response. This message
1145+ # provides a detailed breakdown of token usage and other relevant metrics.
11451146 # Corresponds to the JSON property `usageMetadata`
11461147 # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
11471148 attr_accessor :usage_metadata
@@ -1192,67 +1193,73 @@ def update!(**args)
11921193 end
11931194 end
11941195
1195- # Usage metadata about response(s).
1196+ # Usage metadata about the content generation request and response. This message
1197+ # provides a detailed breakdown of token usage and other relevant metrics.
11961198 class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
11971199 include Google ::Apis ::Core ::Hashable
11981200
1199- # Output only. List of modalities of the cached content in the request input.
1201+ # Output only. A detailed breakdown of the token count for each modality in the
1202+ # cached content.
12001203 # Corresponds to the JSON property `cacheTokensDetails`
12011204 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
12021205 attr_accessor :cache_tokens_details
12031206
1204- # Output only. Number of tokens in the cached part in the input (the cached
1205- # content) .
1207+ # Output only. The number of tokens in the cached content that was used for this
1208+ # request .
12061209 # Corresponds to the JSON property `cachedContentTokenCount`
12071210 # @return [Fixnum]
12081211 attr_accessor :cached_content_token_count
12091212
1210- # Number of tokens in the response(s) .
1213+ # The total number of tokens in the generated candidates .
12111214 # Corresponds to the JSON property `candidatesTokenCount`
12121215 # @return [Fixnum]
12131216 attr_accessor :candidates_token_count
12141217
1215- # Output only. List of modalities that were returned in the response.
1218+ # Output only. A detailed breakdown of the token count for each modality in the
1219+ # generated candidates.
12161220 # Corresponds to the JSON property `candidatesTokensDetails`
12171221 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
12181222 attr_accessor :candidates_tokens_details
12191223
1220- # Number of tokens in the request. When `cached_content` is set, this is still
1221- # the total effective prompt size meaning this includes the number of tokens in
1222- # the cached content.
1224+ # The total number of tokens in the prompt. This includes any text, images, or
1225+ # other media provided in the request. When `cached_content` is set, this also
1226+ # includes the number of tokens in the cached content.
12231227 # Corresponds to the JSON property `promptTokenCount`
12241228 # @return [Fixnum]
12251229 attr_accessor :prompt_token_count
12261230
1227- # Output only. List of modalities that were processed in the request input.
1231+ # Output only. A detailed breakdown of the token count for each modality in the
1232+ # prompt.
12281233 # Corresponds to the JSON property `promptTokensDetails`
12291234 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
12301235 attr_accessor :prompt_tokens_details
12311236
1232- # Output only. Number of tokens present in thoughts output.
1237+ # Output only. The number of tokens that were part of the model's generated "
1238+ # thoughts" output, if applicable.
12331239 # Corresponds to the JSON property `thoughtsTokenCount`
12341240 # @return [Fixnum]
12351241 attr_accessor :thoughts_token_count
12361242
1237- # Output only. Number of tokens present in tool-use prompt(s).
1243+ # Output only. The number of tokens in the results from tool executions, which
1244+ # are provided back to the model as input, if applicable.
12381245 # Corresponds to the JSON property `toolUsePromptTokenCount`
12391246 # @return [Fixnum]
12401247 attr_accessor :tool_use_prompt_token_count
12411248
1242- # Output only. List of modalities that were processed for tool-use request
1243- # inputs .
1249+ # Output only. A detailed breakdown by modality of the token counts from the
1250+ # results of tool executions, which are provided back to the model as input .
12441251 # Corresponds to the JSON property `toolUsePromptTokensDetails`
12451252 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
12461253 attr_accessor :tool_use_prompt_tokens_details
12471254
1248- # Total token count for prompt, response candidates, and tool-use prompts (if
1249- # present).
1255+ # The total number of tokens for the entire request. This is the sum of `
1256+ # prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`,
1257+ # and `thoughts_token_count`.
12501258 # Corresponds to the JSON property `totalTokenCount`
12511259 # @return [Fixnum]
12521260 attr_accessor :total_token_count
12531261
1254- # Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go
1255- # or Provisioned Throughput quota.
1262+ # Output only. The traffic type for this request.
12561263 # Corresponds to the JSON property `trafficType`
12571264 # @return [String]
12581265 attr_accessor :traffic_type
@@ -1562,12 +1569,19 @@ def update!(**args)
15621569 class GoogleCloudAiplatformV1beta1GoogleMaps
15631570 include Google ::Apis ::Core ::Hashable
15641571
1572+ # Optional. If true, include the widget context token in the response.
1573+ # Corresponds to the JSON property `enableWidget`
1574+ # @return [Boolean]
1575+ attr_accessor :enable_widget
1576+ alias_method :enable_widget? , :enable_widget
1577+
15651578 def initialize ( **args )
15661579 update! ( **args )
15671580 end
15681581
15691582 # Update properties of this object
15701583 def update! ( **args )
1584+ @enable_widget = args [ :enable_widget ] if args . key? ( :enable_widget )
15711585 end
15721586 end
15731587
@@ -1636,17 +1650,17 @@ class GoogleCloudAiplatformV1beta1GroundingChunkMaps
16361650 # @return [String]
16371651 attr_accessor :place_id
16381652
1639- # Text of the chunk .
1653+ # Text of the place answer .
16401654 # Corresponds to the JSON property `text`
16411655 # @return [String]
16421656 attr_accessor :text
16431657
1644- # Title of the chunk .
1658+ # Title of the place .
16451659 # Corresponds to the JSON property `title`
16461660 # @return [String]
16471661 attr_accessor :title
16481662
1649- # URI reference of the chunk .
1663+ # URI reference of the place .
16501664 # Corresponds to the JSON property `uri`
16511665 # @return [String]
16521666 attr_accessor :uri
@@ -1669,11 +1683,6 @@ def update!(**args)
16691683 class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources
16701684 include Google ::Apis ::Core ::Hashable
16711685
1672- # A link where users can flag a problem with the generated answer.
1673- # Corresponds to the JSON property `flagContentUri`
1674- # @return [String]
1675- attr_accessor :flag_content_uri
1676-
16771686 # Snippets of reviews that are used to generate the answer.
16781687 # Corresponds to the JSON property `reviewSnippets`
16791688 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>]
@@ -1685,84 +1694,38 @@ def initialize(**args)
16851694
16861695 # Update properties of this object
16871696 def update! ( **args )
1688- @flag_content_uri = args [ :flag_content_uri ] if args . key? ( :flag_content_uri )
16891697 @review_snippets = args [ :review_snippets ] if args . key? ( :review_snippets )
16901698 end
16911699 end
16921700
1693- # Author attribution for a photo or review.
1694- class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution
1695- include Google ::Apis ::Core ::Hashable
1696-
1697- # Name of the author of the Photo or Review.
1698- # Corresponds to the JSON property `displayName`
1699- # @return [String]
1700- attr_accessor :display_name
1701-
1702- # Profile photo URI of the author of the Photo or Review.
1703- # Corresponds to the JSON property `photoUri`
1704- # @return [String]
1705- attr_accessor :photo_uri
1706-
1707- # URI of the author of the Photo or Review.
1708- # Corresponds to the JSON property `uri`
1709- # @return [String]
1710- attr_accessor :uri
1711-
1712- def initialize ( **args )
1713- update! ( **args )
1714- end
1715-
1716- # Update properties of this object
1717- def update! ( **args )
1718- @display_name = args [ :display_name ] if args . key? ( :display_name )
1719- @photo_uri = args [ :photo_uri ] if args . key? ( :photo_uri )
1720- @uri = args [ :uri ] if args . key? ( :uri )
1721- end
1722- end
1723-
17241701 # Encapsulates a review snippet.
17251702 class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
17261703 include Google ::Apis ::Core ::Hashable
17271704
1728- # Author attribution for a photo or review.
1729- # Corresponds to the JSON property `authorAttribution`
1730- # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution]
1731- attr_accessor :author_attribution
1732-
1733- # A link where users can flag a problem with the review.
1734- # Corresponds to the JSON property `flagContentUri`
1735- # @return [String]
1736- attr_accessor :flag_content_uri
1737-
17381705 # A link to show the review on Google Maps.
17391706 # Corresponds to the JSON property `googleMapsUri`
17401707 # @return [String]
17411708 attr_accessor :google_maps_uri
17421709
1743- # A string of formatted recent time, expressing the review time relative to the
1744- # current time in a form appropriate for the language and country.
1745- # Corresponds to the JSON property `relativePublishTimeDescription`
1710+ # Id of the review referencing the place.
1711+ # Corresponds to the JSON property `reviewId`
17461712 # @return [String]
1747- attr_accessor :relative_publish_time_description
1713+ attr_accessor :review_id
17481714
1749- # A reference representing this place review which may be used to look up this
1750- # place review again.
1751- # Corresponds to the JSON property `review`
1715+ # Title of the review.
1716+ # Corresponds to the JSON property `title`
17521717 # @return [String]
1753- attr_accessor :review
1718+ attr_accessor :title
17541719
17551720 def initialize ( **args )
17561721 update! ( **args )
17571722 end
17581723
17591724 # Update properties of this object
17601725 def update! ( **args )
1761- @author_attribution = args [ :author_attribution ] if args . key? ( :author_attribution )
1762- @flag_content_uri = args [ :flag_content_uri ] if args . key? ( :flag_content_uri )
17631726 @google_maps_uri = args [ :google_maps_uri ] if args . key? ( :google_maps_uri )
1764- @relative_publish_time_description = args [ :relative_publish_time_description ] if args . key? ( :relative_publish_time_description )
1765- @review = args [ :review ] if args . key? ( :review )
1727+ @review_id = args [ :review_id ] if args . key? ( :review_id )
1728+ @title = args [ :title ] if args . key? ( :title )
17661729 end
17671730 end
17681731
@@ -1878,6 +1841,12 @@ class GoogleCloudAiplatformV1beta1GroundingMetadata
18781841 # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SearchEntryPoint]
18791842 attr_accessor :search_entry_point
18801843
1844+ # Optional. Output only. List of source flagging uris. This is currently
1845+ # populated only for Google Maps grounding.
1846+ # Corresponds to the JSON property `sourceFlaggingUris`
1847+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri>]
1848+ attr_accessor :source_flagging_uris
1849+
18811850 # Optional. Web search queries for the following-up web search.
18821851 # Corresponds to the JSON property `webSearchQueries`
18831852 # @return [Array<String>]
@@ -1895,10 +1864,37 @@ def update!(**args)
18951864 @retrieval_metadata = args [ :retrieval_metadata ] if args . key? ( :retrieval_metadata )
18961865 @retrieval_queries = args [ :retrieval_queries ] if args . key? ( :retrieval_queries )
18971866 @search_entry_point = args [ :search_entry_point ] if args . key? ( :search_entry_point )
1867+ @source_flagging_uris = args [ :source_flagging_uris ] if args . key? ( :source_flagging_uris )
18981868 @web_search_queries = args [ :web_search_queries ] if args . key? ( :web_search_queries )
18991869 end
19001870 end
19011871
1872+ # Source content flagging uri for a place or review. This is currently populated
1873+ # only for Google Maps grounding.
1874+ class GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri
1875+ include Google ::Apis ::Core ::Hashable
1876+
1877+ # A link where users can flag a problem with the source (place or review).
1878+ # Corresponds to the JSON property `flagContentUri`
1879+ # @return [String]
1880+ attr_accessor :flag_content_uri
1881+
1882+ # Id of the place or review.
1883+ # Corresponds to the JSON property `sourceId`
1884+ # @return [String]
1885+ attr_accessor :source_id
1886+
1887+ def initialize ( **args )
1888+ update! ( **args )
1889+ end
1890+
1891+ # Update properties of this object
1892+ def update! ( **args )
1893+ @flag_content_uri = args [ :flag_content_uri ] if args . key? ( :flag_content_uri )
1894+ @source_id = args [ :source_id ] if args . key? ( :source_id )
1895+ end
1896+ end
1897+
19021898 # Grounding support.
19031899 class GoogleCloudAiplatformV1beta1GroundingSupport
19041900 include Google ::Apis ::Core ::Hashable
0 commit comments