google-cloud-dialogflow-cx-v3 0.7.1 → 0.9.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.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +8 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +42 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +17 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +14 -0
- data/lib/google/cloud/dialogflow/cx/v3.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +15 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +53 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +16 -2
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +2 -2
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d31e7df7582a95f671b67239c0c139e7cc23eecfa18af68fe163e7a8f7ff4e06
|
4
|
+
data.tar.gz: b470b8e017d16a57e2ac18c3f0654cf70939abec70c608ea70c0ea99d9be6631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92cf02da0b6a1c7edc8ac915662f2d6d163d8e2ebf682dbaae7853430e65d91beb125cf3a9ef56c72a4c0c55f700ddcb053667a0c17219a4481a2fa5f0e852bc
|
7
|
+
data.tar.gz: 80eca910384ebeafd2e739f43c9a84344ef074eca5d5a3b1557dd6ca7afe751a486daaffd7f466f7d1858cd1412545d7c8ec0f1d64a084bc674f82b96290b1e0
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/advanced_settings.proto
|
3
3
|
|
4
|
-
require 'google/api/field_behavior_pb'
|
5
4
|
require 'google/protobuf'
|
6
5
|
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/cloud/dialogflow/cx/v3/advanced_settings.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings" do
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/agent.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -10,7 +12,6 @@ require 'google/cloud/dialogflow/cx/v3/flow_pb'
|
|
10
12
|
require 'google/longrunning/operations_pb'
|
11
13
|
require 'google/protobuf/empty_pb'
|
12
14
|
require 'google/protobuf/field_mask_pb'
|
13
|
-
require 'google/protobuf'
|
14
15
|
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/dialogflow/cx/v3/agent.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/agent_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -145,6 +146,12 @@ module Google
|
|
145
146
|
config.endpoint = @config.endpoint
|
146
147
|
end
|
147
148
|
|
149
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
150
|
+
config.credentials = credentials
|
151
|
+
config.quota_project = @quota_project_id
|
152
|
+
config.endpoint = @config.endpoint
|
153
|
+
end
|
154
|
+
|
148
155
|
@agents_stub = ::Gapic::ServiceStub.new(
|
149
156
|
::Google::Cloud::Dialogflow::CX::V3::Agents::Stub,
|
150
157
|
credentials: credentials,
|
@@ -161,6 +168,13 @@ module Google
|
|
161
168
|
#
|
162
169
|
attr_reader :operations_client
|
163
170
|
|
171
|
+
##
|
172
|
+
# Get the associated client for mix-in of the Locations.
|
173
|
+
#
|
174
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
175
|
+
#
|
176
|
+
attr_reader :location_client
|
177
|
+
|
164
178
|
# Service calls
|
165
179
|
|
166
180
|
##
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/audio_config.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/protobuf/duration_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/cloud/dialogflow/cx/v3/audio_config.proto", :syntax => :proto3) do
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/changelog.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/protobuf'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/cloud/dialogflow/cx/v3/changelog.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/changelog_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -139,6 +140,12 @@ module Google
|
|
139
140
|
@quota_project_id = @config.quota_project
|
140
141
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
142
|
|
143
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.quota_project = @quota_project_id
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
142
149
|
@changelogs_stub = ::Gapic::ServiceStub.new(
|
143
150
|
::Google::Cloud::Dialogflow::CX::V3::Changelogs::Stub,
|
144
151
|
credentials: credentials,
|
@@ -148,6 +155,13 @@ module Google
|
|
148
155
|
)
|
149
156
|
end
|
150
157
|
|
158
|
+
##
|
159
|
+
# Get the associated client for mix-in of the Locations.
|
160
|
+
#
|
161
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
162
|
+
#
|
163
|
+
attr_reader :location_client
|
164
|
+
|
151
165
|
# Service calls
|
152
166
|
|
153
167
|
##
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/deployment.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/protobuf'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/cloud/dialogflow/cx/v3/deployment.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/deployment_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -139,6 +140,12 @@ module Google
|
|
139
140
|
@quota_project_id = @config.quota_project
|
140
141
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
142
|
|
143
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.quota_project = @quota_project_id
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
142
149
|
@deployments_stub = ::Gapic::ServiceStub.new(
|
143
150
|
::Google::Cloud::Dialogflow::CX::V3::Deployments::Stub,
|
144
151
|
credentials: credentials,
|
@@ -148,6 +155,13 @@ module Google
|
|
148
155
|
)
|
149
156
|
end
|
150
157
|
|
158
|
+
##
|
159
|
+
# Get the associated client for mix-in of the Locations.
|
160
|
+
#
|
161
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
162
|
+
#
|
163
|
+
attr_reader :location_client
|
164
|
+
|
151
165
|
# Service calls
|
152
166
|
|
153
167
|
##
|
@@ -1,13 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/entity_type.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/protobuf/empty_pb'
|
9
11
|
require 'google/protobuf/field_mask_pb'
|
10
|
-
require 'google/protobuf'
|
11
12
|
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
14
|
add_file("google/cloud/dialogflow/cx/v3/entity_type.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/entity_type_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -139,6 +140,12 @@ module Google
|
|
139
140
|
@quota_project_id = @config.quota_project
|
140
141
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
142
|
|
143
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.quota_project = @quota_project_id
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
142
149
|
@entity_types_stub = ::Gapic::ServiceStub.new(
|
143
150
|
::Google::Cloud::Dialogflow::CX::V3::EntityTypes::Stub,
|
144
151
|
credentials: credentials,
|
@@ -148,6 +155,13 @@ module Google
|
|
148
155
|
)
|
149
156
|
end
|
150
157
|
|
158
|
+
##
|
159
|
+
# Get the associated client for mix-in of the Locations.
|
160
|
+
#
|
161
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
162
|
+
#
|
163
|
+
attr_reader :location_client
|
164
|
+
|
151
165
|
# Service calls
|
152
166
|
|
153
167
|
##
|
@@ -1,16 +1,18 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/environment.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/cloud/dialogflow/cx/v3/test_case_pb'
|
11
|
+
require 'google/cloud/dialogflow/cx/v3/webhook_pb'
|
9
12
|
require 'google/longrunning/operations_pb'
|
10
13
|
require 'google/protobuf/empty_pb'
|
11
14
|
require 'google/protobuf/field_mask_pb'
|
12
15
|
require 'google/protobuf/timestamp_pb'
|
13
|
-
require 'google/protobuf'
|
14
16
|
|
15
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
18
|
add_file("google/cloud/dialogflow/cx/v3/environment.proto", :syntax => :proto3) do
|
@@ -21,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
21
23
|
repeated :version_configs, :message, 6, "google.cloud.dialogflow.cx.v3.Environment.VersionConfig"
|
22
24
|
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
23
25
|
optional :test_cases_config, :message, 7, "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig"
|
26
|
+
optional :webhook_config, :message, 10, "google.cloud.dialogflow.cx.v3.Environment.WebhookConfig"
|
24
27
|
end
|
25
28
|
add_message "google.cloud.dialogflow.cx.v3.Environment.VersionConfig" do
|
26
29
|
optional :version, :string, 1
|
@@ -30,6 +33,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
30
33
|
optional :enable_continuous_run, :bool, 2
|
31
34
|
optional :enable_predeployment_run, :bool, 3
|
32
35
|
end
|
36
|
+
add_message "google.cloud.dialogflow.cx.v3.Environment.WebhookConfig" do
|
37
|
+
repeated :webhook_overrides, :message, 1, "google.cloud.dialogflow.cx.v3.Webhook"
|
38
|
+
end
|
33
39
|
add_message "google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest" do
|
34
40
|
optional :parent, :string, 1
|
35
41
|
optional :page_size, :int32, 2
|
@@ -113,6 +119,7 @@ module Google
|
|
113
119
|
Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment").msgclass
|
114
120
|
Environment::VersionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.VersionConfig").msgclass
|
115
121
|
Environment::TestCasesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig").msgclass
|
122
|
+
Environment::WebhookConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.WebhookConfig").msgclass
|
116
123
|
ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest").msgclass
|
117
124
|
ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse").msgclass
|
118
125
|
GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetEnvironmentRequest").msgclass
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/environment_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -145,6 +146,12 @@ module Google
|
|
145
146
|
config.endpoint = @config.endpoint
|
146
147
|
end
|
147
148
|
|
149
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
150
|
+
config.credentials = credentials
|
151
|
+
config.quota_project = @quota_project_id
|
152
|
+
config.endpoint = @config.endpoint
|
153
|
+
end
|
154
|
+
|
148
155
|
@environments_stub = ::Gapic::ServiceStub.new(
|
149
156
|
::Google::Cloud::Dialogflow::CX::V3::Environments::Stub,
|
150
157
|
credentials: credentials,
|
@@ -161,6 +168,13 @@ module Google
|
|
161
168
|
#
|
162
169
|
attr_reader :operations_client
|
163
170
|
|
171
|
+
##
|
172
|
+
# Get the associated client for mix-in of the Locations.
|
173
|
+
#
|
174
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
175
|
+
#
|
176
|
+
attr_reader :location_client
|
177
|
+
|
164
178
|
# Service calls
|
165
179
|
|
166
180
|
##
|
@@ -65,6 +65,27 @@ module Google
|
|
65
65
|
"projects/#{project}/locations/#{location}/agents/#{agent}/environments/#{environment}"
|
66
66
|
end
|
67
67
|
|
68
|
+
##
|
69
|
+
# Create a fully-qualified Service resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param location [String]
|
77
|
+
# @param namespace [String]
|
78
|
+
# @param service [String]
|
79
|
+
#
|
80
|
+
# @return [::String]
|
81
|
+
def service_path project:, location:, namespace:, service:
|
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, "namespace cannot contain /" if namespace.to_s.include? "/"
|
85
|
+
|
86
|
+
"projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
|
87
|
+
end
|
88
|
+
|
68
89
|
##
|
69
90
|
# Create a fully-qualified TestCase resource string.
|
70
91
|
#
|
@@ -109,6 +130,27 @@ module Google
|
|
109
130
|
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/versions/#{version}"
|
110
131
|
end
|
111
132
|
|
133
|
+
##
|
134
|
+
# Create a fully-qualified Webhook resource string.
|
135
|
+
#
|
136
|
+
# The resource will be in the following format:
|
137
|
+
#
|
138
|
+
# `projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}`
|
139
|
+
#
|
140
|
+
# @param project [String]
|
141
|
+
# @param location [String]
|
142
|
+
# @param agent [String]
|
143
|
+
# @param webhook [String]
|
144
|
+
#
|
145
|
+
# @return [::String]
|
146
|
+
def webhook_path project:, location:, agent:, webhook:
|
147
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
148
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
149
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
150
|
+
|
151
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/webhooks/#{webhook}"
|
152
|
+
end
|
153
|
+
|
112
154
|
extend self
|
113
155
|
end
|
114
156
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/experiment.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -9,7 +11,6 @@ require 'google/protobuf/duration_pb'
|
|
9
11
|
require 'google/protobuf/empty_pb'
|
10
12
|
require 'google/protobuf/field_mask_pb'
|
11
13
|
require 'google/protobuf/timestamp_pb'
|
12
|
-
require 'google/protobuf'
|
13
14
|
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
16
|
add_file("google/cloud/dialogflow/cx/v3/experiment.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/experiment_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -139,6 +140,12 @@ module Google
|
|
139
140
|
@quota_project_id = @config.quota_project
|
140
141
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
142
|
|
143
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.quota_project = @quota_project_id
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
142
149
|
@experiments_stub = ::Gapic::ServiceStub.new(
|
143
150
|
::Google::Cloud::Dialogflow::CX::V3::Experiments::Stub,
|
144
151
|
credentials: credentials,
|
@@ -148,6 +155,13 @@ module Google
|
|
148
155
|
)
|
149
156
|
end
|
150
157
|
|
158
|
+
##
|
159
|
+
# Get the associated client for mix-in of the Locations.
|
160
|
+
#
|
161
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
162
|
+
#
|
163
|
+
attr_reader :location_client
|
164
|
+
|
151
165
|
# Service calls
|
152
166
|
|
153
167
|
##
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/flow.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -11,7 +13,6 @@ require 'google/longrunning/operations_pb'
|
|
11
13
|
require 'google/protobuf/empty_pb'
|
12
14
|
require 'google/protobuf/field_mask_pb'
|
13
15
|
require 'google/protobuf/timestamp_pb'
|
14
|
-
require 'google/protobuf'
|
15
16
|
|
16
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
18
|
add_file("google/cloud/dialogflow/cx/v3/flow.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/flow_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -145,6 +146,12 @@ module Google
|
|
145
146
|
config.endpoint = @config.endpoint
|
146
147
|
end
|
147
148
|
|
149
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
150
|
+
config.credentials = credentials
|
151
|
+
config.quota_project = @quota_project_id
|
152
|
+
config.endpoint = @config.endpoint
|
153
|
+
end
|
154
|
+
|
148
155
|
@flows_stub = ::Gapic::ServiceStub.new(
|
149
156
|
::Google::Cloud::Dialogflow::CX::V3::Flows::Stub,
|
150
157
|
credentials: credentials,
|
@@ -161,6 +168,13 @@ module Google
|
|
161
168
|
#
|
162
169
|
attr_reader :operations_client
|
163
170
|
|
171
|
+
##
|
172
|
+
# Get the associated client for mix-in of the Locations.
|
173
|
+
#
|
174
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
175
|
+
#
|
176
|
+
attr_reader :location_client
|
177
|
+
|
164
178
|
# Service calls
|
165
179
|
|
166
180
|
##
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/fulfillment.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/resource_pb'
|
5
7
|
require 'google/cloud/dialogflow/cx/v3/response_message_pb'
|
6
8
|
require 'google/protobuf/struct_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/cloud/dialogflow/cx/v3/fulfillment.proto", :syntax => :proto3) do
|
@@ -1,13 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/intent.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/protobuf/empty_pb'
|
9
11
|
require 'google/protobuf/field_mask_pb'
|
10
|
-
require 'google/protobuf'
|
11
12
|
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
14
|
add_file("google/cloud/dialogflow/cx/v3/intent.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/intent_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -139,6 +140,12 @@ module Google
|
|
139
140
|
@quota_project_id = @config.quota_project
|
140
141
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
142
|
|
143
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.quota_project = @quota_project_id
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
142
149
|
@intents_stub = ::Gapic::ServiceStub.new(
|
143
150
|
::Google::Cloud::Dialogflow::CX::V3::Intents::Stub,
|
144
151
|
credentials: credentials,
|
@@ -148,6 +155,13 @@ module Google
|
|
148
155
|
)
|
149
156
|
end
|
150
157
|
|
158
|
+
##
|
159
|
+
# Get the associated client for mix-in of the Locations.
|
160
|
+
#
|
161
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
162
|
+
#
|
163
|
+
attr_reader :location_client
|
164
|
+
|
151
165
|
# Service calls
|
152
166
|
|
153
167
|
##
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/page.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -9,7 +11,6 @@ require 'google/cloud/dialogflow/cx/v3/fulfillment_pb'
|
|
9
11
|
require 'google/protobuf/empty_pb'
|
10
12
|
require 'google/protobuf/field_mask_pb'
|
11
13
|
require 'google/protobuf/struct_pb'
|
12
|
-
require 'google/protobuf'
|
13
14
|
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
16
|
add_file("google/cloud/dialogflow/cx/v3/page.proto", :syntax => :proto3) do
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dialogflow/cx/v3/page_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -139,6 +140,12 @@ module Google
|
|
139
140
|
@quota_project_id = @config.quota_project
|
140
141
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
142
|
|
143
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.quota_project = @quota_project_id
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
142
149
|
@pages_stub = ::Gapic::ServiceStub.new(
|
143
150
|
::Google::Cloud::Dialogflow::CX::V3::Pages::Stub,
|
144
151
|
credentials: credentials,
|
@@ -148,6 +155,13 @@ module Google
|
|
148
155
|
)
|
149
156
|
end
|
150
157
|
|
158
|
+
##
|
159
|
+
# Get the associated client for mix-in of the Locations.
|
160
|
+
#
|
161
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
162
|
+
#
|
163
|
+
attr_reader :location_client
|
164
|
+
|
151
165
|
# Service calls
|
152
166
|
|
153
167
|
##
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/response_message.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/protobuf/struct_pb'
|
6
|
-
require 'google/protobuf'
|
7
8
|
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("google/cloud/dialogflow/cx/v3/response_message.proto", :syntax => :proto3) do
|