google-cloud-dialogflow-v2 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +2 -2
  4. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +2 -2
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +2 -2
  6. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +2 -2
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -2
  8. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +2 -2
  9. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -0
  10. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +2 -2
  11. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +2 -2
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +2 -2
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +2 -2
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +2 -2
  15. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +2 -2
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +2 -2
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +2 -2
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +2 -2
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +2 -2
  20. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +24 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +2 -2
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +2 -2
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +2 -2
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +2 -2
  26. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +3 -0
  27. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +109 -2
  28. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +182 -0
  29. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +86 -2
  30. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +68 -0
  31. data/lib/google/cloud/dialogflow/v2/documents/client.rb +2 -2
  32. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +2 -2
  33. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +2 -2
  34. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +2 -2
  35. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +2 -2
  36. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +2 -2
  37. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +2 -2
  38. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +2 -2
  39. data/lib/google/cloud/dialogflow/v2/environments/client.rb +2 -2
  40. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +2 -2
  41. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +2 -2
  42. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +2 -2
  43. data/lib/google/cloud/dialogflow/v2/intents/client.rb +2 -2
  44. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +2 -2
  45. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +2 -2
  46. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +2 -2
  47. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -2
  48. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +2 -2
  49. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -0
  50. data/lib/google/cloud/dialogflow/v2/participants/client.rb +2 -2
  51. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +2 -2
  52. data/lib/google/cloud/dialogflow/v2/rest.rb +1 -1
  53. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -2
  54. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +2 -2
  55. data/lib/google/cloud/dialogflow/v2/session_pb.rb +22 -0
  56. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +2 -2
  57. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +2 -2
  58. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  59. data/lib/google/cloud/dialogflow/v2/versions/client.rb +2 -2
  60. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +2 -2
  61. data/lib/google/cloud/dialogflow/v2.rb +1 -1
  62. data/proto_docs/google/api/client.rb +67 -4
  63. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +2 -0
  64. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +9 -0
  65. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +89 -0
  66. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +10 -0
  67. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +8 -0
  68. data/proto_docs/google/cloud/dialogflow/v2/session.rb +75 -0
  69. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b1e08209d7891475413e9f6e8f70ca7eea67c9b9961443ee9337e2f67ad66c6
4
- data.tar.gz: b4fffa3738818a806e050458b7b392f8953d266070c8783bd25c08d7d4b56897
3
+ metadata.gz: 6fb6d6fa2e3deb3c5b9ab4ff7524500ad910fb17bd321a0be77a48043e3457d1
4
+ data.tar.gz: c16ec2d63804c1fb1e47daa7c52ada964f729dc2671d795e5af6ab41a9a7f6aa
5
5
  SHA512:
6
- metadata.gz: 5f52e5628d703c789341e7e3ccda4373c1dd59ea19210145ad3142bbdb38d1ee7a4b8cd8b8a4e744d611a9fdd8897586109a7f10f2d5aad068aa239cbb610ed8
7
- data.tar.gz: 6e9258b5ff6496b7abbc8ad248c1eb485d081b328f8475a9a5726f1b52a1a083c21a5e2cde1950857eb9eb0870315684d6cde7cc1acd6ec5e2f19b473fcb041e
6
+ metadata.gz: 3eef206b0e547a4a491daaaee5acaec036f97b562d90b7d7ef6b0a380fc3bd270a740018a3302acf6f16aad76d3d030e69bf49926526f86632b5c77289e5f841
7
+ data.tar.gz: b04301e0a4d9f744e5aad8b2a6b7873bc2e1b1facc44b9e901136d2e0b8566051c44a0f2db658a32de4b0b29f264f4eb7ffb8ee9eb4ef440c64211518f890cd6
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -1153,9 +1153,9 @@ module Google
1153
1153
  # * (`String`) The path to a service account key file in JSON format
1154
1154
  # * (`Hash`) A service account key as a Hash
1155
1155
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1156
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1156
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1157
1157
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1158
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1158
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1159
1159
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1160
1160
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1161
1161
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -906,9 +906,9 @@ module Google
906
906
  # * (`String`) The path to a service account key file in JSON format
907
907
  # * (`Hash`) A service account key as a Hash
908
908
  # * (`Google::Auth::Credentials`) A googleauth credentials object
909
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
909
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
910
910
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
911
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
911
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
912
912
  # * (`nil`) indicating no credentials
913
913
  # @return [::Object]
914
914
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -398,9 +398,9 @@ module Google
398
398
  # * (`String`) The path to a service account key file in JSON format
399
399
  # * (`Hash`) A service account key as a Hash
400
400
  # * (`Google::Auth::Credentials`) A googleauth credentials object
401
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
401
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
402
402
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
403
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
403
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
404
404
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
405
405
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
406
406
  # * (`nil`) indicating no credentials
@@ -340,9 +340,9 @@ module Google
340
340
  # * (`String`) The path to a service account key file in JSON format
341
341
  # * (`Hash`) A service account key as a Hash
342
342
  # * (`Google::Auth::Credentials`) A googleauth credentials object
343
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
343
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
344
344
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
345
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
345
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
346
346
  # * (`nil`) indicating no credentials
347
347
  # @return [::Object]
348
348
  # @!attribute [rw] scope
@@ -30,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
30
30
  optional :model_variant, :enum, 10, "google.cloud.dialogflow.v2.SpeechModelVariant"
31
31
  optional :single_utterance, :bool, 8
32
32
  optional :disable_no_speech_recognized_event, :bool, 14
33
+ optional :enable_automatic_punctuation, :bool, 17
33
34
  end
34
35
  add_message "google.cloud.dialogflow.v2.VoiceSelectionParams" do
35
36
  optional :name, :string, 1
@@ -752,9 +752,9 @@ module Google
752
752
  # * (`String`) The path to a service account key file in JSON format
753
753
  # * (`Hash`) A service account key as a Hash
754
754
  # * (`Google::Auth::Credentials`) A googleauth credentials object
755
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
755
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
756
756
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
757
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
757
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
758
758
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
759
759
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
760
760
  # * (`nil`) indicating no credentials
@@ -602,9 +602,9 @@ module Google
602
602
  # * (`String`) The path to a service account key file in JSON format
603
603
  # * (`Hash`) A service account key as a Hash
604
604
  # * (`Google::Auth::Credentials`) A googleauth credentials object
605
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
605
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
606
606
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
607
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
607
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
608
608
  # * (`nil`) indicating no credentials
609
609
  # @return [::Object]
610
610
  # @!attribute [rw] scope
@@ -718,9 +718,9 @@ module Google
718
718
  # * (`String`) The path to a service account key file in JSON format
719
719
  # * (`Hash`) A service account key as a Hash
720
720
  # * (`Google::Auth::Credentials`) A googleauth credentials object
721
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
721
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
722
722
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
723
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
723
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
724
724
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
725
725
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
726
726
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -570,9 +570,9 @@ module Google
570
570
  # * (`String`) The path to a service account key file in JSON format
571
571
  # * (`Hash`) A service account key as a Hash
572
572
  # * (`Google::Auth::Credentials`) A googleauth credentials object
573
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
573
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
574
574
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
575
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
575
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
576
576
  # * (`nil`) indicating no credentials
577
577
  # @return [::Object]
578
578
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -1096,9 +1096,9 @@ module Google
1096
1096
  # * (`String`) The path to a service account key file in JSON format
1097
1097
  # * (`Hash`) A service account key as a Hash
1098
1098
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1099
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1099
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1100
1100
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1101
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1101
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1102
1102
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1103
1103
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1104
1104
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -838,9 +838,9 @@ module Google
838
838
  # * (`String`) The path to a service account key file in JSON format
839
839
  # * (`Hash`) A service account key as a Hash
840
840
  # * (`Google::Auth::Credentials`) A googleauth credentials object
841
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
841
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
842
842
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
843
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
843
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
844
844
  # * (`nil`) indicating no credentials
845
845
  # @return [::Object]
846
846
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
+ require 'google/cloud/dialogflow/v2/conversation_profile_pb'
10
11
  require 'google/cloud/dialogflow/v2/participant_pb'
11
12
  require 'google/protobuf/timestamp_pb'
12
13
 
@@ -81,6 +82,25 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
81
82
  map :text_sections, :string, :string, 4
82
83
  optional :answer_record, :string, 3
83
84
  end
85
+ add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest" do
86
+ optional :stateless_conversation, :message, 1, "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation"
87
+ optional :conversation_profile, :message, 2, "google.cloud.dialogflow.v2.ConversationProfile"
88
+ optional :latest_message, :string, 3
89
+ optional :max_context_size, :int32, 4
90
+ end
91
+ add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation" do
92
+ repeated :messages, :message, 1, "google.cloud.dialogflow.v2.Message"
93
+ optional :parent, :string, 2
94
+ end
95
+ add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse" do
96
+ optional :summary, :message, 1, "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary"
97
+ optional :latest_message, :string, 2
98
+ optional :context_size, :int32, 3
99
+ end
100
+ add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary" do
101
+ optional :text, :string, 1
102
+ map :text_sections, :string, :string, 2
103
+ end
84
104
  end
85
105
  end
86
106
 
@@ -102,6 +122,10 @@ module Google
102
122
  SuggestConversationSummaryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestConversationSummaryRequest").msgclass
103
123
  SuggestConversationSummaryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestConversationSummaryResponse").msgclass
104
124
  SuggestConversationSummaryResponse::Summary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary").msgclass
125
+ GenerateStatelessSummaryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest").msgclass
126
+ GenerateStatelessSummaryRequest::MinimalConversation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation").msgclass
127
+ GenerateStatelessSummaryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse").msgclass
128
+ GenerateStatelessSummaryResponse::Summary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary").msgclass
105
129
  end
106
130
  end
107
131
  end
@@ -107,6 +107,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
107
107
  end
108
108
  add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig" do
109
109
  optional :model, :string, 1
110
+ optional :baseline_model_version, :string, 8
110
111
  end
111
112
  add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig" do
112
113
  optional :recent_sentences_count, :int32, 2
@@ -897,9 +897,9 @@ module Google
897
897
  # * (`String`) The path to a service account key file in JSON format
898
898
  # * (`Hash`) A service account key as a Hash
899
899
  # * (`Google::Auth::Credentials`) A googleauth credentials object
900
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
900
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
901
901
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
902
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
902
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
903
903
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
904
904
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
905
905
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -710,9 +710,9 @@ module Google
710
710
  # * (`String`) The path to a service account key file in JSON format
711
711
  # * (`Hash`) A service account key as a Hash
712
712
  # * (`Google::Auth::Credentials`) A googleauth credentials object
713
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
713
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
714
714
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
715
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
715
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
716
716
  # * (`nil`) indicating no credentials
717
717
  # @return [::Object]
718
718
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -73,6 +73,9 @@ module Google
73
73
  # The range of the messages to be used for summary can be specified in the
74
74
  # request.
75
75
  rpc :SuggestConversationSummary, ::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryRequest, ::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse
76
+ # Generates and returns a summary for a conversation that does not have a
77
+ # resource created for it.
78
+ rpc :GenerateStatelessSummary, ::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest, ::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse
76
79
  end
77
80
 
78
81
  Stub = Service.rpc_stub_class
@@ -784,6 +784,106 @@ module Google
784
784
  raise ::Google::Cloud::Error.from_error(e)
785
785
  end
786
786
 
787
+ ##
788
+ # Generates and returns a summary for a conversation that does not have a
789
+ # resource created for it.
790
+ #
791
+ # @overload generate_stateless_summary(request, options = nil)
792
+ # Pass arguments to `generate_stateless_summary` via a request object, either of type
793
+ # {::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest} or an equivalent Hash.
794
+ #
795
+ # @param request [::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest, ::Hash]
796
+ # A request object representing the call parameters. Required. To specify no
797
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
798
+ # @param options [::Gapic::CallOptions, ::Hash]
799
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
800
+ #
801
+ # @overload generate_stateless_summary(stateless_conversation: nil, conversation_profile: nil, latest_message: nil, max_context_size: nil)
802
+ # Pass arguments to `generate_stateless_summary` via keyword arguments. Note that at
803
+ # least one keyword argument is required. To specify no parameters, or to keep all
804
+ # the default parameter values, pass an empty Hash as a request object (see above).
805
+ #
806
+ # @param stateless_conversation [::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest::MinimalConversation, ::Hash]
807
+ # Required. The conversation to suggest a summary for.
808
+ # @param conversation_profile [::Google::Cloud::Dialogflow::V2::ConversationProfile, ::Hash]
809
+ # Required. A ConversationProfile containing information required for Summary
810
+ # generation.
811
+ # Required fields: \\{language_code, security_settings}
812
+ # Optional fields: \\{agent_assistant_config}
813
+ # @param latest_message [::String]
814
+ # The name of the latest conversation message used as context for
815
+ # generating a Summary. If empty, the latest message of the conversation will
816
+ # be used. The format is specific to the user and the names of the messages
817
+ # provided.
818
+ # @param max_context_size [::Integer]
819
+ # Max number of messages prior to and including
820
+ # [latest_message] to use as context when compiling the
821
+ # suggestion. By default 500 and at most 1000.
822
+ #
823
+ # @yield [response, operation] Access the result along with the RPC operation
824
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse]
825
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
826
+ #
827
+ # @return [::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse]
828
+ #
829
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
830
+ #
831
+ # @example Basic example
832
+ # require "google/cloud/dialogflow/v2"
833
+ #
834
+ # # Create a client object. The client can be reused for multiple calls.
835
+ # client = Google::Cloud::Dialogflow::V2::Conversations::Client.new
836
+ #
837
+ # # Create a request. To set request fields, pass in keyword arguments.
838
+ # request = Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest.new
839
+ #
840
+ # # Call the generate_stateless_summary method.
841
+ # result = client.generate_stateless_summary request
842
+ #
843
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse.
844
+ # p result
845
+ #
846
+ def generate_stateless_summary request, options = nil
847
+ raise ::ArgumentError, "request must be provided" if request.nil?
848
+
849
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest
850
+
851
+ # Converts hash and nil to an options object
852
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
853
+
854
+ # Customize the options with defaults
855
+ metadata = @config.rpcs.generate_stateless_summary.metadata.to_h
856
+
857
+ # Set x-goog-api-client and x-goog-user-project headers
858
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
859
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
860
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
861
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
862
+
863
+ header_params = {}
864
+ if request.stateless_conversation&.parent
865
+ header_params["stateless_conversation.parent"] = request.stateless_conversation.parent
866
+ end
867
+
868
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
869
+ metadata[:"x-goog-request-params"] ||= request_params_header
870
+
871
+ options.apply_defaults timeout: @config.rpcs.generate_stateless_summary.timeout,
872
+ metadata: metadata,
873
+ retry_policy: @config.rpcs.generate_stateless_summary.retry_policy
874
+
875
+ options.apply_defaults timeout: @config.timeout,
876
+ metadata: @config.metadata,
877
+ retry_policy: @config.retry_policy
878
+
879
+ @conversations_stub.call_rpc :generate_stateless_summary, request, options: options do |response, operation|
880
+ yield response, operation if block_given?
881
+ return response
882
+ end
883
+ rescue ::GRPC::BadStatus => e
884
+ raise ::Google::Cloud::Error.from_error(e)
885
+ end
886
+
787
887
  ##
788
888
  # Configuration class for the Conversations API.
789
889
  #
@@ -822,9 +922,9 @@ module Google
822
922
  # * (`String`) The path to a service account key file in JSON format
823
923
  # * (`Hash`) A service account key as a Hash
824
924
  # * (`Google::Auth::Credentials`) A googleauth credentials object
825
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
925
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
826
926
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
827
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
927
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
828
928
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
829
929
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
830
930
  # * (`nil`) indicating no credentials
@@ -949,6 +1049,11 @@ module Google
949
1049
  # @return [::Gapic::Config::Method]
950
1050
  #
951
1051
  attr_reader :suggest_conversation_summary
1052
+ ##
1053
+ # RPC-specific configuration for `generate_stateless_summary`
1054
+ # @return [::Gapic::Config::Method]
1055
+ #
1056
+ attr_reader :generate_stateless_summary
952
1057
 
953
1058
  # @private
954
1059
  def initialize parent_rpcs = nil
@@ -964,6 +1069,8 @@ module Google
964
1069
  @list_messages = ::Gapic::Config::Method.new list_messages_config
965
1070
  suggest_conversation_summary_config = parent_rpcs.suggest_conversation_summary if parent_rpcs.respond_to? :suggest_conversation_summary
966
1071
  @suggest_conversation_summary = ::Gapic::Config::Method.new suggest_conversation_summary_config
1072
+ generate_stateless_summary_config = parent_rpcs.generate_stateless_summary if parent_rpcs.respond_to? :generate_stateless_summary
1073
+ @generate_stateless_summary = ::Gapic::Config::Method.new generate_stateless_summary_config
967
1074
 
968
1075
  yield self if block_given?
969
1076
  end