google-apis-firebaseml_v2beta 0.38.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42e550d1ff9e1d245a45761e18af19ff985997f8a23a5f161784a9b10d737ad6
4
- data.tar.gz: d44603910a27346519238e1039e86df79de8392ee7f0928e96d5f903fe7f3fb1
3
+ metadata.gz: dcb8b67be2d1c1da4a9561b03fe2dcbfe44a68edfa2b7172c58b1762f218bb3d
4
+ data.tar.gz: 0027bac3713131fc3c13c2317f055a5b290282ee0a4d4e3d2d5430d3730673df
5
5
  SHA512:
6
- metadata.gz: 8e4b1790bf6cf405b512a95daec70ea677cb51a8671e8a9629b8a348bd2f63cf7c2115458cc5fb559a28ea31e4ad87457faf96330f650525fd48ffa791a4b703
7
- data.tar.gz: 776db0fc1b533d68cbcba8e581b49167f57ec11722bd0ee3a9f16efbf3caa4f9e040c84be76c3874af0d639d46fd879da838b9eaf746e64d4813f6d467fa78d7
6
+ metadata.gz: c866d193bfd9da2f2025c329a4cbaed10aed206d6caf9c5293047942677daa8271b14787a0bab9f70d297519b49517082b7871e1f43363e3d7625cf255f4a8b8
7
+ data.tar.gz: 5fc3139f77a654533525d47c678c9515b402783244a228ef74d709f5a0997195daed0b359d77767bb726d488d388b72c6c5d920fbcd47906b785e93dbf00fa0f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-firebaseml_v2beta
2
2
 
3
+ ### v0.40.0 (2026-06-21)
4
+
5
+ * Regenerated from discovery document revision 20260612
6
+
7
+ ### v0.39.0 (2026-06-14)
8
+
9
+ * Regenerated from discovery document revision 20260605
10
+ * Regenerated using generator version 0.19.0
11
+
3
12
  ### v0.38.0 (2025-12-21)
4
13
 
5
14
  * Regenerated from discovery document revision 20251214
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://firebase.google.com) may provide guidance re
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 3.1+.
86
+ This library is supported on Ruby 3.2+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -109,6 +109,44 @@ module Google
109
109
  end
110
110
  end
111
111
 
112
+ # Configuration for audio-specific output formatting.
113
+ class GoogleCloudAiplatformV1beta1AudioResponseFormat
114
+ include Google::Apis::Core::Hashable
115
+
116
+ # Optional. Bit rate in bits per second (bps). Only applicable for compressed
117
+ # formats (MP3, Opus).
118
+ # Corresponds to the JSON property `bitRate`
119
+ # @return [Fixnum]
120
+ attr_accessor :bit_rate
121
+
122
+ # Optional. Delivery mode for the generated content.
123
+ # Corresponds to the JSON property `delivery`
124
+ # @return [String]
125
+ attr_accessor :delivery
126
+
127
+ # Optional. The MIME type of the audio output.
128
+ # Corresponds to the JSON property `mimeType`
129
+ # @return [String]
130
+ attr_accessor :mime_type
131
+
132
+ # Optional. Sample rate for the generated audio in Hertz.
133
+ # Corresponds to the JSON property `sampleRate`
134
+ # @return [Fixnum]
135
+ attr_accessor :sample_rate
136
+
137
+ def initialize(**args)
138
+ update!(**args)
139
+ end
140
+
141
+ # Update properties of this object
142
+ def update!(**args)
143
+ @bit_rate = args[:bit_rate] if args.key?(:bit_rate)
144
+ @delivery = args[:delivery] if args.key?(:delivery)
145
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
146
+ @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
147
+ end
148
+ end
149
+
112
150
  # Auth configuration to run the extension.
113
151
  class GoogleCloudAiplatformV1beta1AuthConfig
114
152
  include Google::Apis::Core::Hashable
@@ -516,9 +554,8 @@ module Google
516
554
  end
517
555
  end
518
556
 
519
- # Result of executing the [ExecutableCode]. Only generated when using the [
520
- # CodeExecution] tool, and always follows a `part` containing the [
521
- # ExecutableCode].
557
+ # Result of executing the ExecutableCode. Generated only when the `CodeExecution`
558
+ # tool is used.
522
559
  class GoogleCloudAiplatformV1beta1CodeExecutionResult
523
560
  include Google::Apis::Core::Hashable
524
561
 
@@ -719,9 +756,9 @@ module Google
719
756
  end
720
757
 
721
758
  # Code generated by the model that is meant to be executed, and the result
722
- # returned to the model. Generated when using the [CodeExecution] tool, in which
723
- # the code will be automatically executed, and a corresponding [
724
- # CodeExecutionResult] will also be generated.
759
+ # returned to the model. Generated when using the `CodeExecution` tool, in which
760
+ # the code will be automatically executed, and a corresponding
761
+ # CodeExecutionResult will also be generated.
725
762
  class GoogleCloudAiplatformV1beta1ExecutableCode
726
763
  include Google::Apis::Core::Hashable
727
764
 
@@ -880,14 +917,14 @@ module Google
880
917
  end
881
918
  end
882
919
 
883
- # A predicted [FunctionCall] returned from the model that contains a string
884
- # representing the [FunctionDeclaration.name] and a structured JSON object
920
+ # A predicted FunctionCall returned from the model that contains a string
921
+ # representing the FunctionDeclaration.name and a structured JSON object
885
922
  # containing the parameters and their values.
886
923
  class GoogleCloudAiplatformV1beta1FunctionCall
887
924
  include Google::Apis::Core::Hashable
888
925
 
889
- # Optional. The function parameters and values in JSON object format. See [
890
- # FunctionDeclaration.parameters] for parameter details.
926
+ # Optional. The function parameters and values in JSON object format. See
927
+ # FunctionDeclaration.parameters for parameter details.
891
928
  # Corresponds to the JSON property `args`
892
929
  # @return [Hash<String,Object>]
893
930
  attr_accessor :args
@@ -898,7 +935,7 @@ module Google
898
935
  # @return [String]
899
936
  attr_accessor :id
900
937
 
901
- # Optional. The name of the function to call. Matches [FunctionDeclaration.name].
938
+ # Optional. The name of the function to call. Matches FunctionDeclaration.name.
902
939
  # Corresponds to the JSON property `name`
903
940
  # @return [String]
904
941
  attr_accessor :name
@@ -935,8 +972,8 @@ module Google
935
972
  include Google::Apis::Core::Hashable
936
973
 
937
974
  # Optional. Function names to call. Only set when the Mode is ANY. Function
938
- # names should match [FunctionDeclaration.name]. With mode set to ANY, model
939
- # will predict a function call from the set of function names provided.
975
+ # names should match FunctionDeclaration.name. With mode set to ANY, model will
976
+ # predict a function call from the set of function names provided.
940
977
  # Corresponds to the JSON property `allowedFunctionNames`
941
978
  # @return [Array<String>]
942
979
  attr_accessor :allowed_function_names
@@ -948,7 +985,7 @@ module Google
948
985
 
949
986
  # Optional. When set to true, arguments of a single function call will be
950
987
  # streamed out in multiple parts/contents/responses. Partial parameter results
951
- # will be returned in the [FunctionCall.partial_args] field.
988
+ # will be returned in the `FunctionCall.partial_args` field.
952
989
  # Corresponds to the JSON property `streamFunctionCallArguments`
953
990
  # @return [Boolean]
954
991
  attr_accessor :stream_function_call_arguments
@@ -974,6 +1011,13 @@ module Google
974
1011
  class GoogleCloudAiplatformV1beta1FunctionDeclaration
975
1012
  include Google::Apis::Core::Hashable
976
1013
 
1014
+ # Optional. Specifies the function Behavior. If not specified, the system keeps
1015
+ # the current function call behavior. This field is currently only supported by
1016
+ # the BidiGenerateContent method.
1017
+ # Corresponds to the JSON property `behavior`
1018
+ # @return [String]
1019
+ attr_accessor :behavior
1020
+
977
1021
  # Optional. Description and purpose of the function. Model uses it to decide how
978
1022
  # and whether to call the function.
979
1023
  # Corresponds to the JSON property `description`
@@ -982,7 +1026,7 @@ module Google
982
1026
 
983
1027
  # Required. The name of the function to call. Must start with a letter or an
984
1028
  # underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and
985
- # dashes, with a maximum length of 64.
1029
+ # dashes, with a maximum length of 128.
986
1030
  # Corresponds to the JSON property `name`
987
1031
  # @return [String]
988
1032
  attr_accessor :name
@@ -1022,6 +1066,7 @@ module Google
1022
1066
 
1023
1067
  # Update properties of this object
1024
1068
  def update!(**args)
1069
+ @behavior = args[:behavior] if args.key?(:behavior)
1025
1070
  @description = args[:description] if args.key?(:description)
1026
1071
  @name = args[:name] if args.key?(:name)
1027
1072
  @parameters = args[:parameters] if args.key?(:parameters)
@@ -1031,10 +1076,10 @@ module Google
1031
1076
  end
1032
1077
  end
1033
1078
 
1034
- # The result output from a [FunctionCall] that contains a string representing
1035
- # the [FunctionDeclaration.name] and a structured JSON object containing any
1036
- # output from the function is used as context to the model. This should contain
1037
- # the result of a [FunctionCall] made based on model prediction.
1079
+ # The result output from a FunctionCall that contains a string representing the
1080
+ # FunctionDeclaration.name and a structured JSON object containing any output
1081
+ # from the function is used as context to the model. This should contain the
1082
+ # result of a `FunctionCall` made based on model prediction.
1038
1083
  class GoogleCloudAiplatformV1beta1FunctionResponse
1039
1084
  include Google::Apis::Core::Hashable
1040
1085
 
@@ -1044,8 +1089,8 @@ module Google
1044
1089
  # @return [String]
1045
1090
  attr_accessor :id
1046
1091
 
1047
- # Required. The name of the function to call. Matches [FunctionDeclaration.name]
1048
- # and [FunctionCall.name].
1092
+ # Required. The name of the function to call. Matches FunctionDeclaration.name
1093
+ # and FunctionCall.name.
1049
1094
  # Corresponds to the JSON property `name`
1050
1095
  # @return [String]
1051
1096
  attr_accessor :name
@@ -1064,6 +1109,13 @@ module Google
1064
1109
  # @return [Hash<String,Object>]
1065
1110
  attr_accessor :response
1066
1111
 
1112
+ # Optional. Specifies how the response should be scheduled in the conversation.
1113
+ # Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults
1114
+ # to WHEN_IDLE.
1115
+ # Corresponds to the JSON property `scheduling`
1116
+ # @return [String]
1117
+ attr_accessor :scheduling
1118
+
1067
1119
  def initialize(**args)
1068
1120
  update!(**args)
1069
1121
  end
@@ -1074,6 +1126,7 @@ module Google
1074
1126
  @name = args[:name] if args.key?(:name)
1075
1127
  @parts = args[:parts] if args.key?(:parts)
1076
1128
  @response = args[:response] if args.key?(:response)
1129
+ @scheduling = args[:scheduling] if args.key?(:scheduling)
1077
1130
  end
1078
1131
  end
1079
1132
 
@@ -1528,8 +1581,15 @@ module Google
1528
1581
  # @return [Float]
1529
1582
  attr_accessor :presence_penalty
1530
1583
 
1584
+ # Optional. New response format field for the model to configure output
1585
+ # formatting and delivery.
1586
+ # Corresponds to the JSON property `responseFormat`
1587
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ResponseFormat>]
1588
+ attr_accessor :response_format
1589
+
1531
1590
  # Optional. When this field is set, response_schema must be omitted and
1532
- # response_mime_type must be set to `application/json`.
1591
+ # response_mime_type must be set to `application/json`. Deprecated: Use `
1592
+ # response_format` instead.
1533
1593
  # Corresponds to the JSON property `responseJsonSchema`
1534
1594
  # @return [Object]
1535
1595
  attr_accessor :response_json_schema
@@ -1547,8 +1607,8 @@ module Google
1547
1607
  # Optional. The IANA standard MIME type of the response. The model will generate
1548
1608
  # output that conforms to this MIME type. Supported values include 'text/plain' (
1549
1609
  # default) and 'application/json'. The model needs to be prompted to output the
1550
- # appropriate response type, otherwise the behavior is undefined. This is a
1551
- # preview feature.
1610
+ # appropriate response type, otherwise the behavior is undefined. Deprecated:
1611
+ # Use `response_format` instead.
1552
1612
  # Corresponds to the JSON property `responseMimeType`
1553
1613
  # @return [String]
1554
1614
  attr_accessor :response_mime_type
@@ -1648,6 +1708,7 @@ module Google
1648
1708
  @media_resolution = args[:media_resolution] if args.key?(:media_resolution)
1649
1709
  @model_config = args[:model_config] if args.key?(:model_config)
1650
1710
  @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
1711
+ @response_format = args[:response_format] if args.key?(:response_format)
1651
1712
  @response_json_schema = args[:response_json_schema] if args.key?(:response_json_schema)
1652
1713
  @response_logprobs = args[:response_logprobs] if args.key?(:response_logprobs)
1653
1714
  @response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
@@ -1799,7 +1860,10 @@ module Google
1799
1860
  class GoogleCloudAiplatformV1beta1GoogleMaps
1800
1861
  include Google::Apis::Core::Hashable
1801
1862
 
1802
- # Optional. If true, include the widget context token in the response.
1863
+ # Optional. Deprecated: The Google Maps contextual widget behavior in Grounding
1864
+ # with Google Maps is being deprecated; this field is planned for removal and no
1865
+ # longer has any effect once removed. If true, include the widget context token
1866
+ # in the response.
1803
1867
  # Corresponds to the JSON property `enableWidget`
1804
1868
  # @return [Boolean]
1805
1869
  attr_accessor :enable_widget
@@ -1841,9 +1905,16 @@ module Google
1841
1905
  class GoogleCloudAiplatformV1beta1GroundingChunk
1842
1906
  include Google::Apis::Core::Hashable
1843
1907
 
1844
- # A `Maps` chunk is a piece of evidence that comes from Google Maps. It contains
1845
- # information about a place, such as its name, address, and reviews. This is
1846
- # used to provide the user with rich, location-based information.
1908
+ # An `Image` chunk is a piece of evidence that comes from an image search result.
1909
+ # It contains the URI of the image search result and the URI of the image. This
1910
+ # is used to provide the user with a link to the source of the information.
1911
+ # Corresponds to the JSON property `image`
1912
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkImage]
1913
+ attr_accessor :image
1914
+
1915
+ # A `Maps` chunk is a piece of evidence that comes from Google Maps, containing
1916
+ # information about places or routes. This is used to provide the user with rich,
1917
+ # location-based information.
1847
1918
  # Corresponds to the JSON property `maps`
1848
1919
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMaps]
1849
1920
  attr_accessor :maps
@@ -1868,15 +1939,55 @@ module Google
1868
1939
 
1869
1940
  # Update properties of this object
1870
1941
  def update!(**args)
1942
+ @image = args[:image] if args.key?(:image)
1871
1943
  @maps = args[:maps] if args.key?(:maps)
1872
1944
  @retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
1873
1945
  @web = args[:web] if args.key?(:web)
1874
1946
  end
1875
1947
  end
1876
1948
 
1877
- # A `Maps` chunk is a piece of evidence that comes from Google Maps. It contains
1878
- # information about a place, such as its name, address, and reviews. This is
1879
- # used to provide the user with rich, location-based information.
1949
+ # An `Image` chunk is a piece of evidence that comes from an image search result.
1950
+ # It contains the URI of the image search result and the URI of the image. This
1951
+ # is used to provide the user with a link to the source of the information.
1952
+ class GoogleCloudAiplatformV1beta1GroundingChunkImage
1953
+ include Google::Apis::Core::Hashable
1954
+
1955
+ # The domain of the image search result page.
1956
+ # Corresponds to the JSON property `domain`
1957
+ # @return [String]
1958
+ attr_accessor :domain
1959
+
1960
+ # The URI of the image.
1961
+ # Corresponds to the JSON property `imageUri`
1962
+ # @return [String]
1963
+ attr_accessor :image_uri
1964
+
1965
+ # The URI of the image search result page.
1966
+ # Corresponds to the JSON property `sourceUri`
1967
+ # @return [String]
1968
+ attr_accessor :source_uri
1969
+
1970
+ # The title of the image search result page.
1971
+ # Corresponds to the JSON property `title`
1972
+ # @return [String]
1973
+ attr_accessor :title
1974
+
1975
+ def initialize(**args)
1976
+ update!(**args)
1977
+ end
1978
+
1979
+ # Update properties of this object
1980
+ def update!(**args)
1981
+ @domain = args[:domain] if args.key?(:domain)
1982
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
1983
+ @source_uri = args[:source_uri] if args.key?(:source_uri)
1984
+ @title = args[:title] if args.key?(:title)
1985
+ end
1986
+ end
1987
+
1988
+ # A `Maps` chunk is a piece of evidence that comes from Google Maps, containing
1989
+ # information about places or routes. This is used to provide the user with rich,
1990
+ # location-based information.
1880
1991
  class GoogleCloudAiplatformV1beta1GroundingChunkMaps
1881
1992
  include Google::Apis::Core::Hashable
1882
1993
 
@@ -1893,6 +2004,11 @@ module Google
1893
2004
  # @return [String]
1894
2005
  attr_accessor :place_id
1895
2006
 
2007
+ # Route information from Google Maps.
2008
+ # Corresponds to the JSON property `route`
2009
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute]
2010
+ attr_accessor :route
2011
+
1896
2012
  # The text of the place answer.
1897
2013
  # Corresponds to the JSON property `text`
1898
2014
  # @return [String]
@@ -1916,6 +2032,7 @@ module Google
1916
2032
  def update!(**args)
1917
2033
  @place_answer_sources = args[:place_answer_sources] if args.key?(:place_answer_sources)
1918
2034
  @place_id = args[:place_id] if args.key?(:place_id)
2035
+ @route = args[:route] if args.key?(:route)
1919
2036
  @text = args[:text] if args.key?(:text)
1920
2037
  @title = args[:title] if args.key?(:title)
1921
2038
  @uri = args[:uri] if args.key?(:uri)
@@ -1974,6 +2091,38 @@ module Google
1974
2091
  end
1975
2092
  end
1976
2093
 
2094
+ # Route information from Google Maps.
2095
+ class GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
2096
+ include Google::Apis::Core::Hashable
2097
+
2098
+ # The total distance of the route, in meters.
2099
+ # Corresponds to the JSON property `distanceMeters`
2100
+ # @return [Fixnum]
2101
+ attr_accessor :distance_meters
2102
+
2103
+ # The total duration of the route.
2104
+ # Corresponds to the JSON property `duration`
2105
+ # @return [String]
2106
+ attr_accessor :duration
2107
+
2108
+ # An encoded polyline of the route. See https://developers.google.com/maps/
2109
+ # documentation/utilities/polylinealgorithm
2110
+ # Corresponds to the JSON property `encodedPolyline`
2111
+ # @return [String]
2112
+ attr_accessor :encoded_polyline
2113
+
2114
+ def initialize(**args)
2115
+ update!(**args)
2116
+ end
2117
+
2118
+ # Update properties of this object
2119
+ def update!(**args)
2120
+ @distance_meters = args[:distance_meters] if args.key?(:distance_meters)
2121
+ @duration = args[:duration] if args.key?(:duration)
2122
+ @encoded_polyline = args[:encoded_polyline] if args.key?(:encoded_polyline)
2123
+ end
2124
+ end
2125
+
1977
2126
  # Context retrieved from a data source to ground the model's response. This is
1978
2127
  # used when a retrieval tool fetches information from a user-provided corpus or
1979
2128
  # a public dataset.
@@ -2063,9 +2212,11 @@ module Google
2063
2212
  class GoogleCloudAiplatformV1beta1GroundingMetadata
2064
2213
  include Google::Apis::Core::Hashable
2065
2214
 
2066
- # Optional. Output only. A token that can be used to render a Google Maps widget
2067
- # with the contextual data. This field is populated only when the grounding
2068
- # source is Google Maps.
2215
+ # Optional. Output only. Deprecated: The Google Maps contextual widget behavior
2216
+ # in Grounding with Google Maps is being deprecated; this field is planned for
2217
+ # removal and will no longer be populated once removed. A token that can be used
2218
+ # to render a Google Maps widget with the contextual data. This field is
2219
+ # populated only when the grounding source is Google Maps.
2069
2220
  # Corresponds to the JSON property `googleMapsWidgetContextToken`
2070
2221
  # @return [String]
2071
2222
  attr_accessor :google_maps_widget_context_token
@@ -2084,6 +2235,13 @@ module Google
2084
2235
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport>]
2085
2236
  attr_accessor :grounding_supports
2086
2237
 
2238
+ # Optional. The image search queries that were used to generate the content.
2239
+ # This field is populated only when the grounding source is Google Search with
2240
+ # the Image Search search_type enabled.
2241
+ # Corresponds to the JSON property `imageSearchQueries`
2242
+ # @return [Array<String>]
2243
+ attr_accessor :image_search_queries
2244
+
2087
2245
  # Metadata related to the retrieval grounding source. This is part of the `
2088
2246
  # GroundingMetadata` returned when grounding is enabled.
2089
2247
  # Corresponds to the JSON property `retrievalMetadata`
@@ -2127,6 +2285,7 @@ module Google
2127
2285
  @google_maps_widget_context_token = args[:google_maps_widget_context_token] if args.key?(:google_maps_widget_context_token)
2128
2286
  @grounding_chunks = args[:grounding_chunks] if args.key?(:grounding_chunks)
2129
2287
  @grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
2288
+ @image_search_queries = args[:image_search_queries] if args.key?(:image_search_queries)
2130
2289
  @retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
2131
2290
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
2132
2291
  @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
@@ -2161,7 +2320,8 @@ module Google
2161
2320
  end
2162
2321
  end
2163
2322
 
2164
- # A collection of supporting references for a segment of the model's response.
2323
+ # A collection of supporting references for a segment or part of the model's
2324
+ # response.
2165
2325
  class GoogleCloudAiplatformV1beta1GroundingSupport
2166
2326
  include Google::Apis::Core::Hashable
2167
2327
 
@@ -2184,6 +2344,13 @@ module Google
2184
2344
  # @return [Array<Fixnum>]
2185
2345
  attr_accessor :grounding_chunk_indices
2186
2346
 
2347
+ # Indices into the `rendered_parts` field of the `GroundingMetadata` message.
2348
+ # These indices specify which rendered parts are associated with this support
2349
+ # message.
2350
+ # Corresponds to the JSON property `renderedParts`
2351
+ # @return [Array<Fixnum>]
2352
+ attr_accessor :rendered_parts
2353
+
2187
2354
  # A segment of the content.
2188
2355
  # Corresponds to the JSON property `segment`
2189
2356
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment]
@@ -2197,6 +2364,7 @@ module Google
2197
2364
  def update!(**args)
2198
2365
  @confidence_scores = args[:confidence_scores] if args.key?(:confidence_scores)
2199
2366
  @grounding_chunk_indices = args[:grounding_chunk_indices] if args.key?(:grounding_chunk_indices)
2367
+ @rendered_parts = args[:rendered_parts] if args.key?(:rendered_parts)
2200
2368
  @segment = args[:segment] if args.key?(:segment)
2201
2369
  end
2202
2370
  end
@@ -2230,6 +2398,15 @@ module Google
2230
2398
  # @return [String]
2231
2399
  attr_accessor :person_generation
2232
2400
 
2401
+ # Optional. Controls whether prominent people (celebrities) generation is
2402
+ # allowed. If used with personGeneration, personGeneration enum would take
2403
+ # precedence. For instance, if ALLOW_NONE is set, all person generation would be
2404
+ # blocked. If this field is unspecified, the default behavior is to allow
2405
+ # prominent people.
2406
+ # Corresponds to the JSON property `prominentPeople`
2407
+ # @return [String]
2408
+ attr_accessor :prominent_people
2409
+
2233
2410
  def initialize(**args)
2234
2411
  update!(**args)
2235
2412
  end
@@ -2240,6 +2417,7 @@ module Google
2240
2417
  @image_output_options = args[:image_output_options] if args.key?(:image_output_options)
2241
2418
  @image_size = args[:image_size] if args.key?(:image_size)
2242
2419
  @person_generation = args[:person_generation] if args.key?(:person_generation)
2420
+ @prominent_people = args[:prominent_people] if args.key?(:prominent_people)
2243
2421
  end
2244
2422
  end
2245
2423
 
@@ -2268,6 +2446,43 @@ module Google
2268
2446
  end
2269
2447
  end
2270
2448
 
2449
+ # Configuration for image-specific output formatting.
2450
+ class GoogleCloudAiplatformV1beta1ImageResponseFormat
2451
+ include Google::Apis::Core::Hashable
2452
+
2453
+ # Optional. The aspect ratio for the image output.
2454
+ # Corresponds to the JSON property `aspectRatio`
2455
+ # @return [String]
2456
+ attr_accessor :aspect_ratio
2457
+
2458
+ # Optional. Delivery mode for the generated content.
2459
+ # Corresponds to the JSON property `delivery`
2460
+ # @return [String]
2461
+ attr_accessor :delivery
2462
+
2463
+ # Optional. The size of the image output.
2464
+ # Corresponds to the JSON property `imageSize`
2465
+ # @return [String]
2466
+ attr_accessor :image_size
2467
+
2468
+ # Optional. The MIME type of the image output.
2469
+ # Corresponds to the JSON property `mimeType`
2470
+ # @return [String]
2471
+ attr_accessor :mime_type
2472
+
2473
+ def initialize(**args)
2474
+ update!(**args)
2475
+ end
2476
+
2477
+ # Update properties of this object
2478
+ def update!(**args)
2479
+ @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
2480
+ @delivery = args[:delivery] if args.key?(:delivery)
2481
+ @image_size = args[:image_size] if args.key?(:image_size)
2482
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2483
+ end
2484
+ end
2485
+
2271
2486
  # The log probabilities of the tokens generated by the model. This is useful for
2272
2487
  # understanding the model's confidence in its predictions and for debugging. For
2273
2488
  # example, you can use log probabilities to identify when the model is making a
@@ -2454,17 +2669,16 @@ module Google
2454
2669
  class GoogleCloudAiplatformV1beta1Part
2455
2670
  include Google::Apis::Core::Hashable
2456
2671
 
2457
- # Result of executing the [ExecutableCode]. Only generated when using the [
2458
- # CodeExecution] tool, and always follows a `part` containing the [
2459
- # ExecutableCode].
2672
+ # Result of executing the ExecutableCode. Generated only when the `CodeExecution`
2673
+ # tool is used.
2460
2674
  # Corresponds to the JSON property `codeExecutionResult`
2461
2675
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CodeExecutionResult]
2462
2676
  attr_accessor :code_execution_result
2463
2677
 
2464
2678
  # Code generated by the model that is meant to be executed, and the result
2465
- # returned to the model. Generated when using the [CodeExecution] tool, in which
2466
- # the code will be automatically executed, and a corresponding [
2467
- # CodeExecutionResult] will also be generated.
2679
+ # returned to the model. Generated when using the `CodeExecution` tool, in which
2680
+ # the code will be automatically executed, and a corresponding
2681
+ # CodeExecutionResult will also be generated.
2468
2682
  # Corresponds to the JSON property `executableCode`
2469
2683
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ExecutableCode]
2470
2684
  attr_accessor :executable_code
@@ -2476,17 +2690,17 @@ module Google
2476
2690
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FileData]
2477
2691
  attr_accessor :file_data
2478
2692
 
2479
- # A predicted [FunctionCall] returned from the model that contains a string
2480
- # representing the [FunctionDeclaration.name] and a structured JSON object
2693
+ # A predicted FunctionCall returned from the model that contains a string
2694
+ # representing the FunctionDeclaration.name and a structured JSON object
2481
2695
  # containing the parameters and their values.
2482
2696
  # Corresponds to the JSON property `functionCall`
2483
2697
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionCall]
2484
2698
  attr_accessor :function_call
2485
2699
 
2486
- # The result output from a [FunctionCall] that contains a string representing
2487
- # the [FunctionDeclaration.name] and a structured JSON object containing any
2488
- # output from the function is used as context to the model. This should contain
2489
- # the result of a [FunctionCall] made based on model prediction.
2700
+ # The result output from a FunctionCall that contains a string representing the
2701
+ # FunctionDeclaration.name and a structured JSON object containing any output
2702
+ # from the function is used as context to the model. This should contain the
2703
+ # result of a `FunctionCall` made based on model prediction.
2490
2704
  # Corresponds to the JSON property `functionResponse`
2491
2705
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionResponse]
2492
2706
  attr_accessor :function_response
@@ -2502,7 +2716,10 @@ module Google
2502
2716
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1PartMediaResolution]
2503
2717
  attr_accessor :media_resolution
2504
2718
 
2505
- # Optional. The text content of the part.
2719
+ # Optional. The text content of the part. When sent from the VSCode Gemini Code
2720
+ # Assist extension, references to @mentioned items will be converted to markdown
2721
+ # boldface text. For example `@my-repo` will be converted to and sent as `**my-
2722
+ # repo**` by the IDE agent.
2506
2723
  # Corresponds to the JSON property `text`
2507
2724
  # @return [String]
2508
2725
  attr_accessor :text
@@ -2643,6 +2860,16 @@ module Google
2643
2860
  class GoogleCloudAiplatformV1beta1RagChunk
2644
2861
  include Google::Apis::Core::Hashable
2645
2862
 
2863
+ # The ID of the chunk.
2864
+ # Corresponds to the JSON property `chunkId`
2865
+ # @return [String]
2866
+ attr_accessor :chunk_id
2867
+
2868
+ # The ID of the file that the chunk belongs to.
2869
+ # Corresponds to the JSON property `fileId`
2870
+ # @return [String]
2871
+ attr_accessor :file_id
2872
+
2646
2873
  # Represents where the chunk starts and ends in the document.
2647
2874
  # Corresponds to the JSON property `pageSpan`
2648
2875
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan]
@@ -2659,6 +2886,8 @@ module Google
2659
2886
 
2660
2887
  # Update properties of this object
2661
2888
  def update!(**args)
2889
+ @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
2890
+ @file_id = args[:file_id] if args.key?(:file_id)
2662
2891
  @page_span = args[:page_span] if args.key?(:page_span)
2663
2892
  @text = args[:text] if args.key?(:text)
2664
2893
  end
@@ -2875,6 +3104,43 @@ module Google
2875
3104
  end
2876
3105
  end
2877
3106
 
3107
+ # Configuration for the model to configure output formatting and delivery.
3108
+ class GoogleCloudAiplatformV1beta1ResponseFormat
3109
+ include Google::Apis::Core::Hashable
3110
+
3111
+ # Configuration for audio-specific output formatting.
3112
+ # Corresponds to the JSON property `audio`
3113
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AudioResponseFormat]
3114
+ attr_accessor :audio
3115
+
3116
+ # Configuration for image-specific output formatting.
3117
+ # Corresponds to the JSON property `image`
3118
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ImageResponseFormat]
3119
+ attr_accessor :image
3120
+
3121
+ # Configuration for text-specific output formatting.
3122
+ # Corresponds to the JSON property `text`
3123
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1TextResponseFormat]
3124
+ attr_accessor :text
3125
+
3126
+ # Configuration for video-specific output formatting.
3127
+ # Corresponds to the JSON property `video`
3128
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoResponseFormat]
3129
+ attr_accessor :video
3130
+
3131
+ def initialize(**args)
3132
+ update!(**args)
3133
+ end
3134
+
3135
+ # Update properties of this object
3136
+ def update!(**args)
3137
+ @audio = args[:audio] if args.key?(:audio)
3138
+ @image = args[:image] if args.key?(:image)
3139
+ @text = args[:text] if args.key?(:text)
3140
+ @video = args[:video] if args.key?(:video)
3141
+ end
3142
+ end
3143
+
2878
3144
  # Defines a retrieval tool that model can call to access external knowledge.
2879
3145
  class GoogleCloudAiplatformV1beta1Retrieval
2880
3146
  include Google::Apis::Core::Hashable
@@ -3092,7 +3358,10 @@ module Google
3092
3358
  # @return [Hash<String,Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema>]
3093
3359
  attr_accessor :defs
3094
3360
 
3095
- # Optional. Description of the schema.
3361
+ # Optional. Describes the data. The model uses this field to understand the
3362
+ # purpose of the schema and how to use it. It is a best practice to provide a
3363
+ # clear and descriptive explanation for the schema and its properties here,
3364
+ # rather than in the prompt.
3096
3365
  # Corresponds to the JSON property `description`
3097
3366
  # @return [String]
3098
3367
  attr_accessor :description
@@ -3392,6 +3661,32 @@ module Google
3392
3661
  end
3393
3662
  end
3394
3663
 
3664
+ # Configuration for text-specific output formatting.
3665
+ class GoogleCloudAiplatformV1beta1TextResponseFormat
3666
+ include Google::Apis::Core::Hashable
3667
+
3668
+ # Optional. The IANA standard MIME type of the response.
3669
+ # Corresponds to the JSON property `mimeType`
3670
+ # @return [String]
3671
+ attr_accessor :mime_type
3672
+
3673
+ # Optional. The JSON schema that the output should conform to. Only applicable
3674
+ # when mime_type is APPLICATION_JSON.
3675
+ # Corresponds to the JSON property `schema`
3676
+ # @return [Object]
3677
+ attr_accessor :schema
3678
+
3679
+ def initialize(**args)
3680
+ update!(**args)
3681
+ end
3682
+
3683
+ # Update properties of this object
3684
+ def update!(**args)
3685
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
3686
+ @schema = args[:schema] if args.key?(:schema)
3687
+ end
3688
+ end
3689
+
3395
3690
  # Tool details that the model may use to generate response. A `Tool` is a piece
3396
3691
  # of code that enables the system to interact with external systems to perform
3397
3692
  # an action, or set of actions, outside of knowledge and scope of the model. A
@@ -3401,7 +3696,7 @@ module Google
3401
3696
  include Google::Apis::Core::Hashable
3402
3697
 
3403
3698
  # Tool that executes code generated by the model, and automatically returns the
3404
- # result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
3699
+ # result to the model. See also ExecutableCode and CodeExecutionResult, which
3405
3700
  # are input and output to this tool.
3406
3701
  # Corresponds to the JSON property `codeExecution`
3407
3702
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution]
@@ -3418,6 +3713,11 @@ module Google
3418
3713
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch]
3419
3714
  attr_accessor :enterprise_web_search
3420
3715
 
3716
+ # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding.
3717
+ # Corresponds to the JSON property `exaAiSearch`
3718
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolExaAiSearch]
3719
+ attr_accessor :exa_ai_search
3720
+
3421
3721
  # Optional. Function tool type. One or more function declarations to be passed
3422
3722
  # to the model along with the current user query. Model may decide to call a
3423
3723
  # subset of these functions by populating FunctionCall in the response. User
@@ -3469,6 +3769,7 @@ module Google
3469
3769
  @code_execution = args[:code_execution] if args.key?(:code_execution)
3470
3770
  @computer_use = args[:computer_use] if args.key?(:computer_use)
3471
3771
  @enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
3772
+ @exa_ai_search = args[:exa_ai_search] if args.key?(:exa_ai_search)
3472
3773
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
3473
3774
  @google_maps = args[:google_maps] if args.key?(:google_maps)
3474
3775
  @google_search = args[:google_search] if args.key?(:google_search)
@@ -3480,7 +3781,7 @@ module Google
3480
3781
  end
3481
3782
 
3482
3783
  # Tool that executes code generated by the model, and automatically returns the
3483
- # result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
3784
+ # result to the model. See also ExecutableCode and CodeExecutionResult, which
3484
3785
  # are input and output to this tool.
3485
3786
  class GoogleCloudAiplatformV1beta1ToolCodeExecution
3486
3787
  include Google::Apis::Core::Hashable
@@ -3498,6 +3799,12 @@ module Google
3498
3799
  class GoogleCloudAiplatformV1beta1ToolComputerUse
3499
3800
  include Google::Apis::Core::Hashable
3500
3801
 
3802
+ # Optional. Enables the prompt injection detection check on computer-use request.
3803
+ # Corresponds to the JSON property `enablePromptInjectionDetection`
3804
+ # @return [Boolean]
3805
+ attr_accessor :enable_prompt_injection_detection
3806
+ alias_method :enable_prompt_injection_detection?, :enable_prompt_injection_detection
3807
+
3501
3808
  # Required. The environment being operated.
3502
3809
  # Corresponds to the JSON property `environment`
3503
3810
  # @return [String]
@@ -3519,6 +3826,7 @@ module Google
3519
3826
 
3520
3827
  # Update properties of this object
3521
3828
  def update!(**args)
3829
+ @enable_prompt_injection_detection = args[:enable_prompt_injection_detection] if args.key?(:enable_prompt_injection_detection)
3522
3830
  @environment = args[:environment] if args.key?(:environment)
3523
3831
  @excluded_predefined_functions = args[:excluded_predefined_functions] if args.key?(:excluded_predefined_functions)
3524
3832
  end
@@ -3549,6 +3857,32 @@ module Google
3549
3857
  end
3550
3858
  end
3551
3859
 
3860
+ # ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding.
3861
+ class GoogleCloudAiplatformV1beta1ToolExaAiSearch
3862
+ include Google::Apis::Core::Hashable
3863
+
3864
+ # Required. The API key for ExaAiSearch.
3865
+ # Corresponds to the JSON property `apiKey`
3866
+ # @return [String]
3867
+ attr_accessor :api_key
3868
+
3869
+ # Optional. This field can be used to pass any parameter from the Exa.ai Search
3870
+ # API.
3871
+ # Corresponds to the JSON property `customConfigs`
3872
+ # @return [Hash<String,Object>]
3873
+ attr_accessor :custom_configs
3874
+
3875
+ def initialize(**args)
3876
+ update!(**args)
3877
+ end
3878
+
3879
+ # Update properties of this object
3880
+ def update!(**args)
3881
+ @api_key = args[:api_key] if args.key?(:api_key)
3882
+ @custom_configs = args[:custom_configs] if args.key?(:custom_configs)
3883
+ end
3884
+ end
3885
+
3552
3886
  # GoogleSearch tool type. Tool to support Google Search in Model. Powered by
3553
3887
  # Google.
3554
3888
  class GoogleCloudAiplatformV1beta1ToolGoogleSearch
@@ -3566,6 +3900,11 @@ module Google
3566
3900
  # @return [Array<String>]
3567
3901
  attr_accessor :exclude_domains
3568
3902
 
3903
+ # Different types of search that can be enabled on the GoogleSearch tool.
3904
+ # Corresponds to the JSON property `searchTypes`
3905
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes]
3906
+ attr_accessor :search_types
3907
+
3569
3908
  def initialize(**args)
3570
3909
  update!(**args)
3571
3910
  end
@@ -3574,6 +3913,60 @@ module Google
3574
3913
  def update!(**args)
3575
3914
  @blocking_confidence = args[:blocking_confidence] if args.key?(:blocking_confidence)
3576
3915
  @exclude_domains = args[:exclude_domains] if args.key?(:exclude_domains)
3916
+ @search_types = args[:search_types] if args.key?(:search_types)
3917
+ end
3918
+ end
3919
+
3920
+ # Image search for grounding and related configurations.
3921
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch
3922
+ include Google::Apis::Core::Hashable
3923
+
3924
+ def initialize(**args)
3925
+ update!(**args)
3926
+ end
3927
+
3928
+ # Update properties of this object
3929
+ def update!(**args)
3930
+ end
3931
+ end
3932
+
3933
+ # Different types of search that can be enabled on the GoogleSearch tool.
3934
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes
3935
+ include Google::Apis::Core::Hashable
3936
+
3937
+ # Image search for grounding and related configurations.
3938
+ # Corresponds to the JSON property `imageSearch`
3939
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch]
3940
+ attr_accessor :image_search
3941
+
3942
+ # Standard web search for grounding and related configurations. Only text
3943
+ # results are returned.
3944
+ # Corresponds to the JSON property `webSearch`
3945
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch]
3946
+ attr_accessor :web_search
3947
+
3948
+ def initialize(**args)
3949
+ update!(**args)
3950
+ end
3951
+
3952
+ # Update properties of this object
3953
+ def update!(**args)
3954
+ @image_search = args[:image_search] if args.key?(:image_search)
3955
+ @web_search = args[:web_search] if args.key?(:web_search)
3956
+ end
3957
+ end
3958
+
3959
+ # Standard web search for grounding and related configurations. Only text
3960
+ # results are returned.
3961
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch
3962
+ include Google::Apis::Core::Hashable
3963
+
3964
+ def initialize(**args)
3965
+ update!(**args)
3966
+ end
3967
+
3968
+ # Update properties of this object
3969
+ def update!(**args)
3577
3970
  end
3578
3971
  end
3579
3972
 
@@ -3871,6 +4264,44 @@ module Google
3871
4264
  end
3872
4265
  end
3873
4266
 
4267
+ # Configuration for video-specific output formatting.
4268
+ class GoogleCloudAiplatformV1beta1VideoResponseFormat
4269
+ include Google::Apis::Core::Hashable
4270
+
4271
+ # The aspect ratio for the video output.
4272
+ # Corresponds to the JSON property `aspectRatio`
4273
+ # @return [String]
4274
+ attr_accessor :aspect_ratio
4275
+
4276
+ # Optional. Delivery mode for the generated content.
4277
+ # Corresponds to the JSON property `delivery`
4278
+ # @return [String]
4279
+ attr_accessor :delivery
4280
+
4281
+ # Optional. The duration for the video output.
4282
+ # Corresponds to the JSON property `duration`
4283
+ # @return [String]
4284
+ attr_accessor :duration
4285
+
4286
+ # Optional. The Google Cloud Storage URI to store the video output. Required for
4287
+ # Vertex if delivery is URI.
4288
+ # Corresponds to the JSON property `gcsUri`
4289
+ # @return [String]
4290
+ attr_accessor :gcs_uri
4291
+
4292
+ def initialize(**args)
4293
+ update!(**args)
4294
+ end
4295
+
4296
+ # Update properties of this object
4297
+ def update!(**args)
4298
+ @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
4299
+ @delivery = args[:delivery] if args.key?(:delivery)
4300
+ @duration = args[:duration] if args.key?(:duration)
4301
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
4302
+ end
4303
+ end
4304
+
3874
4305
  # Configuration for a voice.
3875
4306
  class GoogleCloudAiplatformV1beta1VoiceConfig
3876
4307
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebasemlV2beta
18
18
  # Version of the google-apis-firebaseml_v2beta gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.18.0"
22
+ GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251214"
25
+ REVISION = "20260612"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudAiplatformV1beta1AudioResponseFormat
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class GoogleCloudAiplatformV1beta1AuthConfig
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -286,6 +292,12 @@ module Google
286
292
  include Google::Apis::Core::JsonObjectSupport
287
293
  end
288
294
 
295
+ class GoogleCloudAiplatformV1beta1GroundingChunkImage
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
289
301
  class GoogleCloudAiplatformV1beta1GroundingChunkMaps
290
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
303
 
@@ -304,6 +316,12 @@ module Google
304
316
  include Google::Apis::Core::JsonObjectSupport
305
317
  end
306
318
 
319
+ class GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
307
325
  class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
308
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
327
 
@@ -346,6 +364,12 @@ module Google
346
364
  include Google::Apis::Core::JsonObjectSupport
347
365
  end
348
366
 
367
+ class GoogleCloudAiplatformV1beta1ImageResponseFormat
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
349
373
  class GoogleCloudAiplatformV1beta1LogprobsResult
350
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
375
 
@@ -460,6 +484,12 @@ module Google
460
484
  include Google::Apis::Core::JsonObjectSupport
461
485
  end
462
486
 
487
+ class GoogleCloudAiplatformV1beta1ResponseFormat
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
463
493
  class GoogleCloudAiplatformV1beta1Retrieval
464
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
465
495
 
@@ -520,6 +550,12 @@ module Google
520
550
  include Google::Apis::Core::JsonObjectSupport
521
551
  end
522
552
 
553
+ class GoogleCloudAiplatformV1beta1TextResponseFormat
554
+ class Representation < Google::Apis::Core::JsonRepresentation; end
555
+
556
+ include Google::Apis::Core::JsonObjectSupport
557
+ end
558
+
523
559
  class GoogleCloudAiplatformV1beta1Tool
524
560
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
561
 
@@ -544,12 +580,36 @@ module Google
544
580
  include Google::Apis::Core::JsonObjectSupport
545
581
  end
546
582
 
583
+ class GoogleCloudAiplatformV1beta1ToolExaAiSearch
584
+ class Representation < Google::Apis::Core::JsonRepresentation; end
585
+
586
+ include Google::Apis::Core::JsonObjectSupport
587
+ end
588
+
547
589
  class GoogleCloudAiplatformV1beta1ToolGoogleSearch
548
590
  class Representation < Google::Apis::Core::JsonRepresentation; end
549
591
 
550
592
  include Google::Apis::Core::JsonObjectSupport
551
593
  end
552
594
 
595
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
601
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes
602
+ class Representation < Google::Apis::Core::JsonRepresentation; end
603
+
604
+ include Google::Apis::Core::JsonObjectSupport
605
+ end
606
+
607
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch
608
+ class Representation < Google::Apis::Core::JsonRepresentation; end
609
+
610
+ include Google::Apis::Core::JsonObjectSupport
611
+ end
612
+
553
613
  class GoogleCloudAiplatformV1beta1ToolParallelAiSearch
554
614
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
615
 
@@ -604,6 +664,12 @@ module Google
604
664
  include Google::Apis::Core::JsonObjectSupport
605
665
  end
606
666
 
667
+ class GoogleCloudAiplatformV1beta1VideoResponseFormat
668
+ class Representation < Google::Apis::Core::JsonRepresentation; end
669
+
670
+ include Google::Apis::Core::JsonObjectSupport
671
+ end
672
+
607
673
  class GoogleCloudAiplatformV1beta1VoiceConfig
608
674
  class Representation < Google::Apis::Core::JsonRepresentation; end
609
675
 
@@ -647,6 +713,16 @@ module Google
647
713
  end
648
714
  end
649
715
 
716
+ class GoogleCloudAiplatformV1beta1AudioResponseFormat
717
+ # @private
718
+ class Representation < Google::Apis::Core::JsonRepresentation
719
+ property :bit_rate, as: 'bitRate'
720
+ property :delivery, as: 'delivery'
721
+ property :mime_type, as: 'mimeType'
722
+ property :sample_rate, as: 'sampleRate'
723
+ end
724
+ end
725
+
650
726
  class GoogleCloudAiplatformV1beta1AuthConfig
651
727
  # @private
652
728
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -887,6 +963,7 @@ module Google
887
963
  class GoogleCloudAiplatformV1beta1FunctionDeclaration
888
964
  # @private
889
965
  class Representation < Google::Apis::Core::JsonRepresentation
966
+ property :behavior, as: 'behavior'
890
967
  property :description, as: 'description'
891
968
  property :name, as: 'name'
892
969
  property :parameters, as: 'parameters', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema::Representation
@@ -906,6 +983,7 @@ module Google
906
983
  collection :parts, as: 'parts', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionResponsePart, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionResponsePart::Representation
907
984
 
908
985
  hash :response, as: 'response'
986
+ property :scheduling, as: 'scheduling'
909
987
  end
910
988
  end
911
989
 
@@ -1020,6 +1098,8 @@ module Google
1020
1098
  property :model_config, as: 'modelConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigModelConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigModelConfig::Representation
1021
1099
 
1022
1100
  property :presence_penalty, as: 'presencePenalty'
1101
+ collection :response_format, as: 'responseFormat', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ResponseFormat, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ResponseFormat::Representation
1102
+
1023
1103
  property :response_json_schema, as: 'responseJsonSchema'
1024
1104
  property :response_logprobs, as: 'responseLogprobs'
1025
1105
  property :response_mime_type, as: 'responseMimeType'
@@ -1098,6 +1178,8 @@ module Google
1098
1178
  class GoogleCloudAiplatformV1beta1GroundingChunk
1099
1179
  # @private
1100
1180
  class Representation < Google::Apis::Core::JsonRepresentation
1181
+ property :image, as: 'image', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkImage, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkImage::Representation
1182
+
1101
1183
  property :maps, as: 'maps', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMaps, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMaps::Representation
1102
1184
 
1103
1185
  property :retrieved_context, as: 'retrievedContext', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext::Representation
@@ -1107,12 +1189,24 @@ module Google
1107
1189
  end
1108
1190
  end
1109
1191
 
1192
+ class GoogleCloudAiplatformV1beta1GroundingChunkImage
1193
+ # @private
1194
+ class Representation < Google::Apis::Core::JsonRepresentation
1195
+ property :domain, as: 'domain'
1196
+ property :image_uri, as: 'imageUri'
1197
+ property :source_uri, as: 'sourceUri'
1198
+ property :title, as: 'title'
1199
+ end
1200
+ end
1201
+
1110
1202
  class GoogleCloudAiplatformV1beta1GroundingChunkMaps
1111
1203
  # @private
1112
1204
  class Representation < Google::Apis::Core::JsonRepresentation
1113
1205
  property :place_answer_sources, as: 'placeAnswerSources', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources::Representation
1114
1206
 
1115
1207
  property :place_id, as: 'placeId'
1208
+ property :route, as: 'route', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute::Representation
1209
+
1116
1210
  property :text, as: 'text'
1117
1211
  property :title, as: 'title'
1118
1212
  property :uri, as: 'uri'
@@ -1136,6 +1230,15 @@ module Google
1136
1230
  end
1137
1231
  end
1138
1232
 
1233
+ class GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
1234
+ # @private
1235
+ class Representation < Google::Apis::Core::JsonRepresentation
1236
+ property :distance_meters, as: 'distanceMeters'
1237
+ property :duration, as: 'duration'
1238
+ property :encoded_polyline, as: 'encodedPolyline'
1239
+ end
1240
+ end
1241
+
1139
1242
  class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
1140
1243
  # @private
1141
1244
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1165,6 +1268,7 @@ module Google
1165
1268
 
1166
1269
  collection :grounding_supports, as: 'groundingSupports', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport::Representation
1167
1270
 
1271
+ collection :image_search_queries, as: 'imageSearchQueries'
1168
1272
  property :retrieval_metadata, as: 'retrievalMetadata', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RetrievalMetadata, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RetrievalMetadata::Representation
1169
1273
 
1170
1274
  collection :retrieval_queries, as: 'retrievalQueries'
@@ -1189,6 +1293,7 @@ module Google
1189
1293
  class Representation < Google::Apis::Core::JsonRepresentation
1190
1294
  collection :confidence_scores, as: 'confidenceScores'
1191
1295
  collection :grounding_chunk_indices, as: 'groundingChunkIndices'
1296
+ collection :rendered_parts, as: 'renderedParts'
1192
1297
  property :segment, as: 'segment', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment::Representation
1193
1298
 
1194
1299
  end
@@ -1202,6 +1307,7 @@ module Google
1202
1307
 
1203
1308
  property :image_size, as: 'imageSize'
1204
1309
  property :person_generation, as: 'personGeneration'
1310
+ property :prominent_people, as: 'prominentPeople'
1205
1311
  end
1206
1312
  end
1207
1313
 
@@ -1213,6 +1319,16 @@ module Google
1213
1319
  end
1214
1320
  end
1215
1321
 
1322
+ class GoogleCloudAiplatformV1beta1ImageResponseFormat
1323
+ # @private
1324
+ class Representation < Google::Apis::Core::JsonRepresentation
1325
+ property :aspect_ratio, as: 'aspectRatio'
1326
+ property :delivery, as: 'delivery'
1327
+ property :image_size, as: 'imageSize'
1328
+ property :mime_type, as: 'mimeType'
1329
+ end
1330
+ end
1331
+
1216
1332
  class GoogleCloudAiplatformV1beta1LogprobsResult
1217
1333
  # @private
1218
1334
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1318,6 +1434,8 @@ module Google
1318
1434
  class GoogleCloudAiplatformV1beta1RagChunk
1319
1435
  # @private
1320
1436
  class Representation < Google::Apis::Core::JsonRepresentation
1437
+ property :chunk_id, as: 'chunkId'
1438
+ property :file_id, as: 'fileId'
1321
1439
  property :page_span, as: 'pageSpan', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan::Representation
1322
1440
 
1323
1441
  property :text, as: 'text'
@@ -1393,6 +1511,20 @@ module Google
1393
1511
  end
1394
1512
  end
1395
1513
 
1514
+ class GoogleCloudAiplatformV1beta1ResponseFormat
1515
+ # @private
1516
+ class Representation < Google::Apis::Core::JsonRepresentation
1517
+ property :audio, as: 'audio', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AudioResponseFormat, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AudioResponseFormat::Representation
1518
+
1519
+ property :image, as: 'image', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ImageResponseFormat, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ImageResponseFormat::Representation
1520
+
1521
+ property :text, as: 'text', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1TextResponseFormat, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1TextResponseFormat::Representation
1522
+
1523
+ property :video, as: 'video', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoResponseFormat, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoResponseFormat::Representation
1524
+
1525
+ end
1526
+ end
1527
+
1396
1528
  class GoogleCloudAiplatformV1beta1Retrieval
1397
1529
  # @private
1398
1530
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1517,6 +1649,14 @@ module Google
1517
1649
  end
1518
1650
  end
1519
1651
 
1652
+ class GoogleCloudAiplatformV1beta1TextResponseFormat
1653
+ # @private
1654
+ class Representation < Google::Apis::Core::JsonRepresentation
1655
+ property :mime_type, as: 'mimeType'
1656
+ property :schema, as: 'schema'
1657
+ end
1658
+ end
1659
+
1520
1660
  class GoogleCloudAiplatformV1beta1Tool
1521
1661
  # @private
1522
1662
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1526,6 +1666,8 @@ module Google
1526
1666
 
1527
1667
  property :enterprise_web_search, as: 'enterpriseWebSearch', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch::Representation
1528
1668
 
1669
+ property :exa_ai_search, as: 'exaAiSearch', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolExaAiSearch, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolExaAiSearch::Representation
1670
+
1529
1671
  collection :function_declarations, as: 'functionDeclarations', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration::Representation
1530
1672
 
1531
1673
  property :google_maps, as: 'googleMaps', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GoogleMaps, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GoogleMaps::Representation
@@ -1552,6 +1694,7 @@ module Google
1552
1694
  class GoogleCloudAiplatformV1beta1ToolComputerUse
1553
1695
  # @private
1554
1696
  class Representation < Google::Apis::Core::JsonRepresentation
1697
+ property :enable_prompt_injection_detection, as: 'enablePromptInjectionDetection'
1555
1698
  property :environment, as: 'environment'
1556
1699
  collection :excluded_predefined_functions, as: 'excludedPredefinedFunctions'
1557
1700
  end
@@ -1567,11 +1710,43 @@ module Google
1567
1710
  end
1568
1711
  end
1569
1712
 
1713
+ class GoogleCloudAiplatformV1beta1ToolExaAiSearch
1714
+ # @private
1715
+ class Representation < Google::Apis::Core::JsonRepresentation
1716
+ property :api_key, as: 'apiKey'
1717
+ hash :custom_configs, as: 'customConfigs'
1718
+ end
1719
+ end
1720
+
1570
1721
  class GoogleCloudAiplatformV1beta1ToolGoogleSearch
1571
1722
  # @private
1572
1723
  class Representation < Google::Apis::Core::JsonRepresentation
1573
1724
  property :blocking_confidence, as: 'blockingConfidence'
1574
1725
  collection :exclude_domains, as: 'excludeDomains'
1726
+ property :search_types, as: 'searchTypes', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes::Representation
1727
+
1728
+ end
1729
+ end
1730
+
1731
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch
1732
+ # @private
1733
+ class Representation < Google::Apis::Core::JsonRepresentation
1734
+ end
1735
+ end
1736
+
1737
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchSearchTypes
1738
+ # @private
1739
+ class Representation < Google::Apis::Core::JsonRepresentation
1740
+ property :image_search, as: 'imageSearch', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchImageSearch::Representation
1741
+
1742
+ property :web_search, as: 'webSearch', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch::Representation
1743
+
1744
+ end
1745
+ end
1746
+
1747
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearchWebSearch
1748
+ # @private
1749
+ class Representation < Google::Apis::Core::JsonRepresentation
1575
1750
  end
1576
1751
  end
1577
1752
 
@@ -1656,6 +1831,16 @@ module Google
1656
1831
  end
1657
1832
  end
1658
1833
 
1834
+ class GoogleCloudAiplatformV1beta1VideoResponseFormat
1835
+ # @private
1836
+ class Representation < Google::Apis::Core::JsonRepresentation
1837
+ property :aspect_ratio, as: 'aspectRatio'
1838
+ property :delivery, as: 'delivery'
1839
+ property :duration, as: 'duration'
1840
+ property :gcs_uri, as: 'gcsUri'
1841
+ end
1842
+ end
1843
+
1659
1844
  class GoogleCloudAiplatformV1beta1VoiceConfig
1660
1845
  # @private
1661
1846
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseml_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.38.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.40.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.1'
69
+ version: '3.2'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="