google-cloud-dialogflow-v2 0.19.0 → 0.21.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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +12 -8
  4. data/lib/google/cloud/dialogflow/v2/agents/client.rb +16 -12
  5. data/lib/google/cloud/dialogflow/v2/agents.rb +1 -1
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +7 -0
  7. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +2 -1
  8. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -1
  9. data/lib/google/cloud/dialogflow/v2/answer_records.rb +3 -2
  10. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -1
  11. data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +10 -5
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +12 -7
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +1 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +1 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +10 -5
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -5
  17. data/lib/google/cloud/dialogflow/v2/conversation_models.rb +1 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +18 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +14 -7
  20. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +14 -7
  21. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +3 -2
  22. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +14 -6
  23. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +119 -8
  24. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +45 -0
  25. data/lib/google/cloud/dialogflow/v2/conversations.rb +3 -2
  26. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +16 -8
  27. data/lib/google/cloud/dialogflow/v2/documents/client.rb +20 -12
  28. data/lib/google/cloud/dialogflow/v2/documents.rb +3 -2
  29. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +2 -1
  30. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +2 -1
  31. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -1
  32. data/lib/google/cloud/dialogflow/v2/environments/client.rb +4 -4
  33. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  34. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +1 -1
  35. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +2 -1
  36. data/lib/google/cloud/dialogflow/v2/intents/client.rb +2 -1
  37. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -1
  38. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +2 -1
  39. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -1
  40. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +3 -2
  41. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +1 -0
  42. data/lib/google/cloud/dialogflow/v2/participants/client.rb +3 -2
  43. data/lib/google/cloud/dialogflow/v2/participants.rb +1 -1
  44. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +2 -1
  45. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -1
  46. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +3 -2
  47. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +8 -6
  48. data/lib/google/cloud/dialogflow/v2/sessions.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  50. data/lib/google/cloud/dialogflow/v2/versions/client.rb +2 -2
  51. data/lib/google/cloud/dialogflow/v2/versions.rb +1 -1
  52. data/lib/google/cloud/dialogflow/v2.rb +2 -2
  53. data/proto_docs/google/api/client.rb +318 -0
  54. data/proto_docs/google/api/launch_stage.rb +71 -0
  55. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +26 -15
  56. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +34 -9
  57. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +28 -18
  58. data/proto_docs/google/cloud/dialogflow/v2/context.rb +14 -7
  59. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -14
  60. data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +15 -10
  61. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +41 -14
  62. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +28 -15
  63. data/proto_docs/google/cloud/dialogflow/v2/document.rb +26 -15
  64. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +30 -15
  65. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +37 -29
  66. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +12 -7
  67. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +33 -17
  68. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +12 -6
  69. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +110 -59
  70. data/proto_docs/google/cloud/dialogflow/v2/session.rb +63 -46
  71. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +15 -8
  72. data/proto_docs/google/cloud/dialogflow/v2/version.rb +20 -14
  73. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +20 -13
  74. data/proto_docs/google/rpc/status.rb +4 -2
  75. metadata +7 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7f25c43be53052350aa37c97a7445c9f13fa2533134543e0450778df90f0048
4
- data.tar.gz: 29d44d70e45385530d779708d0a51640f1c579ed5484da78ad3cf52bfa2226dc
3
+ metadata.gz: 4f70554b9b4a0c5c5d874303fd3ec38cedd9b25839bf1ba7d344521ee72bc6a1
4
+ data.tar.gz: 03ff91f93fc1f06754c4fe2879a29a42e2a6cf68b8cd23f414083085c0c620aa
5
5
  SHA512:
6
- metadata.gz: a8a6c9df749d5e460ebad33fb4fcb0bb01aa2c627b729b263ea5f261299135801a0ed4768662fefabc6b86369b1c2bbf8166d8576a18feacd2213247f7637285
7
- data.tar.gz: 9a917d2016c594e7782e1a2a7e1f23f11a0f9c5fd686f49dfec34f3433cd214c22fe0f11a5f9ed0cd22ebdd1962b3b7a49d56e42204ef3904f23b9ffb7e02b1b
6
+ metadata.gz: 7534c953c2e6b4fa0dfbbd655c6b854094e703600f8ff2c6891c13053714903963e6478f53b5cefdb9dbd1e5b713a7ea3e626e5962217cb12f97d02b85a183e7
7
+ data.tar.gz: 58ee9e34ef845be79a28a1c793a42cf7711c2801c65ada5fd5272f415897fb4d8f17056ec08d7423cba08acab218907414dddff8b27ca2a44d49619467fd089c
data/README.md CHANGED
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
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
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
@@ -74,17 +74,20 @@ module Google
74
74
  #
75
75
  # - `metadata`: An empty [Struct
76
76
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
77
- # - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
77
+ # - `response`:
78
+ # [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
78
79
  rpc :ExportAgent, ::Google::Cloud::Dialogflow::V2::ExportAgentRequest, ::Google::Longrunning::Operation
79
80
  # Imports the specified agent from a ZIP file.
80
81
  #
81
82
  # Uploads new intents and entity types without deleting the existing ones.
82
83
  # Intents and entity types with the same name are replaced with the new
83
- # versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
84
- # agent will be trained automatically (unless disabled in agent settings).
85
- # However, once the import is done, training may not be completed yet. Please
86
- # call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
87
- # explicitly.
84
+ # versions from
85
+ # [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After
86
+ # the import, the imported draft agent will be trained automatically (unless
87
+ # disabled in agent settings). However, once the import is done, training may
88
+ # not be completed yet. Please call
89
+ # [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the
90
+ # operation it returns in order to train explicitly.
88
91
  #
89
92
  # This method is a [long-running
90
93
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
@@ -108,8 +111,9 @@ module Google
108
111
  # entity types in the older version are deleted. After the restore, the
109
112
  # restored draft agent will be trained automatically (unless disabled in
110
113
  # agent settings). However, once the restore is done, training may not be
111
- # completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
112
- # returns in order to train explicitly.
114
+ # completed yet. Please call
115
+ # [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the
116
+ # operation it returns in order to train explicitly.
113
117
  #
114
118
  # This method is a [long-running
115
119
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
@@ -659,7 +659,8 @@ module Google
659
659
  #
660
660
  # - `metadata`: An empty [Struct
661
661
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
662
- # - `response`: {::Google::Cloud::Dialogflow::V2::ExportAgentResponse ExportAgentResponse}
662
+ # - `response`:
663
+ # {::Google::Cloud::Dialogflow::V2::ExportAgentResponse ExportAgentResponse}
663
664
  #
664
665
  # @overload export_agent(request, options = nil)
665
666
  # Pass arguments to `export_agent` via a request object, either of type
@@ -680,10 +681,10 @@ module Google
680
681
  # Required. The project that the agent to export is associated with.
681
682
  # Format: `projects/<Project ID>`.
682
683
  # @param agent_uri [::String]
683
- # Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
684
- # URI to export the agent to.
685
- # The format of this URI must be `gs://<bucket-name>/<object-name>`.
686
- # If left unspecified, the serialized agent is returned inline.
684
+ # Required. The [Google Cloud
685
+ # Storage](https://cloud.google.com/storage/docs/) URI to export the agent
686
+ # to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
687
+ # left unspecified, the serialized agent is returned inline.
687
688
  #
688
689
  # Dialogflow performs a write operation for the Cloud Storage object
689
690
  # on the caller's behalf, so your request authentication must
@@ -768,11 +769,13 @@ module Google
768
769
  #
769
770
  # Uploads new intents and entity types without deleting the existing ones.
770
771
  # Intents and entity types with the same name are replaced with the new
771
- # versions from {::Google::Cloud::Dialogflow::V2::ImportAgentRequest ImportAgentRequest}. After the import, the imported draft
772
- # agent will be trained automatically (unless disabled in agent settings).
773
- # However, once the import is done, training may not be completed yet. Please
774
- # call {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent TrainAgent} and wait for the operation it returns in order to train
775
- # explicitly.
772
+ # versions from
773
+ # {::Google::Cloud::Dialogflow::V2::ImportAgentRequest ImportAgentRequest}. After
774
+ # the import, the imported draft agent will be trained automatically (unless
775
+ # disabled in agent settings). However, once the import is done, training may
776
+ # not be completed yet. Please call
777
+ # {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent TrainAgent} and wait for the
778
+ # operation it returns in order to train explicitly.
776
779
  #
777
780
  # This method is a [long-running
778
781
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
@@ -899,8 +902,9 @@ module Google
899
902
  # entity types in the older version are deleted. After the restore, the
900
903
  # restored draft agent will be trained automatically (unless disabled in
901
904
  # agent settings). However, once the restore is done, training may not be
902
- # completed yet. Please call {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent TrainAgent} and wait for the operation it
903
- # returns in order to train explicitly.
905
+ # completed yet. Please call
906
+ # {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent TrainAgent} and wait for the
907
+ # operation it returns in order to train explicitly.
904
908
  #
905
909
  # This method is a [long-running
906
910
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # Service for managing {::Google::Cloud::Dialogflow::V2::Agent Agents}.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/dialogflow/v2/agents"
40
40
  # client = ::Google::Cloud::Dialogflow::V2::Agents::Client.new
@@ -54,6 +54,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
54
54
  optional :answer_relevance, :enum, 1, "google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance"
55
55
  optional :document_correctness, :enum, 2, "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness"
56
56
  optional :document_efficiency, :enum, 3, "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency"
57
+ optional :summarization_feedback, :message, 4, "google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback"
58
+ end
59
+ add_message "google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback" do
60
+ optional :start_time, :message, 1, "google.protobuf.Timestamp"
61
+ optional :submit_time, :message, 2, "google.protobuf.Timestamp"
62
+ optional :summary_text, :string, 3
57
63
  end
58
64
  add_enum "google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance" do
59
65
  value :ANSWER_RELEVANCE_UNSPECIFIED, 0
@@ -90,6 +96,7 @@ module Google
90
96
  AnswerFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnswerFeedback").msgclass
91
97
  AnswerFeedback::CorrectnessLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel").enummodule
92
98
  AgentAssistantFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback").msgclass
99
+ AgentAssistantFeedback::SummarizationFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback").msgclass
93
100
  AgentAssistantFeedback::AnswerRelevance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance").enummodule
94
101
  AgentAssistantFeedback::DocumentCorrectness = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness").enummodule
95
102
  AgentAssistantFeedback::DocumentEfficiency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency").enummodule
@@ -24,7 +24,8 @@ module Google
24
24
  module Dialogflow
25
25
  module V2
26
26
  module AnswerRecords
27
- # Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
27
+ # Service for managing
28
+ # [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
28
29
  class Service
29
30
 
30
31
  include ::GRPC::GenericService
@@ -28,7 +28,8 @@ module Google
28
28
  ##
29
29
  # Client for the AnswerRecords service.
30
30
  #
31
- # Service for managing {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
31
+ # Service for managing
32
+ # {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
32
33
  #
33
34
  class Client
34
35
  include Paths
@@ -31,9 +31,10 @@ module Google
31
31
  module Dialogflow
32
32
  module V2
33
33
  ##
34
- # Service for managing {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
34
+ # Service for managing
35
+ # {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
35
36
  #
36
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
37
38
  #
38
39
  # require "google/cloud/dialogflow/v2/answer_records"
39
40
  # client = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.new
@@ -33,7 +33,7 @@ module Google
33
33
  ##
34
34
  # Service for managing {::Google::Cloud::Dialogflow::V2::Context Contexts}.
35
35
  #
36
- # To load this service and instantiate a client:
36
+ # @example Load this service and instantiate a gRPC client
37
37
  #
38
38
  # require "google/cloud/dialogflow/v2/contexts"
39
39
  # client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new
@@ -42,8 +42,10 @@ module Google
42
42
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
43
43
  # The returned `Operation` type has the following method-specific fields:
44
44
  #
45
- # - `metadata`: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
46
- # - `response`: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
45
+ # - `metadata`:
46
+ # [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
47
+ # - `response`:
48
+ # [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
47
49
  rpc :CreateConversationDataset, ::Google::Cloud::Dialogflow::V2::CreateConversationDatasetRequest, ::Google::Longrunning::Operation
48
50
  # Retrieves the specified conversation dataset.
49
51
  rpc :GetConversationDataset, ::Google::Cloud::Dialogflow::V2::GetConversationDatasetRequest, ::Google::Cloud::Dialogflow::V2::ConversationDataset
@@ -56,7 +58,8 @@ module Google
56
58
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
57
59
  # The returned `Operation` type has the following method-specific fields:
58
60
  #
59
- # - `metadata`: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
61
+ # - `metadata`:
62
+ # [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
60
63
  # - `response`: An [Empty
61
64
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
62
65
  rpc :DeleteConversationDataset, ::Google::Cloud::Dialogflow::V2::DeleteConversationDatasetRequest, ::Google::Longrunning::Operation
@@ -68,8 +71,10 @@ module Google
68
71
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
69
72
  # The returned `Operation` type has the following method-specific fields:
70
73
  #
71
- # - `metadata`: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
72
- # - `response`: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
74
+ # - `metadata`:
75
+ # [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
76
+ # - `response`:
77
+ # [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
73
78
  rpc :ImportConversationData, ::Google::Cloud::Dialogflow::V2::ImportConversationDataRequest, ::Google::Longrunning::Operation
74
79
  end
75
80
 
@@ -186,8 +186,10 @@ module Google
186
186
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
187
187
  # The returned `Operation` type has the following method-specific fields:
188
188
  #
189
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::CreateConversationDatasetOperationMetadata CreateConversationDatasetOperationMetadata}
190
- # - `response`: {::Google::Cloud::Dialogflow::V2::ConversationDataset ConversationDataset}
189
+ # - `metadata`:
190
+ # {::Google::Cloud::Dialogflow::V2::CreateConversationDatasetOperationMetadata CreateConversationDatasetOperationMetadata}
191
+ # - `response`:
192
+ # {::Google::Cloud::Dialogflow::V2::ConversationDataset ConversationDataset}
191
193
  #
192
194
  # @overload create_conversation_dataset(request, options = nil)
193
195
  # Pass arguments to `create_conversation_dataset` via a request object, either of type
@@ -389,8 +391,8 @@ module Google
389
391
  # the default parameter values, pass an empty Hash as a request object (see above).
390
392
  #
391
393
  # @param parent [::String]
392
- # Required. The project and location name to list all conversation datasets for.
393
- # Format: `projects/<Project ID>/locations/<Location ID>`
394
+ # Required. The project and location name to list all conversation datasets
395
+ # for. Format: `projects/<Project ID>/locations/<Location ID>`
394
396
  # @param page_size [::Integer]
395
397
  # Optional. Maximum number of conversation datasets to return in a single
396
398
  # page. By default 100 and at most 1000.
@@ -475,7 +477,8 @@ module Google
475
477
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
476
478
  # The returned `Operation` type has the following method-specific fields:
477
479
  #
478
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::DeleteConversationDatasetOperationMetadata DeleteConversationDatasetOperationMetadata}
480
+ # - `metadata`:
481
+ # {::Google::Cloud::Dialogflow::V2::DeleteConversationDatasetOperationMetadata DeleteConversationDatasetOperationMetadata}
479
482
  # - `response`: An [Empty
480
483
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
481
484
  #
@@ -580,8 +583,10 @@ module Google
580
583
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
581
584
  # The returned `Operation` type has the following method-specific fields:
582
585
  #
583
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::ImportConversationDataOperationMetadata ImportConversationDataOperationMetadata}
584
- # - `response`: {::Google::Cloud::Dialogflow::V2::ImportConversationDataOperationResponse ImportConversationDataOperationResponse}
586
+ # - `metadata`:
587
+ # {::Google::Cloud::Dialogflow::V2::ImportConversationDataOperationMetadata ImportConversationDataOperationMetadata}
588
+ # - `response`:
589
+ # {::Google::Cloud::Dialogflow::V2::ImportConversationDataOperationResponse ImportConversationDataOperationResponse}
585
590
  #
586
591
  # @overload import_conversation_data(request, options = nil)
587
592
  # Pass arguments to `import_conversation_data` via a request object, either of type
@@ -37,7 +37,7 @@ module Google
37
37
  # Conversation datasets contain raw conversation files and their
38
38
  # customizable metadata that can be used for model training.
39
39
  #
40
- # To load this service and instantiate a client:
40
+ # @example Load this service and instantiate a gRPC client
41
41
  #
42
42
  # require "google/cloud/dialogflow/v2/conversation_datasets"
43
43
  # client = ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client.new
@@ -45,6 +45,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
45
45
  optional :display_name, :string, 2
46
46
  optional :evaluation_config, :message, 6, "google.cloud.dialogflow.v2.EvaluationConfig"
47
47
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
48
+ optional :raw_human_eval_template_csv, :string, 8
48
49
  oneof :metrics do
49
50
  optional :smart_reply_metrics, :message, 5, "google.cloud.dialogflow.v2.SmartReplyMetrics"
50
51
  end
@@ -39,8 +39,10 @@ module Google
39
39
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
40
40
  # The returned `Operation` type has the following method-specific fields:
41
41
  #
42
- # - `metadata`: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]
43
- # - `response`: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
42
+ # - `metadata`:
43
+ # [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]
44
+ # - `response`:
45
+ # [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
44
46
  rpc :CreateConversationModel, ::Google::Cloud::Dialogflow::V2::CreateConversationModelRequest, ::Google::Longrunning::Operation
45
47
  # Gets conversation model.
46
48
  rpc :GetConversationModel, ::Google::Cloud::Dialogflow::V2::GetConversationModelRequest, ::Google::Cloud::Dialogflow::V2::ConversationModel
@@ -52,7 +54,8 @@ module Google
52
54
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
53
55
  # The returned `Operation` type has the following method-specific fields:
54
56
  #
55
- # - `metadata`: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]
57
+ # - `metadata`:
58
+ # [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]
56
59
  # - `response`: An [Empty
57
60
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
58
61
  rpc :DeleteConversationModel, ::Google::Cloud::Dialogflow::V2::DeleteConversationModelRequest, ::Google::Longrunning::Operation
@@ -65,7 +68,8 @@ module Google
65
68
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
66
69
  # The returned `Operation` type has the following method-specific fields:
67
70
  #
68
- # - `metadata`: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]
71
+ # - `metadata`:
72
+ # [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]
69
73
  # - `response`: An [Empty
70
74
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
71
75
  rpc :DeployConversationModel, ::Google::Cloud::Dialogflow::V2::DeployConversationModelRequest, ::Google::Longrunning::Operation
@@ -78,7 +82,8 @@ module Google
78
82
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
79
83
  # The returned `Operation` type has the following method-specific fields:
80
84
  #
81
- # - `metadata`: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]
85
+ # - `metadata`:
86
+ # [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]
82
87
  # - `response`: An [Empty
83
88
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
84
89
  rpc :UndeployConversationModel, ::Google::Cloud::Dialogflow::V2::UndeployConversationModelRequest, ::Google::Longrunning::Operation
@@ -183,8 +183,10 @@ module Google
183
183
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
184
184
  # The returned `Operation` type has the following method-specific fields:
185
185
  #
186
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::CreateConversationModelOperationMetadata CreateConversationModelOperationMetadata}
187
- # - `response`: {::Google::Cloud::Dialogflow::V2::ConversationModel ConversationModel}
186
+ # - `metadata`:
187
+ # {::Google::Cloud::Dialogflow::V2::CreateConversationModelOperationMetadata CreateConversationModelOperationMetadata}
188
+ # - `response`:
189
+ # {::Google::Cloud::Dialogflow::V2::ConversationModel ConversationModel}
188
190
  #
189
191
  # @overload create_conversation_model(request, options = nil)
190
192
  # Pass arguments to `create_conversation_model` via a request object, either of type
@@ -470,7 +472,8 @@ module Google
470
472
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
471
473
  # The returned `Operation` type has the following method-specific fields:
472
474
  #
473
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::DeleteConversationModelOperationMetadata DeleteConversationModelOperationMetadata}
475
+ # - `metadata`:
476
+ # {::Google::Cloud::Dialogflow::V2::DeleteConversationModelOperationMetadata DeleteConversationModelOperationMetadata}
474
477
  # - `response`: An [Empty
475
478
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
476
479
  #
@@ -575,7 +578,8 @@ module Google
575
578
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
576
579
  # The returned `Operation` type has the following method-specific fields:
577
580
  #
578
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::DeployConversationModelOperationMetadata DeployConversationModelOperationMetadata}
581
+ # - `metadata`:
582
+ # {::Google::Cloud::Dialogflow::V2::DeployConversationModelOperationMetadata DeployConversationModelOperationMetadata}
579
583
  # - `response`: An [Empty
580
584
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
581
585
  #
@@ -680,7 +684,8 @@ module Google
680
684
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
681
685
  # The returned `Operation` type has the following method-specific fields:
682
686
  #
683
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::UndeployConversationModelOperationMetadata UndeployConversationModelOperationMetadata}
687
+ # - `metadata`:
688
+ # {::Google::Cloud::Dialogflow::V2::UndeployConversationModelOperationMetadata UndeployConversationModelOperationMetadata}
684
689
  # - `response`: An [Empty
685
690
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
686
691
  #
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # Manages a collection of models for human agent assistant.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/dialogflow/v2/conversation_models"
40
40
  # client = ::Google::Cloud::Dialogflow::V2::ConversationModels::Client.new
@@ -65,6 +65,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
65
65
  add_message "google.cloud.dialogflow.v2.ConversationPhoneNumber" do
66
66
  optional :phone_number, :string, 3
67
67
  end
68
+ add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryRequest" do
69
+ optional :conversation, :string, 1
70
+ optional :latest_message, :string, 3
71
+ optional :context_size, :int32, 4
72
+ end
73
+ add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse" do
74
+ optional :summary, :message, 1, "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary"
75
+ optional :latest_message, :string, 2
76
+ optional :context_size, :int32, 3
77
+ end
78
+ add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary" do
79
+ optional :text, :string, 1
80
+ map :text_sections, :string, :string, 4
81
+ optional :answer_record, :string, 3
82
+ end
68
83
  end
69
84
  end
70
85
 
@@ -83,6 +98,9 @@ module Google
83
98
  ListMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListMessagesRequest").msgclass
84
99
  ListMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListMessagesResponse").msgclass
85
100
  ConversationPhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationPhoneNumber").msgclass
101
+ SuggestConversationSummaryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestConversationSummaryRequest").msgclass
102
+ SuggestConversationSummaryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestConversationSummaryResponse").msgclass
103
+ SuggestConversationSummaryResponse::Summary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary").msgclass
86
104
  end
87
105
  end
88
106
  end
@@ -24,7 +24,8 @@ module Google
24
24
  module Dialogflow
25
25
  module V2
26
26
  module ConversationProfiles
27
- # Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
27
+ # Service for managing
28
+ # [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
28
29
  class Service
29
30
 
30
31
  include ::GRPC::GenericService
@@ -41,13 +42,15 @@ module Google
41
42
  #
42
43
  # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
43
44
  # aren't populated in the response. You can retrieve them via
44
- # [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
45
+ # [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
46
+ # API.
45
47
  rpc :CreateConversationProfile, ::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest, ::Google::Cloud::Dialogflow::V2::ConversationProfile
46
48
  # Updates the specified conversation profile.
47
49
  #
48
50
  # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
49
51
  # aren't populated in the response. You can retrieve them via
50
- # [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
52
+ # [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
53
+ # API.
51
54
  rpc :UpdateConversationProfile, ::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest, ::Google::Cloud::Dialogflow::V2::ConversationProfile
52
55
  # Deletes the specified conversation profile.
53
56
  rpc :DeleteConversationProfile, ::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest, ::Google::Protobuf::Empty
@@ -60,8 +63,10 @@ module Google
60
63
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
61
64
  # The returned `Operation` type has the following method-specific fields:
62
65
  #
63
- # - `metadata`: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
64
- # - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
66
+ # - `metadata`:
67
+ # [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
68
+ # - `response`:
69
+ # [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
65
70
  #
66
71
  # If a long running operation to add or update suggestion feature
67
72
  # config for the same conversation profile, participant role and suggestion
@@ -75,8 +80,10 @@ module Google
75
80
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
76
81
  # The returned `Operation` type has the following method-specific fields:
77
82
  #
78
- # - `metadata`: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
79
- # - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
83
+ # - `metadata`:
84
+ # [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
85
+ # - `response`:
86
+ # [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
80
87
  rpc :ClearSuggestionFeatureConfig, ::Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigRequest, ::Google::Longrunning::Operation
81
88
  end
82
89
 
@@ -28,7 +28,8 @@ module Google
28
28
  ##
29
29
  # Client for the ConversationProfiles service.
30
30
  #
31
- # Service for managing {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfiles}.
31
+ # Service for managing
32
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfiles}.
32
33
  #
33
34
  class Client
34
35
  include Paths
@@ -366,7 +367,8 @@ module Google
366
367
  #
367
368
  # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
368
369
  # aren't populated in the response. You can retrieve them via
369
- # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#get_conversation_profile GetConversationProfile} API.
370
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#get_conversation_profile GetConversationProfile}
371
+ # API.
370
372
  #
371
373
  # @overload create_conversation_profile(request, options = nil)
372
374
  # Pass arguments to `create_conversation_profile` via a request object, either of type
@@ -458,7 +460,8 @@ module Google
458
460
  #
459
461
  # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
460
462
  # aren't populated in the response. You can retrieve them via
461
- # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#get_conversation_profile GetConversationProfile} API.
463
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#get_conversation_profile GetConversationProfile}
464
+ # API.
462
465
  #
463
466
  # @overload update_conversation_profile(request, options = nil)
464
467
  # Pass arguments to `update_conversation_profile` via a request object, either of type
@@ -641,8 +644,10 @@ module Google
641
644
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
642
645
  # The returned `Operation` type has the following method-specific fields:
643
646
  #
644
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::SetSuggestionFeatureConfigOperationMetadata SetSuggestionFeatureConfigOperationMetadata}
645
- # - `response`: {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfile}
647
+ # - `metadata`:
648
+ # {::Google::Cloud::Dialogflow::V2::SetSuggestionFeatureConfigOperationMetadata SetSuggestionFeatureConfigOperationMetadata}
649
+ # - `response`:
650
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfile}
646
651
  #
647
652
  # If a long running operation to add or update suggestion feature
648
653
  # config for the same conversation profile, participant role and suggestion
@@ -754,8 +759,10 @@ module Google
754
759
  # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
755
760
  # The returned `Operation` type has the following method-specific fields:
756
761
  #
757
- # - `metadata`: {::Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigOperationMetadata ClearSuggestionFeatureConfigOperationMetadata}
758
- # - `response`: {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfile}
762
+ # - `metadata`:
763
+ # {::Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigOperationMetadata ClearSuggestionFeatureConfigOperationMetadata}
764
+ # - `response`:
765
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfile}
759
766
  #
760
767
  # @overload clear_suggestion_feature_config(request, options = nil)
761
768
  # Pass arguments to `clear_suggestion_feature_config` via a request object, either of type
@@ -32,9 +32,10 @@ module Google
32
32
  module Dialogflow
33
33
  module V2
34
34
  ##
35
- # Service for managing {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfiles}.
35
+ # Service for managing
36
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfiles}.
36
37
  #
37
- # To load this service and instantiate a client:
38
+ # @example Load this service and instantiate a gRPC client
38
39
  #
39
40
  # require "google/cloud/dialogflow/v2/conversation_profiles"
40
41
  # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new
@@ -24,7 +24,8 @@ module Google
24
24
  module Dialogflow
25
25
  module V2
26
26
  module Conversations
27
- # Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation].
27
+ # Service for managing
28
+ # [Conversations][google.cloud.dialogflow.v2.Conversation].
28
29
  class Service
29
30
 
30
31
  include ::GRPC::GenericService
@@ -46,11 +47,14 @@ module Google
46
47
  # For Assist Stage, there's no dialogflow agent responding to user queries.
47
48
  # But we will provide suggestions which are generated from conversation.
48
49
  #
49
- # If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow
50
- # agent, conversation will start from `Automated Agent Stage`, otherwise, it
51
- # will start from `Assist Stage`. And during `Automated Agent Stage`, once an
52
- # [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation
53
- # will transfer to Assist Stage.
50
+ # If
51
+ # [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile]
52
+ # is configured for a dialogflow agent, conversation will start from
53
+ # `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And
54
+ # during `Automated Agent Stage`, once an
55
+ # [Intent][google.cloud.dialogflow.v2.Intent] with
56
+ # [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff]
57
+ # is triggered, conversation will transfer to Assist Stage.
54
58
  rpc :CreateConversation, ::Google::Cloud::Dialogflow::V2::CreateConversationRequest, ::Google::Cloud::Dialogflow::V2::Conversation
55
59
  # Returns the list of all conversations in the specified project.
56
60
  rpc :ListConversations, ::Google::Cloud::Dialogflow::V2::ListConversationsRequest, ::Google::Cloud::Dialogflow::V2::ListConversationsResponse
@@ -65,6 +69,10 @@ module Google
65
69
  # `create_time_epoch_microseconds >
66
70
  # [first item's create_time of previous request]` and empty page_token.
67
71
  rpc :ListMessages, ::Google::Cloud::Dialogflow::V2::ListMessagesRequest, ::Google::Cloud::Dialogflow::V2::ListMessagesResponse
72
+ # Suggests summary for a conversation based on specific historical messages.
73
+ # The range of the messages to be used for summary can be specified in the
74
+ # request.
75
+ rpc :SuggestConversationSummary, ::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryRequest, ::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse
68
76
  end
69
77
 
70
78
  Stub = Service.rpc_stub_class