google-cloud-dialogflow-cx-v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +32 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +122 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +82 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +1051 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/credentials.rb +54 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +666 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +151 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/agents.rb +52 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +94 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +92 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +67 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +766 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_types/credentials.rb +54 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb +75 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +51 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +117 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +61 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +950 -0
  24. data/lib/google/cloud/dialogflow/cx/v3/environments/credentials.rb +54 -0
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +666 -0
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +98 -0
  27. data/lib/google/cloud/dialogflow/cx/v3/environments.rb +52 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +177 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +61 -0
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +851 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/experiments/credentials.rb +54 -0
  32. data/lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb +102 -0
  33. data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +51 -0
  34. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +145 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +88 -0
  36. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +1200 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/credentials.rb +54 -0
  38. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +666 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +184 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/flows.rb +52 -0
  41. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +55 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +97 -0
  43. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +67 -0
  44. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +750 -0
  45. data/lib/google/cloud/dialogflow/cx/v3/intents/credentials.rb +54 -0
  46. data/lib/google/cloud/dialogflow/cx/v3/intents/paths.rb +96 -0
  47. data/lib/google/cloud/dialogflow/cx/v3/intents.rb +51 -0
  48. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +113 -0
  49. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +67 -0
  50. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +805 -0
  51. data/lib/google/cloud/dialogflow/cx/v3/pages/credentials.rb +54 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +165 -0
  53. data/lib/google/cloud/dialogflow/cx/v3/pages.rb +51 -0
  54. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +77 -0
  55. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +89 -0
  56. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +696 -0
  57. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/credentials.rb +54 -0
  58. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb +157 -0
  59. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +51 -0
  60. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +56 -0
  61. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +68 -0
  62. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +55 -0
  63. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +715 -0
  64. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/credentials.rb +54 -0
  65. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/paths.rb +137 -0
  66. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +51 -0
  67. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +209 -0
  68. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +71 -0
  69. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +654 -0
  70. data/lib/google/cloud/dialogflow/cx/v3/sessions/credentials.rb +54 -0
  71. data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +225 -0
  72. data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +53 -0
  73. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +302 -0
  74. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +73 -0
  75. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +1324 -0
  76. data/lib/google/cloud/dialogflow/cx/v3/test_cases/credentials.rb +54 -0
  77. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +666 -0
  78. data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +249 -0
  79. data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +53 -0
  80. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +67 -0
  81. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +67 -0
  82. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +766 -0
  83. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/credentials.rb +54 -0
  84. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +144 -0
  85. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +51 -0
  86. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +59 -0
  87. data/lib/google/cloud/dialogflow/cx/v3/version.rb +30 -0
  88. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +88 -0
  89. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +57 -0
  90. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +792 -0
  91. data/lib/google/cloud/dialogflow/cx/v3/versions/credentials.rb +54 -0
  92. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +666 -0
  93. data/lib/google/cloud/dialogflow/cx/v3/versions/paths.rb +79 -0
  94. data/lib/google/cloud/dialogflow/cx/v3/versions.rb +52 -0
  95. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +172 -0
  96. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +55 -0
  97. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +704 -0
  98. data/lib/google/cloud/dialogflow/cx/v3/webhooks/credentials.rb +54 -0
  99. data/lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb +96 -0
  100. data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +51 -0
  101. data/lib/google/cloud/dialogflow/cx/v3.rb +53 -0
  102. data/lib/google-cloud-dialogflow-cx-v3.rb +21 -0
  103. data/proto_docs/README.md +4 -0
  104. data/proto_docs/google/api/field_behavior.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +283 -0
  106. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +57 -0
  107. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +301 -0
  108. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +322 -0
  109. data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +306 -0
  110. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +279 -0
  111. data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +438 -0
  112. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +438 -0
  113. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +126 -0
  114. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +318 -0
  115. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +478 -0
  116. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +220 -0
  117. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +222 -0
  118. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +798 -0
  119. data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +184 -0
  120. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +757 -0
  121. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +195 -0
  122. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +121 -0
  123. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +182 -0
  124. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +496 -0
  125. data/proto_docs/google/longrunning/operations.rb +164 -0
  126. data/proto_docs/google/protobuf/any.rb +141 -0
  127. data/proto_docs/google/protobuf/duration.rb +98 -0
  128. data/proto_docs/google/protobuf/empty.rb +36 -0
  129. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  130. data/proto_docs/google/protobuf/struct.rb +96 -0
  131. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  132. data/proto_docs/google/rpc/status.rb +46 -0
  133. data/proto_docs/google/type/latlng.rb +38 -0
  134. metadata +326 -0
@@ -0,0 +1,54 @@
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 CX
25
+ module V3
26
+ module SessionEntityTypes
27
+ # Credentials for the SessionEntityTypes API.
28
+ class Credentials < ::Google::Auth::Credentials
29
+ self.scope = [
30
+ "https://www.googleapis.com/auth/cloud-platform",
31
+ "https://www.googleapis.com/auth/dialogflow"
32
+ ]
33
+ self.env_vars = [
34
+ "DIALOGFLOW_CREDENTIALS",
35
+ "DIALOGFLOW_KEYFILE",
36
+ "GOOGLE_CLOUD_CREDENTIALS",
37
+ "GOOGLE_CLOUD_KEYFILE",
38
+ "GCLOUD_KEYFILE",
39
+ "DIALOGFLOW_CREDENTIALS_JSON",
40
+ "DIALOGFLOW_KEYFILE_JSON",
41
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
42
+ "GOOGLE_CLOUD_KEYFILE_JSON",
43
+ "GCLOUD_KEYFILE_JSON"
44
+ ]
45
+ self.paths = [
46
+ "~/.config/google_cloud/application_default_credentials.json"
47
+ ]
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,137 @@
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 CX
24
+ module V3
25
+ module SessionEntityTypes
26
+ # Path helper methods for the SessionEntityTypes API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified Session resource string.
30
+ #
31
+ # @overload session_path(project:, location:, agent:, session:)
32
+ # The resource will be in the following format:
33
+ #
34
+ # `projects/{project}/locations/{location}/agents/{agent}/sessions/{session}`
35
+ #
36
+ # @param project [String]
37
+ # @param location [String]
38
+ # @param agent [String]
39
+ # @param session [String]
40
+ #
41
+ # @overload session_path(project:, location:, agent:, environment:, session:)
42
+ # The resource will be in the following format:
43
+ #
44
+ # `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}`
45
+ #
46
+ # @param project [String]
47
+ # @param location [String]
48
+ # @param agent [String]
49
+ # @param environment [String]
50
+ # @param session [String]
51
+ #
52
+ # @return [::String]
53
+ def session_path **args
54
+ resources = {
55
+ "agent:location:project:session" => (proc do |project:, location:, agent:, session:|
56
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
57
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
58
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
59
+
60
+ "projects/#{project}/locations/#{location}/agents/#{agent}/sessions/#{session}"
61
+ end),
62
+ "agent:environment:location:project:session" => (proc do |project:, location:, agent:, environment:, session:|
63
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
64
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
65
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
66
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
67
+
68
+ "projects/#{project}/locations/#{location}/agents/#{agent}/environments/#{environment}/sessions/#{session}"
69
+ end)
70
+ }
71
+
72
+ resource = resources[args.keys.sort.join(":")]
73
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
74
+ resource.call(**args)
75
+ end
76
+
77
+ ##
78
+ # Create a fully-qualified SessionEntityType resource string.
79
+ #
80
+ # @overload session_entity_type_path(project:, location:, agent:, session:, entity_type:)
81
+ # The resource will be in the following format:
82
+ #
83
+ # `projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}`
84
+ #
85
+ # @param project [String]
86
+ # @param location [String]
87
+ # @param agent [String]
88
+ # @param session [String]
89
+ # @param entity_type [String]
90
+ #
91
+ # @overload session_entity_type_path(project:, location:, agent:, environment:, session:, entity_type:)
92
+ # The resource will be in the following format:
93
+ #
94
+ # `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}/entityTypes/{entity_type}`
95
+ #
96
+ # @param project [String]
97
+ # @param location [String]
98
+ # @param agent [String]
99
+ # @param environment [String]
100
+ # @param session [String]
101
+ # @param entity_type [String]
102
+ #
103
+ # @return [::String]
104
+ def session_entity_type_path **args
105
+ resources = {
106
+ "agent:entity_type:location:project:session" => (proc do |project:, location:, agent:, session:, entity_type:|
107
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
108
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
109
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
110
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
111
+
112
+ "projects/#{project}/locations/#{location}/agents/#{agent}/sessions/#{session}/entityTypes/#{entity_type}"
113
+ end),
114
+ "agent:entity_type:environment:location:project:session" => (proc do |project:, location:, agent:, environment:, session:, entity_type:|
115
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
116
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
117
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
118
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
119
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
120
+
121
+ "projects/#{project}/locations/#{location}/agents/#{agent}/environments/#{environment}/sessions/#{session}/entityTypes/#{entity_type}"
122
+ end)
123
+ }
124
+
125
+ resource = resources[args.keys.sort.join(":")]
126
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
127
+ resource.call(**args)
128
+ end
129
+
130
+ extend self
131
+ end
132
+ end
133
+ end
134
+ end
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,51 @@
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/cx/v3/version"
24
+
25
+ require "google/cloud/dialogflow/cx/v3/session_entity_types/credentials"
26
+ require "google/cloud/dialogflow/cx/v3/session_entity_types/paths"
27
+ require "google/cloud/dialogflow/cx/v3/session_entity_types/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Dialogflow
32
+ module CX
33
+ module V3
34
+ ##
35
+ # Service for managing {::Google::Cloud::Dialogflow::CX::V3::SessionEntityType SessionEntityTypes}.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/dialogflow/cx/v3/session_entity_types"
40
+ # client = ::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client.new
41
+ #
42
+ module SessionEntityTypes
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "session_entity_types", "helpers.rb"
51
+ require "google/cloud/dialogflow/cx/v3/session_entity_types/helpers" if ::File.file? helper_path
@@ -0,0 +1,209 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/cx/v3/session.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
10
+ require 'google/cloud/dialogflow/cx/v3/audio_config_pb'
11
+ require 'google/cloud/dialogflow/cx/v3/flow_pb'
12
+ require 'google/cloud/dialogflow/cx/v3/intent_pb'
13
+ require 'google/cloud/dialogflow/cx/v3/page_pb'
14
+ require 'google/cloud/dialogflow/cx/v3/response_message_pb'
15
+ require 'google/cloud/dialogflow/cx/v3/session_entity_type_pb'
16
+ require 'google/protobuf/duration_pb'
17
+ require 'google/protobuf/struct_pb'
18
+ require 'google/rpc/status_pb'
19
+ require 'google/type/latlng_pb'
20
+ require 'google/api/client_pb'
21
+ Google::Protobuf::DescriptorPool.generated_pool.build do
22
+ add_file("google/cloud/dialogflow/cx/v3/session.proto", :syntax => :proto3) do
23
+ add_message "google.cloud.dialogflow.cx.v3.DetectIntentRequest" do
24
+ optional :session, :string, 1
25
+ optional :query_params, :message, 2, "google.cloud.dialogflow.cx.v3.QueryParameters"
26
+ optional :query_input, :message, 3, "google.cloud.dialogflow.cx.v3.QueryInput"
27
+ optional :output_audio_config, :message, 4, "google.cloud.dialogflow.cx.v3.OutputAudioConfig"
28
+ end
29
+ add_message "google.cloud.dialogflow.cx.v3.DetectIntentResponse" do
30
+ optional :response_id, :string, 1
31
+ optional :query_result, :message, 2, "google.cloud.dialogflow.cx.v3.QueryResult"
32
+ optional :output_audio, :bytes, 4
33
+ optional :output_audio_config, :message, 5, "google.cloud.dialogflow.cx.v3.OutputAudioConfig"
34
+ optional :response_type, :enum, 6, "google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType"
35
+ optional :allow_cancellation, :bool, 7
36
+ end
37
+ add_enum "google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType" do
38
+ value :RESPONSE_TYPE_UNSPECIFIED, 0
39
+ value :PARTIAL, 1
40
+ value :FINAL, 2
41
+ end
42
+ add_message "google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest" do
43
+ optional :session, :string, 1
44
+ optional :query_params, :message, 2, "google.cloud.dialogflow.cx.v3.QueryParameters"
45
+ optional :query_input, :message, 3, "google.cloud.dialogflow.cx.v3.QueryInput"
46
+ optional :output_audio_config, :message, 4, "google.cloud.dialogflow.cx.v3.OutputAudioConfig"
47
+ optional :enable_partial_response, :bool, 5
48
+ end
49
+ add_message "google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse" do
50
+ oneof :response do
51
+ optional :recognition_result, :message, 1, "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult"
52
+ optional :detect_intent_response, :message, 2, "google.cloud.dialogflow.cx.v3.DetectIntentResponse"
53
+ end
54
+ end
55
+ add_message "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult" do
56
+ optional :message_type, :enum, 1, "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType"
57
+ optional :transcript, :string, 2
58
+ optional :is_final, :bool, 3
59
+ optional :confidence, :float, 4
60
+ optional :stability, :float, 6
61
+ repeated :speech_word_info, :message, 7, "google.cloud.dialogflow.cx.v3.SpeechWordInfo"
62
+ optional :speech_end_offset, :message, 8, "google.protobuf.Duration"
63
+ optional :language_code, :string, 10
64
+ end
65
+ add_enum "google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType" do
66
+ value :MESSAGE_TYPE_UNSPECIFIED, 0
67
+ value :TRANSCRIPT, 1
68
+ value :END_OF_SINGLE_UTTERANCE, 2
69
+ end
70
+ add_message "google.cloud.dialogflow.cx.v3.QueryParameters" do
71
+ optional :time_zone, :string, 1
72
+ optional :geo_location, :message, 2, "google.type.LatLng"
73
+ repeated :session_entity_types, :message, 3, "google.cloud.dialogflow.cx.v3.SessionEntityType"
74
+ optional :payload, :message, 4, "google.protobuf.Struct"
75
+ optional :parameters, :message, 5, "google.protobuf.Struct"
76
+ optional :current_page, :string, 6
77
+ optional :disable_webhook, :bool, 7
78
+ optional :analyze_query_text_sentiment, :bool, 8
79
+ map :webhook_headers, :string, :string, 10
80
+ repeated :flow_versions, :string, 14
81
+ end
82
+ add_message "google.cloud.dialogflow.cx.v3.QueryInput" do
83
+ optional :language_code, :string, 4
84
+ oneof :input do
85
+ optional :text, :message, 2, "google.cloud.dialogflow.cx.v3.TextInput"
86
+ optional :intent, :message, 3, "google.cloud.dialogflow.cx.v3.IntentInput"
87
+ optional :audio, :message, 5, "google.cloud.dialogflow.cx.v3.AudioInput"
88
+ optional :event, :message, 6, "google.cloud.dialogflow.cx.v3.EventInput"
89
+ optional :dtmf, :message, 7, "google.cloud.dialogflow.cx.v3.DtmfInput"
90
+ end
91
+ end
92
+ add_message "google.cloud.dialogflow.cx.v3.QueryResult" do
93
+ optional :language_code, :string, 2
94
+ optional :parameters, :message, 3, "google.protobuf.Struct"
95
+ repeated :response_messages, :message, 4, "google.cloud.dialogflow.cx.v3.ResponseMessage"
96
+ repeated :webhook_statuses, :message, 13, "google.rpc.Status"
97
+ repeated :webhook_payloads, :message, 6, "google.protobuf.Struct"
98
+ optional :current_page, :message, 7, "google.cloud.dialogflow.cx.v3.Page"
99
+ optional :intent, :message, 8, "google.cloud.dialogflow.cx.v3.Intent"
100
+ optional :intent_detection_confidence, :float, 9
101
+ optional :match, :message, 15, "google.cloud.dialogflow.cx.v3.Match"
102
+ optional :diagnostic_info, :message, 10, "google.protobuf.Struct"
103
+ optional :sentiment_analysis_result, :message, 17, "google.cloud.dialogflow.cx.v3.SentimentAnalysisResult"
104
+ oneof :query do
105
+ optional :text, :string, 1
106
+ optional :trigger_intent, :string, 11
107
+ optional :transcript, :string, 12
108
+ optional :trigger_event, :string, 14
109
+ end
110
+ end
111
+ add_message "google.cloud.dialogflow.cx.v3.TextInput" do
112
+ optional :text, :string, 1
113
+ end
114
+ add_message "google.cloud.dialogflow.cx.v3.IntentInput" do
115
+ optional :intent, :string, 1
116
+ end
117
+ add_message "google.cloud.dialogflow.cx.v3.AudioInput" do
118
+ optional :config, :message, 1, "google.cloud.dialogflow.cx.v3.InputAudioConfig"
119
+ optional :audio, :bytes, 2
120
+ end
121
+ add_message "google.cloud.dialogflow.cx.v3.EventInput" do
122
+ optional :event, :string, 1
123
+ end
124
+ add_message "google.cloud.dialogflow.cx.v3.DtmfInput" do
125
+ optional :digits, :string, 1
126
+ optional :finish_digit, :string, 2
127
+ end
128
+ add_message "google.cloud.dialogflow.cx.v3.Match" do
129
+ optional :intent, :message, 1, "google.cloud.dialogflow.cx.v3.Intent"
130
+ optional :event, :string, 6
131
+ optional :parameters, :message, 2, "google.protobuf.Struct"
132
+ optional :resolved_input, :string, 3
133
+ optional :match_type, :enum, 4, "google.cloud.dialogflow.cx.v3.Match.MatchType"
134
+ optional :confidence, :float, 5
135
+ end
136
+ add_enum "google.cloud.dialogflow.cx.v3.Match.MatchType" do
137
+ value :MATCH_TYPE_UNSPECIFIED, 0
138
+ value :INTENT, 1
139
+ value :DIRECT_INTENT, 2
140
+ value :PARAMETER_FILLING, 3
141
+ value :NO_MATCH, 4
142
+ value :NO_INPUT, 5
143
+ value :EVENT, 6
144
+ end
145
+ add_message "google.cloud.dialogflow.cx.v3.MatchIntentRequest" do
146
+ optional :session, :string, 1
147
+ optional :query_params, :message, 2, "google.cloud.dialogflow.cx.v3.QueryParameters"
148
+ optional :query_input, :message, 3, "google.cloud.dialogflow.cx.v3.QueryInput"
149
+ end
150
+ add_message "google.cloud.dialogflow.cx.v3.MatchIntentResponse" do
151
+ repeated :matches, :message, 4, "google.cloud.dialogflow.cx.v3.Match"
152
+ optional :current_page, :message, 5, "google.cloud.dialogflow.cx.v3.Page"
153
+ oneof :query do
154
+ optional :text, :string, 1
155
+ optional :trigger_intent, :string, 2
156
+ optional :transcript, :string, 3
157
+ optional :trigger_event, :string, 6
158
+ end
159
+ end
160
+ add_message "google.cloud.dialogflow.cx.v3.FulfillIntentRequest" do
161
+ optional :match_intent_request, :message, 1, "google.cloud.dialogflow.cx.v3.MatchIntentRequest"
162
+ optional :match, :message, 2, "google.cloud.dialogflow.cx.v3.Match"
163
+ optional :output_audio_config, :message, 3, "google.cloud.dialogflow.cx.v3.OutputAudioConfig"
164
+ end
165
+ add_message "google.cloud.dialogflow.cx.v3.FulfillIntentResponse" do
166
+ optional :response_id, :string, 1
167
+ optional :query_result, :message, 2, "google.cloud.dialogflow.cx.v3.QueryResult"
168
+ optional :output_audio, :bytes, 3
169
+ optional :output_audio_config, :message, 4, "google.cloud.dialogflow.cx.v3.OutputAudioConfig"
170
+ end
171
+ add_message "google.cloud.dialogflow.cx.v3.SentimentAnalysisResult" do
172
+ optional :score, :float, 1
173
+ optional :magnitude, :float, 2
174
+ end
175
+ end
176
+ end
177
+
178
+ module Google
179
+ module Cloud
180
+ module Dialogflow
181
+ module CX
182
+ module V3
183
+ DetectIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DetectIntentRequest").msgclass
184
+ DetectIntentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DetectIntentResponse").msgclass
185
+ DetectIntentResponse::ResponseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType").enummodule
186
+ StreamingDetectIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest").msgclass
187
+ StreamingDetectIntentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse").msgclass
188
+ StreamingRecognitionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.StreamingRecognitionResult").msgclass
189
+ StreamingRecognitionResult::MessageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType").enummodule
190
+ QueryParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.QueryParameters").msgclass
191
+ QueryInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.QueryInput").msgclass
192
+ QueryResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.QueryResult").msgclass
193
+ TextInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.TextInput").msgclass
194
+ IntentInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.IntentInput").msgclass
195
+ AudioInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.AudioInput").msgclass
196
+ EventInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.EventInput").msgclass
197
+ DtmfInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DtmfInput").msgclass
198
+ Match = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Match").msgclass
199
+ Match::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Match.MatchType").enummodule
200
+ MatchIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.MatchIntentRequest").msgclass
201
+ MatchIntentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.MatchIntentResponse").msgclass
202
+ FulfillIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.FulfillIntentRequest").msgclass
203
+ FulfillIntentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.FulfillIntentResponse").msgclass
204
+ SentimentAnalysisResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SentimentAnalysisResult").msgclass
205
+ end
206
+ end
207
+ end
208
+ end
209
+ end