google-apis-dialogflow_v2beta1 0.93.0 → 0.94.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: e1ff55e02e74d1e5784a64a47615ef04e7f67b743795457a4fc08f16dbfe176d
4
- data.tar.gz: 553e6f29fd1079bb631709a591e87f78b4e2ff2f24c2739a35e1f465f66d3211
3
+ metadata.gz: 50c3152b25fae720e23d8a3f16a16c3668e92313b97b13676827ad8fcaa7e0af
4
+ data.tar.gz: 0040f36af3d378eda0aafbaa7c146784514897ed5dbf327407905b74253abc40
5
5
  SHA512:
6
- metadata.gz: 83a667914535487f1f38c89e3cede6187d1716f837628676a53d7673a5b7bb212dd24513c5a8f7e2133228359f41be536bed86e38a341b91d35b3387d7718805
7
- data.tar.gz: fd97dfe095881ab42e17a25362c2e5024b8e2037d62c818ee6f650d543ed4e6e0e655f953e638a445f66894e72b91e7912fef4ec785575852c938507b9f09b92
6
+ metadata.gz: 2b0d6f2d08f3b11b5744f3c3e02db13018978e5cef75884400a00faf817c7af68b98bed64b2e3b58cfbdd149054190b46d9a4d82245be8593262f8b220e4f0ef
7
+ data.tar.gz: 1f6d9f1d2f5e10a1ff1e7faa3e4558d92fa31ad4c9acbfdb9516652ec93f222aeb3450b142851f670f6f91c2d2e5783e2da0e08687e09de88410360763c09607
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.94.0 (2024-12-22)
4
+
5
+ * Regenerated from discovery document revision 20241216
6
+
3
7
  ### v0.93.0 (2024-12-15)
4
8
 
5
9
  * Regenerated from discovery document revision 20241212
@@ -7852,6 +7852,33 @@ module Google
7852
7852
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Message]
7853
7853
  attr_accessor :new_message_payload
7854
7854
 
7855
+ # Contains a speech recognition result corresponding to a portion of the audio
7856
+ # that is currently being processed or an indication that this is the end of the
7857
+ # single requested utterance. While end-user audio is being processed,
7858
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
7859
+ # value. A transcript represents a portion of the utterance. While the
7860
+ # recognizer is processing audio, transcript values may be interim values or
7861
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
7862
+ # to true and processing continues for the next transcript. If `
7863
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
7864
+ # true, and the recognizer has completed processing audio, the `message_type`
7865
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
7866
+ # contains the last finalized transcript. The complete end-user utterance is
7867
+ # determined by concatenating the finalized transcript values received for the
7868
+ # series of results. In the following example, single utterance is enabled. In
7869
+ # the case where single utterance is not enabled, result 7 would not occur. ```
7870
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
7871
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
7872
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
7873
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
7874
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
7875
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
7876
+ # set to true, the complete utterance becomes "to be or not to be that is the
7877
+ # question".
7878
+ # Corresponds to the JSON property `newRecognitionResultPayload`
7879
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2StreamingRecognitionResult]
7880
+ attr_accessor :new_recognition_result_payload
7881
+
7855
7882
  # The type of the event that this notification refers to.
7856
7883
  # Corresponds to the JSON property `type`
7857
7884
  # @return [String]
@@ -7866,6 +7893,7 @@ module Google
7866
7893
  @conversation = args[:conversation] if args.key?(:conversation)
7867
7894
  @error_status = args[:error_status] if args.key?(:error_status)
7868
7895
  @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
7896
+ @new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
7869
7897
  @type = args[:type] if args.key?(:type)
7870
7898
  end
7871
7899
  end
@@ -10514,6 +10542,140 @@ module Google
10514
10542
  end
10515
10543
  end
10516
10544
 
10545
+ # Information for a word recognized by the speech recognizer.
10546
+ class GoogleCloudDialogflowV2SpeechWordInfo
10547
+ include Google::Apis::Core::Hashable
10548
+
10549
+ # The Speech confidence between 0.0 and 1.0 for this word. A higher number
10550
+ # indicates an estimated greater likelihood that the recognized word is correct.
10551
+ # The default of 0.0 is a sentinel value indicating that confidence was not set.
10552
+ # This field is not guaranteed to be fully stable over time for the same audio
10553
+ # input. Users should also not rely on it to always be provided.
10554
+ # Corresponds to the JSON property `confidence`
10555
+ # @return [Float]
10556
+ attr_accessor :confidence
10557
+
10558
+ # Time offset relative to the beginning of the audio that corresponds to the end
10559
+ # of the spoken word. This is an experimental feature and the accuracy of the
10560
+ # time offset can vary.
10561
+ # Corresponds to the JSON property `endOffset`
10562
+ # @return [String]
10563
+ attr_accessor :end_offset
10564
+
10565
+ # Time offset relative to the beginning of the audio that corresponds to the
10566
+ # start of the spoken word. This is an experimental feature and the accuracy of
10567
+ # the time offset can vary.
10568
+ # Corresponds to the JSON property `startOffset`
10569
+ # @return [String]
10570
+ attr_accessor :start_offset
10571
+
10572
+ # The word this info is for.
10573
+ # Corresponds to the JSON property `word`
10574
+ # @return [String]
10575
+ attr_accessor :word
10576
+
10577
+ def initialize(**args)
10578
+ update!(**args)
10579
+ end
10580
+
10581
+ # Update properties of this object
10582
+ def update!(**args)
10583
+ @confidence = args[:confidence] if args.key?(:confidence)
10584
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
10585
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
10586
+ @word = args[:word] if args.key?(:word)
10587
+ end
10588
+ end
10589
+
10590
+ # Contains a speech recognition result corresponding to a portion of the audio
10591
+ # that is currently being processed or an indication that this is the end of the
10592
+ # single requested utterance. While end-user audio is being processed,
10593
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
10594
+ # value. A transcript represents a portion of the utterance. While the
10595
+ # recognizer is processing audio, transcript values may be interim values or
10596
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
10597
+ # to true and processing continues for the next transcript. If `
10598
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
10599
+ # true, and the recognizer has completed processing audio, the `message_type`
10600
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
10601
+ # contains the last finalized transcript. The complete end-user utterance is
10602
+ # determined by concatenating the finalized transcript values received for the
10603
+ # series of results. In the following example, single utterance is enabled. In
10604
+ # the case where single utterance is not enabled, result 7 would not occur. ```
10605
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
10606
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
10607
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
10608
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
10609
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
10610
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
10611
+ # set to true, the complete utterance becomes "to be or not to be that is the
10612
+ # question".
10613
+ class GoogleCloudDialogflowV2StreamingRecognitionResult
10614
+ include Google::Apis::Core::Hashable
10615
+
10616
+ # The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
10617
+ # higher number indicates an estimated greater likelihood that the recognized
10618
+ # words are correct. The default of 0.0 is a sentinel value indicating that
10619
+ # confidence was not set. This field is typically only provided if `is_final` is
10620
+ # true and you should not rely on it being accurate or even set.
10621
+ # Corresponds to the JSON property `confidence`
10622
+ # @return [Float]
10623
+ attr_accessor :confidence
10624
+
10625
+ # If `false`, the `StreamingRecognitionResult` represents an interim result that
10626
+ # may change. If `true`, the recognizer will not return any further hypotheses
10627
+ # about this piece of the audio. May only be populated for `message_type` = `
10628
+ # TRANSCRIPT`.
10629
+ # Corresponds to the JSON property `isFinal`
10630
+ # @return [Boolean]
10631
+ attr_accessor :is_final
10632
+ alias_method :is_final?, :is_final
10633
+
10634
+ # Detected language code for the transcript.
10635
+ # Corresponds to the JSON property `languageCode`
10636
+ # @return [String]
10637
+ attr_accessor :language_code
10638
+
10639
+ # Type of the result message.
10640
+ # Corresponds to the JSON property `messageType`
10641
+ # @return [String]
10642
+ attr_accessor :message_type
10643
+
10644
+ # Time offset of the end of this Speech recognition result relative to the
10645
+ # beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
10646
+ # Corresponds to the JSON property `speechEndOffset`
10647
+ # @return [String]
10648
+ attr_accessor :speech_end_offset
10649
+
10650
+ # Word-specific information for the words recognized by Speech in transcript.
10651
+ # Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
10652
+ # enable_word_info] is set.
10653
+ # Corresponds to the JSON property `speechWordInfo`
10654
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SpeechWordInfo>]
10655
+ attr_accessor :speech_word_info
10656
+
10657
+ # Transcript text representing the words that the user spoke. Populated if and
10658
+ # only if `message_type` = `TRANSCRIPT`.
10659
+ # Corresponds to the JSON property `transcript`
10660
+ # @return [String]
10661
+ attr_accessor :transcript
10662
+
10663
+ def initialize(**args)
10664
+ update!(**args)
10665
+ end
10666
+
10667
+ # Update properties of this object
10668
+ def update!(**args)
10669
+ @confidence = args[:confidence] if args.key?(:confidence)
10670
+ @is_final = args[:is_final] if args.key?(:is_final)
10671
+ @language_code = args[:language_code] if args.key?(:language_code)
10672
+ @message_type = args[:message_type] if args.key?(:message_type)
10673
+ @speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
10674
+ @speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
10675
+ @transcript = args[:transcript] if args.key?(:transcript)
10676
+ end
10677
+ end
10678
+
10517
10679
  # The response message for Participants.SuggestArticles.
10518
10680
  class GoogleCloudDialogflowV2SuggestArticlesResponse
10519
10681
  include Google::Apis::Core::Hashable
@@ -11199,13 +11361,14 @@ module Google
11199
11361
 
11200
11362
  # Optional. The send time of the message from end user or human agent's
11201
11363
  # perspective. It is used for identifying the same message under one participant.
11202
- # Given two messages under the same participant: * If send time are different
11364
+ # For BatchCreateMessages API only: Given two messages under the same
11365
+ # participant: * If send time are different regardless of whether the content of
11366
+ # the messages are exactly the same, the conversation will regard them as two
11367
+ # distinct messages sent by the participant. * If send time is the same
11203
11368
  # regardless of whether the content of the messages are exactly the same, the
11204
- # conversation will regard them as two distinct messages sent by the participant.
11205
- # * If send time is the same regardless of whether the content of the messages
11206
- # are exactly the same, the conversation will regard them as same message, and
11207
- # ignore the message received later. If the value is not provided, a new request
11208
- # will always be regarded as a new message without any de-duplication.
11369
+ # conversation will regard them as same message, and ignore the message received
11370
+ # later. If the value is not provided, a new request will always be regarded as
11371
+ # a new message without any de-duplication.
11209
11372
  # Corresponds to the JSON property `messageSendTime`
11210
11373
  # @return [String]
11211
11374
  attr_accessor :message_send_time
@@ -12411,6 +12574,33 @@ module Google
12411
12574
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message]
12412
12575
  attr_accessor :new_message_payload
12413
12576
 
12577
+ # Contains a speech recognition result corresponding to a portion of the audio
12578
+ # that is currently being processed or an indication that this is the end of the
12579
+ # single requested utterance. While end-user audio is being processed,
12580
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
12581
+ # value. A transcript represents a portion of the utterance. While the
12582
+ # recognizer is processing audio, transcript values may be interim values or
12583
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
12584
+ # to true and processing continues for the next transcript. If `
12585
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
12586
+ # true, and the recognizer has completed processing audio, the `message_type`
12587
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
12588
+ # contains the last finalized transcript. The complete end-user utterance is
12589
+ # determined by concatenating the finalized transcript values received for the
12590
+ # series of results. In the following example, single utterance is enabled. In
12591
+ # the case where single utterance is not enabled, result 7 would not occur. ```
12592
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
12593
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
12594
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
12595
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
12596
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
12597
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
12598
+ # set to true, the complete utterance becomes "to be or not to be that is the
12599
+ # question".
12600
+ # Corresponds to the JSON property `newRecognitionResultPayload`
12601
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult]
12602
+ attr_accessor :new_recognition_result_payload
12603
+
12414
12604
  # Required. The type of the event that this notification refers to.
12415
12605
  # Corresponds to the JSON property `type`
12416
12606
  # @return [String]
@@ -12425,6 +12615,7 @@ module Google
12425
12615
  @conversation = args[:conversation] if args.key?(:conversation)
12426
12616
  @error_status = args[:error_status] if args.key?(:error_status)
12427
12617
  @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
12618
+ @new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
12428
12619
  @type = args[:type] if args.key?(:type)
12429
12620
  end
12430
12621
  end
@@ -12504,6 +12695,11 @@ module Google
12504
12695
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig]
12505
12696
  attr_accessor :new_message_event_notification_config
12506
12697
 
12698
+ # Defines notification behavior.
12699
+ # Corresponds to the JSON property `newRecognitionResultNotificationConfig`
12700
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig]
12701
+ attr_accessor :new_recognition_result_notification_config
12702
+
12507
12703
  # Defines notification behavior.
12508
12704
  # Corresponds to the JSON property `notificationConfig`
12509
12705
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig]
@@ -12552,6 +12748,7 @@ module Google
12552
12748
  @logging_config = args[:logging_config] if args.key?(:logging_config)
12553
12749
  @name = args[:name] if args.key?(:name)
12554
12750
  @new_message_event_notification_config = args[:new_message_event_notification_config] if args.key?(:new_message_event_notification_config)
12751
+ @new_recognition_result_notification_config = args[:new_recognition_result_notification_config] if args.key?(:new_recognition_result_notification_config)
12555
12752
  @notification_config = args[:notification_config] if args.key?(:notification_config)
12556
12753
  @security_settings = args[:security_settings] if args.key?(:security_settings)
12557
12754
  @stt_config = args[:stt_config] if args.key?(:stt_config)
@@ -19189,6 +19386,157 @@ module Google
19189
19386
  end
19190
19387
  end
19191
19388
 
19389
+ # Information for a word recognized by the speech recognizer.
19390
+ class GoogleCloudDialogflowV2beta1SpeechWordInfo
19391
+ include Google::Apis::Core::Hashable
19392
+
19393
+ # The Speech confidence between 0.0 and 1.0 for this word. A higher number
19394
+ # indicates an estimated greater likelihood that the recognized word is correct.
19395
+ # The default of 0.0 is a sentinel value indicating that confidence was not set.
19396
+ # This field is not guaranteed to be fully stable over time for the same audio
19397
+ # input. Users should also not rely on it to always be provided.
19398
+ # Corresponds to the JSON property `confidence`
19399
+ # @return [Float]
19400
+ attr_accessor :confidence
19401
+
19402
+ # Time offset relative to the beginning of the audio that corresponds to the end
19403
+ # of the spoken word. This is an experimental feature and the accuracy of the
19404
+ # time offset can vary.
19405
+ # Corresponds to the JSON property `endOffset`
19406
+ # @return [String]
19407
+ attr_accessor :end_offset
19408
+
19409
+ # Time offset relative to the beginning of the audio that corresponds to the
19410
+ # start of the spoken word. This is an experimental feature and the accuracy of
19411
+ # the time offset can vary.
19412
+ # Corresponds to the JSON property `startOffset`
19413
+ # @return [String]
19414
+ attr_accessor :start_offset
19415
+
19416
+ # The word this info is for.
19417
+ # Corresponds to the JSON property `word`
19418
+ # @return [String]
19419
+ attr_accessor :word
19420
+
19421
+ def initialize(**args)
19422
+ update!(**args)
19423
+ end
19424
+
19425
+ # Update properties of this object
19426
+ def update!(**args)
19427
+ @confidence = args[:confidence] if args.key?(:confidence)
19428
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
19429
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
19430
+ @word = args[:word] if args.key?(:word)
19431
+ end
19432
+ end
19433
+
19434
+ # Contains a speech recognition result corresponding to a portion of the audio
19435
+ # that is currently being processed or an indication that this is the end of the
19436
+ # single requested utterance. While end-user audio is being processed,
19437
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
19438
+ # value. A transcript represents a portion of the utterance. While the
19439
+ # recognizer is processing audio, transcript values may be interim values or
19440
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
19441
+ # to true and processing continues for the next transcript. If `
19442
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
19443
+ # true, and the recognizer has completed processing audio, the `message_type`
19444
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
19445
+ # contains the last finalized transcript. The complete end-user utterance is
19446
+ # determined by concatenating the finalized transcript values received for the
19447
+ # series of results. In the following example, single utterance is enabled. In
19448
+ # the case where single utterance is not enabled, result 7 would not occur. ```
19449
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
19450
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
19451
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
19452
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
19453
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
19454
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
19455
+ # set to true, the complete utterance becomes "to be or not to be that is the
19456
+ # question".
19457
+ class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
19458
+ include Google::Apis::Core::Hashable
19459
+
19460
+ # The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
19461
+ # higher number indicates an estimated greater likelihood that the recognized
19462
+ # words are correct. The default of 0.0 is a sentinel value indicating that
19463
+ # confidence was not set. This field is typically only provided if `is_final` is
19464
+ # true and you should not rely on it being accurate or even set.
19465
+ # Corresponds to the JSON property `confidence`
19466
+ # @return [Float]
19467
+ attr_accessor :confidence
19468
+
19469
+ # A wrapper of repeated TelephonyDtmf digits.
19470
+ # Corresponds to the JSON property `dtmfDigits`
19471
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]
19472
+ attr_accessor :dtmf_digits
19473
+
19474
+ # If `false`, the `StreamingRecognitionResult` represents an interim result that
19475
+ # may change. If `true`, the recognizer will not return any further hypotheses
19476
+ # about this piece of the audio. May only be populated for `message_type` = `
19477
+ # TRANSCRIPT`.
19478
+ # Corresponds to the JSON property `isFinal`
19479
+ # @return [Boolean]
19480
+ attr_accessor :is_final
19481
+ alias_method :is_final?, :is_final
19482
+
19483
+ # Detected language code for the transcript.
19484
+ # Corresponds to the JSON property `languageCode`
19485
+ # @return [String]
19486
+ attr_accessor :language_code
19487
+
19488
+ # Type of the result message.
19489
+ # Corresponds to the JSON property `messageType`
19490
+ # @return [String]
19491
+ attr_accessor :message_type
19492
+
19493
+ # Time offset of the end of this Speech recognition result relative to the
19494
+ # beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
19495
+ # Corresponds to the JSON property `speechEndOffset`
19496
+ # @return [String]
19497
+ attr_accessor :speech_end_offset
19498
+
19499
+ # Word-specific information for the words recognized by Speech in transcript.
19500
+ # Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
19501
+ # enable_word_info] is set.
19502
+ # Corresponds to the JSON property `speechWordInfo`
19503
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo>]
19504
+ attr_accessor :speech_word_info
19505
+
19506
+ # An estimate of the likelihood that the speech recognizer will not change its
19507
+ # guess about this interim recognition result: * If the value is unspecified or
19508
+ # 0.0, Dialogflow didn't compute the stability. In particular, Dialogflow will
19509
+ # only provide stability for `TRANSCRIPT` results with `is_final = false`. *
19510
+ # Otherwise, the value is in (0.0, 1.0] where 0.0 means completely unstable and
19511
+ # 1.0 means completely stable.
19512
+ # Corresponds to the JSON property `stability`
19513
+ # @return [Float]
19514
+ attr_accessor :stability
19515
+
19516
+ # Transcript text representing the words that the user spoke. Populated if and
19517
+ # only if `message_type` = `TRANSCRIPT`.
19518
+ # Corresponds to the JSON property `transcript`
19519
+ # @return [String]
19520
+ attr_accessor :transcript
19521
+
19522
+ def initialize(**args)
19523
+ update!(**args)
19524
+ end
19525
+
19526
+ # Update properties of this object
19527
+ def update!(**args)
19528
+ @confidence = args[:confidence] if args.key?(:confidence)
19529
+ @dtmf_digits = args[:dtmf_digits] if args.key?(:dtmf_digits)
19530
+ @is_final = args[:is_final] if args.key?(:is_final)
19531
+ @language_code = args[:language_code] if args.key?(:language_code)
19532
+ @message_type = args[:message_type] if args.key?(:message_type)
19533
+ @speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
19534
+ @speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
19535
+ @stability = args[:stability] if args.key?(:stability)
19536
+ @transcript = args[:transcript] if args.key?(:transcript)
19537
+ end
19538
+ end
19539
+
19192
19540
  # Contains basic configuration for a sub-agent.
19193
19541
  class GoogleCloudDialogflowV2beta1SubAgent
19194
19542
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2beta1
18
18
  # Version of the google-apis-dialogflow_v2beta1 gem
19
- GEM_VERSION = "0.93.0"
19
+ GEM_VERSION = "0.94.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 = "20241212"
25
+ REVISION = "20241216"
26
26
  end
27
27
  end
28
28
  end
@@ -1720,6 +1720,18 @@ module Google
1720
1720
  include Google::Apis::Core::JsonObjectSupport
1721
1721
  end
1722
1722
 
1723
+ class GoogleCloudDialogflowV2SpeechWordInfo
1724
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1725
+
1726
+ include Google::Apis::Core::JsonObjectSupport
1727
+ end
1728
+
1729
+ class GoogleCloudDialogflowV2StreamingRecognitionResult
1730
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1731
+
1732
+ include Google::Apis::Core::JsonObjectSupport
1733
+ end
1734
+
1723
1735
  class GoogleCloudDialogflowV2SuggestArticlesResponse
1724
1736
  class Representation < Google::Apis::Core::JsonRepresentation; end
1725
1737
 
@@ -3088,6 +3100,18 @@ module Google
3088
3100
  include Google::Apis::Core::JsonObjectSupport
3089
3101
  end
3090
3102
 
3103
+ class GoogleCloudDialogflowV2beta1SpeechWordInfo
3104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3105
+
3106
+ include Google::Apis::Core::JsonObjectSupport
3107
+ end
3108
+
3109
+ class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
3110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3111
+
3112
+ include Google::Apis::Core::JsonObjectSupport
3113
+ end
3114
+
3091
3115
  class GoogleCloudDialogflowV2beta1SubAgent
3092
3116
  class Representation < Google::Apis::Core::JsonRepresentation; end
3093
3117
 
@@ -5455,6 +5479,8 @@ module Google
5455
5479
 
5456
5480
  property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Message, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Message::Representation
5457
5481
 
5482
+ property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2StreamingRecognitionResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2StreamingRecognitionResult::Representation
5483
+
5458
5484
  property :type, as: 'type'
5459
5485
  end
5460
5486
  end
@@ -6196,6 +6222,30 @@ module Google
6196
6222
  end
6197
6223
  end
6198
6224
 
6225
+ class GoogleCloudDialogflowV2SpeechWordInfo
6226
+ # @private
6227
+ class Representation < Google::Apis::Core::JsonRepresentation
6228
+ property :confidence, as: 'confidence'
6229
+ property :end_offset, as: 'endOffset'
6230
+ property :start_offset, as: 'startOffset'
6231
+ property :word, as: 'word'
6232
+ end
6233
+ end
6234
+
6235
+ class GoogleCloudDialogflowV2StreamingRecognitionResult
6236
+ # @private
6237
+ class Representation < Google::Apis::Core::JsonRepresentation
6238
+ property :confidence, as: 'confidence'
6239
+ property :is_final, as: 'isFinal'
6240
+ property :language_code, as: 'languageCode'
6241
+ property :message_type, as: 'messageType'
6242
+ property :speech_end_offset, as: 'speechEndOffset'
6243
+ collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SpeechWordInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SpeechWordInfo::Representation
6244
+
6245
+ property :transcript, as: 'transcript'
6246
+ end
6247
+ end
6248
+
6199
6249
  class GoogleCloudDialogflowV2SuggestArticlesResponse
6200
6250
  # @private
6201
6251
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6697,6 +6747,8 @@ module Google
6697
6747
 
6698
6748
  property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message::Representation
6699
6749
 
6750
+ property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult::Representation
6751
+
6700
6752
  property :type, as: 'type'
6701
6753
  end
6702
6754
  end
@@ -6725,6 +6777,8 @@ module Google
6725
6777
  property :name, as: 'name'
6726
6778
  property :new_message_event_notification_config, as: 'newMessageEventNotificationConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig::Representation
6727
6779
 
6780
+ property :new_recognition_result_notification_config, as: 'newRecognitionResultNotificationConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig::Representation
6781
+
6728
6782
  property :notification_config, as: 'notificationConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig::Representation
6729
6783
 
6730
6784
  property :security_settings, as: 'securitySettings'
@@ -8554,6 +8608,33 @@ module Google
8554
8608
  end
8555
8609
  end
8556
8610
 
8611
+ class GoogleCloudDialogflowV2beta1SpeechWordInfo
8612
+ # @private
8613
+ class Representation < Google::Apis::Core::JsonRepresentation
8614
+ property :confidence, as: 'confidence'
8615
+ property :end_offset, as: 'endOffset'
8616
+ property :start_offset, as: 'startOffset'
8617
+ property :word, as: 'word'
8618
+ end
8619
+ end
8620
+
8621
+ class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
8622
+ # @private
8623
+ class Representation < Google::Apis::Core::JsonRepresentation
8624
+ property :confidence, as: 'confidence'
8625
+ property :dtmf_digits, as: 'dtmfDigits', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents::Representation
8626
+
8627
+ property :is_final, as: 'isFinal'
8628
+ property :language_code, as: 'languageCode'
8629
+ property :message_type, as: 'messageType'
8630
+ property :speech_end_offset, as: 'speechEndOffset'
8631
+ collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo::Representation
8632
+
8633
+ property :stability, as: 'stability'
8634
+ property :transcript, as: 'transcript'
8635
+ end
8636
+ end
8637
+
8557
8638
  class GoogleCloudDialogflowV2beta1SubAgent
8558
8639
  # @private
8559
8640
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.93.0
4
+ version: 0.94.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: 2024-12-15 00:00:00.000000000 Z
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_v2beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.93.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.94.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
63
63
  post_install_message:
64
64
  rdoc_options: []