google-apis-dialogflow_v2 0.95.0 → 0.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dcbbbeb517b318ab327ad2e42b94c18aa1ee72cc539e699387e8d8676b094b0
|
4
|
+
data.tar.gz: f5a1d686afc7d975ffdab632e3c9fcc84deb421d136ae2d8bfaa738690a15cc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84980c9ddc6b6969c27bd1a42a2b078dd06fc6a62fa8fb7bf49b82c07b18f5780fe597fba4429057d0e27a48a01cf365b37e40f6c418fd2664b9699256a137d1
|
7
|
+
data.tar.gz: 9b4b51ff7c1b2ec0c3a7ff8e1466893ff94632f5a50568fcbde3792866fffa7eadf085712cc3ad144364be0a88829d5d28b0a240476d6000f0fa406b55fd5f29
|
data/CHANGELOG.md
CHANGED
@@ -8910,6 +8910,33 @@ module Google
|
|
8910
8910
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message]
|
8911
8911
|
attr_accessor :new_message_payload
|
8912
8912
|
|
8913
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
8914
|
+
# that is currently being processed or an indication that this is the end of the
|
8915
|
+
# single requested utterance. While end-user audio is being processed,
|
8916
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
8917
|
+
# value. A transcript represents a portion of the utterance. While the
|
8918
|
+
# recognizer is processing audio, transcript values may be interim values or
|
8919
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
8920
|
+
# to true and processing continues for the next transcript. If `
|
8921
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
8922
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
8923
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
8924
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
8925
|
+
# determined by concatenating the finalized transcript values received for the
|
8926
|
+
# series of results. In the following example, single utterance is enabled. In
|
8927
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
8928
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
8929
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
8930
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
8931
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
8932
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
8933
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
8934
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
8935
|
+
# question".
|
8936
|
+
# Corresponds to the JSON property `newRecognitionResultPayload`
|
8937
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2StreamingRecognitionResult]
|
8938
|
+
attr_accessor :new_recognition_result_payload
|
8939
|
+
|
8913
8940
|
# The type of the event that this notification refers to.
|
8914
8941
|
# Corresponds to the JSON property `type`
|
8915
8942
|
# @return [String]
|
@@ -8924,6 +8951,7 @@ module Google
|
|
8924
8951
|
@conversation = args[:conversation] if args.key?(:conversation)
|
8925
8952
|
@error_status = args[:error_status] if args.key?(:error_status)
|
8926
8953
|
@new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
|
8954
|
+
@new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
|
8927
8955
|
@type = args[:type] if args.key?(:type)
|
8928
8956
|
end
|
8929
8957
|
end
|
@@ -9166,6 +9194,11 @@ module Google
|
|
9166
9194
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig]
|
9167
9195
|
attr_accessor :new_message_event_notification_config
|
9168
9196
|
|
9197
|
+
# Defines notification behavior.
|
9198
|
+
# Corresponds to the JSON property `newRecognitionResultNotificationConfig`
|
9199
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig]
|
9200
|
+
attr_accessor :new_recognition_result_notification_config
|
9201
|
+
|
9169
9202
|
# Defines notification behavior.
|
9170
9203
|
# Corresponds to the JSON property `notificationConfig`
|
9171
9204
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig]
|
@@ -9214,6 +9247,7 @@ module Google
|
|
9214
9247
|
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
9215
9248
|
@name = args[:name] if args.key?(:name)
|
9216
9249
|
@new_message_event_notification_config = args[:new_message_event_notification_config] if args.key?(:new_message_event_notification_config)
|
9250
|
+
@new_recognition_result_notification_config = args[:new_recognition_result_notification_config] if args.key?(:new_recognition_result_notification_config)
|
9217
9251
|
@notification_config = args[:notification_config] if args.key?(:notification_config)
|
9218
9252
|
@security_settings = args[:security_settings] if args.key?(:security_settings)
|
9219
9253
|
@stt_config = args[:stt_config] if args.key?(:stt_config)
|
@@ -15448,6 +15482,140 @@ module Google
|
|
15448
15482
|
end
|
15449
15483
|
end
|
15450
15484
|
|
15485
|
+
# Information for a word recognized by the speech recognizer.
|
15486
|
+
class GoogleCloudDialogflowV2SpeechWordInfo
|
15487
|
+
include Google::Apis::Core::Hashable
|
15488
|
+
|
15489
|
+
# The Speech confidence between 0.0 and 1.0 for this word. A higher number
|
15490
|
+
# indicates an estimated greater likelihood that the recognized word is correct.
|
15491
|
+
# The default of 0.0 is a sentinel value indicating that confidence was not set.
|
15492
|
+
# This field is not guaranteed to be fully stable over time for the same audio
|
15493
|
+
# input. Users should also not rely on it to always be provided.
|
15494
|
+
# Corresponds to the JSON property `confidence`
|
15495
|
+
# @return [Float]
|
15496
|
+
attr_accessor :confidence
|
15497
|
+
|
15498
|
+
# Time offset relative to the beginning of the audio that corresponds to the end
|
15499
|
+
# of the spoken word. This is an experimental feature and the accuracy of the
|
15500
|
+
# time offset can vary.
|
15501
|
+
# Corresponds to the JSON property `endOffset`
|
15502
|
+
# @return [String]
|
15503
|
+
attr_accessor :end_offset
|
15504
|
+
|
15505
|
+
# Time offset relative to the beginning of the audio that corresponds to the
|
15506
|
+
# start of the spoken word. This is an experimental feature and the accuracy of
|
15507
|
+
# the time offset can vary.
|
15508
|
+
# Corresponds to the JSON property `startOffset`
|
15509
|
+
# @return [String]
|
15510
|
+
attr_accessor :start_offset
|
15511
|
+
|
15512
|
+
# The word this info is for.
|
15513
|
+
# Corresponds to the JSON property `word`
|
15514
|
+
# @return [String]
|
15515
|
+
attr_accessor :word
|
15516
|
+
|
15517
|
+
def initialize(**args)
|
15518
|
+
update!(**args)
|
15519
|
+
end
|
15520
|
+
|
15521
|
+
# Update properties of this object
|
15522
|
+
def update!(**args)
|
15523
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
15524
|
+
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
15525
|
+
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
15526
|
+
@word = args[:word] if args.key?(:word)
|
15527
|
+
end
|
15528
|
+
end
|
15529
|
+
|
15530
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
15531
|
+
# that is currently being processed or an indication that this is the end of the
|
15532
|
+
# single requested utterance. While end-user audio is being processed,
|
15533
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
15534
|
+
# value. A transcript represents a portion of the utterance. While the
|
15535
|
+
# recognizer is processing audio, transcript values may be interim values or
|
15536
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
15537
|
+
# to true and processing continues for the next transcript. If `
|
15538
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
15539
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
15540
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
15541
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
15542
|
+
# determined by concatenating the finalized transcript values received for the
|
15543
|
+
# series of results. In the following example, single utterance is enabled. In
|
15544
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
15545
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
15546
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
15547
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
15548
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
15549
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
15550
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
15551
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
15552
|
+
# question".
|
15553
|
+
class GoogleCloudDialogflowV2StreamingRecognitionResult
|
15554
|
+
include Google::Apis::Core::Hashable
|
15555
|
+
|
15556
|
+
# The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
|
15557
|
+
# higher number indicates an estimated greater likelihood that the recognized
|
15558
|
+
# words are correct. The default of 0.0 is a sentinel value indicating that
|
15559
|
+
# confidence was not set. This field is typically only provided if `is_final` is
|
15560
|
+
# true and you should not rely on it being accurate or even set.
|
15561
|
+
# Corresponds to the JSON property `confidence`
|
15562
|
+
# @return [Float]
|
15563
|
+
attr_accessor :confidence
|
15564
|
+
|
15565
|
+
# If `false`, the `StreamingRecognitionResult` represents an interim result that
|
15566
|
+
# may change. If `true`, the recognizer will not return any further hypotheses
|
15567
|
+
# about this piece of the audio. May only be populated for `message_type` = `
|
15568
|
+
# TRANSCRIPT`.
|
15569
|
+
# Corresponds to the JSON property `isFinal`
|
15570
|
+
# @return [Boolean]
|
15571
|
+
attr_accessor :is_final
|
15572
|
+
alias_method :is_final?, :is_final
|
15573
|
+
|
15574
|
+
# Detected language code for the transcript.
|
15575
|
+
# Corresponds to the JSON property `languageCode`
|
15576
|
+
# @return [String]
|
15577
|
+
attr_accessor :language_code
|
15578
|
+
|
15579
|
+
# Type of the result message.
|
15580
|
+
# Corresponds to the JSON property `messageType`
|
15581
|
+
# @return [String]
|
15582
|
+
attr_accessor :message_type
|
15583
|
+
|
15584
|
+
# Time offset of the end of this Speech recognition result relative to the
|
15585
|
+
# beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
|
15586
|
+
# Corresponds to the JSON property `speechEndOffset`
|
15587
|
+
# @return [String]
|
15588
|
+
attr_accessor :speech_end_offset
|
15589
|
+
|
15590
|
+
# Word-specific information for the words recognized by Speech in transcript.
|
15591
|
+
# Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
|
15592
|
+
# enable_word_info] is set.
|
15593
|
+
# Corresponds to the JSON property `speechWordInfo`
|
15594
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechWordInfo>]
|
15595
|
+
attr_accessor :speech_word_info
|
15596
|
+
|
15597
|
+
# Transcript text representing the words that the user spoke. Populated if and
|
15598
|
+
# only if `message_type` = `TRANSCRIPT`.
|
15599
|
+
# Corresponds to the JSON property `transcript`
|
15600
|
+
# @return [String]
|
15601
|
+
attr_accessor :transcript
|
15602
|
+
|
15603
|
+
def initialize(**args)
|
15604
|
+
update!(**args)
|
15605
|
+
end
|
15606
|
+
|
15607
|
+
# Update properties of this object
|
15608
|
+
def update!(**args)
|
15609
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
15610
|
+
@is_final = args[:is_final] if args.key?(:is_final)
|
15611
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
15612
|
+
@message_type = args[:message_type] if args.key?(:message_type)
|
15613
|
+
@speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
|
15614
|
+
@speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
|
15615
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
15616
|
+
end
|
15617
|
+
end
|
15618
|
+
|
15451
15619
|
# The request message for Participants.SuggestArticles.
|
15452
15620
|
class GoogleCloudDialogflowV2SuggestArticlesRequest
|
15453
15621
|
include Google::Apis::Core::Hashable
|
@@ -16763,6 +16931,33 @@ module Google
|
|
16763
16931
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Message]
|
16764
16932
|
attr_accessor :new_message_payload
|
16765
16933
|
|
16934
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
16935
|
+
# that is currently being processed or an indication that this is the end of the
|
16936
|
+
# single requested utterance. While end-user audio is being processed,
|
16937
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
16938
|
+
# value. A transcript represents a portion of the utterance. While the
|
16939
|
+
# recognizer is processing audio, transcript values may be interim values or
|
16940
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
16941
|
+
# to true and processing continues for the next transcript. If `
|
16942
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
16943
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
16944
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
16945
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
16946
|
+
# determined by concatenating the finalized transcript values received for the
|
16947
|
+
# series of results. In the following example, single utterance is enabled. In
|
16948
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
16949
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
16950
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
16951
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
16952
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
16953
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
16954
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
16955
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
16956
|
+
# question".
|
16957
|
+
# Corresponds to the JSON property `newRecognitionResultPayload`
|
16958
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1StreamingRecognitionResult]
|
16959
|
+
attr_accessor :new_recognition_result_payload
|
16960
|
+
|
16766
16961
|
# Required. The type of the event that this notification refers to.
|
16767
16962
|
# Corresponds to the JSON property `type`
|
16768
16963
|
# @return [String]
|
@@ -16777,6 +16972,7 @@ module Google
|
|
16777
16972
|
@conversation = args[:conversation] if args.key?(:conversation)
|
16778
16973
|
@error_status = args[:error_status] if args.key?(:error_status)
|
16779
16974
|
@new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
|
16975
|
+
@new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
|
16780
16976
|
@type = args[:type] if args.key?(:type)
|
16781
16977
|
end
|
16782
16978
|
end
|
@@ -19917,6 +20113,157 @@ module Google
|
|
19917
20113
|
end
|
19918
20114
|
end
|
19919
20115
|
|
20116
|
+
# Information for a word recognized by the speech recognizer.
|
20117
|
+
class GoogleCloudDialogflowV2beta1SpeechWordInfo
|
20118
|
+
include Google::Apis::Core::Hashable
|
20119
|
+
|
20120
|
+
# The Speech confidence between 0.0 and 1.0 for this word. A higher number
|
20121
|
+
# indicates an estimated greater likelihood that the recognized word is correct.
|
20122
|
+
# The default of 0.0 is a sentinel value indicating that confidence was not set.
|
20123
|
+
# This field is not guaranteed to be fully stable over time for the same audio
|
20124
|
+
# input. Users should also not rely on it to always be provided.
|
20125
|
+
# Corresponds to the JSON property `confidence`
|
20126
|
+
# @return [Float]
|
20127
|
+
attr_accessor :confidence
|
20128
|
+
|
20129
|
+
# Time offset relative to the beginning of the audio that corresponds to the end
|
20130
|
+
# of the spoken word. This is an experimental feature and the accuracy of the
|
20131
|
+
# time offset can vary.
|
20132
|
+
# Corresponds to the JSON property `endOffset`
|
20133
|
+
# @return [String]
|
20134
|
+
attr_accessor :end_offset
|
20135
|
+
|
20136
|
+
# Time offset relative to the beginning of the audio that corresponds to the
|
20137
|
+
# start of the spoken word. This is an experimental feature and the accuracy of
|
20138
|
+
# the time offset can vary.
|
20139
|
+
# Corresponds to the JSON property `startOffset`
|
20140
|
+
# @return [String]
|
20141
|
+
attr_accessor :start_offset
|
20142
|
+
|
20143
|
+
# The word this info is for.
|
20144
|
+
# Corresponds to the JSON property `word`
|
20145
|
+
# @return [String]
|
20146
|
+
attr_accessor :word
|
20147
|
+
|
20148
|
+
def initialize(**args)
|
20149
|
+
update!(**args)
|
20150
|
+
end
|
20151
|
+
|
20152
|
+
# Update properties of this object
|
20153
|
+
def update!(**args)
|
20154
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
20155
|
+
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
20156
|
+
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
20157
|
+
@word = args[:word] if args.key?(:word)
|
20158
|
+
end
|
20159
|
+
end
|
20160
|
+
|
20161
|
+
# Contains a speech recognition result corresponding to a portion of the audio
|
20162
|
+
# that is currently being processed or an indication that this is the end of the
|
20163
|
+
# single requested utterance. While end-user audio is being processed,
|
20164
|
+
# Dialogflow sends a series of results. Each result may contain a `transcript`
|
20165
|
+
# value. A transcript represents a portion of the utterance. While the
|
20166
|
+
# recognizer is processing audio, transcript values may be interim values or
|
20167
|
+
# finalized values. Once a transcript is finalized, the `is_final` value is set
|
20168
|
+
# to true and processing continues for the next transcript. If `
|
20169
|
+
# StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
|
20170
|
+
# true, and the recognizer has completed processing audio, the `message_type`
|
20171
|
+
# value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
|
20172
|
+
# contains the last finalized transcript. The complete end-user utterance is
|
20173
|
+
# determined by concatenating the finalized transcript values received for the
|
20174
|
+
# series of results. In the following example, single utterance is enabled. In
|
20175
|
+
# the case where single utterance is not enabled, result 7 would not occur. ```
|
20176
|
+
# Num | transcript | message_type | is_final --- | ----------------------- | ----
|
20177
|
+
# ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
|
20178
|
+
# TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
|
20179
|
+
# TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
|
20180
|
+
# false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
|
20181
|
+
# | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
|
20182
|
+
# set to true, the complete utterance becomes "to be or not to be that is the
|
20183
|
+
# question".
|
20184
|
+
class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
|
20185
|
+
include Google::Apis::Core::Hashable
|
20186
|
+
|
20187
|
+
# The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
|
20188
|
+
# higher number indicates an estimated greater likelihood that the recognized
|
20189
|
+
# words are correct. The default of 0.0 is a sentinel value indicating that
|
20190
|
+
# confidence was not set. This field is typically only provided if `is_final` is
|
20191
|
+
# true and you should not rely on it being accurate or even set.
|
20192
|
+
# Corresponds to the JSON property `confidence`
|
20193
|
+
# @return [Float]
|
20194
|
+
attr_accessor :confidence
|
20195
|
+
|
20196
|
+
# A wrapper of repeated TelephonyDtmf digits.
|
20197
|
+
# Corresponds to the JSON property `dtmfDigits`
|
20198
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]
|
20199
|
+
attr_accessor :dtmf_digits
|
20200
|
+
|
20201
|
+
# If `false`, the `StreamingRecognitionResult` represents an interim result that
|
20202
|
+
# may change. If `true`, the recognizer will not return any further hypotheses
|
20203
|
+
# about this piece of the audio. May only be populated for `message_type` = `
|
20204
|
+
# TRANSCRIPT`.
|
20205
|
+
# Corresponds to the JSON property `isFinal`
|
20206
|
+
# @return [Boolean]
|
20207
|
+
attr_accessor :is_final
|
20208
|
+
alias_method :is_final?, :is_final
|
20209
|
+
|
20210
|
+
# Detected language code for the transcript.
|
20211
|
+
# Corresponds to the JSON property `languageCode`
|
20212
|
+
# @return [String]
|
20213
|
+
attr_accessor :language_code
|
20214
|
+
|
20215
|
+
# Type of the result message.
|
20216
|
+
# Corresponds to the JSON property `messageType`
|
20217
|
+
# @return [String]
|
20218
|
+
attr_accessor :message_type
|
20219
|
+
|
20220
|
+
# Time offset of the end of this Speech recognition result relative to the
|
20221
|
+
# beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
|
20222
|
+
# Corresponds to the JSON property `speechEndOffset`
|
20223
|
+
# @return [String]
|
20224
|
+
attr_accessor :speech_end_offset
|
20225
|
+
|
20226
|
+
# Word-specific information for the words recognized by Speech in transcript.
|
20227
|
+
# Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
|
20228
|
+
# enable_word_info] is set.
|
20229
|
+
# Corresponds to the JSON property `speechWordInfo`
|
20230
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SpeechWordInfo>]
|
20231
|
+
attr_accessor :speech_word_info
|
20232
|
+
|
20233
|
+
# An estimate of the likelihood that the speech recognizer will not change its
|
20234
|
+
# guess about this interim recognition result: * If the value is unspecified or
|
20235
|
+
# 0.0, Dialogflow didn't compute the stability. In particular, Dialogflow will
|
20236
|
+
# only provide stability for `TRANSCRIPT` results with `is_final = false`. *
|
20237
|
+
# Otherwise, the value is in (0.0, 1.0] where 0.0 means completely unstable and
|
20238
|
+
# 1.0 means completely stable.
|
20239
|
+
# Corresponds to the JSON property `stability`
|
20240
|
+
# @return [Float]
|
20241
|
+
attr_accessor :stability
|
20242
|
+
|
20243
|
+
# Transcript text representing the words that the user spoke. Populated if and
|
20244
|
+
# only if `message_type` = `TRANSCRIPT`.
|
20245
|
+
# Corresponds to the JSON property `transcript`
|
20246
|
+
# @return [String]
|
20247
|
+
attr_accessor :transcript
|
20248
|
+
|
20249
|
+
def initialize(**args)
|
20250
|
+
update!(**args)
|
20251
|
+
end
|
20252
|
+
|
20253
|
+
# Update properties of this object
|
20254
|
+
def update!(**args)
|
20255
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
20256
|
+
@dtmf_digits = args[:dtmf_digits] if args.key?(:dtmf_digits)
|
20257
|
+
@is_final = args[:is_final] if args.key?(:is_final)
|
20258
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
20259
|
+
@message_type = args[:message_type] if args.key?(:message_type)
|
20260
|
+
@speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
|
20261
|
+
@speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
|
20262
|
+
@stability = args[:stability] if args.key?(:stability)
|
20263
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
20264
|
+
end
|
20265
|
+
end
|
20266
|
+
|
19920
20267
|
# The response message for Participants.SuggestArticles.
|
19921
20268
|
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
19922
20269
|
include Google::Apis::Core::Hashable
|
@@ -20154,6 +20501,25 @@ module Google
|
|
20154
20501
|
end
|
20155
20502
|
end
|
20156
20503
|
|
20504
|
+
# A wrapper of repeated TelephonyDtmf digits.
|
20505
|
+
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
20506
|
+
include Google::Apis::Core::Hashable
|
20507
|
+
|
20508
|
+
# A sequence of TelephonyDtmf digits.
|
20509
|
+
# Corresponds to the JSON property `dtmfEvents`
|
20510
|
+
# @return [Array<String>]
|
20511
|
+
attr_accessor :dtmf_events
|
20512
|
+
|
20513
|
+
def initialize(**args)
|
20514
|
+
update!(**args)
|
20515
|
+
end
|
20516
|
+
|
20517
|
+
# Update properties of this object
|
20518
|
+
def update!(**args)
|
20519
|
+
@dtmf_events = args[:dtmf_events] if args.key?(:dtmf_events)
|
20520
|
+
end
|
20521
|
+
end
|
20522
|
+
|
20157
20523
|
# The request message for a webhook call.
|
20158
20524
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
20159
20525
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV2
|
18
18
|
# Version of the google-apis-dialogflow_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.96.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
|
@@ -2506,6 +2506,18 @@ module Google
|
|
2506
2506
|
include Google::Apis::Core::JsonObjectSupport
|
2507
2507
|
end
|
2508
2508
|
|
2509
|
+
class GoogleCloudDialogflowV2SpeechWordInfo
|
2510
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2511
|
+
|
2512
|
+
include Google::Apis::Core::JsonObjectSupport
|
2513
|
+
end
|
2514
|
+
|
2515
|
+
class GoogleCloudDialogflowV2StreamingRecognitionResult
|
2516
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2517
|
+
|
2518
|
+
include Google::Apis::Core::JsonObjectSupport
|
2519
|
+
end
|
2520
|
+
|
2509
2521
|
class GoogleCloudDialogflowV2SuggestArticlesRequest
|
2510
2522
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2511
2523
|
|
@@ -3250,6 +3262,18 @@ module Google
|
|
3250
3262
|
include Google::Apis::Core::JsonObjectSupport
|
3251
3263
|
end
|
3252
3264
|
|
3265
|
+
class GoogleCloudDialogflowV2beta1SpeechWordInfo
|
3266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3267
|
+
|
3268
|
+
include Google::Apis::Core::JsonObjectSupport
|
3269
|
+
end
|
3270
|
+
|
3271
|
+
class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
|
3272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3273
|
+
|
3274
|
+
include Google::Apis::Core::JsonObjectSupport
|
3275
|
+
end
|
3276
|
+
|
3253
3277
|
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
3254
3278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3255
3279
|
|
@@ -3286,6 +3310,12 @@ module Google
|
|
3286
3310
|
include Google::Apis::Core::JsonObjectSupport
|
3287
3311
|
end
|
3288
3312
|
|
3313
|
+
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
3314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3315
|
+
|
3316
|
+
include Google::Apis::Core::JsonObjectSupport
|
3317
|
+
end
|
3318
|
+
|
3289
3319
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
3290
3320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3291
3321
|
|
@@ -5733,6 +5763,8 @@ module Google
|
|
5733
5763
|
|
5734
5764
|
property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message::Representation
|
5735
5765
|
|
5766
|
+
property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2StreamingRecognitionResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2StreamingRecognitionResult::Representation
|
5767
|
+
|
5736
5768
|
property :type, as: 'type'
|
5737
5769
|
end
|
5738
5770
|
end
|
@@ -5801,6 +5833,8 @@ module Google
|
|
5801
5833
|
property :name, as: 'name'
|
5802
5834
|
property :new_message_event_notification_config, as: 'newMessageEventNotificationConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig::Representation
|
5803
5835
|
|
5836
|
+
property :new_recognition_result_notification_config, as: 'newRecognitionResultNotificationConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig::Representation
|
5837
|
+
|
5804
5838
|
property :notification_config, as: 'notificationConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig::Representation
|
5805
5839
|
|
5806
5840
|
property :security_settings, as: 'securitySettings'
|
@@ -7539,6 +7573,30 @@ module Google
|
|
7539
7573
|
end
|
7540
7574
|
end
|
7541
7575
|
|
7576
|
+
class GoogleCloudDialogflowV2SpeechWordInfo
|
7577
|
+
# @private
|
7578
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7579
|
+
property :confidence, as: 'confidence'
|
7580
|
+
property :end_offset, as: 'endOffset'
|
7581
|
+
property :start_offset, as: 'startOffset'
|
7582
|
+
property :word, as: 'word'
|
7583
|
+
end
|
7584
|
+
end
|
7585
|
+
|
7586
|
+
class GoogleCloudDialogflowV2StreamingRecognitionResult
|
7587
|
+
# @private
|
7588
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7589
|
+
property :confidence, as: 'confidence'
|
7590
|
+
property :is_final, as: 'isFinal'
|
7591
|
+
property :language_code, as: 'languageCode'
|
7592
|
+
property :message_type, as: 'messageType'
|
7593
|
+
property :speech_end_offset, as: 'speechEndOffset'
|
7594
|
+
collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechWordInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechWordInfo::Representation
|
7595
|
+
|
7596
|
+
property :transcript, as: 'transcript'
|
7597
|
+
end
|
7598
|
+
end
|
7599
|
+
|
7542
7600
|
class GoogleCloudDialogflowV2SuggestArticlesRequest
|
7543
7601
|
# @private
|
7544
7602
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7902,6 +7960,8 @@ module Google
|
|
7902
7960
|
|
7903
7961
|
property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Message, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Message::Representation
|
7904
7962
|
|
7963
|
+
property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1StreamingRecognitionResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1StreamingRecognitionResult::Representation
|
7964
|
+
|
7905
7965
|
property :type, as: 'type'
|
7906
7966
|
end
|
7907
7967
|
end
|
@@ -8785,6 +8845,33 @@ module Google
|
|
8785
8845
|
end
|
8786
8846
|
end
|
8787
8847
|
|
8848
|
+
class GoogleCloudDialogflowV2beta1SpeechWordInfo
|
8849
|
+
# @private
|
8850
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8851
|
+
property :confidence, as: 'confidence'
|
8852
|
+
property :end_offset, as: 'endOffset'
|
8853
|
+
property :start_offset, as: 'startOffset'
|
8854
|
+
property :word, as: 'word'
|
8855
|
+
end
|
8856
|
+
end
|
8857
|
+
|
8858
|
+
class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
|
8859
|
+
# @private
|
8860
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8861
|
+
property :confidence, as: 'confidence'
|
8862
|
+
property :dtmf_digits, as: 'dtmfDigits', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents::Representation
|
8863
|
+
|
8864
|
+
property :is_final, as: 'isFinal'
|
8865
|
+
property :language_code, as: 'languageCode'
|
8866
|
+
property :message_type, as: 'messageType'
|
8867
|
+
property :speech_end_offset, as: 'speechEndOffset'
|
8868
|
+
collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SpeechWordInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SpeechWordInfo::Representation
|
8869
|
+
|
8870
|
+
property :stability, as: 'stability'
|
8871
|
+
property :transcript, as: 'transcript'
|
8872
|
+
end
|
8873
|
+
end
|
8874
|
+
|
8788
8875
|
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
8789
8876
|
# @private
|
8790
8877
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8855,6 +8942,13 @@ module Google
|
|
8855
8942
|
end
|
8856
8943
|
end
|
8857
8944
|
|
8945
|
+
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
8946
|
+
# @private
|
8947
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8948
|
+
collection :dtmf_events, as: 'dtmfEvents'
|
8949
|
+
end
|
8950
|
+
end
|
8951
|
+
|
8858
8952
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
8859
8953
|
# @private
|
8860
8954
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.96.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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.96.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|