Skip to content

Commit 00a61b9

Browse files
feat: Automated regeneration of firebaseml v2beta client (googleapis#21880)
Auto-created at 2025-02-26 21:28:22 +0000 using the toys pull request generator.
1 parent dd96d20 commit 00a61b9

File tree

5 files changed

+69
-51
lines changed

5 files changed

+69
-51
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230795,6 +230795,7 @@
230795230795
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1DynamicRetrievalConfig": google_cloud_aiplatform_v1beta1_dynamic_retrieval_config
230796230796
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1DynamicRetrievalConfig/dynamicThreshold": dynamic_threshold
230797230797
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1DynamicRetrievalConfig/mode": mode
230798+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1EnterpriseWebSearch": google_cloud_aiplatform_v1beta1_enterprise_web_search
230798230799
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ExecutableCode": google_cloud_aiplatform_v1beta1_executable_code
230799230800
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ExecutableCode/code": code
230800230801
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ExecutableCode/language": language
@@ -230856,6 +230857,10 @@
230856230857
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/promptTokenCount": prompt_token_count
230857230858
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/promptTokensDetails": prompt_tokens_details
230858230859
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/promptTokensDetails/prompt_tokens_detail": prompt_tokens_detail
230860+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/toolUsePromptTokenCount": tool_use_prompt_token_count
230861+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/toolUsePromptTokensDetails": tool_use_prompt_tokens_details
230862+
? "/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/toolUsePromptTokensDetails/tool_use_prompt_tokens_detail"
230863+
: tool_use_prompt_tokens_detail
230859230864
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/totalTokenCount": total_token_count
230860230865
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig": google_cloud_aiplatform_v1beta1_generation_config
230861230866
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/audioTimestamp": audio_timestamp
@@ -231035,6 +231040,7 @@
231035231040
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1SpeechConfig/voiceConfig": voice_config
231036231041
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Tool": google_cloud_aiplatform_v1beta1_tool
231037231042
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Tool/codeExecution": code_execution
231043+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Tool/enterpriseWebSearch": enterprise_web_search
231038231044
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Tool/functionDeclarations": function_declarations
231039231045
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Tool/functionDeclarations/function_declaration": function_declaration
231040231046
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Tool/googleSearch": google_search

generated/google-apis-firebaseml_v2beta/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-firebaseml_v2beta
22

3-
### v0.14.0 (2025-01-26)
3+
### v0.14.0 (2025-02-26)
44

5-
* Regenerated from discovery document revision 20250122
5+
* Regenerated from discovery document revision 20250223
66
* Regenerated using generator version 0.16.0
77

88
### v0.13.0 (2025-01-05)

generated/google-apis-firebaseml_v2beta/lib/google/apis/firebaseml_v2beta/classes.rb

Lines changed: 43 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,20 @@ def update!(**args)
418418
end
419419
end
420420

421+
# Tool to search public web data, powered by Vertex AI Search and Sec4
422+
# compliance.
423+
class GoogleCloudAiplatformV1beta1EnterpriseWebSearch
424+
include Google::Apis::Core::Hashable
425+
426+
def initialize(**args)
427+
update!(**args)
428+
end
429+
430+
# Update properties of this object
431+
def update!(**args)
432+
end
433+
end
434+
421435
# Code generated by the model that is meant to be executed, and the result
422436
# returned to the model. Generated when using the [FunctionDeclaration] tool and
423437
# [FunctionCallingConfig] mode is set to [Mode.CODE].
@@ -810,7 +824,19 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
810824
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
811825
attr_accessor :prompt_tokens_details
812826

813-
# Total token count for prompt and response candidates.
827+
# Output only. Number of tokens present in tool-use prompt(s).
828+
# Corresponds to the JSON property `toolUsePromptTokenCount`
829+
# @return [Fixnum]
830+
attr_accessor :tool_use_prompt_token_count
831+
832+
# Output only. List of modalities that were processed for tool-use request
833+
# inputs.
834+
# Corresponds to the JSON property `toolUsePromptTokensDetails`
835+
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
836+
attr_accessor :tool_use_prompt_tokens_details
837+
838+
# Total token count for prompt, response candidates, and tool-use prompts (if
839+
# present).
814840
# Corresponds to the JSON property `totalTokenCount`
815841
# @return [Fixnum]
816842
attr_accessor :total_token_count
@@ -827,6 +853,8 @@ def update!(**args)
827853
@candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
828854
@prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
829855
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
856+
@tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
857+
@tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
830858
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
831859
end
832860
end
@@ -924,11 +952,6 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
924952
# @return [Float]
925953
attr_accessor :temperature
926954

927-
# Config for thinking features.
928-
# Corresponds to the JSON property `thinkingConfig`
929-
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig]
930-
attr_accessor :thinking_config
931-
932955
# Optional. If specified, top-k sampling will be used.
933956
# Corresponds to the JSON property `topK`
934957
# @return [Float]
@@ -961,7 +984,6 @@ def update!(**args)
961984
@speech_config = args[:speech_config] if args.key?(:speech_config)
962985
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
963986
@temperature = args[:temperature] if args.key?(:temperature)
964-
@thinking_config = args[:thinking_config] if args.key?(:thinking_config)
965987
@top_k = args[:top_k] if args.key?(:top_k)
966988
@top_p = args[:top_p] if args.key?(:top_p)
967989
end
@@ -1033,27 +1055,6 @@ def update!(**args)
10331055
end
10341056
end
10351057

1036-
# Config for thinking features.
1037-
class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
1038-
include Google::Apis::Core::Hashable
1039-
1040-
# Optional. Indicates whether to include thoughts in the response. If true,
1041-
# thoughts are returned only when available.
1042-
# Corresponds to the JSON property `includeThoughts`
1043-
# @return [Boolean]
1044-
attr_accessor :include_thoughts
1045-
alias_method :include_thoughts?, :include_thoughts
1046-
1047-
def initialize(**args)
1048-
update!(**args)
1049-
end
1050-
1051-
# Update properties of this object
1052-
def update!(**args)
1053-
@include_thoughts = args[:include_thoughts] if args.key?(:include_thoughts)
1054-
end
1055-
end
1056-
10571058
# Tool to retrieve public web data for grounding, powered by Google.
10581059
class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
10591060
include Google::Apis::Core::Hashable
@@ -1604,8 +1605,9 @@ class GoogleCloudAiplatformV1beta1Retrieval
16041605
attr_accessor :disable_attribution
16051606
alias_method :disable_attribution?, :disable_attribution
16061607

1607-
# Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
1608-
# google.com/products/agent-builder
1608+
# Retrieve from Vertex AI Search datastore or engine for grounding. datastore
1609+
# and engine are mutually exclusive. See https://cloud.google.com/products/agent-
1610+
# builder
16091611
# Corresponds to the JSON property `vertexAiSearch`
16101612
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VertexAiSearch]
16111613
attr_accessor :vertex_ai_search
@@ -2021,6 +2023,12 @@ class GoogleCloudAiplatformV1beta1Tool
20212023
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution]
20222024
attr_accessor :code_execution
20232025

2026+
# Tool to search public web data, powered by Vertex AI Search and Sec4
2027+
# compliance.
2028+
# Corresponds to the JSON property `enterpriseWebSearch`
2029+
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch]
2030+
attr_accessor :enterprise_web_search
2031+
20242032
# Optional. Function tool type. One or more function declarations to be passed
20252033
# to the model along with the current user query. Model may decide to call a
20262034
# subset of these functions by populating FunctionCall in the response. User
@@ -2054,6 +2062,7 @@ def initialize(**args)
20542062
# Update properties of this object
20552063
def update!(**args)
20562064
@code_execution = args[:code_execution] if args.key?(:code_execution)
2065+
@enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
20572066
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
20582067
@google_search = args[:google_search] if args.key?(:google_search)
20592068
@google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
@@ -2115,12 +2124,13 @@ def update!(**args)
21152124
end
21162125
end
21172126

2118-
# Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
2119-
# google.com/products/agent-builder
2127+
# Retrieve from Vertex AI Search datastore or engine for grounding. datastore
2128+
# and engine are mutually exclusive. See https://cloud.google.com/products/agent-
2129+
# builder
21202130
class GoogleCloudAiplatformV1beta1VertexAiSearch
21212131
include Google::Apis::Core::Hashable
21222132

2123-
# Required. Fully-qualified Vertex AI Search data store resource ID. Format: `
2133+
# Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `
21242134
# projects/`project`/locations/`location`/collections/`collection`/dataStores/`
21252135
# dataStore``
21262136
# Corresponds to the JSON property `datastore`

generated/google-apis-firebaseml_v2beta/lib/google/apis/firebaseml_v2beta/gem_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module FirebasemlV2beta
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250122"
25+
REVISION = "20250223"
2626
end
2727
end
2828
end

generated/google-apis-firebaseml_v2beta/lib/google/apis/firebaseml_v2beta/representations.rb

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class GoogleCloudAiplatformV1beta1EnterpriseWebSearch
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
8591
class GoogleCloudAiplatformV1beta1ExecutableCode
8692
class Representation < Google::Apis::Core::JsonRepresentation; end
8793

@@ -166,12 +172,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
166172
include Google::Apis::Core::JsonObjectSupport
167173
end
168174

169-
class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
170-
class Representation < Google::Apis::Core::JsonRepresentation; end
171-
172-
include Google::Apis::Core::JsonObjectSupport
173-
end
174-
175175
class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
176176
class Representation < Google::Apis::Core::JsonRepresentation; end
177177

@@ -510,6 +510,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
510510
end
511511
end
512512

513+
class GoogleCloudAiplatformV1beta1EnterpriseWebSearch
514+
# @private
515+
class Representation < Google::Apis::Core::JsonRepresentation
516+
end
517+
end
518+
513519
class GoogleCloudAiplatformV1beta1ExecutableCode
514520
# @private
515521
class Representation < Google::Apis::Core::JsonRepresentation
@@ -620,6 +626,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
620626
property :prompt_token_count, as: 'promptTokenCount'
621627
collection :prompt_tokens_details, as: 'promptTokensDetails', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount::Representation
622628

629+
property :tool_use_prompt_token_count, as: 'toolUsePromptTokenCount'
630+
collection :tool_use_prompt_tokens_details, as: 'toolUsePromptTokensDetails', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount::Representation
631+
623632
property :total_token_count, as: 'totalTokenCount'
624633
end
625634
end
@@ -646,8 +655,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
646655

647656
collection :stop_sequences, as: 'stopSequences'
648657
property :temperature, as: 'temperature'
649-
property :thinking_config, as: 'thinkingConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig::Representation
650-
651658
property :top_k, as: 'topK'
652659
property :top_p, as: 'topP'
653660
end
@@ -677,13 +684,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
677684
end
678685
end
679686

680-
class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
681-
# @private
682-
class Representation < Google::Apis::Core::JsonRepresentation
683-
property :include_thoughts, as: 'includeThoughts'
684-
end
685-
end
686-
687687
class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
688688
# @private
689689
class Representation < Google::Apis::Core::JsonRepresentation
@@ -972,6 +972,8 @@ class GoogleCloudAiplatformV1beta1Tool
972972
class Representation < Google::Apis::Core::JsonRepresentation
973973
property :code_execution, as: 'codeExecution', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution::Representation
974974

975+
property :enterprise_web_search, as: 'enterpriseWebSearch', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch::Representation
976+
975977
collection :function_declarations, as: 'functionDeclarations', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration::Representation
976978

977979
property :google_search, as: 'googleSearch', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearch, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearch::Representation

0 commit comments

Comments
 (0)