Skip to content

Commit c8acf96

Browse files
feat: Automated regeneration of dialogflow v2beta1 client (#13566)
Auto-created at 2023-02-12 10:43:11 +0000 using the toys pull request generator.
1 parent 128048a commit c8acf96

File tree

5 files changed

+102
-2
lines changed

5 files changed

+102
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149375,6 +149375,9 @@
149375149375
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentReply/parameters/parameter": parameter
149376149376
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentReply/responseMessages": response_messages
149377149377
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentReply/responseMessages/response_message": response_message
149378+
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BargeInConfig": google_cloud_dialogflow_v2beta1_barge_in_config
149379+
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BargeInConfig/noBargeInDuration": no_barge_in_duration
149380+
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BargeInConfig/totalDuration": total_duration
149378149381
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest": google_cloud_dialogflow_v2beta1_batch_create_entities_request
149379149382
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest/entities": entities
149380149383
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest/entities/entity": entity
@@ -149696,6 +149699,7 @@
149696149699
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudio/config": config
149697149700
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig": google_cloud_dialogflow_v2beta1_input_audio_config
149698149701
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/audioEncoding": audio_encoding
149702+
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/bargeInConfig": barge_in_config
149699149703
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/disableNoSpeechRecognizedEvent": disable_no_speech_recognized_event
149700149704
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/enableWordInfo": enable_word_info
149701149705
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/languageCode": language_code
@@ -150242,6 +150246,7 @@
150242150246
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestArticlesResponse/contextSize": context_size
150243150247
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestArticlesResponse/latestMessage": latest_message
150244150248
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest": google_cloud_dialogflow_v2beta1_suggest_conversation_summary_request
150249+
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest/assistQueryParams": assist_query_params
150245150250
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest/contextSize": context_size
150246150251
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest/latestMessage": latest_message
150247150252
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse": google_cloud_dialogflow_v2beta1_suggest_conversation_summary_response

generated/google-apis-dialogflow_v2beta1/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_v2beta1
22

3+
### v0.49.0 (2023-02-12)
4+
5+
* Regenerated from discovery document revision 20230209
6+
37
### v0.48.0 (2023-01-15)
48

59
* Regenerated from discovery document revision 20230110

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

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9789,6 +9789,49 @@ def update!(**args)
97899789
end
97909790
end
97919791

9792+
# Configuration of the barge-in behavior. Barge-in instructs the API to return a
9793+
# detected utterance at a proper time while the client is playing back the
9794+
# response audio from a previous request. When the client sees the utterance, it
9795+
# should stop the playback and immediately get ready for receiving the responses
9796+
# for the current request. The barge-in handling requires the client to start
9797+
# streaming audio input as soon as it starts playing back the audio from the
9798+
# previous response. The playback is modeled into two phases: * No barge-in
9799+
# phase: which goes first and during which speech detection should not be
9800+
# carried out. * Barge-in phase: which follows the no barge-in phase and during
9801+
# which the API starts speech detection and may inform the client that an
9802+
# utterance has been detected. Note that no-speech event is not expected in this
9803+
# phase. The client provides this configuration in terms of the durations of
9804+
# those two phases. The durations are measured in terms of the audio length
9805+
# fromt the the start of the input audio. The flow goes like below: --> Time
9806+
# without speech detection | utterance only | utterance or no-speech event | | +-
9807+
# ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
9808+
# + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
9809+
# +---------------+ No-speech event is a response with END_OF_UTTERANCE without
9810+
# any transcript following up.
9811+
class GoogleCloudDialogflowV2beta1BargeInConfig
9812+
include Google::Apis::Core::Hashable
9813+
9814+
# Duration that is not eligible for barge-in at the beginning of the input audio.
9815+
# Corresponds to the JSON property `noBargeInDuration`
9816+
# @return [String]
9817+
attr_accessor :no_barge_in_duration
9818+
9819+
# Total duration for the playback at the beginning of the input audio.
9820+
# Corresponds to the JSON property `totalDuration`
9821+
# @return [String]
9822+
attr_accessor :total_duration
9823+
9824+
def initialize(**args)
9825+
update!(**args)
9826+
end
9827+
9828+
# Update properties of this object
9829+
def update!(**args)
9830+
@no_barge_in_duration = args[:no_barge_in_duration] if args.key?(:no_barge_in_duration)
9831+
@total_duration = args[:total_duration] if args.key?(:total_duration)
9832+
end
9833+
end
9834+
97929835
# The request message for EntityTypes.BatchCreateEntities.
97939836
class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
97949837
include Google::Apis::Core::Hashable
@@ -12100,6 +12143,29 @@ class GoogleCloudDialogflowV2beta1InputAudioConfig
1210012143
# @return [String]
1210112144
attr_accessor :audio_encoding
1210212145

12146+
# Configuration of the barge-in behavior. Barge-in instructs the API to return a
12147+
# detected utterance at a proper time while the client is playing back the
12148+
# response audio from a previous request. When the client sees the utterance, it
12149+
# should stop the playback and immediately get ready for receiving the responses
12150+
# for the current request. The barge-in handling requires the client to start
12151+
# streaming audio input as soon as it starts playing back the audio from the
12152+
# previous response. The playback is modeled into two phases: * No barge-in
12153+
# phase: which goes first and during which speech detection should not be
12154+
# carried out. * Barge-in phase: which follows the no barge-in phase and during
12155+
# which the API starts speech detection and may inform the client that an
12156+
# utterance has been detected. Note that no-speech event is not expected in this
12157+
# phase. The client provides this configuration in terms of the durations of
12158+
# those two phases. The durations are measured in terms of the audio length
12159+
# fromt the the start of the input audio. The flow goes like below: --> Time
12160+
# without speech detection | utterance only | utterance or no-speech event | | +-
12161+
# ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
12162+
# + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
12163+
# +---------------+ No-speech event is a response with END_OF_UTTERANCE without
12164+
# any transcript following up.
12165+
# Corresponds to the JSON property `bargeInConfig`
12166+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig]
12167+
attr_accessor :barge_in_config
12168+
1210312169
# Only used in Participants.AnalyzeContent and Participants.
1210412170
# StreamingAnalyzeContent. If `false` and recognition doesn't return any result,
1210512171
# trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
@@ -12187,6 +12253,7 @@ def initialize(**args)
1218712253
# Update properties of this object
1218812254
def update!(**args)
1218912255
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
12256+
@barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
1219012257
@disable_no_speech_recognized_event = args[:disable_no_speech_recognized_event] if args.key?(:disable_no_speech_recognized_event)
1219112258
@enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
1219212259
@language_code = args[:language_code] if args.key?(:language_code)
@@ -15771,6 +15838,11 @@ def update!(**args)
1577115838
class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
1577215839
include Google::Apis::Core::Hashable
1577315840

15841+
# Represents the parameters of human assist query.
15842+
# Corresponds to the JSON property `assistQueryParams`
15843+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters]
15844+
attr_accessor :assist_query_params
15845+
1577415846
# Max number of messages prior to and including [latest_message] to use as
1577515847
# context when compiling the suggestion. By default 500 and at most 1000.
1577615848
# Corresponds to the JSON property `contextSize`
@@ -15790,6 +15862,7 @@ def initialize(**args)
1579015862

1579115863
# Update properties of this object
1579215864
def update!(**args)
15865+
@assist_query_params = args[:assist_query_params] if args.key?(:assist_query_params)
1579315866
@context_size = args[:context_size] if args.key?(:context_size)
1579415867
@latest_message = args[:latest_message] if args.key?(:latest_message)
1579515868
end

generated/google-apis-dialogflow_v2beta1/lib/google/apis/dialogflow_v2beta1/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 DialogflowV2beta1
1818
# Version of the google-apis-dialogflow_v2beta1 gem
19-
GEM_VERSION = "0.48.0"
19+
GEM_VERSION = "0.49.0"
2020

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

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

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
15941594
include Google::Apis::Core::JsonObjectSupport
15951595
end
15961596

1597+
class GoogleCloudDialogflowV2beta1BargeInConfig
1598+
class Representation < Google::Apis::Core::JsonRepresentation; end
1599+
1600+
include Google::Apis::Core::JsonObjectSupport
1601+
end
1602+
15971603
class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
15981604
class Representation < Google::Apis::Core::JsonRepresentation; end
15991605

@@ -5473,6 +5479,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
54735479
end
54745480
end
54755481

5482+
class GoogleCloudDialogflowV2beta1BargeInConfig
5483+
# @private
5484+
class Representation < Google::Apis::Core::JsonRepresentation
5485+
property :no_barge_in_duration, as: 'noBargeInDuration'
5486+
property :total_duration, as: 'totalDuration'
5487+
end
5488+
end
5489+
54765490
class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
54775491
# @private
54785492
class Representation < Google::Apis::Core::JsonRepresentation
@@ -6106,6 +6120,8 @@ class GoogleCloudDialogflowV2beta1InputAudioConfig
61066120
# @private
61076121
class Representation < Google::Apis::Core::JsonRepresentation
61086122
property :audio_encoding, as: 'audioEncoding'
6123+
property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig::Representation
6124+
61096125
property :disable_no_speech_recognized_event, as: 'disableNoSpeechRecognizedEvent'
61106126
property :enable_word_info, as: 'enableWordInfo'
61116127
property :language_code, as: 'languageCode'
@@ -7126,6 +7142,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
71267142
class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
71277143
# @private
71287144
class Representation < Google::Apis::Core::JsonRepresentation
7145+
property :assist_query_params, as: 'assistQueryParams', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters::Representation
7146+
71297147
property :context_size, as: 'contextSize'
71307148
property :latest_message, as: 'latestMessage'
71317149
end

0 commit comments

Comments
 (0)