google-apis-dialogflow_v3beta1 0.91.0 → 0.92.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 150a056dd1796360dbced75a1f1e3e615564bf37e14a5a4e5bd98b6c75503849
|
4
|
+
data.tar.gz: de8ad082e7af450947518546e208b2d0491fe55349433fa73406c94878945102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee5f53cc66636a95037358e1e7e985a0ae482145dc8ed841ae08ccc14a7ab6d06a6da852d58eaac2531360ece3759d71980b4018399dc561d6fde12c7395b50
|
7
|
+
data.tar.gz: fd75b20706143df369b10090538e313e9f28dc1da4efe22f16c326031b64da73ff5a6b0db188d4306585ecedac86c6907ec9a2645542d18d39dba07d584d9912
|
data/CHANGELOG.md
CHANGED
@@ -5135,6 +5135,12 @@ module Google
|
|
5135
5135
|
# @return [String]
|
5136
5136
|
attr_accessor :response_utterances
|
5137
5137
|
|
5138
|
+
# Metrics associated with different processing steps. Names and number of steps
|
5139
|
+
# depend on the request and can change without a notice.
|
5140
|
+
# Corresponds to the JSON property `stepMetrics`
|
5141
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics>]
|
5142
|
+
attr_accessor :step_metrics
|
5143
|
+
|
5138
5144
|
def initialize(**args)
|
5139
5145
|
update!(**args)
|
5140
5146
|
end
|
@@ -5149,6 +5155,7 @@ module Google
|
|
5149
5155
|
@request_utterances = args[:request_utterances] if args.key?(:request_utterances)
|
5150
5156
|
@response = args[:response] if args.key?(:response)
|
5151
5157
|
@response_utterances = args[:response_utterances] if args.key?(:response_utterances)
|
5158
|
+
@step_metrics = args[:step_metrics] if args.key?(:step_metrics)
|
5152
5159
|
end
|
5153
5160
|
end
|
5154
5161
|
|
@@ -5180,6 +5187,31 @@ module Google
|
|
5180
5187
|
end
|
5181
5188
|
end
|
5182
5189
|
|
5190
|
+
# Metrics of each processing step.
|
5191
|
+
class GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics
|
5192
|
+
include Google::Apis::Core::Hashable
|
5193
|
+
|
5194
|
+
# Processing latency of the step.
|
5195
|
+
# Corresponds to the JSON property `latency`
|
5196
|
+
# @return [String]
|
5197
|
+
attr_accessor :latency
|
5198
|
+
|
5199
|
+
# Name of the request processing step.
|
5200
|
+
# Corresponds to the JSON property `name`
|
5201
|
+
# @return [String]
|
5202
|
+
attr_accessor :name
|
5203
|
+
|
5204
|
+
def initialize(**args)
|
5205
|
+
update!(**args)
|
5206
|
+
end
|
5207
|
+
|
5208
|
+
# Update properties of this object
|
5209
|
+
def update!(**args)
|
5210
|
+
@latency = args[:latency] if args.key?(:latency)
|
5211
|
+
@name = args[:name] if args.key?(:name)
|
5212
|
+
end
|
5213
|
+
end
|
5214
|
+
|
5183
5215
|
# Represents metrics for the conversation.
|
5184
5216
|
class GoogleCloudDialogflowCxV3beta1ConversationMetrics
|
5185
5217
|
include Google::Apis::Core::Hashable
|
@@ -14975,6 +15007,33 @@ module Google
|
|
14975
15007
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2Message]
|
14976
15008
|
attr_accessor :new_message_payload
|
14977
15009
|
|
15010
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
15011
|
+
# that is currently being processed or an indication that this is the end of the
|
15012
|
+
# single requested utterance. While end-user audio is being processed,
|
15013
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
15014
|
+
# value. A transcript represents a portion of the utterance. While the
|
15015
|
+
# recognizer is processing audio, transcript values may be interim values or
|
15016
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
15017
|
+
# to true and processing continues for the next transcript. If `
|
15018
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
15019
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
15020
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
15021
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
15022
|
+
# determined by concatenating the finalized transcript values received for the
|
15023
|
+
# series of results. In the following example, single utterance is enabled. In
|
15024
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
15025
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
15026
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
15027
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
15028
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
15029
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
15030
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
15031
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
15032
|
+
# question".
|
15033
|
+
# Corresponds to the JSON property `newRecognitionResultPayload`
|
15034
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2StreamingRecognitionResult]
|
15035
|
+
attr_accessor :new_recognition_result_payload
|
15036
|
+
|
14978
15037
|
# The type of the event that this notification refers to.
|
14979
15038
|
# Corresponds to the JSON property `type`
|
14980
15039
|
# @return [String]
|
@@ -14989,6 +15048,7 @@ module Google
|
|
14989
15048
|
@conversation = args[:conversation] if args.key?(:conversation)
|
14990
15049
|
@error_status = args[:error_status] if args.key?(:error_status)
|
14991
15050
|
@new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
|
15051
|
+
@new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
|
14992
15052
|
@type = args[:type] if args.key?(:type)
|
14993
15053
|
end
|
14994
15054
|
end
|
@@ -17637,6 +17697,140 @@ module Google
|
|
17637
17697
|
end
|
17638
17698
|
end
|
17639
17699
|
|
17700
|
+
# Information for a word recognized by the speech recognizer.
|
17701
|
+
class GoogleCloudDialogflowV2SpeechWordInfo
|
17702
|
+
include Google::Apis::Core::Hashable
|
17703
|
+
|
17704
|
+
# The Speech confidence between 0.0 and 1.0 for this word. A higher number
|
17705
|
+
# indicates an estimated greater likelihood that the recognized word is correct.
|
17706
|
+
# The default of 0.0 is a sentinel value indicating that confidence was not set.
|
17707
|
+
# This field is not guaranteed to be fully stable over time for the same audio
|
17708
|
+
# input. Users should also not rely on it to always be provided.
|
17709
|
+
# Corresponds to the JSON property `confidence`
|
17710
|
+
# @return [Float]
|
17711
|
+
attr_accessor :confidence
|
17712
|
+
|
17713
|
+
# Time offset relative to the beginning of the audio that corresponds to the end
|
17714
|
+
# of the spoken word. This is an experimental feature and the accuracy of the
|
17715
|
+
# time offset can vary.
|
17716
|
+
# Corresponds to the JSON property `endOffset`
|
17717
|
+
# @return [String]
|
17718
|
+
attr_accessor :end_offset
|
17719
|
+
|
17720
|
+
# Time offset relative to the beginning of the audio that corresponds to the
|
17721
|
+
# start of the spoken word. This is an experimental feature and the accuracy of
|
17722
|
+
# the time offset can vary.
|
17723
|
+
# Corresponds to the JSON property `startOffset`
|
17724
|
+
# @return [String]
|
17725
|
+
attr_accessor :start_offset
|
17726
|
+
|
17727
|
+
# The word this info is for.
|
17728
|
+
# Corresponds to the JSON property `word`
|
17729
|
+
# @return [String]
|
17730
|
+
attr_accessor :word
|
17731
|
+
|
17732
|
+
def initialize(**args)
|
17733
|
+
update!(**args)
|
17734
|
+
end
|
17735
|
+
|
17736
|
+
# Update properties of this object
|
17737
|
+
def update!(**args)
|
17738
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
17739
|
+
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
17740
|
+
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
17741
|
+
@word = args[:word] if args.key?(:word)
|
17742
|
+
end
|
17743
|
+
end
|
17744
|
+
|
17745
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
17746
|
+
# that is currently being processed or an indication that this is the end of the
|
17747
|
+
# single requested utterance. While end-user audio is being processed,
|
17748
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
17749
|
+
# value. A transcript represents a portion of the utterance. While the
|
17750
|
+
# recognizer is processing audio, transcript values may be interim values or
|
17751
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
17752
|
+
# to true and processing continues for the next transcript. If `
|
17753
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
17754
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
17755
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
17756
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
17757
|
+
# determined by concatenating the finalized transcript values received for the
|
17758
|
+
# series of results. In the following example, single utterance is enabled. In
|
17759
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
17760
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
17761
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
17762
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
17763
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
17764
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
17765
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
17766
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
17767
|
+
# question".
|
17768
|
+
class GoogleCloudDialogflowV2StreamingRecognitionResult
|
17769
|
+
include Google::Apis::Core::Hashable
|
17770
|
+
|
17771
|
+
# The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
|
17772
|
+
# higher number indicates an estimated greater likelihood that the recognized
|
17773
|
+
# words are correct. The default of 0.0 is a sentinel value indicating that
|
17774
|
+
# confidence was not set. This field is typically only provided if `is_final` is
|
17775
|
+
# true and you should not rely on it being accurate or even set.
|
17776
|
+
# Corresponds to the JSON property `confidence`
|
17777
|
+
# @return [Float]
|
17778
|
+
attr_accessor :confidence
|
17779
|
+
|
17780
|
+
# If `false`, the `StreamingRecognitionResult` represents an interim result that
|
17781
|
+
# may change. If `true`, the recognizer will not return any further hypotheses
|
17782
|
+
# about this piece of the audio. May only be populated for `message_type` = `
|
17783
|
+
# TRANSCRIPT`.
|
17784
|
+
# Corresponds to the JSON property `isFinal`
|
17785
|
+
# @return [Boolean]
|
17786
|
+
attr_accessor :is_final
|
17787
|
+
alias_method :is_final?, :is_final
|
17788
|
+
|
17789
|
+
# Detected language code for the transcript.
|
17790
|
+
# Corresponds to the JSON property `languageCode`
|
17791
|
+
# @return [String]
|
17792
|
+
attr_accessor :language_code
|
17793
|
+
|
17794
|
+
# Type of the result message.
|
17795
|
+
# Corresponds to the JSON property `messageType`
|
17796
|
+
# @return [String]
|
17797
|
+
attr_accessor :message_type
|
17798
|
+
|
17799
|
+
# Time offset of the end of this Speech recognition result relative to the
|
17800
|
+
# beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
|
17801
|
+
# Corresponds to the JSON property `speechEndOffset`
|
17802
|
+
# @return [String]
|
17803
|
+
attr_accessor :speech_end_offset
|
17804
|
+
|
17805
|
+
# Word-specific information for the words recognized by Speech in transcript.
|
17806
|
+
# Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
|
17807
|
+
# enable_word_info] is set.
|
17808
|
+
# Corresponds to the JSON property `speechWordInfo`
|
17809
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SpeechWordInfo>]
|
17810
|
+
attr_accessor :speech_word_info
|
17811
|
+
|
17812
|
+
# Transcript text representing the words that the user spoke. Populated if and
|
17813
|
+
# only if `message_type` = `TRANSCRIPT`.
|
17814
|
+
# Corresponds to the JSON property `transcript`
|
17815
|
+
# @return [String]
|
17816
|
+
attr_accessor :transcript
|
17817
|
+
|
17818
|
+
def initialize(**args)
|
17819
|
+
update!(**args)
|
17820
|
+
end
|
17821
|
+
|
17822
|
+
# Update properties of this object
|
17823
|
+
def update!(**args)
|
17824
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
17825
|
+
@is_final = args[:is_final] if args.key?(:is_final)
|
17826
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
17827
|
+
@message_type = args[:message_type] if args.key?(:message_type)
|
17828
|
+
@speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
|
17829
|
+
@speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
|
17830
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
17831
|
+
end
|
17832
|
+
end
|
17833
|
+
|
17640
17834
|
# The response message for Participants.SuggestArticles.
|
17641
17835
|
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
17642
17836
|
include Google::Apis::Core::Hashable
|
@@ -18227,6 +18421,33 @@ module Google
|
|
18227
18421
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message]
|
18228
18422
|
attr_accessor :new_message_payload
|
18229
18423
|
|
18424
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
18425
|
+
# that is currently being processed or an indication that this is the end of the
|
18426
|
+
# single requested utterance. While end-user audio is being processed,
|
18427
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
18428
|
+
# value. A transcript represents a portion of the utterance. While the
|
18429
|
+
# recognizer is processing audio, transcript values may be interim values or
|
18430
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
18431
|
+
# to true and processing continues for the next transcript. If `
|
18432
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
18433
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
18434
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
18435
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
18436
|
+
# determined by concatenating the finalized transcript values received for the
|
18437
|
+
# series of results. In the following example, single utterance is enabled. In
|
18438
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
18439
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
18440
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
18441
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
18442
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
18443
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
18444
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
18445
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
18446
|
+
# question".
|
18447
|
+
# Corresponds to the JSON property `newRecognitionResultPayload`
|
18448
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult]
|
18449
|
+
attr_accessor :new_recognition_result_payload
|
18450
|
+
|
18230
18451
|
# Required. The type of the event that this notification refers to.
|
18231
18452
|
# Corresponds to the JSON property `type`
|
18232
18453
|
# @return [String]
|
@@ -18241,6 +18462,7 @@ module Google
|
|
18241
18462
|
@conversation = args[:conversation] if args.key?(:conversation)
|
18242
18463
|
@error_status = args[:error_status] if args.key?(:error_status)
|
18243
18464
|
@new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
|
18465
|
+
@new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
|
18244
18466
|
@type = args[:type] if args.key?(:type)
|
18245
18467
|
end
|
18246
18468
|
end
|
@@ -21381,6 +21603,157 @@ module Google
|
|
21381
21603
|
end
|
21382
21604
|
end
|
21383
21605
|
|
21606
|
+
# Information for a word recognized by the speech recognizer.
|
21607
|
+
class GoogleCloudDialogflowV2beta1SpeechWordInfo
|
21608
|
+
include Google::Apis::Core::Hashable
|
21609
|
+
|
21610
|
+
# The Speech confidence between 0.0 and 1.0 for this word. A higher number
|
21611
|
+
# indicates an estimated greater likelihood that the recognized word is correct.
|
21612
|
+
# The default of 0.0 is a sentinel value indicating that confidence was not set.
|
21613
|
+
# This field is not guaranteed to be fully stable over time for the same audio
|
21614
|
+
# input. Users should also not rely on it to always be provided.
|
21615
|
+
# Corresponds to the JSON property `confidence`
|
21616
|
+
# @return [Float]
|
21617
|
+
attr_accessor :confidence
|
21618
|
+
|
21619
|
+
# Time offset relative to the beginning of the audio that corresponds to the end
|
21620
|
+
# of the spoken word. This is an experimental feature and the accuracy of the
|
21621
|
+
# time offset can vary.
|
21622
|
+
# Corresponds to the JSON property `endOffset`
|
21623
|
+
# @return [String]
|
21624
|
+
attr_accessor :end_offset
|
21625
|
+
|
21626
|
+
# Time offset relative to the beginning of the audio that corresponds to the
|
21627
|
+
# start of the spoken word. This is an experimental feature and the accuracy of
|
21628
|
+
# the time offset can vary.
|
21629
|
+
# Corresponds to the JSON property `startOffset`
|
21630
|
+
# @return [String]
|
21631
|
+
attr_accessor :start_offset
|
21632
|
+
|
21633
|
+
# The word this info is for.
|
21634
|
+
# Corresponds to the JSON property `word`
|
21635
|
+
# @return [String]
|
21636
|
+
attr_accessor :word
|
21637
|
+
|
21638
|
+
def initialize(**args)
|
21639
|
+
update!(**args)
|
21640
|
+
end
|
21641
|
+
|
21642
|
+
# Update properties of this object
|
21643
|
+
def update!(**args)
|
21644
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
21645
|
+
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
21646
|
+
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
21647
|
+
@word = args[:word] if args.key?(:word)
|
21648
|
+
end
|
21649
|
+
end
|
21650
|
+
|
21651
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
21652
|
+
# that is currently being processed or an indication that this is the end of the
|
21653
|
+
# single requested utterance. While end-user audio is being processed,
|
21654
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
21655
|
+
# value. A transcript represents a portion of the utterance. While the
|
21656
|
+
# recognizer is processing audio, transcript values may be interim values or
|
21657
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
21658
|
+
# to true and processing continues for the next transcript. If `
|
21659
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
21660
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
21661
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
21662
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
21663
|
+
# determined by concatenating the finalized transcript values received for the
|
21664
|
+
# series of results. In the following example, single utterance is enabled. In
|
21665
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
21666
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
21667
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
21668
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
21669
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
21670
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
21671
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
21672
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
21673
|
+
# question".
|
21674
|
+
class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
|
21675
|
+
include Google::Apis::Core::Hashable
|
21676
|
+
|
21677
|
+
# The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
|
21678
|
+
# higher number indicates an estimated greater likelihood that the recognized
|
21679
|
+
# words are correct. The default of 0.0 is a sentinel value indicating that
|
21680
|
+
# confidence was not set. This field is typically only provided if `is_final` is
|
21681
|
+
# true and you should not rely on it being accurate or even set.
|
21682
|
+
# Corresponds to the JSON property `confidence`
|
21683
|
+
# @return [Float]
|
21684
|
+
attr_accessor :confidence
|
21685
|
+
|
21686
|
+
# A wrapper of repeated TelephonyDtmf digits.
|
21687
|
+
# Corresponds to the JSON property `dtmfDigits`
|
21688
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]
|
21689
|
+
attr_accessor :dtmf_digits
|
21690
|
+
|
21691
|
+
# If `false`, the `StreamingRecognitionResult` represents an interim result that
|
21692
|
+
# may change. If `true`, the recognizer will not return any further hypotheses
|
21693
|
+
# about this piece of the audio. May only be populated for `message_type` = `
|
21694
|
+
# TRANSCRIPT`.
|
21695
|
+
# Corresponds to the JSON property `isFinal`
|
21696
|
+
# @return [Boolean]
|
21697
|
+
attr_accessor :is_final
|
21698
|
+
alias_method :is_final?, :is_final
|
21699
|
+
|
21700
|
+
# Detected language code for the transcript.
|
21701
|
+
# Corresponds to the JSON property `languageCode`
|
21702
|
+
# @return [String]
|
21703
|
+
attr_accessor :language_code
|
21704
|
+
|
21705
|
+
# Type of the result message.
|
21706
|
+
# Corresponds to the JSON property `messageType`
|
21707
|
+
# @return [String]
|
21708
|
+
attr_accessor :message_type
|
21709
|
+
|
21710
|
+
# Time offset of the end of this Speech recognition result relative to the
|
21711
|
+
# beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
|
21712
|
+
# Corresponds to the JSON property `speechEndOffset`
|
21713
|
+
# @return [String]
|
21714
|
+
attr_accessor :speech_end_offset
|
21715
|
+
|
21716
|
+
# Word-specific information for the words recognized by Speech in transcript.
|
21717
|
+
# Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
|
21718
|
+
# enable_word_info] is set.
|
21719
|
+
# Corresponds to the JSON property `speechWordInfo`
|
21720
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo>]
|
21721
|
+
attr_accessor :speech_word_info
|
21722
|
+
|
21723
|
+
# An estimate of the likelihood that the speech recognizer will not change its
|
21724
|
+
# guess about this interim recognition result: * If the value is unspecified or
|
21725
|
+
# 0.0, Dialogflow didn't compute the stability. In particular, Dialogflow will
|
21726
|
+
# only provide stability for `TRANSCRIPT` results with `is_final = false`. *
|
21727
|
+
# Otherwise, the value is in (0.0, 1.0] where 0.0 means completely unstable and
|
21728
|
+
# 1.0 means completely stable.
|
21729
|
+
# Corresponds to the JSON property `stability`
|
21730
|
+
# @return [Float]
|
21731
|
+
attr_accessor :stability
|
21732
|
+
|
21733
|
+
# Transcript text representing the words that the user spoke. Populated if and
|
21734
|
+
# only if `message_type` = `TRANSCRIPT`.
|
21735
|
+
# Corresponds to the JSON property `transcript`
|
21736
|
+
# @return [String]
|
21737
|
+
attr_accessor :transcript
|
21738
|
+
|
21739
|
+
def initialize(**args)
|
21740
|
+
update!(**args)
|
21741
|
+
end
|
21742
|
+
|
21743
|
+
# Update properties of this object
|
21744
|
+
def update!(**args)
|
21745
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
21746
|
+
@dtmf_digits = args[:dtmf_digits] if args.key?(:dtmf_digits)
|
21747
|
+
@is_final = args[:is_final] if args.key?(:is_final)
|
21748
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
21749
|
+
@message_type = args[:message_type] if args.key?(:message_type)
|
21750
|
+
@speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
|
21751
|
+
@speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
|
21752
|
+
@stability = args[:stability] if args.key?(:stability)
|
21753
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
21754
|
+
end
|
21755
|
+
end
|
21756
|
+
|
21384
21757
|
# The response message for Participants.SuggestArticles.
|
21385
21758
|
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
21386
21759
|
include Google::Apis::Core::Hashable
|
@@ -21618,6 +21991,25 @@ module Google
|
|
21618
21991
|
end
|
21619
21992
|
end
|
21620
21993
|
|
21994
|
+
# A wrapper of repeated TelephonyDtmf digits.
|
21995
|
+
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
21996
|
+
include Google::Apis::Core::Hashable
|
21997
|
+
|
21998
|
+
# A sequence of TelephonyDtmf digits.
|
21999
|
+
# Corresponds to the JSON property `dtmfEvents`
|
22000
|
+
# @return [Array<String>]
|
22001
|
+
attr_accessor :dtmf_events
|
22002
|
+
|
22003
|
+
def initialize(**args)
|
22004
|
+
update!(**args)
|
22005
|
+
end
|
22006
|
+
|
22007
|
+
# Update properties of this object
|
22008
|
+
def update!(**args)
|
22009
|
+
@dtmf_events = args[:dtmf_events] if args.key?(:dtmf_events)
|
22010
|
+
end
|
22011
|
+
end
|
22012
|
+
|
21621
22013
|
# The request message for a webhook call.
|
21622
22014
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
21623
22015
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV3beta1
|
18
18
|
# Version of the google-apis-dialogflow_v3beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.92.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241216"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -838,6 +838,12 @@ module Google
|
|
838
838
|
include Google::Apis::Core::JsonObjectSupport
|
839
839
|
end
|
840
840
|
|
841
|
+
class GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics
|
842
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
843
|
+
|
844
|
+
include Google::Apis::Core::JsonObjectSupport
|
845
|
+
end
|
846
|
+
|
841
847
|
class GoogleCloudDialogflowCxV3beta1ConversationMetrics
|
842
848
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
843
849
|
|
@@ -2842,6 +2848,18 @@ module Google
|
|
2842
2848
|
include Google::Apis::Core::JsonObjectSupport
|
2843
2849
|
end
|
2844
2850
|
|
2851
|
+
class GoogleCloudDialogflowV2SpeechWordInfo
|
2852
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2853
|
+
|
2854
|
+
include Google::Apis::Core::JsonObjectSupport
|
2855
|
+
end
|
2856
|
+
|
2857
|
+
class GoogleCloudDialogflowV2StreamingRecognitionResult
|
2858
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2859
|
+
|
2860
|
+
include Google::Apis::Core::JsonObjectSupport
|
2861
|
+
end
|
2862
|
+
|
2845
2863
|
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
2846
2864
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2847
2865
|
|
@@ -3448,6 +3466,18 @@ module Google
|
|
3448
3466
|
include Google::Apis::Core::JsonObjectSupport
|
3449
3467
|
end
|
3450
3468
|
|
3469
|
+
class GoogleCloudDialogflowV2beta1SpeechWordInfo
|
3470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3471
|
+
|
3472
|
+
include Google::Apis::Core::JsonObjectSupport
|
3473
|
+
end
|
3474
|
+
|
3475
|
+
class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
|
3476
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3477
|
+
|
3478
|
+
include Google::Apis::Core::JsonObjectSupport
|
3479
|
+
end
|
3480
|
+
|
3451
3481
|
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
3452
3482
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3453
3483
|
|
@@ -3484,6 +3514,12 @@ module Google
|
|
3484
3514
|
include Google::Apis::Core::JsonObjectSupport
|
3485
3515
|
end
|
3486
3516
|
|
3517
|
+
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
3518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3519
|
+
|
3520
|
+
include Google::Apis::Core::JsonObjectSupport
|
3521
|
+
end
|
3522
|
+
|
3487
3523
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
3488
3524
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3489
3525
|
|
@@ -4928,6 +4964,8 @@ module Google
|
|
4928
4964
|
property :response, as: 'response', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse::Representation
|
4929
4965
|
|
4930
4966
|
property :response_utterances, as: 'responseUtterances'
|
4967
|
+
collection :step_metrics, as: 'stepMetrics', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics::Representation
|
4968
|
+
|
4931
4969
|
end
|
4932
4970
|
end
|
4933
4971
|
|
@@ -4939,6 +4977,14 @@ module Google
|
|
4939
4977
|
end
|
4940
4978
|
end
|
4941
4979
|
|
4980
|
+
class GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics
|
4981
|
+
# @private
|
4982
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4983
|
+
property :latency, as: 'latency'
|
4984
|
+
property :name, as: 'name'
|
4985
|
+
end
|
4986
|
+
end
|
4987
|
+
|
4942
4988
|
class GoogleCloudDialogflowCxV3beta1ConversationMetrics
|
4943
4989
|
# @private
|
4944
4990
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7599,6 +7645,8 @@ module Google
|
|
7599
7645
|
|
7600
7646
|
property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2Message, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2Message::Representation
|
7601
7647
|
|
7648
|
+
property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2StreamingRecognitionResult, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2StreamingRecognitionResult::Representation
|
7649
|
+
|
7602
7650
|
property :type, as: 'type'
|
7603
7651
|
end
|
7604
7652
|
end
|
@@ -8340,6 +8388,30 @@ module Google
|
|
8340
8388
|
end
|
8341
8389
|
end
|
8342
8390
|
|
8391
|
+
class GoogleCloudDialogflowV2SpeechWordInfo
|
8392
|
+
# @private
|
8393
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8394
|
+
property :confidence, as: 'confidence'
|
8395
|
+
property :end_offset, as: 'endOffset'
|
8396
|
+
property :start_offset, as: 'startOffset'
|
8397
|
+
property :word, as: 'word'
|
8398
|
+
end
|
8399
|
+
end
|
8400
|
+
|
8401
|
+
class GoogleCloudDialogflowV2StreamingRecognitionResult
|
8402
|
+
# @private
|
8403
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8404
|
+
property :confidence, as: 'confidence'
|
8405
|
+
property :is_final, as: 'isFinal'
|
8406
|
+
property :language_code, as: 'languageCode'
|
8407
|
+
property :message_type, as: 'messageType'
|
8408
|
+
property :speech_end_offset, as: 'speechEndOffset'
|
8409
|
+
collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SpeechWordInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SpeechWordInfo::Representation
|
8410
|
+
|
8411
|
+
property :transcript, as: 'transcript'
|
8412
|
+
end
|
8413
|
+
end
|
8414
|
+
|
8343
8415
|
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
8344
8416
|
# @private
|
8345
8417
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8496,6 +8568,8 @@ module Google
|
|
8496
8568
|
|
8497
8569
|
property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message::Representation
|
8498
8570
|
|
8571
|
+
property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult::Representation
|
8572
|
+
|
8499
8573
|
property :type, as: 'type'
|
8500
8574
|
end
|
8501
8575
|
end
|
@@ -9379,6 +9453,33 @@ module Google
|
|
9379
9453
|
end
|
9380
9454
|
end
|
9381
9455
|
|
9456
|
+
class GoogleCloudDialogflowV2beta1SpeechWordInfo
|
9457
|
+
# @private
|
9458
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9459
|
+
property :confidence, as: 'confidence'
|
9460
|
+
property :end_offset, as: 'endOffset'
|
9461
|
+
property :start_offset, as: 'startOffset'
|
9462
|
+
property :word, as: 'word'
|
9463
|
+
end
|
9464
|
+
end
|
9465
|
+
|
9466
|
+
class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
|
9467
|
+
# @private
|
9468
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9469
|
+
property :confidence, as: 'confidence'
|
9470
|
+
property :dtmf_digits, as: 'dtmfDigits', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents::Representation
|
9471
|
+
|
9472
|
+
property :is_final, as: 'isFinal'
|
9473
|
+
property :language_code, as: 'languageCode'
|
9474
|
+
property :message_type, as: 'messageType'
|
9475
|
+
property :speech_end_offset, as: 'speechEndOffset'
|
9476
|
+
collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo::Representation
|
9477
|
+
|
9478
|
+
property :stability, as: 'stability'
|
9479
|
+
property :transcript, as: 'transcript'
|
9480
|
+
end
|
9481
|
+
end
|
9482
|
+
|
9382
9483
|
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
9383
9484
|
# @private
|
9384
9485
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -9449,6 +9550,13 @@ module Google
|
|
9449
9550
|
end
|
9450
9551
|
end
|
9451
9552
|
|
9553
|
+
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
9554
|
+
# @private
|
9555
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9556
|
+
collection :dtmf_events, as: 'dtmfEvents'
|
9557
|
+
end
|
9558
|
+
end
|
9559
|
+
|
9452
9560
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
9453
9561
|
# @private
|
9454
9562
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v3beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.92.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.92.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|