google-apis-dialogflow_v3 0.70.0 → 0.72.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: e3104145e1bcc801ad5484a6d250ebf652a6e1f3cc915425b67628de35d775d3
4
- data.tar.gz: 13ec5b666e407637ad2f30ebee9685a5c41d21835e49011480c650fd9ada7633
3
+ metadata.gz: 36637fc481bad953ebcddee809a807db4ee5dd11138eb5f9e273e8b08b0d1675
4
+ data.tar.gz: 961a869e577e4eb678a71dd9f13adac0453c94b888c7081c46f77ef64d4bb981
5
5
  SHA512:
6
- metadata.gz: 1890df9f3ca2b527055a2d828dfa0bea51f5df5138b44ab9f94318bf971baa1ec89f88505b2b3a9c9511c6f75b250bfa4b377031e679444b539dbfc2d557ee31
7
- data.tar.gz: dd022028c6dbb75016b6ed4d2c043ee29abaa6ac7f84e576ec56e11b249d78f744d7a881c9ad6aa287931108dc4c75c52c3dea26256b81925e435a8283b4cc5b
6
+ metadata.gz: 25d4ad1bf79b381132551554d79c228ba5cd99ca0e3e57029f78a73e272bac7125f5a66d694e22bc5e994606d8989a41d646caa5b7cc77b2a0b417e96b7fb59c
7
+ data.tar.gz: 4a9db293fd6e98a39319cdbb538374ce91eba02bd0722214fb005e94ed99a7333a092a444a38cfb7420621e35c925de5a4c4bb3df4f16362d24774a71a13b0cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dialogflow_v3
2
2
 
3
+ ### v0.72.0 (2023-12-03)
4
+
5
+ * Regenerated from discovery document revision 20231129
6
+
7
+ ### v0.71.0 (2023-11-19)
8
+
9
+ * Regenerated from discovery document revision 20231109
10
+
3
11
  ### v0.70.0 (2023-10-29)
4
12
 
5
13
  * Regenerated from discovery document revision 20231019
@@ -145,6 +145,11 @@ module Google
145
145
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings]
146
146
  attr_accessor :advanced_settings
147
147
 
148
+ # Settings for answer feedback collection.
149
+ # Corresponds to the JSON property `answerFeedbackSettings`
150
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings]
151
+ attr_accessor :answer_feedback_settings
152
+
148
153
  # The URI of the agent's avatar. Avatars are used throughout the Dialogflow
149
154
  # console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/
150
155
  # docs/integrations/web-demo) integration.
@@ -250,6 +255,7 @@ module Google
250
255
  # Update properties of this object
251
256
  def update!(**args)
252
257
  @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
258
+ @answer_feedback_settings = args[:answer_feedback_settings] if args.key?(:answer_feedback_settings)
253
259
  @avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri)
254
260
  @default_language_code = args[:default_language_code] if args.key?(:default_language_code)
255
261
  @description = args[:description] if args.key?(:description)
@@ -269,6 +275,28 @@ module Google
269
275
  end
270
276
  end
271
277
 
278
+ # Settings for answer feedback collection.
279
+ class GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings
280
+ include Google::Apis::Core::Hashable
281
+
282
+ # Optional. If enabled, end users will be able to provide answer feedback to
283
+ # Dialogflow responses. Feature works only if interaction logging is enabled in
284
+ # the Dialogflow agent.
285
+ # Corresponds to the JSON property `enableAnswerFeedback`
286
+ # @return [Boolean]
287
+ attr_accessor :enable_answer_feedback
288
+ alias_method :enable_answer_feedback?, :enable_answer_feedback
289
+
290
+ def initialize(**args)
291
+ update!(**args)
292
+ end
293
+
294
+ # Update properties of this object
295
+ def update!(**args)
296
+ @enable_answer_feedback = args[:enable_answer_feedback] if args.key?(:enable_answer_feedback)
297
+ end
298
+ end
299
+
272
300
  # Settings for Gen App Builder.
273
301
  class GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings
274
302
  include Google::Apis::Core::Hashable
@@ -378,6 +406,67 @@ module Google
378
406
  end
379
407
  end
380
408
 
409
+ # Stores information about feedback provided by users about a response.
410
+ class GoogleCloudDialogflowCxV3AnswerFeedback
411
+ include Google::Apis::Core::Hashable
412
+
413
+ # Optional. Custom rating from the user about the provided answer, with maximum
414
+ # length of 1024 characters. For example, client could use a customized JSON
415
+ # object to indicate the rating.
416
+ # Corresponds to the JSON property `customRating`
417
+ # @return [String]
418
+ attr_accessor :custom_rating
419
+
420
+ # Optional. Rating from user for the specific Dialogflow response.
421
+ # Corresponds to the JSON property `rating`
422
+ # @return [String]
423
+ attr_accessor :rating
424
+
425
+ # Stores extra information about why users provided thumbs down rating.
426
+ # Corresponds to the JSON property `ratingReason`
427
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason]
428
+ attr_accessor :rating_reason
429
+
430
+ def initialize(**args)
431
+ update!(**args)
432
+ end
433
+
434
+ # Update properties of this object
435
+ def update!(**args)
436
+ @custom_rating = args[:custom_rating] if args.key?(:custom_rating)
437
+ @rating = args[:rating] if args.key?(:rating)
438
+ @rating_reason = args[:rating_reason] if args.key?(:rating_reason)
439
+ end
440
+ end
441
+
442
+ # Stores extra information about why users provided thumbs down rating.
443
+ class GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason
444
+ include Google::Apis::Core::Hashable
445
+
446
+ # Optional. Additional feedback about the rating. This field can be populated
447
+ # without choosing a predefined `reason`.
448
+ # Corresponds to the JSON property `feedback`
449
+ # @return [String]
450
+ attr_accessor :feedback
451
+
452
+ # Optional. Custom reason labels for thumbs down rating provided by the user.
453
+ # The maximum number of labels allowed is 10 and the maximum length of a single
454
+ # label is 128 characters.
455
+ # Corresponds to the JSON property `reasonLabels`
456
+ # @return [Array<String>]
457
+ attr_accessor :reason_labels
458
+
459
+ def initialize(**args)
460
+ update!(**args)
461
+ end
462
+
463
+ # Update properties of this object
464
+ def update!(**args)
465
+ @feedback = args[:feedback] if args.key?(:feedback)
466
+ @reason_labels = args[:reason_labels] if args.key?(:reason_labels)
467
+ end
468
+ end
469
+
381
470
  # Represents the natural speech audio to be processed.
382
471
  class GoogleCloudDialogflowCxV3AudioInput
383
472
  include Google::Apis::Core::Hashable
@@ -409,6 +498,49 @@ module Google
409
498
  end
410
499
  end
411
500
 
501
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
502
+ # detected utterance at a proper time while the client is playing back the
503
+ # response audio from a previous request. When the client sees the utterance, it
504
+ # should stop the playback and immediately get ready for receiving the responses
505
+ # for the current request. The barge-in handling requires the client to start
506
+ # streaming audio input as soon as it starts playing back the audio from the
507
+ # previous response. The playback is modeled into two phases: * No barge-in
508
+ # phase: which goes first and during which speech detection should not be
509
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
510
+ # which the API starts speech detection and may inform the client that an
511
+ # utterance has been detected. Note that no-speech event is not expected in this
512
+ # phase. The client provides this configuration in terms of the durations of
513
+ # those two phases. The durations are measured in terms of the audio length
514
+ # fromt the the start of the input audio. The flow goes like below: --> Time
515
+ # without speech detection | utterance only | utterance or no-speech event | | +-
516
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
517
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
518
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
519
+ # any transcript following up.
520
+ class GoogleCloudDialogflowCxV3BargeInConfig
521
+ include Google::Apis::Core::Hashable
522
+
523
+ # Duration that is not eligible for barge-in at the beginning of the input audio.
524
+ # Corresponds to the JSON property `noBargeInDuration`
525
+ # @return [String]
526
+ attr_accessor :no_barge_in_duration
527
+
528
+ # Total duration for the playback at the beginning of the input audio.
529
+ # Corresponds to the JSON property `totalDuration`
530
+ # @return [String]
531
+ attr_accessor :total_duration
532
+
533
+ def initialize(**args)
534
+ update!(**args)
535
+ end
536
+
537
+ # Update properties of this object
538
+ def update!(**args)
539
+ @no_barge_in_duration = args[:no_barge_in_duration] if args.key?(:no_barge_in_duration)
540
+ @total_duration = args[:total_duration] if args.key?(:total_duration)
541
+ end
542
+ end
543
+
412
544
  # The request message for TestCases.BatchDeleteTestCases.
413
545
  class GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest
414
546
  include Google::Apis::Core::Hashable
@@ -494,6 +626,97 @@ module Google
494
626
  end
495
627
  end
496
628
 
629
+ # Boost specification to boost certain documents. A copy of google.cloud.
630
+ # discoveryengine.v1main.BoostSpec, field documentation is available at https://
631
+ # cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/
632
+ # BoostSpec
633
+ class GoogleCloudDialogflowCxV3BoostSpec
634
+ include Google::Apis::Core::Hashable
635
+
636
+ # Optional. Condition boost specifications. If a document matches multiple
637
+ # conditions in the specifictions, boost scores from these specifications are
638
+ # all applied and combined in a non-linear way. Maximum number of specifications
639
+ # is 20.
640
+ # Corresponds to the JSON property `conditionBoostSpecs`
641
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec>]
642
+ attr_accessor :condition_boost_specs
643
+
644
+ def initialize(**args)
645
+ update!(**args)
646
+ end
647
+
648
+ # Update properties of this object
649
+ def update!(**args)
650
+ @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
651
+ end
652
+ end
653
+
654
+ # Boost applies to documents which match a condition.
655
+ class GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
656
+ include Google::Apis::Core::Hashable
657
+
658
+ # Optional. Strength of the condition boost, which should be in [-1, 1].
659
+ # Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the
660
+ # document a big promotion. However, it does not necessarily mean that the
661
+ # boosted document will be the top result at all times, nor that other documents
662
+ # will be excluded. Results could still be shown even when none of them matches
663
+ # the condition. And results that are significantly more relevant to the search
664
+ # query can still trump your heavily favored but irrelevant documents. Setting
665
+ # to -1.0 gives the document a big demotion. However, results that are deeply
666
+ # relevant might still be shown. The document will have an upstream battle to
667
+ # get a fairly high ranking, but it is not blocked out completely. Setting to 0.
668
+ # 0 means no boost applied. The boosting condition is ignored.
669
+ # Corresponds to the JSON property `boost`
670
+ # @return [Float]
671
+ attr_accessor :boost
672
+
673
+ # Optional. An expression which specifies a boost condition. The syntax and
674
+ # supported fields are the same as a filter expression. Examples: * To boost
675
+ # documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue": * (
676
+ # id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
677
+ # Corresponds to the JSON property `condition`
678
+ # @return [String]
679
+ attr_accessor :condition
680
+
681
+ def initialize(**args)
682
+ update!(**args)
683
+ end
684
+
685
+ # Update properties of this object
686
+ def update!(**args)
687
+ @boost = args[:boost] if args.key?(:boost)
688
+ @condition = args[:condition] if args.key?(:condition)
689
+ end
690
+ end
691
+
692
+ # Boost specifications for data stores.
693
+ class GoogleCloudDialogflowCxV3BoostSpecs
694
+ include Google::Apis::Core::Hashable
695
+
696
+ # Optional. Data Stores where the boosting configuration is applied. The full
697
+ # names of the referenced data stores. Formats: `projects/`project`/locations/`
698
+ # location`/collections/`collection`/dataStores/`data_store`` `projects/`project`
699
+ # /locations/`location`/dataStores/`data_store`
700
+ # Corresponds to the JSON property `dataStores`
701
+ # @return [Array<String>]
702
+ attr_accessor :data_stores
703
+
704
+ # Optional. A list of boosting specifications.
705
+ # Corresponds to the JSON property `spec`
706
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpec>]
707
+ attr_accessor :spec
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @data_stores = args[:data_stores] if args.key?(:data_stores)
716
+ @spec = args[:spec] if args.key?(:spec)
717
+ end
718
+ end
719
+
497
720
  # The response message for TestCases.CalculateCoverage.
498
721
  class GoogleCloudDialogflowCxV3CalculateCoverageResponse
499
722
  include Google::Apis::Core::Hashable
@@ -2194,6 +2417,36 @@ module Google
2194
2417
  end
2195
2418
  end
2196
2419
 
2420
+ # Filter specifications for data stores.
2421
+ class GoogleCloudDialogflowCxV3FilterSpecs
2422
+ include Google::Apis::Core::Hashable
2423
+
2424
+ # Optional. Data Stores where the boosting configuration is applied. The full
2425
+ # names of the referenced data stores. Formats: `projects/`project`/locations/`
2426
+ # location`/collections/`collection`/dataStores/`data_store`` `projects/`project`
2427
+ # /locations/`location`/dataStores/`data_store`
2428
+ # Corresponds to the JSON property `dataStores`
2429
+ # @return [Array<String>]
2430
+ attr_accessor :data_stores
2431
+
2432
+ # Optional. The filter expression to be applied. Expression syntax is documented
2433
+ # at https://cloud.google.com/generative-ai-app-builder/docs/filter-search-
2434
+ # metadata#filter-expression-syntax
2435
+ # Corresponds to the JSON property `filter`
2436
+ # @return [String]
2437
+ attr_accessor :filter
2438
+
2439
+ def initialize(**args)
2440
+ update!(**args)
2441
+ end
2442
+
2443
+ # Update properties of this object
2444
+ def update!(**args)
2445
+ @data_stores = args[:data_stores] if args.key?(:data_stores)
2446
+ @filter = args[:filter] if args.key?(:filter)
2447
+ end
2448
+ end
2449
+
2197
2450
  # Flows represents the conversation flows when you build your chatbot agent. A
2198
2451
  # flow consists of many pages connected by the transition routes. Conversations
2199
2452
  # always start with the built-in Start Flow (with an all-0 ID). Transition
@@ -3308,6 +3561,29 @@ module Google
3308
3561
  # @return [String]
3309
3562
  attr_accessor :audio_encoding
3310
3563
 
3564
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
3565
+ # detected utterance at a proper time while the client is playing back the
3566
+ # response audio from a previous request. When the client sees the utterance, it
3567
+ # should stop the playback and immediately get ready for receiving the responses
3568
+ # for the current request. The barge-in handling requires the client to start
3569
+ # streaming audio input as soon as it starts playing back the audio from the
3570
+ # previous response. The playback is modeled into two phases: * No barge-in
3571
+ # phase: which goes first and during which speech detection should not be
3572
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
3573
+ # which the API starts speech detection and may inform the client that an
3574
+ # utterance has been detected. Note that no-speech event is not expected in this
3575
+ # phase. The client provides this configuration in terms of the durations of
3576
+ # those two phases. The durations are measured in terms of the audio length
3577
+ # fromt the the start of the input audio. The flow goes like below: --> Time
3578
+ # without speech detection | utterance only | utterance or no-speech event | | +-
3579
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
3580
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
3581
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
3582
+ # any transcript following up.
3583
+ # Corresponds to the JSON property `bargeInConfig`
3584
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BargeInConfig]
3585
+ attr_accessor :barge_in_config
3586
+
3311
3587
  # Optional. If `true`, Dialogflow returns SpeechWordInfo in
3312
3588
  # StreamingRecognitionResult with information about the recognized speech words,
3313
3589
  # e.g. start and end time offsets. If false or unspecified, Speech doesn't
@@ -3370,6 +3646,7 @@ module Google
3370
3646
  # Update properties of this object
3371
3647
  def update!(**args)
3372
3648
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
3649
+ @barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
3373
3650
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
3374
3651
  @model = args[:model] if args.key?(:model)
3375
3652
  @model_variant = args[:model_variant] if args.key?(:model_variant)
@@ -4825,6 +5102,11 @@ module Google
4825
5102
  # @return [Hash<String,Object>]
4826
5103
  attr_accessor :payload
4827
5104
 
5105
+ # Search configuration for UCS search queries.
5106
+ # Corresponds to the JSON property `searchConfig`
5107
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SearchConfig]
5108
+ attr_accessor :search_config
5109
+
4828
5110
  # Additional session entity types to replace or extend developer entity types
4829
5111
  # with. The entity synonyms apply to all languages and persist for the session
4830
5112
  # of this query.
@@ -4873,6 +5155,7 @@ module Google
4873
5155
  @geo_location = args[:geo_location] if args.key?(:geo_location)
4874
5156
  @parameters = args[:parameters] if args.key?(:parameters)
4875
5157
  @payload = args[:payload] if args.key?(:payload)
5158
+ @search_config = args[:search_config] if args.key?(:search_config)
4876
5159
  @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
4877
5160
  @session_ttl = args[:session_ttl] if args.key?(:session_ttl)
4878
5161
  @time_zone = args[:time_zone] if args.key?(:time_zone)
@@ -4896,6 +5179,13 @@ module Google
4896
5179
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings]
4897
5180
  attr_accessor :advanced_settings
4898
5181
 
5182
+ # Indicates whether the Thumbs up/Thumbs down rating controls are need to be
5183
+ # shown for the response in the Dialogflow Messenger widget.
5184
+ # Corresponds to the JSON property `allowAnswerFeedback`
5185
+ # @return [Boolean]
5186
+ attr_accessor :allow_answer_feedback
5187
+ alias_method :allow_answer_feedback?, :allow_answer_feedback
5188
+
4899
5189
  # A Dialogflow CX conversation (session) can be described and visualized as a
4900
5190
  # state machine. The states of a CX session are represented by pages. For each
4901
5191
  # flow, you define many pages, where your combined pages can handle a complete
@@ -5033,6 +5323,7 @@ module Google
5033
5323
  # Update properties of this object
5034
5324
  def update!(**args)
5035
5325
  @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
5326
+ @allow_answer_feedback = args[:allow_answer_feedback] if args.key?(:allow_answer_feedback)
5036
5327
  @current_page = args[:current_page] if args.key?(:current_page)
5037
5328
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
5038
5329
  @dtmf = args[:dtmf] if args.key?(:dtmf)
@@ -5781,6 +6072,31 @@ module Google
5781
6072
  end
5782
6073
  end
5783
6074
 
6075
+ # Search configuration for UCS search queries.
6076
+ class GoogleCloudDialogflowCxV3SearchConfig
6077
+ include Google::Apis::Core::Hashable
6078
+
6079
+ # Optional. Boosting configuration for the datastores.
6080
+ # Corresponds to the JSON property `boostSpecs`
6081
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpecs>]
6082
+ attr_accessor :boost_specs
6083
+
6084
+ # Optional. Filter configuration for the datastores.
6085
+ # Corresponds to the JSON property `filterSpecs`
6086
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FilterSpecs>]
6087
+ attr_accessor :filter_specs
6088
+
6089
+ def initialize(**args)
6090
+ update!(**args)
6091
+ end
6092
+
6093
+ # Update properties of this object
6094
+ def update!(**args)
6095
+ @boost_specs = args[:boost_specs] if args.key?(:boost_specs)
6096
+ @filter_specs = args[:filter_specs] if args.key?(:filter_specs)
6097
+ end
6098
+ end
6099
+
5784
6100
  # Represents the settings related to security issues, such as data redaction and
5785
6101
  # data retention. It may take hours for updates on the settings to propagate to
5786
6102
  # all the related components and take effect.
@@ -6099,6 +6415,39 @@ module Google
6099
6415
  end
6100
6416
  end
6101
6417
 
6418
+ # The request to set the feedback for a bot answer.
6419
+ class GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest
6420
+ include Google::Apis::Core::Hashable
6421
+
6422
+ # Stores information about feedback provided by users about a response.
6423
+ # Corresponds to the JSON property `answerFeedback`
6424
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback]
6425
+ attr_accessor :answer_feedback
6426
+
6427
+ # Required. ID of the response to update its feedback. This is the same as
6428
+ # DetectIntentResponse.response_id.
6429
+ # Corresponds to the JSON property `responseId`
6430
+ # @return [String]
6431
+ attr_accessor :response_id
6432
+
6433
+ # Optional. The mask to control which fields to update. If the mask is not
6434
+ # present, all fields will be updated.
6435
+ # Corresponds to the JSON property `updateMask`
6436
+ # @return [String]
6437
+ attr_accessor :update_mask
6438
+
6439
+ def initialize(**args)
6440
+ update!(**args)
6441
+ end
6442
+
6443
+ # Update properties of this object
6444
+ def update!(**args)
6445
+ @answer_feedback = args[:answer_feedback] if args.key?(:answer_feedback)
6446
+ @response_id = args[:response_id] if args.key?(:response_id)
6447
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
6448
+ end
6449
+ end
6450
+
6102
6451
  # Configuration of how speech should be synthesized.
6103
6452
  class GoogleCloudDialogflowCxV3SynthesizeSpeechConfig
6104
6453
  include Google::Apis::Core::Hashable
@@ -7741,6 +8090,49 @@ module Google
7741
8090
  end
7742
8091
  end
7743
8092
 
8093
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
8094
+ # detected utterance at a proper time while the client is playing back the
8095
+ # response audio from a previous request. When the client sees the utterance, it
8096
+ # should stop the playback and immediately get ready for receiving the responses
8097
+ # for the current request. The barge-in handling requires the client to start
8098
+ # streaming audio input as soon as it starts playing back the audio from the
8099
+ # previous response. The playback is modeled into two phases: * No barge-in
8100
+ # phase: which goes first and during which speech detection should not be
8101
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
8102
+ # which the API starts speech detection and may inform the client that an
8103
+ # utterance has been detected. Note that no-speech event is not expected in this
8104
+ # phase. The client provides this configuration in terms of the durations of
8105
+ # those two phases. The durations are measured in terms of the audio length
8106
+ # fromt the the start of the input audio. The flow goes like below: --> Time
8107
+ # without speech detection | utterance only | utterance or no-speech event | | +-
8108
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
8109
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
8110
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
8111
+ # any transcript following up.
8112
+ class GoogleCloudDialogflowCxV3beta1BargeInConfig
8113
+ include Google::Apis::Core::Hashable
8114
+
8115
+ # Duration that is not eligible for barge-in at the beginning of the input audio.
8116
+ # Corresponds to the JSON property `noBargeInDuration`
8117
+ # @return [String]
8118
+ attr_accessor :no_barge_in_duration
8119
+
8120
+ # Total duration for the playback at the beginning of the input audio.
8121
+ # Corresponds to the JSON property `totalDuration`
8122
+ # @return [String]
8123
+ attr_accessor :total_duration
8124
+
8125
+ def initialize(**args)
8126
+ update!(**args)
8127
+ end
8128
+
8129
+ # Update properties of this object
8130
+ def update!(**args)
8131
+ @no_barge_in_duration = args[:no_barge_in_duration] if args.key?(:no_barge_in_duration)
8132
+ @total_duration = args[:total_duration] if args.key?(:total_duration)
8133
+ end
8134
+ end
8135
+
7744
8136
  # Metadata returned for the TestCases.BatchRunTestCases long running operation.
7745
8137
  class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
7746
8138
  include Google::Apis::Core::Hashable
@@ -9098,6 +9490,29 @@ module Google
9098
9490
  # @return [String]
9099
9491
  attr_accessor :audio_encoding
9100
9492
 
9493
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
9494
+ # detected utterance at a proper time while the client is playing back the
9495
+ # response audio from a previous request. When the client sees the utterance, it
9496
+ # should stop the playback and immediately get ready for receiving the responses
9497
+ # for the current request. The barge-in handling requires the client to start
9498
+ # streaming audio input as soon as it starts playing back the audio from the
9499
+ # previous response. The playback is modeled into two phases: * No barge-in
9500
+ # phase: which goes first and during which speech detection should not be
9501
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
9502
+ # which the API starts speech detection and may inform the client that an
9503
+ # utterance has been detected. Note that no-speech event is not expected in this
9504
+ # phase. The client provides this configuration in terms of the durations of
9505
+ # those two phases. The durations are measured in terms of the audio length
9506
+ # fromt the the start of the input audio. The flow goes like below: --> Time
9507
+ # without speech detection | utterance only | utterance or no-speech event | | +-
9508
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
9509
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
9510
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
9511
+ # any transcript following up.
9512
+ # Corresponds to the JSON property `bargeInConfig`
9513
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1BargeInConfig]
9514
+ attr_accessor :barge_in_config
9515
+
9101
9516
  # Optional. If `true`, Dialogflow returns SpeechWordInfo in
9102
9517
  # StreamingRecognitionResult with information about the recognized speech words,
9103
9518
  # e.g. start and end time offsets. If false or unspecified, Speech doesn't
@@ -9160,6 +9575,7 @@ module Google
9160
9575
  # Update properties of this object
9161
9576
  def update!(**args)
9162
9577
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
9578
+ @barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
9163
9579
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
9164
9580
  @model = args[:model] if args.key?(:model)
9165
9581
  @model_variant = args[:model_variant] if args.key?(:model_variant)
@@ -11638,37 +12054,6 @@ module Google
11638
12054
  end
11639
12055
  end
11640
12056
 
11641
- # A customer-managed encryption key specification that can be applied to all
11642
- # created resources (e.g. Conversation).
11643
- class GoogleCloudDialogflowV2EncryptionSpec
11644
- include Google::Apis::Core::Hashable
11645
-
11646
- # Required. The name of customer-managed encryption key that is used to secure a
11647
- # resource and its sub-resources. If empty, the resource is secured by the
11648
- # default Google encryption key. Only the key in the same location as this
11649
- # resource is allowed to be used for encryption. Format: `projects/`project`/
11650
- # locations/`location`/keyRings/`keyRing`/cryptoKeys/`key``
11651
- # Corresponds to the JSON property `kmsKey`
11652
- # @return [String]
11653
- attr_accessor :kms_key
11654
-
11655
- # Immutable. The resource name of the encryption key specification resource.
11656
- # Format: projects/`project`/locations/`location`/encryptionSpec
11657
- # Corresponds to the JSON property `name`
11658
- # @return [String]
11659
- attr_accessor :name
11660
-
11661
- def initialize(**args)
11662
- update!(**args)
11663
- end
11664
-
11665
- # Update properties of this object
11666
- def update!(**args)
11667
- @kms_key = args[:kms_key] if args.key?(:kms_key)
11668
- @name = args[:name] if args.key?(:name)
11669
- end
11670
- end
11671
-
11672
12057
  # Each intent parameter has a type, called the entity type, which dictates
11673
12058
  # exactly how data from an end-user expression is extracted. Dialogflow provides
11674
12059
  # predefined system entities that can match many common types of data. For
@@ -12043,45 +12428,6 @@ module Google
12043
12428
  end
12044
12429
  end
12045
12430
 
12046
- # Metadata for initializing a location-level encryption specification.
12047
- class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata
12048
- include Google::Apis::Core::Hashable
12049
-
12050
- # The request to initialize a location-level encryption specification.
12051
- # Corresponds to the JSON property `request`
12052
- # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2InitializeEncryptionSpecRequest]
12053
- attr_accessor :request
12054
-
12055
- def initialize(**args)
12056
- update!(**args)
12057
- end
12058
-
12059
- # Update properties of this object
12060
- def update!(**args)
12061
- @request = args[:request] if args.key?(:request)
12062
- end
12063
- end
12064
-
12065
- # The request to initialize a location-level encryption specification.
12066
- class GoogleCloudDialogflowV2InitializeEncryptionSpecRequest
12067
- include Google::Apis::Core::Hashable
12068
-
12069
- # A customer-managed encryption key specification that can be applied to all
12070
- # created resources (e.g. Conversation).
12071
- # Corresponds to the JSON property `encryptionSpec`
12072
- # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2EncryptionSpec]
12073
- attr_accessor :encryption_spec
12074
-
12075
- def initialize(**args)
12076
- update!(**args)
12077
- end
12078
-
12079
- # Update properties of this object
12080
- def update!(**args)
12081
- @encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
12082
- end
12083
- end
12084
-
12085
12431
  # InputDataset used to create model or do evaluation. NextID:5
12086
12432
  class GoogleCloudDialogflowV2InputDataset
12087
12433
  include Google::Apis::Core::Hashable
@@ -14484,37 +14830,6 @@ module Google
14484
14830
  end
14485
14831
  end
14486
14832
 
14487
- # A customer-managed encryption key specification that can be applied to all
14488
- # created resources (e.g. Conversation).
14489
- class GoogleCloudDialogflowV2beta1EncryptionSpec
14490
- include Google::Apis::Core::Hashable
14491
-
14492
- # Required. The name of customer-managed encryption key that is used to secure a
14493
- # resource and its sub-resources. If empty, the resource is secured by the
14494
- # default Google encryption key. Only the key in the same location as this
14495
- # resource is allowed to be used for encryption. Format: `projects/`project`/
14496
- # locations/`location`/keyRings/`keyRing`/cryptoKeys/`key``
14497
- # Corresponds to the JSON property `kmsKey`
14498
- # @return [String]
14499
- attr_accessor :kms_key
14500
-
14501
- # Immutable. The resource name of the encryption key specification resource.
14502
- # Format: projects/`project`/locations/`location`/encryptionSpec
14503
- # Corresponds to the JSON property `name`
14504
- # @return [String]
14505
- attr_accessor :name
14506
-
14507
- def initialize(**args)
14508
- update!(**args)
14509
- end
14510
-
14511
- # Update properties of this object
14512
- def update!(**args)
14513
- @kms_key = args[:kms_key] if args.key?(:kms_key)
14514
- @name = args[:name] if args.key?(:name)
14515
- end
14516
- end
14517
-
14518
14833
  # Each intent parameter has a type, called the entity type, which dictates
14519
14834
  # exactly how data from an end-user expression is extracted. Dialogflow provides
14520
14835
  # predefined system entities that can match many common types of data. For
@@ -14833,45 +15148,6 @@ module Google
14833
15148
  end
14834
15149
  end
14835
15150
 
14836
- # Metadata for initializing a location-level encryption specification.
14837
- class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata
14838
- include Google::Apis::Core::Hashable
14839
-
14840
- # The request to initialize a location-level encryption specification.
14841
- # Corresponds to the JSON property `request`
14842
- # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest]
14843
- attr_accessor :request
14844
-
14845
- def initialize(**args)
14846
- update!(**args)
14847
- end
14848
-
14849
- # Update properties of this object
14850
- def update!(**args)
14851
- @request = args[:request] if args.key?(:request)
14852
- end
14853
- end
14854
-
14855
- # The request to initialize a location-level encryption specification.
14856
- class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest
14857
- include Google::Apis::Core::Hashable
14858
-
14859
- # A customer-managed encryption key specification that can be applied to all
14860
- # created resources (e.g. Conversation).
14861
- # Corresponds to the JSON property `encryptionSpec`
14862
- # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1EncryptionSpec]
14863
- attr_accessor :encryption_spec
14864
-
14865
- def initialize(**args)
14866
- update!(**args)
14867
- end
14868
-
14869
- # Update properties of this object
14870
- def update!(**args)
14871
- @encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
14872
- end
14873
- end
14874
-
14875
15151
  # An intent categorizes an end-user's intention for one conversation turn. For
14876
15152
  # each agent, you define many intents, where your combined intents can handle a
14877
15153
  # complete conversation. When an end-user writes or says something, referred to
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV3
18
18
  # Version of the google-apis-dialogflow_v3 gem
19
- GEM_VERSION = "0.70.0"
19
+ GEM_VERSION = "0.72.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231019"
25
+ REVISION = "20231129"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -70,12 +76,30 @@ module Google
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
79
+ class GoogleCloudDialogflowCxV3AnswerFeedback
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
73
91
  class GoogleCloudDialogflowCxV3AudioInput
74
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
93
 
76
94
  include Google::Apis::Core::JsonObjectSupport
77
95
  end
78
96
 
97
+ class GoogleCloudDialogflowCxV3BargeInConfig
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
79
103
  class GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest
80
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
105
 
@@ -100,6 +124,24 @@ module Google
100
124
  include Google::Apis::Core::JsonObjectSupport
101
125
  end
102
126
 
127
+ class GoogleCloudDialogflowCxV3BoostSpec
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleCloudDialogflowCxV3BoostSpecs
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
103
145
  class GoogleCloudDialogflowCxV3CalculateCoverageResponse
104
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
147
 
@@ -382,6 +424,12 @@ module Google
382
424
  include Google::Apis::Core::JsonObjectSupport
383
425
  end
384
426
 
427
+ class GoogleCloudDialogflowCxV3FilterSpecs
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
385
433
  class GoogleCloudDialogflowCxV3Flow
386
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
435
 
@@ -970,6 +1018,12 @@ module Google
970
1018
  include Google::Apis::Core::JsonObjectSupport
971
1019
  end
972
1020
 
1021
+ class GoogleCloudDialogflowCxV3SearchConfig
1022
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1023
+
1024
+ include Google::Apis::Core::JsonObjectSupport
1025
+ end
1026
+
973
1027
  class GoogleCloudDialogflowCxV3SecuritySettings
974
1028
  class Representation < Google::Apis::Core::JsonRepresentation; end
975
1029
 
@@ -1024,6 +1078,12 @@ module Google
1024
1078
  include Google::Apis::Core::JsonObjectSupport
1025
1079
  end
1026
1080
 
1081
+ class GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest
1082
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1083
+
1084
+ include Google::Apis::Core::JsonObjectSupport
1085
+ end
1086
+
1027
1087
  class GoogleCloudDialogflowCxV3SynthesizeSpeechConfig
1028
1088
  class Representation < Google::Apis::Core::JsonRepresentation; end
1029
1089
 
@@ -1276,6 +1336,12 @@ module Google
1276
1336
  include Google::Apis::Core::JsonObjectSupport
1277
1337
  end
1278
1338
 
1339
+ class GoogleCloudDialogflowCxV3beta1BargeInConfig
1340
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1341
+
1342
+ include Google::Apis::Core::JsonObjectSupport
1343
+ end
1344
+
1279
1345
  class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
1280
1346
  class Representation < Google::Apis::Core::JsonRepresentation; end
1281
1347
 
@@ -1930,12 +1996,6 @@ module Google
1930
1996
  include Google::Apis::Core::JsonObjectSupport
1931
1997
  end
1932
1998
 
1933
- class GoogleCloudDialogflowV2EncryptionSpec
1934
- class Representation < Google::Apis::Core::JsonRepresentation; end
1935
-
1936
- include Google::Apis::Core::JsonObjectSupport
1937
- end
1938
-
1939
1999
  class GoogleCloudDialogflowV2EntityType
1940
2000
  class Representation < Google::Apis::Core::JsonRepresentation; end
1941
2001
 
@@ -2002,18 +2062,6 @@ module Google
2002
2062
  include Google::Apis::Core::JsonObjectSupport
2003
2063
  end
2004
2064
 
2005
- class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata
2006
- class Representation < Google::Apis::Core::JsonRepresentation; end
2007
-
2008
- include Google::Apis::Core::JsonObjectSupport
2009
- end
2010
-
2011
- class GoogleCloudDialogflowV2InitializeEncryptionSpecRequest
2012
- class Representation < Google::Apis::Core::JsonRepresentation; end
2013
-
2014
- include Google::Apis::Core::JsonObjectSupport
2015
- end
2016
-
2017
2065
  class GoogleCloudDialogflowV2InputDataset
2018
2066
  class Representation < Google::Apis::Core::JsonRepresentation; end
2019
2067
 
@@ -2374,12 +2422,6 @@ module Google
2374
2422
  include Google::Apis::Core::JsonObjectSupport
2375
2423
  end
2376
2424
 
2377
- class GoogleCloudDialogflowV2beta1EncryptionSpec
2378
- class Representation < Google::Apis::Core::JsonRepresentation; end
2379
-
2380
- include Google::Apis::Core::JsonObjectSupport
2381
- end
2382
-
2383
2425
  class GoogleCloudDialogflowV2beta1EntityType
2384
2426
  class Representation < Google::Apis::Core::JsonRepresentation; end
2385
2427
 
@@ -2434,18 +2476,6 @@ module Google
2434
2476
  include Google::Apis::Core::JsonObjectSupport
2435
2477
  end
2436
2478
 
2437
- class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata
2438
- class Representation < Google::Apis::Core::JsonRepresentation; end
2439
-
2440
- include Google::Apis::Core::JsonObjectSupport
2441
- end
2442
-
2443
- class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest
2444
- class Representation < Google::Apis::Core::JsonRepresentation; end
2445
-
2446
- include Google::Apis::Core::JsonObjectSupport
2447
- end
2448
-
2449
2479
  class GoogleCloudDialogflowV2beta1Intent
2450
2480
  class Representation < Google::Apis::Core::JsonRepresentation; end
2451
2481
 
@@ -2978,6 +3008,8 @@ module Google
2978
3008
  class Representation < Google::Apis::Core::JsonRepresentation
2979
3009
  property :advanced_settings, as: 'advancedSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings::Representation
2980
3010
 
3011
+ property :answer_feedback_settings, as: 'answerFeedbackSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings::Representation
3012
+
2981
3013
  property :avatar_uri, as: 'avatarUri'
2982
3014
  property :default_language_code, as: 'defaultLanguageCode'
2983
3015
  property :description, as: 'description'
@@ -3001,6 +3033,13 @@ module Google
3001
3033
  end
3002
3034
  end
3003
3035
 
3036
+ class GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings
3037
+ # @private
3038
+ class Representation < Google::Apis::Core::JsonRepresentation
3039
+ property :enable_answer_feedback, as: 'enableAnswerFeedback'
3040
+ end
3041
+ end
3042
+
3004
3043
  class GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings
3005
3044
  # @private
3006
3045
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3036,6 +3075,24 @@ module Google
3036
3075
  end
3037
3076
  end
3038
3077
 
3078
+ class GoogleCloudDialogflowCxV3AnswerFeedback
3079
+ # @private
3080
+ class Representation < Google::Apis::Core::JsonRepresentation
3081
+ property :custom_rating, as: 'customRating'
3082
+ property :rating, as: 'rating'
3083
+ property :rating_reason, as: 'ratingReason', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason::Representation
3084
+
3085
+ end
3086
+ end
3087
+
3088
+ class GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason
3089
+ # @private
3090
+ class Representation < Google::Apis::Core::JsonRepresentation
3091
+ property :feedback, as: 'feedback'
3092
+ collection :reason_labels, as: 'reasonLabels'
3093
+ end
3094
+ end
3095
+
3039
3096
  class GoogleCloudDialogflowCxV3AudioInput
3040
3097
  # @private
3041
3098
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3045,6 +3102,14 @@ module Google
3045
3102
  end
3046
3103
  end
3047
3104
 
3105
+ class GoogleCloudDialogflowCxV3BargeInConfig
3106
+ # @private
3107
+ class Representation < Google::Apis::Core::JsonRepresentation
3108
+ property :no_barge_in_duration, as: 'noBargeInDuration'
3109
+ property :total_duration, as: 'totalDuration'
3110
+ end
3111
+ end
3112
+
3048
3113
  class GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest
3049
3114
  # @private
3050
3115
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3076,6 +3141,31 @@ module Google
3076
3141
  end
3077
3142
  end
3078
3143
 
3144
+ class GoogleCloudDialogflowCxV3BoostSpec
3145
+ # @private
3146
+ class Representation < Google::Apis::Core::JsonRepresentation
3147
+ collection :condition_boost_specs, as: 'conditionBoostSpecs', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec::Representation
3148
+
3149
+ end
3150
+ end
3151
+
3152
+ class GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
3153
+ # @private
3154
+ class Representation < Google::Apis::Core::JsonRepresentation
3155
+ property :boost, as: 'boost'
3156
+ property :condition, as: 'condition'
3157
+ end
3158
+ end
3159
+
3160
+ class GoogleCloudDialogflowCxV3BoostSpecs
3161
+ # @private
3162
+ class Representation < Google::Apis::Core::JsonRepresentation
3163
+ collection :data_stores, as: 'dataStores'
3164
+ collection :spec, as: 'spec', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpec, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpec::Representation
3165
+
3166
+ end
3167
+ end
3168
+
3079
3169
  class GoogleCloudDialogflowCxV3CalculateCoverageResponse
3080
3170
  # @private
3081
3171
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3545,6 +3635,14 @@ module Google
3545
3635
  end
3546
3636
  end
3547
3637
 
3638
+ class GoogleCloudDialogflowCxV3FilterSpecs
3639
+ # @private
3640
+ class Representation < Google::Apis::Core::JsonRepresentation
3641
+ collection :data_stores, as: 'dataStores'
3642
+ property :filter, as: 'filter'
3643
+ end
3644
+ end
3645
+
3548
3646
  class GoogleCloudDialogflowCxV3Flow
3549
3647
  # @private
3550
3648
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3858,6 +3956,8 @@ module Google
3858
3956
  # @private
3859
3957
  class Representation < Google::Apis::Core::JsonRepresentation
3860
3958
  property :audio_encoding, as: 'audioEncoding'
3959
+ property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BargeInConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BargeInConfig::Representation
3960
+
3861
3961
  property :enable_word_info, as: 'enableWordInfo'
3862
3962
  property :model, as: 'model'
3863
3963
  property :model_variant, as: 'modelVariant'
@@ -4254,6 +4354,8 @@ module Google
4254
4354
 
4255
4355
  hash :parameters, as: 'parameters'
4256
4356
  hash :payload, as: 'payload'
4357
+ property :search_config, as: 'searchConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SearchConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SearchConfig::Representation
4358
+
4257
4359
  collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
4258
4360
 
4259
4361
  property :session_ttl, as: 'sessionTtl'
@@ -4267,6 +4369,7 @@ module Google
4267
4369
  class Representation < Google::Apis::Core::JsonRepresentation
4268
4370
  property :advanced_settings, as: 'advancedSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings::Representation
4269
4371
 
4372
+ property :allow_answer_feedback, as: 'allowAnswerFeedback'
4270
4373
  property :current_page, as: 'currentPage', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
4271
4374
 
4272
4375
  hash :diagnostic_info, as: 'diagnosticInfo'
@@ -4516,6 +4619,16 @@ module Google
4516
4619
  end
4517
4620
  end
4518
4621
 
4622
+ class GoogleCloudDialogflowCxV3SearchConfig
4623
+ # @private
4624
+ class Representation < Google::Apis::Core::JsonRepresentation
4625
+ collection :boost_specs, as: 'boostSpecs', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpecs, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpecs::Representation
4626
+
4627
+ collection :filter_specs, as: 'filterSpecs', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FilterSpecs, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FilterSpecs::Representation
4628
+
4629
+ end
4630
+ end
4631
+
4519
4632
  class GoogleCloudDialogflowCxV3SecuritySettings
4520
4633
  # @private
4521
4634
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4597,6 +4710,16 @@ module Google
4597
4710
  end
4598
4711
  end
4599
4712
 
4713
+ class GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest
4714
+ # @private
4715
+ class Representation < Google::Apis::Core::JsonRepresentation
4716
+ property :answer_feedback, as: 'answerFeedback', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback::Representation
4717
+
4718
+ property :response_id, as: 'responseId'
4719
+ property :update_mask, as: 'updateMask'
4720
+ end
4721
+ end
4722
+
4600
4723
  class GoogleCloudDialogflowCxV3SynthesizeSpeechConfig
4601
4724
  # @private
4602
4725
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5041,6 +5164,14 @@ module Google
5041
5164
  end
5042
5165
  end
5043
5166
 
5167
+ class GoogleCloudDialogflowCxV3beta1BargeInConfig
5168
+ # @private
5169
+ class Representation < Google::Apis::Core::JsonRepresentation
5170
+ property :no_barge_in_duration, as: 'noBargeInDuration'
5171
+ property :total_duration, as: 'totalDuration'
5172
+ end
5173
+ end
5174
+
5044
5175
  class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
5045
5176
  # @private
5046
5177
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5448,6 +5579,8 @@ module Google
5448
5579
  # @private
5449
5580
  class Representation < Google::Apis::Core::JsonRepresentation
5450
5581
  property :audio_encoding, as: 'audioEncoding'
5582
+ property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1BargeInConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1BargeInConfig::Representation
5583
+
5451
5584
  property :enable_word_info, as: 'enableWordInfo'
5452
5585
  property :model, as: 'model'
5453
5586
  property :model_variant, as: 'modelVariant'
@@ -6108,14 +6241,6 @@ module Google
6108
6241
  end
6109
6242
  end
6110
6243
 
6111
- class GoogleCloudDialogflowV2EncryptionSpec
6112
- # @private
6113
- class Representation < Google::Apis::Core::JsonRepresentation
6114
- property :kms_key, as: 'kmsKey'
6115
- property :name, as: 'name'
6116
- end
6117
- end
6118
-
6119
6244
  class GoogleCloudDialogflowV2EntityType
6120
6245
  # @private
6121
6246
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6217,22 +6342,6 @@ module Google
6217
6342
  end
6218
6343
  end
6219
6344
 
6220
- class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata
6221
- # @private
6222
- class Representation < Google::Apis::Core::JsonRepresentation
6223
- property :request, as: 'request', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2InitializeEncryptionSpecRequest, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2InitializeEncryptionSpecRequest::Representation
6224
-
6225
- end
6226
- end
6227
-
6228
- class GoogleCloudDialogflowV2InitializeEncryptionSpecRequest
6229
- # @private
6230
- class Representation < Google::Apis::Core::JsonRepresentation
6231
- property :encryption_spec, as: 'encryptionSpec', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2EncryptionSpec, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2EncryptionSpec::Representation
6232
-
6233
- end
6234
- end
6235
-
6236
6345
  class GoogleCloudDialogflowV2InputDataset
6237
6346
  # @private
6238
6347
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6883,14 +6992,6 @@ module Google
6883
6992
  end
6884
6993
  end
6885
6994
 
6886
- class GoogleCloudDialogflowV2beta1EncryptionSpec
6887
- # @private
6888
- class Representation < Google::Apis::Core::JsonRepresentation
6889
- property :kms_key, as: 'kmsKey'
6890
- property :name, as: 'name'
6891
- end
6892
- end
6893
-
6894
6995
  class GoogleCloudDialogflowV2beta1EntityType
6895
6996
  # @private
6896
6997
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6974,22 +7075,6 @@ module Google
6974
7075
  end
6975
7076
  end
6976
7077
 
6977
- class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata
6978
- # @private
6979
- class Representation < Google::Apis::Core::JsonRepresentation
6980
- property :request, as: 'request', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest::Representation
6981
-
6982
- end
6983
- end
6984
-
6985
- class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest
6986
- # @private
6987
- class Representation < Google::Apis::Core::JsonRepresentation
6988
- property :encryption_spec, as: 'encryptionSpec', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1EncryptionSpec, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1EncryptionSpec::Representation
6989
-
6990
- end
6991
- end
6992
-
6993
7078
  class GoogleCloudDialogflowV2beta1Intent
6994
7079
  # @private
6995
7080
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3311,6 +3311,40 @@ module Google
3311
3311
  execute_or_queue_command(command, &block)
3312
3312
  end
3313
3313
 
3314
+ # Updates the feedback received from the user for a single turn of the bot
3315
+ # response.
3316
+ # @param [String] session
3317
+ # Required. The name of the session the feedback was sent to.
3318
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest] google_cloud_dialogflow_cx_v3_submit_answer_feedback_request_object
3319
+ # @param [String] fields
3320
+ # Selector specifying which fields to include in a partial response.
3321
+ # @param [String] quota_user
3322
+ # Available to use for quota purposes for server-side applications. Can be any
3323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3324
+ # @param [Google::Apis::RequestOptions] options
3325
+ # Request-specific options
3326
+ #
3327
+ # @yield [result, err] Result & error if block supplied
3328
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback] parsed result object
3329
+ # @yieldparam err [StandardError] error object if request failed
3330
+ #
3331
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback]
3332
+ #
3333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3336
+ def submit_project_location_agent_session_answer_feedback(session, google_cloud_dialogflow_cx_v3_submit_answer_feedback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3337
+ command = make_simple_command(:post, 'v3/{+session}:submitAnswerFeedback', options)
3338
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest::Representation
3339
+ command.request_object = google_cloud_dialogflow_cx_v3_submit_answer_feedback_request_object
3340
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback::Representation
3341
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback
3342
+ command.params['session'] = session unless session.nil?
3343
+ command.query['fields'] = fields unless fields.nil?
3344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3345
+ execute_or_queue_command(command, &block)
3346
+ end
3347
+
3314
3348
  # Creates a session entity type.
3315
3349
  # @param [String] parent
3316
3350
  # Required. The session to create a session entity type for. Format: `projects//
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.0
4
+ version: 0.72.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: 2023-10-29 00:00:00.000000000 Z
11
+ date: 2023-12-03 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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3/v0.70.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3/v0.72.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3
63
63
  post_install_message:
64
64
  rdoc_options: []