Skip to content

Commit 2855020

Browse files
feat: Automated regeneration of firebaseml v2beta client (#21496)
Auto-created at 2025-01-26 10:29:36 +0000 using the toys pull request generator.
1 parent 017fc8b commit 2855020

File tree

5 files changed

+174
-3
lines changed

5 files changed

+174
-3
lines changed

api_names_out.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226787,6 +226787,7 @@
226787226787
"/firebaseml:v2beta/GenerationConfig/topP": top_p
226788226788
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Blob": google_cloud_aiplatform_v1beta1_blob
226789226789
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Blob/data": data
226790+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Blob/displayName": display_name
226790226791
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Blob/mimeType": mime_type
226791226792
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Candidate": google_cloud_aiplatform_v1beta1_candidate
226792226793
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Candidate/avgLogprobs": avg_logprobs
@@ -226827,6 +226828,8 @@
226827226828
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1CountTokensRequest/tools": tools
226828226829
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1CountTokensRequest/tools/tool": tool
226829226830
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1CountTokensResponse": google_cloud_aiplatform_v1beta1_count_tokens_response
226831+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1CountTokensResponse/promptTokensDetails": prompt_tokens_details
226832+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1CountTokensResponse/promptTokensDetails/prompt_tokens_detail": prompt_tokens_detail
226830226833
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1CountTokensResponse/totalBillableCharacters": total_billable_characters
226831226834
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1CountTokensResponse/totalTokens": total_tokens
226832226835
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1DynamicRetrievalConfig": google_cloud_aiplatform_v1beta1_dynamic_retrieval_config
@@ -226836,6 +226839,7 @@
226836226839
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ExecutableCode/code": code
226837226840
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ExecutableCode/language": language
226838226841
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1FileData": google_cloud_aiplatform_v1beta1_file_data
226842+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1FileData/displayName": display_name
226839226843
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1FileData/fileUri": file_uri
226840226844
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1FileData/mimeType": mime_type
226841226845
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1FunctionCall": google_cloud_aiplatform_v1beta1_function_call
@@ -226871,18 +226875,27 @@
226871226875
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse": google_cloud_aiplatform_v1beta1_generate_content_response
226872226876
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse/candidates": candidates
226873226877
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse/candidates/candidate": candidate
226878+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse/createTime": create_time
226874226879
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse/modelVersion": model_version
226875226880
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse/promptFeedback": prompt_feedback
226881+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse/responseId": response_id
226876226882
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponse/usageMetadata": usage_metadata
226877226883
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback": google_cloud_aiplatform_v1beta1_generate_content_response_prompt_feedback
226878226884
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback/blockReason": block_reason
226879226885
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback/blockReasonMessage": block_reason_message
226880226886
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback/safetyRatings": safety_ratings
226881226887
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback/safetyRatings/safety_rating": safety_rating
226882226888
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata": google_cloud_aiplatform_v1beta1_generate_content_response_usage_metadata
226889+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/cacheTokensDetails": cache_tokens_details
226890+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/cacheTokensDetails/cache_tokens_detail": cache_tokens_detail
226883226891
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/cachedContentTokenCount": cached_content_token_count
226884226892
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/candidatesTokenCount": candidates_token_count
226893+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/candidatesTokensDetails": candidates_tokens_details
226894+
? "/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/candidatesTokensDetails/candidates_tokens_detail"
226895+
: candidates_tokens_detail
226885226896
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/promptTokenCount": prompt_token_count
226897+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/promptTokensDetails": prompt_tokens_details
226898+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/promptTokensDetails/prompt_tokens_detail": prompt_tokens_detail
226886226899
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata/totalTokenCount": total_token_count
226887226900
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig": google_cloud_aiplatform_v1beta1_generation_config
226888226901
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/audioTimestamp": audio_timestamp
@@ -226903,6 +226916,7 @@
226903226916
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/stopSequences": stop_sequences
226904226917
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/stopSequences/stop_sequence": stop_sequence
226905226918
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/temperature": temperature
226919+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/thinkingConfig": thinking_config
226906226920
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/topK": top_k
226907226921
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfig/topP": top_p
226908226922
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig": google_cloud_aiplatform_v1beta1_generation_config_routing_config
@@ -226912,6 +226926,8 @@
226912226926
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode/modelRoutingPreference": model_routing_preference
226913226927
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode": google_cloud_aiplatform_v1beta1_generation_config_routing_config_manual_routing_mode
226914226928
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode/modelName": model_name
226929+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig": google_cloud_aiplatform_v1beta1_generation_config_thinking_config
226930+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig/includeThoughts": include_thoughts
226915226931
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GoogleSearchRetrieval": google_cloud_aiplatform_v1beta1_google_search_retrieval
226916226932
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GoogleSearchRetrieval/dynamicRetrievalConfig": dynamic_retrieval_config
226917226933
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GroundingAttribution": google_cloud_aiplatform_v1beta1_grounding_attribution
@@ -226966,6 +226982,9 @@
226966226982
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates": google_cloud_aiplatform_v1beta1_logprobs_result_top_candidates
226967226983
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates/candidates": candidates
226968226984
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates/candidates/candidate": candidate
226985+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModalityTokenCount": google_cloud_aiplatform_v1beta1_modality_token_count
226986+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModalityTokenCount/modality": modality
226987+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModalityTokenCount/tokenCount": token_count
226969226988
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Part": google_cloud_aiplatform_v1beta1_part
226970226989
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Part/codeExecutionResult": code_execution_result
226971226990
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Part/executableCode": executable_code

generated/google-apis-firebaseml_v2beta/CHANGELOG.md

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

3+
### v0.14.0 (2025-01-26)
4+
5+
* Regenerated from discovery document revision 20250122
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.13.0 (2025-01-05)
49

510
* Regenerated from discovery document revision 20241231

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

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ class GoogleCloudAiplatformV1beta1Blob
7373
# @return [String]
7474
attr_accessor :data
7575

76+
# Optional. Display name of the blob. Used to provide a label or filename to
77+
# distinguish blobs. This field is only returned in PromptMessage for prompt
78+
# management. It is not currently used in the Gemini GenerateContent calls.
79+
# Corresponds to the JSON property `displayName`
80+
# @return [String]
81+
attr_accessor :display_name
82+
7683
# Required. The IANA standard MIME type of the source data.
7784
# Corresponds to the JSON property `mimeType`
7885
# @return [String]
@@ -85,6 +92,7 @@ def initialize(**args)
8592
# Update properties of this object
8693
def update!(**args)
8794
@data = args[:data] if args.key?(:data)
95+
@display_name = args[:display_name] if args.key?(:display_name)
8896
@mime_type = args[:mime_type] if args.key?(:mime_type)
8997
end
9098
end
@@ -356,6 +364,11 @@ def update!(**args)
356364
class GoogleCloudAiplatformV1beta1CountTokensResponse
357365
include Google::Apis::Core::Hashable
358366

367+
# Output only. List of modalities that were processed in the request input.
368+
# Corresponds to the JSON property `promptTokensDetails`
369+
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
370+
attr_accessor :prompt_tokens_details
371+
359372
# The total number of billable characters counted across all instances from the
360373
# request.
361374
# Corresponds to the JSON property `totalBillableCharacters`
@@ -373,6 +386,7 @@ def initialize(**args)
373386

374387
# Update properties of this object
375388
def update!(**args)
389+
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
376390
@total_billable_characters = args[:total_billable_characters] if args.key?(:total_billable_characters)
377391
@total_tokens = args[:total_tokens] if args.key?(:total_tokens)
378392
end
@@ -435,6 +449,14 @@ def update!(**args)
435449
class GoogleCloudAiplatformV1beta1FileData
436450
include Google::Apis::Core::Hashable
437451

452+
# Optional. Display name of the file data. Used to provide a label or filename
453+
# to distinguish file datas. This field is only returned in PromptMessage for
454+
# prompt management. It is not currently used in the Gemini GenerateContent
455+
# calls.
456+
# Corresponds to the JSON property `displayName`
457+
# @return [String]
458+
attr_accessor :display_name
459+
438460
# Required. URI.
439461
# Corresponds to the JSON property `fileUri`
440462
# @return [String]
@@ -451,6 +473,7 @@ def initialize(**args)
451473

452474
# Update properties of this object
453475
def update!(**args)
476+
@display_name = args[:display_name] if args.key?(:display_name)
454477
@file_uri = args[:file_uri] if args.key?(:file_uri)
455478
@mime_type = args[:mime_type] if args.key?(:mime_type)
456479
end
@@ -678,6 +701,11 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponse
678701
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Candidate>]
679702
attr_accessor :candidates
680703

704+
# Output only. Timestamp when the request is made to the server.
705+
# Corresponds to the JSON property `createTime`
706+
# @return [String]
707+
attr_accessor :create_time
708+
681709
# Output only. The model version used to generate the response.
682710
# Corresponds to the JSON property `modelVersion`
683711
# @return [String]
@@ -688,6 +716,12 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponse
688716
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
689717
attr_accessor :prompt_feedback
690718

719+
# Output only. response_id is used to identify each response. It is the encoding
720+
# of the event_id.
721+
# Corresponds to the JSON property `responseId`
722+
# @return [String]
723+
attr_accessor :response_id
724+
691725
# Usage metadata about response(s).
692726
# Corresponds to the JSON property `usageMetadata`
693727
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
@@ -700,8 +734,10 @@ def initialize(**args)
700734
# Update properties of this object
701735
def update!(**args)
702736
@candidates = args[:candidates] if args.key?(:candidates)
737+
@create_time = args[:create_time] if args.key?(:create_time)
703738
@model_version = args[:model_version] if args.key?(:model_version)
704739
@prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
740+
@response_id = args[:response_id] if args.key?(:response_id)
705741
@usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
706742
end
707743
end
@@ -741,6 +777,11 @@ def update!(**args)
741777
class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
742778
include Google::Apis::Core::Hashable
743779

780+
# Output only. List of modalities of the cached content in the request input.
781+
# Corresponds to the JSON property `cacheTokensDetails`
782+
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
783+
attr_accessor :cache_tokens_details
784+
744785
# Output only. Number of tokens in the cached part in the input (the cached
745786
# content).
746787
# Corresponds to the JSON property `cachedContentTokenCount`
@@ -752,13 +793,23 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
752793
# @return [Fixnum]
753794
attr_accessor :candidates_token_count
754795

796+
# Output only. List of modalities that were returned in the response.
797+
# Corresponds to the JSON property `candidatesTokensDetails`
798+
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
799+
attr_accessor :candidates_tokens_details
800+
755801
# Number of tokens in the request. When `cached_content` is set, this is still
756802
# the total effective prompt size meaning this includes the number of tokens in
757803
# the cached content.
758804
# Corresponds to the JSON property `promptTokenCount`
759805
# @return [Fixnum]
760806
attr_accessor :prompt_token_count
761807

808+
# Output only. List of modalities that were processed in the request input.
809+
# Corresponds to the JSON property `promptTokensDetails`
810+
# @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
811+
attr_accessor :prompt_tokens_details
812+
762813
# Total token count for prompt and response candidates.
763814
# Corresponds to the JSON property `totalTokenCount`
764815
# @return [Fixnum]
@@ -770,9 +821,12 @@ def initialize(**args)
770821

771822
# Update properties of this object
772823
def update!(**args)
824+
@cache_tokens_details = args[:cache_tokens_details] if args.key?(:cache_tokens_details)
773825
@cached_content_token_count = args[:cached_content_token_count] if args.key?(:cached_content_token_count)
774826
@candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
827+
@candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
775828
@prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
829+
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
776830
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
777831
end
778832
end
@@ -870,6 +924,11 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
870924
# @return [Float]
871925
attr_accessor :temperature
872926

927+
# Config for thinking features.
928+
# Corresponds to the JSON property `thinkingConfig`
929+
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig]
930+
attr_accessor :thinking_config
931+
873932
# Optional. If specified, top-k sampling will be used.
874933
# Corresponds to the JSON property `topK`
875934
# @return [Float]
@@ -902,6 +961,7 @@ def update!(**args)
902961
@speech_config = args[:speech_config] if args.key?(:speech_config)
903962
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
904963
@temperature = args[:temperature] if args.key?(:temperature)
964+
@thinking_config = args[:thinking_config] if args.key?(:thinking_config)
905965
@top_k = args[:top_k] if args.key?(:top_k)
906966
@top_p = args[:top_p] if args.key?(:top_p)
907967
end
@@ -973,6 +1033,27 @@ def update!(**args)
9731033
end
9741034
end
9751035

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+
9761057
# Tool to retrieve public web data for grounding, powered by Google.
9771058
class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
9781059
include Google::Apis::Core::Hashable
@@ -1233,6 +1314,31 @@ def update!(**args)
12331314
end
12341315
end
12351316

1317+
# Represents token counting info for a single modality.
1318+
class GoogleCloudAiplatformV1beta1ModalityTokenCount
1319+
include Google::Apis::Core::Hashable
1320+
1321+
# The modality associated with this token count.
1322+
# Corresponds to the JSON property `modality`
1323+
# @return [String]
1324+
attr_accessor :modality
1325+
1326+
# Number of tokens.
1327+
# Corresponds to the JSON property `tokenCount`
1328+
# @return [Fixnum]
1329+
attr_accessor :token_count
1330+
1331+
def initialize(**args)
1332+
update!(**args)
1333+
end
1334+
1335+
# Update properties of this object
1336+
def update!(**args)
1337+
@modality = args[:modality] if args.key?(:modality)
1338+
@token_count = args[:token_count] if args.key?(:token_count)
1339+
end
1340+
end
1341+
12361342
# A datatype containing media that is part of a multi-part `Content` message. A `
12371343
# Part` consists of data which has an associated datatype. A `Part` can only
12381344
# contain one of the accepted types in `Part.data`. A `Part` must have a fixed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module FirebasemlV2beta
1818
# Version of the google-apis-firebaseml_v2beta gem
19-
GEM_VERSION = "0.13.0"
19+
GEM_VERSION = "0.14.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

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

0 commit comments

Comments
 (0)