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.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +32 -0
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +122 -0
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +82 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +1051 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +151 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +94 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +92 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +766 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +117 -0
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +61 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +950 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +98 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +177 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +61 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +851 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb +102 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +145 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +88 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +1200 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +184 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +97 -0
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +750 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/paths.rb +96 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +113 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +805 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +165 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +77 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +89 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +696 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb +157 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +56 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +68 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +715 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/paths.rb +137 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +209 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +71 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +654 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +225 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +53 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +302 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +73 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +1324 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +249 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +53 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +766 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +144 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +59 -0
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +30 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +88 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +57 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +792 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +172 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +704 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb +96 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3.rb +53 -0
- data/lib/google-cloud-dialogflow-cx-v3.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +57 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +301 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +322 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +306 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +279 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +438 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +438 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +126 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +318 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +478 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +220 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +222 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +798 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +184 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +757 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +195 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +121 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +182 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +496 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +326 -0
@@ -0,0 +1,184 @@
|
|
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 Flows
|
26
|
+
# Path helper methods for the Flows API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Agent resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/agents/{agent}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param agent [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def agent_path project:, location:, agent:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified Flow resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param location [String]
|
56
|
+
# @param agent [String]
|
57
|
+
# @param flow [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def flow_path project:, location:, agent:, flow:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
64
|
+
|
65
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}"
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Create a fully-qualified FlowValidationResult resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param location [String]
|
77
|
+
# @param agent [String]
|
78
|
+
# @param flow [String]
|
79
|
+
#
|
80
|
+
# @return [::String]
|
81
|
+
def flow_validation_result_path project:, location:, agent:, flow:
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
85
|
+
|
86
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/validationResult"
|
87
|
+
end
|
88
|
+
|
89
|
+
##
|
90
|
+
# Create a fully-qualified Intent resource string.
|
91
|
+
#
|
92
|
+
# The resource will be in the following format:
|
93
|
+
#
|
94
|
+
# `projects/{project}/locations/{location}/agents/{agent}/intents/{intent}`
|
95
|
+
#
|
96
|
+
# @param project [String]
|
97
|
+
# @param location [String]
|
98
|
+
# @param agent [String]
|
99
|
+
# @param intent [String]
|
100
|
+
#
|
101
|
+
# @return [::String]
|
102
|
+
def intent_path project:, location:, agent:, intent:
|
103
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
104
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
105
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
106
|
+
|
107
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/intents/#{intent}"
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# Create a fully-qualified Page resource string.
|
112
|
+
#
|
113
|
+
# The resource will be in the following format:
|
114
|
+
#
|
115
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}`
|
116
|
+
#
|
117
|
+
# @param project [String]
|
118
|
+
# @param location [String]
|
119
|
+
# @param agent [String]
|
120
|
+
# @param flow [String]
|
121
|
+
# @param page [String]
|
122
|
+
#
|
123
|
+
# @return [::String]
|
124
|
+
def page_path project:, location:, agent:, flow:, page:
|
125
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
126
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
127
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
128
|
+
raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
|
129
|
+
|
130
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/pages/#{page}"
|
131
|
+
end
|
132
|
+
|
133
|
+
##
|
134
|
+
# Create a fully-qualified TransitionRouteGroup resource string.
|
135
|
+
#
|
136
|
+
# The resource will be in the following format:
|
137
|
+
#
|
138
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}`
|
139
|
+
#
|
140
|
+
# @param project [String]
|
141
|
+
# @param location [String]
|
142
|
+
# @param agent [String]
|
143
|
+
# @param flow [String]
|
144
|
+
# @param transition_route_group [String]
|
145
|
+
#
|
146
|
+
# @return [::String]
|
147
|
+
def transition_route_group_path project:, location:, agent:, flow:, transition_route_group:
|
148
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
149
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
150
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
151
|
+
raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
|
152
|
+
|
153
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/transitionRouteGroups/#{transition_route_group}"
|
154
|
+
end
|
155
|
+
|
156
|
+
##
|
157
|
+
# Create a fully-qualified Webhook resource string.
|
158
|
+
#
|
159
|
+
# The resource will be in the following format:
|
160
|
+
#
|
161
|
+
# `projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}`
|
162
|
+
#
|
163
|
+
# @param project [String]
|
164
|
+
# @param location [String]
|
165
|
+
# @param agent [String]
|
166
|
+
# @param webhook [String]
|
167
|
+
#
|
168
|
+
# @return [::String]
|
169
|
+
def webhook_path project:, location:, agent:, webhook:
|
170
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
171
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
172
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
173
|
+
|
174
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/webhooks/#{webhook}"
|
175
|
+
end
|
176
|
+
|
177
|
+
extend self
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
@@ -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 "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/flows/credentials"
|
26
|
+
require "google/cloud/dialogflow/cx/v3/flows/paths"
|
27
|
+
require "google/cloud/dialogflow/cx/v3/flows/operations"
|
28
|
+
require "google/cloud/dialogflow/cx/v3/flows/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Dialogflow
|
33
|
+
module CX
|
34
|
+
module V3
|
35
|
+
##
|
36
|
+
# Service for managing {::Google::Cloud::Dialogflow::CX::V3::Flow Flows}.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/dialogflow/cx/v3/flows"
|
41
|
+
# client = ::Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
42
|
+
#
|
43
|
+
module Flows
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
helper_path = ::File.join __dir__, "flows", "helpers.rb"
|
52
|
+
require "google/cloud/dialogflow/cx/v3/flows/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/cx/v3/fulfillment.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
|
8
|
+
require 'google/cloud/dialogflow/cx/v3/response_message_pb'
|
9
|
+
require 'google/protobuf/struct_pb'
|
10
|
+
require 'google/api/annotations_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/dialogflow/cx/v3/fulfillment.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.dialogflow.cx.v3.Fulfillment" do
|
14
|
+
repeated :messages, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage"
|
15
|
+
optional :webhook, :string, 2
|
16
|
+
optional :return_partial_responses, :bool, 8
|
17
|
+
optional :tag, :string, 3
|
18
|
+
repeated :set_parameter_actions, :message, 4, "google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction"
|
19
|
+
repeated :conditional_cases, :message, 5, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases"
|
20
|
+
end
|
21
|
+
add_message "google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction" do
|
22
|
+
optional :parameter, :string, 1
|
23
|
+
optional :value, :message, 2, "google.protobuf.Value"
|
24
|
+
end
|
25
|
+
add_message "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases" do
|
26
|
+
repeated :cases, :message, 1, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case"
|
27
|
+
end
|
28
|
+
add_message "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case" do
|
29
|
+
optional :condition, :string, 1
|
30
|
+
repeated :case_content, :message, 2, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent"
|
31
|
+
end
|
32
|
+
add_message "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent" do
|
33
|
+
oneof :cases_or_message do
|
34
|
+
optional :message, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage"
|
35
|
+
optional :additional_cases, :message, 2, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Cloud
|
43
|
+
module Dialogflow
|
44
|
+
module CX
|
45
|
+
module V3
|
46
|
+
Fulfillment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment").msgclass
|
47
|
+
Fulfillment::SetParameterAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction").msgclass
|
48
|
+
Fulfillment::ConditionalCases = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases").msgclass
|
49
|
+
Fulfillment::ConditionalCases::Case = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case").msgclass
|
50
|
+
Fulfillment::ConditionalCases::Case::CaseContent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent").msgclass
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/cx/v3/intent.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/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf/timestamp_pb'
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/cloud/dialogflow/cx/v3/intent.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.dialogflow.cx.v3.Intent" do
|
17
|
+
optional :name, :string, 1
|
18
|
+
optional :display_name, :string, 2
|
19
|
+
repeated :training_phrases, :message, 3, "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase"
|
20
|
+
repeated :parameters, :message, 4, "google.cloud.dialogflow.cx.v3.Intent.Parameter"
|
21
|
+
optional :priority, :int32, 5
|
22
|
+
optional :is_fallback, :bool, 6
|
23
|
+
map :labels, :string, :string, 7
|
24
|
+
optional :description, :string, 8
|
25
|
+
end
|
26
|
+
add_message "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase" do
|
27
|
+
optional :id, :string, 1
|
28
|
+
repeated :parts, :message, 2, "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part"
|
29
|
+
optional :repeat_count, :int32, 3
|
30
|
+
end
|
31
|
+
add_message "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part" do
|
32
|
+
optional :text, :string, 1
|
33
|
+
optional :parameter_id, :string, 2
|
34
|
+
end
|
35
|
+
add_message "google.cloud.dialogflow.cx.v3.Intent.Parameter" do
|
36
|
+
optional :id, :string, 1
|
37
|
+
optional :entity_type, :string, 2
|
38
|
+
optional :is_list, :bool, 3
|
39
|
+
optional :redact, :bool, 4
|
40
|
+
end
|
41
|
+
add_message "google.cloud.dialogflow.cx.v3.ListIntentsRequest" do
|
42
|
+
optional :parent, :string, 1
|
43
|
+
optional :language_code, :string, 2
|
44
|
+
optional :intent_view, :enum, 5, "google.cloud.dialogflow.cx.v3.IntentView"
|
45
|
+
optional :page_size, :int32, 3
|
46
|
+
optional :page_token, :string, 4
|
47
|
+
end
|
48
|
+
add_message "google.cloud.dialogflow.cx.v3.ListIntentsResponse" do
|
49
|
+
repeated :intents, :message, 1, "google.cloud.dialogflow.cx.v3.Intent"
|
50
|
+
optional :next_page_token, :string, 2
|
51
|
+
end
|
52
|
+
add_message "google.cloud.dialogflow.cx.v3.GetIntentRequest" do
|
53
|
+
optional :name, :string, 1
|
54
|
+
optional :language_code, :string, 2
|
55
|
+
end
|
56
|
+
add_message "google.cloud.dialogflow.cx.v3.CreateIntentRequest" do
|
57
|
+
optional :parent, :string, 1
|
58
|
+
optional :intent, :message, 2, "google.cloud.dialogflow.cx.v3.Intent"
|
59
|
+
optional :language_code, :string, 3
|
60
|
+
end
|
61
|
+
add_message "google.cloud.dialogflow.cx.v3.UpdateIntentRequest" do
|
62
|
+
optional :intent, :message, 1, "google.cloud.dialogflow.cx.v3.Intent"
|
63
|
+
optional :language_code, :string, 2
|
64
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
65
|
+
end
|
66
|
+
add_message "google.cloud.dialogflow.cx.v3.DeleteIntentRequest" do
|
67
|
+
optional :name, :string, 1
|
68
|
+
end
|
69
|
+
add_enum "google.cloud.dialogflow.cx.v3.IntentView" do
|
70
|
+
value :INTENT_VIEW_UNSPECIFIED, 0
|
71
|
+
value :INTENT_VIEW_PARTIAL, 1
|
72
|
+
value :INTENT_VIEW_FULL, 2
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
module Google
|
78
|
+
module Cloud
|
79
|
+
module Dialogflow
|
80
|
+
module CX
|
81
|
+
module V3
|
82
|
+
Intent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent").msgclass
|
83
|
+
Intent::TrainingPhrase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase").msgclass
|
84
|
+
Intent::TrainingPhrase::Part = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part").msgclass
|
85
|
+
Intent::Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent.Parameter").msgclass
|
86
|
+
ListIntentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListIntentsRequest").msgclass
|
87
|
+
ListIntentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListIntentsResponse").msgclass
|
88
|
+
GetIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetIntentRequest").msgclass
|
89
|
+
CreateIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CreateIntentRequest").msgclass
|
90
|
+
UpdateIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateIntentRequest").msgclass
|
91
|
+
DeleteIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteIntentRequest").msgclass
|
92
|
+
IntentView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.IntentView").enummodule
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/dialogflow/cx/v3/intent.proto for package 'Google.Cloud.Dialogflow.CX.V3'
|
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/cx/v3/intent_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dialogflow
|
25
|
+
module CX
|
26
|
+
module V3
|
27
|
+
module Intents
|
28
|
+
# Service for managing [Intents][google.cloud.dialogflow.cx.v3.Intent].
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.dialogflow.cx.v3.Intents'
|
36
|
+
|
37
|
+
# Returns the list of all intents in the specified agent.
|
38
|
+
rpc :ListIntents, ::Google::Cloud::Dialogflow::CX::V3::ListIntentsRequest, ::Google::Cloud::Dialogflow::CX::V3::ListIntentsResponse
|
39
|
+
# Retrieves the specified intent.
|
40
|
+
rpc :GetIntent, ::Google::Cloud::Dialogflow::CX::V3::GetIntentRequest, ::Google::Cloud::Dialogflow::CX::V3::Intent
|
41
|
+
# Creates an intent in the specified agent.
|
42
|
+
#
|
43
|
+
# Note: You should always train a flow prior to sending it queries. See the
|
44
|
+
# [training
|
45
|
+
# documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
|
46
|
+
rpc :CreateIntent, ::Google::Cloud::Dialogflow::CX::V3::CreateIntentRequest, ::Google::Cloud::Dialogflow::CX::V3::Intent
|
47
|
+
# Updates the specified intent.
|
48
|
+
#
|
49
|
+
# Note: You should always train a flow prior to sending it queries. See the
|
50
|
+
# [training
|
51
|
+
# documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
|
52
|
+
rpc :UpdateIntent, ::Google::Cloud::Dialogflow::CX::V3::UpdateIntentRequest, ::Google::Cloud::Dialogflow::CX::V3::Intent
|
53
|
+
# Deletes the specified intent.
|
54
|
+
#
|
55
|
+
# Note: You should always train a flow prior to sending it queries. See the
|
56
|
+
# [training
|
57
|
+
# documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
|
58
|
+
rpc :DeleteIntent, ::Google::Cloud::Dialogflow::CX::V3::DeleteIntentRequest, ::Google::Protobuf::Empty
|
59
|
+
end
|
60
|
+
|
61
|
+
Stub = Service.rpc_stub_class
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|