Skip to content

Commit f30a435

Browse files
feat: Automated regeneration of dialogflow v2 client (googleapis#22586)
Auto-created at 2025-04-27 10:35:17 +0000 using the toys pull request generator.
1 parent 7a4f143 commit f30a435

File tree

5 files changed

+231
-4
lines changed

5 files changed

+231
-4
lines changed

api_names_out.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178307,6 +178307,7 @@
178307178307
"/dialogflow:v2/GoogleCloudDialogflowCxV3QueryInput/intent": intent
178308178308
"/dialogflow:v2/GoogleCloudDialogflowCxV3QueryInput/languageCode": language_code
178309178309
"/dialogflow:v2/GoogleCloudDialogflowCxV3QueryInput/text": text
178310+
"/dialogflow:v2/GoogleCloudDialogflowCxV3QueryInput/toolCallResult": tool_call_result
178310178311
"/dialogflow:v2/GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata": google_cloud_dialogflow_cx_v3_reload_document_operation_metadata
178311178312
"/dialogflow:v2/GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata/genericMetadata": generic_metadata
178312178313
"/dialogflow:v2/GoogleCloudDialogflowCxV3ResponseMessage": google_cloud_dialogflow_cx_v3_response_message
@@ -178404,6 +178405,14 @@
178404178405
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCall/inputParameters": input_parameters
178405178406
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCall/inputParameters/input_parameter": input_parameter
178406178407
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCall/tool": tool
178408+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResult": google_cloud_dialogflow_cx_v3_tool_call_result
178409+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResult/action": action
178410+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResult/error": error
178411+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResult/outputParameters": output_parameters
178412+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResult/outputParameters/output_parameter": output_parameter
178413+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResult/tool": tool
178414+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResultError": google_cloud_dialogflow_cx_v3_tool_call_result_error
178415+
"/dialogflow:v2/GoogleCloudDialogflowCxV3ToolCallResultError/message": message
178407178416
"/dialogflow:v2/GoogleCloudDialogflowCxV3TransitionRoute": google_cloud_dialogflow_cx_v3_transition_route
178408178417
"/dialogflow:v2/GoogleCloudDialogflowCxV3TransitionRoute/condition": condition
178409178418
"/dialogflow:v2/GoogleCloudDialogflowCxV3TransitionRoute/description": description
@@ -179285,6 +179294,10 @@
179285179294
"/dialogflow:v2/GoogleCloudDialogflowV2CreateConversationModelOperationMetadata/conversationModel": conversation_model
179286179295
"/dialogflow:v2/GoogleCloudDialogflowV2CreateConversationModelOperationMetadata/createTime": create_time
179287179296
"/dialogflow:v2/GoogleCloudDialogflowV2CreateConversationModelOperationMetadata/state": state
179297+
"/dialogflow:v2/GoogleCloudDialogflowV2CustomPronunciationParams": google_cloud_dialogflow_v2_custom_pronunciation_params
179298+
"/dialogflow:v2/GoogleCloudDialogflowV2CustomPronunciationParams/phoneticEncoding": phonetic_encoding
179299+
"/dialogflow:v2/GoogleCloudDialogflowV2CustomPronunciationParams/phrase": phrase
179300+
"/dialogflow:v2/GoogleCloudDialogflowV2CustomPronunciationParams/pronunciation": pronunciation
179288179301
"/dialogflow:v2/GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata": google_cloud_dialogflow_v2_delete_conversation_dataset_operation_metadata
179289179302
"/dialogflow:v2/GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata": google_cloud_dialogflow_v2_delete_conversation_model_operation_metadata
179290179303
"/dialogflow:v2/GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata/conversationModel": conversation_model
@@ -180226,6 +180239,8 @@
180226180239
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/effectsProfileId": effects_profile_id
180227180240
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/effectsProfileId/effects_profile_id": effects_profile_id
180228180241
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/pitch": pitch
180242+
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/pronunciations": pronunciations
180243+
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/pronunciations/pronunciation": pronunciation
180229180244
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/speakingRate": speaking_rate
180230180245
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/voice": voice
180231180246
"/dialogflow:v2/GoogleCloudDialogflowV2SynthesizeSpeechConfig/volumeGainDb": volume_gain_db

generated/google-apis-dialogflow_v2/CHANGELOG.md

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

3+
### v0.102.0 (2025-04-27)
4+
5+
* Regenerated from discovery document revision 20250422
6+
37
### v0.101.0 (2025-03-30)
48

59
* Regenerated from discovery document revision 20250325

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

Lines changed: 144 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,6 +2323,11 @@ class GoogleCloudDialogflowCxV3QueryInput
23232323
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TextInput]
23242324
attr_accessor :text
23252325

2326+
# The result of calling a tool's action that has been executed by the client.
2327+
# Corresponds to the JSON property `toolCallResult`
2328+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResult]
2329+
attr_accessor :tool_call_result
2330+
23262331
def initialize(**args)
23272332
update!(**args)
23282333
end
@@ -2335,6 +2340,7 @@ def update!(**args)
23352340
@intent = args[:intent] if args.key?(:intent)
23362341
@language_code = args[:language_code] if args.key?(:language_code)
23372342
@text = args[:text] if args.key?(:text)
2343+
@tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
23382344
end
23392345
end
23402346

@@ -2437,6 +2443,11 @@ class GoogleCloudDialogflowCxV3ResponseMessage
24372443
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText]
24382444
attr_accessor :text
24392445

2446+
# Represents a call of a specific tool's action with the specified inputs.
2447+
# Corresponds to the JSON property `toolCall`
2448+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall]
2449+
attr_accessor :tool_call
2450+
24402451
def initialize(**args)
24412452
update!(**args)
24422453
end
@@ -2455,6 +2466,7 @@ def update!(**args)
24552466
@response_type = args[:response_type] if args.key?(:response_type)
24562467
@telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
24572468
@text = args[:text] if args.key?(:text)
2469+
@tool_call = args[:tool_call] if args.key?(:tool_call)
24582470
end
24592471
end
24602472

@@ -3076,6 +3088,95 @@ def update!(**args)
30763088
end
30773089
end
30783090

3091+
# Represents a call of a specific tool's action with the specified inputs.
3092+
class GoogleCloudDialogflowCxV3ToolCall
3093+
include Google::Apis::Core::Hashable
3094+
3095+
# Required. The name of the tool's action associated with this call.
3096+
# Corresponds to the JSON property `action`
3097+
# @return [String]
3098+
attr_accessor :action
3099+
3100+
# Optional. The action's input parameters.
3101+
# Corresponds to the JSON property `inputParameters`
3102+
# @return [Hash<String,Object>]
3103+
attr_accessor :input_parameters
3104+
3105+
# Required. The tool associated with this call. Format: `projects//locations//
3106+
# agents//tools/`.
3107+
# Corresponds to the JSON property `tool`
3108+
# @return [String]
3109+
attr_accessor :tool
3110+
3111+
def initialize(**args)
3112+
update!(**args)
3113+
end
3114+
3115+
# Update properties of this object
3116+
def update!(**args)
3117+
@action = args[:action] if args.key?(:action)
3118+
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
3119+
@tool = args[:tool] if args.key?(:tool)
3120+
end
3121+
end
3122+
3123+
# The result of calling a tool's action that has been executed by the client.
3124+
class GoogleCloudDialogflowCxV3ToolCallResult
3125+
include Google::Apis::Core::Hashable
3126+
3127+
# Required. The name of the tool's action associated with this call.
3128+
# Corresponds to the JSON property `action`
3129+
# @return [String]
3130+
attr_accessor :action
3131+
3132+
# An error produced by the tool call.
3133+
# Corresponds to the JSON property `error`
3134+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResultError]
3135+
attr_accessor :error
3136+
3137+
# The tool call's output parameters.
3138+
# Corresponds to the JSON property `outputParameters`
3139+
# @return [Hash<String,Object>]
3140+
attr_accessor :output_parameters
3141+
3142+
# Required. The tool associated with this call. Format: `projects//locations//
3143+
# agents//tools/`.
3144+
# Corresponds to the JSON property `tool`
3145+
# @return [String]
3146+
attr_accessor :tool
3147+
3148+
def initialize(**args)
3149+
update!(**args)
3150+
end
3151+
3152+
# Update properties of this object
3153+
def update!(**args)
3154+
@action = args[:action] if args.key?(:action)
3155+
@error = args[:error] if args.key?(:error)
3156+
@output_parameters = args[:output_parameters] if args.key?(:output_parameters)
3157+
@tool = args[:tool] if args.key?(:tool)
3158+
end
3159+
end
3160+
3161+
# An error produced by the tool call.
3162+
class GoogleCloudDialogflowCxV3ToolCallResultError
3163+
include Google::Apis::Core::Hashable
3164+
3165+
# Optional. The error message of the function.
3166+
# Corresponds to the JSON property `message`
3167+
# @return [String]
3168+
attr_accessor :message
3169+
3170+
def initialize(**args)
3171+
update!(**args)
3172+
end
3173+
3174+
# Update properties of this object
3175+
def update!(**args)
3176+
@message = args[:message] if args.key?(:message)
3177+
end
3178+
end
3179+
30793180
# A transition route specifies a intent that can be matched and/or a data
30803181
# condition that can be evaluated during a session. When a specified transition
30813182
# is matched, the following actions are taken in order: * If there is a `
@@ -9692,6 +9793,39 @@ def update!(**args)
96929793
end
96939794
end
96949795

9796+
# Pronunciation customization for a phrase.
9797+
class GoogleCloudDialogflowV2CustomPronunciationParams
9798+
include Google::Apis::Core::Hashable
9799+
9800+
# The phonetic encoding of the phrase.
9801+
# Corresponds to the JSON property `phoneticEncoding`
9802+
# @return [String]
9803+
attr_accessor :phonetic_encoding
9804+
9805+
# The phrase to which the customization is applied. The phrase can be multiple
9806+
# words, such as proper nouns, but shouldn't span the length of the sentence.
9807+
# Corresponds to the JSON property `phrase`
9808+
# @return [String]
9809+
attr_accessor :phrase
9810+
9811+
# The pronunciation of the phrase. This must be in the phonetic encoding
9812+
# specified above.
9813+
# Corresponds to the JSON property `pronunciation`
9814+
# @return [String]
9815+
attr_accessor :pronunciation
9816+
9817+
def initialize(**args)
9818+
update!(**args)
9819+
end
9820+
9821+
# Update properties of this object
9822+
def update!(**args)
9823+
@phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding)
9824+
@phrase = args[:phrase] if args.key?(:phrase)
9825+
@pronunciation = args[:pronunciation] if args.key?(:pronunciation)
9826+
end
9827+
end
9828+
96959829
# Metadata for DeleteConversationDataset.
96969830
class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
96979831
include Google::Apis::Core::Hashable
@@ -12326,7 +12460,8 @@ class GoogleCloudDialogflowV2InputAudioConfig
1232612460
# translations. See [Language Support](https://cloud.google.com/dialogflow/docs/
1232712461
# reference/language) for a list of the currently supported language codes. Note
1232812462
# that queries in the same session do not necessarily need to specify the same
12329-
# language.
12463+
# language. If not set, the language is inferred from the ConversationProfile.
12464+
# stt_config.
1233012465
# Corresponds to the JSON property `languageCode`
1233112466
# @return [String]
1233212467
attr_accessor :language_code
@@ -15978,7 +16113,8 @@ class GoogleCloudDialogflowV2SpeechToTextConfig
1597816113
# The language of the supplied audio. Dialogflow does not do translations. See [
1597916114
# Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
1598016115
# for a list of the currently supported language codes. Note that queries in the
15981-
# same session do not necessarily need to specify the same language.
16116+
# same session do not necessarily need to specify the same language. If not
16117+
# specified, the default language configured at ConversationProfile is used.
1598216118
# Corresponds to the JSON property `languageCode`
1598316119
# @return [String]
1598416120
attr_accessor :language_code
@@ -16821,6 +16957,11 @@ class GoogleCloudDialogflowV2SynthesizeSpeechConfig
1682116957
# @return [Float]
1682216958
attr_accessor :pitch
1682316959

16960+
# Optional. The custom pronunciations for the synthesized audio.
16961+
# Corresponds to the JSON property `pronunciations`
16962+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CustomPronunciationParams>]
16963+
attr_accessor :pronunciations
16964+
1682416965
# Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
1682516966
# native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is
1682616967
# half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
@@ -16854,6 +16995,7 @@ def initialize(**args)
1685416995
def update!(**args)
1685516996
@effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id)
1685616997
@pitch = args[:pitch] if args.key?(:pitch)
16998+
@pronunciations = args[:pronunciations] if args.key?(:pronunciations)
1685716999
@speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
1685817000
@voice = args[:voice] if args.key?(:voice)
1685917001
@volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DialogflowV2
1818
# Version of the google-apis-dialogflow_v2 gem
19-
GEM_VERSION = "0.101.0"
19+
GEM_VERSION = "0.102.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

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

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
544544
include Google::Apis::Core::JsonObjectSupport
545545
end
546546

547+
class GoogleCloudDialogflowCxV3ToolCall
548+
class Representation < Google::Apis::Core::JsonRepresentation; end
549+
550+
include Google::Apis::Core::JsonObjectSupport
551+
end
552+
553+
class GoogleCloudDialogflowCxV3ToolCallResult
554+
class Representation < Google::Apis::Core::JsonRepresentation; end
555+
556+
include Google::Apis::Core::JsonObjectSupport
557+
end
558+
559+
class GoogleCloudDialogflowCxV3ToolCallResultError
560+
class Representation < Google::Apis::Core::JsonRepresentation; end
561+
562+
include Google::Apis::Core::JsonObjectSupport
563+
end
564+
547565
class GoogleCloudDialogflowCxV3TransitionRoute
548566
class Representation < Google::Apis::Core::JsonRepresentation; end
549567

@@ -1540,6 +1558,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
15401558
include Google::Apis::Core::JsonObjectSupport
15411559
end
15421560

1561+
class GoogleCloudDialogflowV2CustomPronunciationParams
1562+
class Representation < Google::Apis::Core::JsonRepresentation; end
1563+
1564+
include Google::Apis::Core::JsonObjectSupport
1565+
end
1566+
15431567
class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
15441568
class Representation < Google::Apis::Core::JsonRepresentation; end
15451569

@@ -4175,6 +4199,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
41754199
property :language_code, as: 'languageCode'
41764200
property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TextInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TextInput::Representation
41774201

4202+
property :tool_call_result, as: 'toolCallResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResult::Representation
4203+
41784204
end
41794205
end
41804206

@@ -4202,6 +4228,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
42024228

42034229
property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText::Representation
42044230

4231+
property :tool_call, as: 'toolCall', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall::Representation
4232+
42054233
end
42064234
end
42074235

@@ -4391,6 +4419,33 @@ class Representation < Google::Apis::Core::JsonRepresentation
43914419
end
43924420
end
43934421

4422+
class GoogleCloudDialogflowCxV3ToolCall
4423+
# @private
4424+
class Representation < Google::Apis::Core::JsonRepresentation
4425+
property :action, as: 'action'
4426+
hash :input_parameters, as: 'inputParameters'
4427+
property :tool, as: 'tool'
4428+
end
4429+
end
4430+
4431+
class GoogleCloudDialogflowCxV3ToolCallResult
4432+
# @private
4433+
class Representation < Google::Apis::Core::JsonRepresentation
4434+
property :action, as: 'action'
4435+
property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResultError, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResultError::Representation
4436+
4437+
hash :output_parameters, as: 'outputParameters'
4438+
property :tool, as: 'tool'
4439+
end
4440+
end
4441+
4442+
class GoogleCloudDialogflowCxV3ToolCallResultError
4443+
# @private
4444+
class Representation < Google::Apis::Core::JsonRepresentation
4445+
property :message, as: 'message'
4446+
end
4447+
end
4448+
43944449
class GoogleCloudDialogflowCxV3TransitionRoute
43954450
# @private
43964451
class Representation < Google::Apis::Core::JsonRepresentation
@@ -6143,6 +6198,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
61436198
end
61446199
end
61456200

6201+
class GoogleCloudDialogflowV2CustomPronunciationParams
6202+
# @private
6203+
class Representation < Google::Apis::Core::JsonRepresentation
6204+
property :phonetic_encoding, as: 'phoneticEncoding'
6205+
property :phrase, as: 'phrase'
6206+
property :pronunciation, as: 'pronunciation'
6207+
end
6208+
end
6209+
61466210
class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
61476211
# @private
61486212
class Representation < Google::Apis::Core::JsonRepresentation
@@ -8127,6 +8191,8 @@ class GoogleCloudDialogflowV2SynthesizeSpeechConfig
81278191
class Representation < Google::Apis::Core::JsonRepresentation
81288192
collection :effects_profile_id, as: 'effectsProfileId'
81298193
property :pitch, as: 'pitch'
8194+
collection :pronunciations, as: 'pronunciations', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CustomPronunciationParams, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CustomPronunciationParams::Representation
8195+
81308196
property :speaking_rate, as: 'speakingRate'
81318197
property :voice, as: 'voice', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2VoiceSelectionParams, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2VoiceSelectionParams::Representation
81328198

0 commit comments

Comments
 (0)