google-cloud-dialogflow-v2 0.6.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +66 -2
  4. data/lib/google/cloud/dialogflow/v2.rb +13 -2
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +24 -12
  6. data/lib/google/cloud/dialogflow/v2/agents/client.rb +40 -72
  7. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +96 -11
  8. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
  9. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +100 -0
  10. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +48 -0
  11. data/lib/google/cloud/dialogflow/v2/answer_records.rb +49 -0
  12. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +478 -0
  13. data/lib/google/cloud/dialogflow/v2/answer_records/credentials.rb +52 -0
  14. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +105 -0
  15. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +7 -0
  16. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +8 -25
  17. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -18
  18. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +24 -63
  19. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +74 -2
  20. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +39 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +89 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +182 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +61 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +49 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +699 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb +52 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +246 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +75 -0
  29. data/lib/google/cloud/dialogflow/v2/conversations.rb +49 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +757 -0
  31. data/lib/google/cloud/dialogflow/v2/conversations/credentials.rb +52 -0
  32. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +146 -0
  33. data/lib/google/cloud/dialogflow/v2/document_pb.rb +99 -0
  34. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +73 -0
  35. data/lib/google/cloud/dialogflow/v2/documents.rb +50 -0
  36. data/lib/google/cloud/dialogflow/v2/documents/client.rb +810 -0
  37. data/lib/google/cloud/dialogflow/v2/documents/credentials.rb +52 -0
  38. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +655 -0
  39. data/lib/google/cloud/dialogflow/v2/documents/paths.rb +119 -0
  40. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +12 -39
  41. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -28
  42. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +28 -91
  43. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +96 -11
  44. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
  45. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
  46. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +24 -3
  47. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  48. data/lib/google/cloud/dialogflow/v2/environments/client.rb +430 -14
  49. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +104 -5
  50. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
  51. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
  52. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
  53. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +460 -0
  54. data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
  55. data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
  56. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +20 -0
  57. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +26 -0
  58. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
  59. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +9 -40
  60. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -32
  61. data/lib/google/cloud/dialogflow/v2/intents/client.rb +34 -81
  62. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +96 -11
  63. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +97 -13
  64. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +60 -0
  65. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +53 -0
  66. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +49 -0
  67. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +696 -0
  68. data/lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb +52 -0
  69. data/lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb +105 -0
  70. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +181 -0
  71. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +64 -0
  72. data/lib/google/cloud/dialogflow/v2/participants.rb +49 -0
  73. data/lib/google/cloud/dialogflow/v2/participants/client.rb +894 -0
  74. data/lib/google/cloud/dialogflow/v2/participants/credentials.rb +52 -0
  75. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +334 -0
  76. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +7 -23
  77. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -17
  78. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +23 -53
  79. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +74 -2
  80. data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -0
  81. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -7
  82. data/lib/google/cloud/dialogflow/v2/sessions.rb +4 -4
  83. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +51 -15
  84. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +113 -3
  85. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  86. data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
  87. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
  88. data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
  89. data/lib/google/cloud/dialogflow/v2/versions/client.rb +709 -0
  90. data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
  91. data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
  92. data/proto_docs/google/api/field_behavior.rb +6 -0
  93. data/proto_docs/google/api/resource.rb +50 -14
  94. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +1 -2
  95. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +252 -0
  96. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +25 -0
  97. data/proto_docs/google/cloud/dialogflow/v2/context.rb +17 -2
  98. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +253 -0
  99. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +83 -0
  100. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +522 -0
  101. data/proto_docs/google/cloud/dialogflow/v2/document.rb +267 -0
  102. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +12 -3
  103. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +187 -5
  104. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
  105. data/proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb +45 -0
  106. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +29 -4
  107. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +139 -0
  108. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +525 -0
  109. data/proto_docs/google/cloud/dialogflow/v2/session.rb +56 -7
  110. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +7 -6
  111. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  112. data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
  113. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +2 -2
  114. data/proto_docs/google/longrunning/operations.rb +17 -3
  115. data/proto_docs/google/protobuf/any.rb +5 -2
  116. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  117. data/proto_docs/google/type/latlng.rb +2 -2
  118. metadata +81 -11
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dialogflow
24
+ module V2
25
+ module KnowledgeBases
26
+ # Credentials for the KnowledgeBases API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform",
30
+ "https://www.googleapis.com/auth/dialogflow"
31
+ ]
32
+ self.env_vars = [
33
+ "DIALOGFLOW_CREDENTIALS",
34
+ "DIALOGFLOW_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "DIALOGFLOW_CREDENTIALS_JSON",
39
+ "DIALOGFLOW_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module V2
24
+ module KnowledgeBases
25
+ # Path helper methods for the KnowledgeBases API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified KnowledgeBase resource string.
29
+ #
30
+ # @overload knowledge_base_path(project:, knowledge_base:)
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/knowledgeBases/{knowledge_base}`
34
+ #
35
+ # @param project [String]
36
+ # @param knowledge_base [String]
37
+ #
38
+ # @overload knowledge_base_path(project:, location:, knowledge_base:)
39
+ # The resource will be in the following format:
40
+ #
41
+ # `projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}`
42
+ #
43
+ # @param project [String]
44
+ # @param location [String]
45
+ # @param knowledge_base [String]
46
+ #
47
+ # @return [::String]
48
+ def knowledge_base_path **args
49
+ resources = {
50
+ "knowledge_base:project" => (proc do |project:, knowledge_base:|
51
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
52
+
53
+ "projects/#{project}/knowledgeBases/#{knowledge_base}"
54
+ end),
55
+ "knowledge_base:location:project" => (proc do |project:, location:, knowledge_base:|
56
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
57
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
58
+
59
+ "projects/#{project}/locations/#{location}/knowledgeBases/#{knowledge_base}"
60
+ end)
61
+ }
62
+
63
+ resource = resources[args.keys.sort.join(":")]
64
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
65
+ resource.call(**args)
66
+ end
67
+
68
+ ##
69
+ # Create a fully-qualified Location resource string.
70
+ #
71
+ # The resource will be in the following format:
72
+ #
73
+ # `projects/{project}/locations/{location}`
74
+ #
75
+ # @param project [String]
76
+ # @param location [String]
77
+ #
78
+ # @return [::String]
79
+ def location_path project:, location:
80
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
81
+
82
+ "projects/#{project}/locations/#{location}"
83
+ end
84
+
85
+ ##
86
+ # Create a fully-qualified Project resource string.
87
+ #
88
+ # The resource will be in the following format:
89
+ #
90
+ # `projects/{project}`
91
+ #
92
+ # @param project [String]
93
+ #
94
+ # @return [::String]
95
+ def project_path project:
96
+ "projects/#{project}"
97
+ end
98
+
99
+ extend self
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,181 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/v2/participant.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/dialogflow/v2/audio_config_pb'
11
+ require 'google/cloud/dialogflow/v2/session_pb'
12
+ require 'google/protobuf/any_pb'
13
+ require 'google/protobuf/duration_pb'
14
+ require 'google/protobuf/field_mask_pb'
15
+ require 'google/protobuf/struct_pb'
16
+ require 'google/protobuf/timestamp_pb'
17
+ require 'google/rpc/status_pb'
18
+ Google::Protobuf::DescriptorPool.generated_pool.build do
19
+ add_file("google/cloud/dialogflow/v2/participant.proto", :syntax => :proto3) do
20
+ add_message "google.cloud.dialogflow.v2.Participant" do
21
+ optional :name, :string, 1
22
+ optional :role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role"
23
+ optional :sip_recording_media_label, :string, 6
24
+ end
25
+ add_enum "google.cloud.dialogflow.v2.Participant.Role" do
26
+ value :ROLE_UNSPECIFIED, 0
27
+ value :HUMAN_AGENT, 1
28
+ value :AUTOMATED_AGENT, 2
29
+ value :END_USER, 3
30
+ end
31
+ add_message "google.cloud.dialogflow.v2.Message" do
32
+ optional :name, :string, 1
33
+ optional :content, :string, 2
34
+ optional :language_code, :string, 3
35
+ optional :participant, :string, 4
36
+ optional :participant_role, :enum, 5, "google.cloud.dialogflow.v2.Participant.Role"
37
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
38
+ optional :message_annotation, :message, 7, "google.cloud.dialogflow.v2.MessageAnnotation"
39
+ end
40
+ add_message "google.cloud.dialogflow.v2.CreateParticipantRequest" do
41
+ optional :parent, :string, 1
42
+ optional :participant, :message, 2, "google.cloud.dialogflow.v2.Participant"
43
+ end
44
+ add_message "google.cloud.dialogflow.v2.GetParticipantRequest" do
45
+ optional :name, :string, 1
46
+ end
47
+ add_message "google.cloud.dialogflow.v2.ListParticipantsRequest" do
48
+ optional :parent, :string, 1
49
+ optional :page_size, :int32, 2
50
+ optional :page_token, :string, 3
51
+ end
52
+ add_message "google.cloud.dialogflow.v2.ListParticipantsResponse" do
53
+ repeated :participants, :message, 1, "google.cloud.dialogflow.v2.Participant"
54
+ optional :next_page_token, :string, 2
55
+ end
56
+ add_message "google.cloud.dialogflow.v2.UpdateParticipantRequest" do
57
+ optional :participant, :message, 1, "google.cloud.dialogflow.v2.Participant"
58
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
59
+ end
60
+ add_message "google.cloud.dialogflow.v2.AnalyzeContentRequest" do
61
+ optional :participant, :string, 1
62
+ optional :reply_audio_config, :message, 5, "google.cloud.dialogflow.v2.OutputAudioConfig"
63
+ optional :query_params, :message, 9, "google.cloud.dialogflow.v2.QueryParameters"
64
+ optional :request_id, :string, 11
65
+ oneof :input do
66
+ optional :text_input, :message, 6, "google.cloud.dialogflow.v2.TextInput"
67
+ optional :event_input, :message, 8, "google.cloud.dialogflow.v2.EventInput"
68
+ end
69
+ end
70
+ add_message "google.cloud.dialogflow.v2.DtmfParameters" do
71
+ optional :accepts_dtmf_input, :bool, 1
72
+ end
73
+ add_message "google.cloud.dialogflow.v2.AnalyzeContentResponse" do
74
+ optional :reply_text, :string, 1
75
+ optional :reply_audio, :message, 2, "google.cloud.dialogflow.v2.OutputAudio"
76
+ optional :automated_agent_reply, :message, 3, "google.cloud.dialogflow.v2.AutomatedAgentReply"
77
+ optional :message, :message, 5, "google.cloud.dialogflow.v2.Message"
78
+ repeated :human_agent_suggestion_results, :message, 6, "google.cloud.dialogflow.v2.SuggestionResult"
79
+ repeated :end_user_suggestion_results, :message, 7, "google.cloud.dialogflow.v2.SuggestionResult"
80
+ optional :dtmf_parameters, :message, 9, "google.cloud.dialogflow.v2.DtmfParameters"
81
+ end
82
+ add_message "google.cloud.dialogflow.v2.SuggestArticlesRequest" do
83
+ optional :parent, :string, 1
84
+ optional :latest_message, :string, 2
85
+ optional :context_size, :int32, 3
86
+ end
87
+ add_message "google.cloud.dialogflow.v2.SuggestArticlesResponse" do
88
+ repeated :article_answers, :message, 1, "google.cloud.dialogflow.v2.ArticleAnswer"
89
+ optional :latest_message, :string, 2
90
+ optional :context_size, :int32, 3
91
+ end
92
+ add_message "google.cloud.dialogflow.v2.SuggestFaqAnswersRequest" do
93
+ optional :parent, :string, 1
94
+ optional :latest_message, :string, 2
95
+ optional :context_size, :int32, 3
96
+ end
97
+ add_message "google.cloud.dialogflow.v2.SuggestFaqAnswersResponse" do
98
+ repeated :faq_answers, :message, 1, "google.cloud.dialogflow.v2.FaqAnswer"
99
+ optional :latest_message, :string, 2
100
+ optional :context_size, :int32, 3
101
+ end
102
+ add_message "google.cloud.dialogflow.v2.OutputAudio" do
103
+ optional :config, :message, 1, "google.cloud.dialogflow.v2.OutputAudioConfig"
104
+ optional :audio, :bytes, 2
105
+ end
106
+ add_message "google.cloud.dialogflow.v2.AutomatedAgentReply" do
107
+ optional :detect_intent_response, :message, 1, "google.cloud.dialogflow.v2.DetectIntentResponse"
108
+ optional :automated_agent_reply_type, :enum, 7, "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType"
109
+ optional :allow_cancellation, :bool, 8
110
+ end
111
+ add_enum "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType" do
112
+ value :AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED, 0
113
+ value :PARTIAL, 1
114
+ value :FINAL, 2
115
+ end
116
+ add_message "google.cloud.dialogflow.v2.ArticleAnswer" do
117
+ optional :title, :string, 1
118
+ optional :uri, :string, 2
119
+ repeated :snippets, :string, 3
120
+ optional :confidence, :float, 4
121
+ map :metadata, :string, :string, 5
122
+ optional :answer_record, :string, 6
123
+ end
124
+ add_message "google.cloud.dialogflow.v2.FaqAnswer" do
125
+ optional :answer, :string, 1
126
+ optional :confidence, :float, 2
127
+ optional :question, :string, 3
128
+ optional :source, :string, 4
129
+ map :metadata, :string, :string, 5
130
+ optional :answer_record, :string, 6
131
+ end
132
+ add_message "google.cloud.dialogflow.v2.SuggestionResult" do
133
+ oneof :suggestion_response do
134
+ optional :error, :message, 1, "google.rpc.Status"
135
+ optional :suggest_articles_response, :message, 2, "google.cloud.dialogflow.v2.SuggestArticlesResponse"
136
+ optional :suggest_faq_answers_response, :message, 3, "google.cloud.dialogflow.v2.SuggestFaqAnswersResponse"
137
+ end
138
+ end
139
+ add_message "google.cloud.dialogflow.v2.AnnotatedMessagePart" do
140
+ optional :text, :string, 1
141
+ optional :entity_type, :string, 2
142
+ optional :formatted_value, :message, 3, "google.protobuf.Value"
143
+ end
144
+ add_message "google.cloud.dialogflow.v2.MessageAnnotation" do
145
+ repeated :parts, :message, 1, "google.cloud.dialogflow.v2.AnnotatedMessagePart"
146
+ optional :contain_entities, :bool, 2
147
+ end
148
+ end
149
+ end
150
+
151
+ module Google
152
+ module Cloud
153
+ module Dialogflow
154
+ module V2
155
+ Participant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Participant").msgclass
156
+ Participant::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Participant.Role").enummodule
157
+ Message = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Message").msgclass
158
+ CreateParticipantRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateParticipantRequest").msgclass
159
+ GetParticipantRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetParticipantRequest").msgclass
160
+ ListParticipantsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListParticipantsRequest").msgclass
161
+ ListParticipantsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListParticipantsResponse").msgclass
162
+ UpdateParticipantRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.UpdateParticipantRequest").msgclass
163
+ AnalyzeContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnalyzeContentRequest").msgclass
164
+ DtmfParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DtmfParameters").msgclass
165
+ AnalyzeContentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnalyzeContentResponse").msgclass
166
+ SuggestArticlesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestArticlesRequest").msgclass
167
+ SuggestArticlesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestArticlesResponse").msgclass
168
+ SuggestFaqAnswersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersRequest").msgclass
169
+ SuggestFaqAnswersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersResponse").msgclass
170
+ OutputAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.OutputAudio").msgclass
171
+ AutomatedAgentReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply").msgclass
172
+ AutomatedAgentReply::AutomatedAgentReplyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType").enummodule
173
+ ArticleAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ArticleAnswer").msgclass
174
+ FaqAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.FaqAnswer").msgclass
175
+ SuggestionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestionResult").msgclass
176
+ AnnotatedMessagePart = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnnotatedMessagePart").msgclass
177
+ MessageAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.MessageAnnotation").msgclass
178
+ end
179
+ end
180
+ end
181
+ end
@@ -0,0 +1,64 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dialogflow/v2/participant.proto for package 'google.cloud.dialogflow.v2'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/dialogflow/v2/participant_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dialogflow
25
+ module V2
26
+ module Participants
27
+ # Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.dialogflow.v2.Participants'
35
+
36
+ # Creates a new participant in a conversation.
37
+ rpc :CreateParticipant, ::Google::Cloud::Dialogflow::V2::CreateParticipantRequest, ::Google::Cloud::Dialogflow::V2::Participant
38
+ # Retrieves a conversation participant.
39
+ rpc :GetParticipant, ::Google::Cloud::Dialogflow::V2::GetParticipantRequest, ::Google::Cloud::Dialogflow::V2::Participant
40
+ # Returns the list of all participants in the specified conversation.
41
+ rpc :ListParticipants, ::Google::Cloud::Dialogflow::V2::ListParticipantsRequest, ::Google::Cloud::Dialogflow::V2::ListParticipantsResponse
42
+ # Updates the specified participant.
43
+ rpc :UpdateParticipant, ::Google::Cloud::Dialogflow::V2::UpdateParticipantRequest, ::Google::Cloud::Dialogflow::V2::Participant
44
+ # Adds a text (chat, for example), or audio (phone recording, for example)
45
+ # message from a participant into the conversation.
46
+ #
47
+ # Note: Always use agent versions for production traffic
48
+ # sent to virtual agents. See [Versions and
49
+ # environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
50
+ rpc :AnalyzeContent, ::Google::Cloud::Dialogflow::V2::AnalyzeContentRequest, ::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse
51
+ # Gets suggested articles for a participant based on specific historical
52
+ # messages.
53
+ rpc :SuggestArticles, ::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest, ::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse
54
+ # Gets suggested faq answers for a participant based on specific historical
55
+ # messages.
56
+ rpc :SuggestFaqAnswers, ::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest, ::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse
57
+ end
58
+
59
+ Stub = Service.rpc_stub_class
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dialogflow/v2/version"
24
+
25
+ require "google/cloud/dialogflow/v2/participants/credentials"
26
+ require "google/cloud/dialogflow/v2/participants/paths"
27
+ require "google/cloud/dialogflow/v2/participants/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Dialogflow
32
+ module V2
33
+ ##
34
+ # Service for managing {::Google::Cloud::Dialogflow::V2::Participant Participants}.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/dialogflow/v2/participants"
39
+ # client = ::Google::Cloud::Dialogflow::V2::Participants::Client.new
40
+ #
41
+ module Participants
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "participants", "helpers.rb"
49
+ require "google/cloud/dialogflow/v2/participants/helpers" if ::File.file? helper_path