google-cloud-dialogflow-cx-v3 0.1.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +15 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
- metadata +16 -2
@@ -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/deployments/credentials"
|
26
|
+
require "google/cloud/dialogflow/cx/v3/deployments/paths"
|
27
|
+
require "google/cloud/dialogflow/cx/v3/deployments/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::Deployment Deployments}.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/dialogflow/cx/v3/deployments"
|
40
|
+
# client = ::Google::Cloud::Dialogflow::CX::V3::Deployments::Client.new
|
41
|
+
#
|
42
|
+
module Deployments
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "deployments", "helpers.rb"
|
51
|
+
require "google/cloud/dialogflow/cx/v3/deployments/helpers" if ::File.file? helper_path
|
@@ -1,14 +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
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/protobuf/empty_pb'
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/dialogflow/cx/v3/entity_type.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.dialogflow.cx.v3.EntityType" do
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3.EntityType].
|
29
29
|
class Service
|
30
30
|
|
31
|
-
include GRPC::GenericService
|
31
|
+
include ::GRPC::GenericService
|
32
32
|
|
33
33
|
self.marshal_class_method = :encode
|
34
34
|
self.unmarshal_class_method = :decode
|
@@ -198,6 +198,27 @@ module Google
|
|
198
198
|
#
|
199
199
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
200
200
|
#
|
201
|
+
# @example Basic example
|
202
|
+
# require "google/cloud/dialogflow/cx/v3"
|
203
|
+
#
|
204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
205
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
206
|
+
#
|
207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
208
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest.new
|
209
|
+
#
|
210
|
+
# # Call the list_entity_types method.
|
211
|
+
# result = client.list_entity_types request
|
212
|
+
#
|
213
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
214
|
+
# # iterate over all elements by calling #each, and the enumerable
|
215
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
216
|
+
# # methods are also available for managing paging directly.
|
217
|
+
# result.each do |response|
|
218
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::EntityType.
|
219
|
+
# p response
|
220
|
+
# end
|
221
|
+
#
|
201
222
|
def list_entity_types request, options = nil
|
202
223
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
203
224
|
|
@@ -215,9 +236,11 @@ module Google
|
|
215
236
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
216
237
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
217
238
|
|
218
|
-
header_params = {
|
219
|
-
|
220
|
-
|
239
|
+
header_params = {}
|
240
|
+
if request.parent
|
241
|
+
header_params["parent"] = request.parent
|
242
|
+
end
|
243
|
+
|
221
244
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
222
245
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
223
246
|
|
@@ -282,6 +305,21 @@ module Google
|
|
282
305
|
#
|
283
306
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
284
307
|
#
|
308
|
+
# @example Basic example
|
309
|
+
# require "google/cloud/dialogflow/cx/v3"
|
310
|
+
#
|
311
|
+
# # Create a client object. The client can be reused for multiple calls.
|
312
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
313
|
+
#
|
314
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
315
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetEntityTypeRequest.new
|
316
|
+
#
|
317
|
+
# # Call the get_entity_type method.
|
318
|
+
# result = client.get_entity_type request
|
319
|
+
#
|
320
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
|
321
|
+
# p result
|
322
|
+
#
|
285
323
|
def get_entity_type request, options = nil
|
286
324
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
325
|
|
@@ -299,9 +337,11 @@ module Google
|
|
299
337
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
300
338
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
301
339
|
|
302
|
-
header_params = {
|
303
|
-
|
304
|
-
|
340
|
+
header_params = {}
|
341
|
+
if request.name
|
342
|
+
header_params["name"] = request.name
|
343
|
+
end
|
344
|
+
|
305
345
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
306
346
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
307
347
|
|
@@ -369,6 +409,21 @@ module Google
|
|
369
409
|
#
|
370
410
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
371
411
|
#
|
412
|
+
# @example Basic example
|
413
|
+
# require "google/cloud/dialogflow/cx/v3"
|
414
|
+
#
|
415
|
+
# # Create a client object. The client can be reused for multiple calls.
|
416
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
417
|
+
#
|
418
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
419
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateEntityTypeRequest.new
|
420
|
+
#
|
421
|
+
# # Call the create_entity_type method.
|
422
|
+
# result = client.create_entity_type request
|
423
|
+
#
|
424
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
|
425
|
+
# p result
|
426
|
+
#
|
372
427
|
def create_entity_type request, options = nil
|
373
428
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
374
429
|
|
@@ -386,9 +441,11 @@ module Google
|
|
386
441
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
387
442
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
388
443
|
|
389
|
-
header_params = {
|
390
|
-
|
391
|
-
|
444
|
+
header_params = {}
|
445
|
+
if request.parent
|
446
|
+
header_params["parent"] = request.parent
|
447
|
+
end
|
448
|
+
|
392
449
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
393
450
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
394
451
|
|
@@ -455,6 +512,21 @@ module Google
|
|
455
512
|
#
|
456
513
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
457
514
|
#
|
515
|
+
# @example Basic example
|
516
|
+
# require "google/cloud/dialogflow/cx/v3"
|
517
|
+
#
|
518
|
+
# # Create a client object. The client can be reused for multiple calls.
|
519
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
520
|
+
#
|
521
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
522
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateEntityTypeRequest.new
|
523
|
+
#
|
524
|
+
# # Call the update_entity_type method.
|
525
|
+
# result = client.update_entity_type request
|
526
|
+
#
|
527
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
|
528
|
+
# p result
|
529
|
+
#
|
458
530
|
def update_entity_type request, options = nil
|
459
531
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
460
532
|
|
@@ -472,9 +544,11 @@ module Google
|
|
472
544
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
473
545
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
474
546
|
|
475
|
-
header_params = {
|
476
|
-
|
477
|
-
|
547
|
+
header_params = {}
|
548
|
+
if request.entity_type&.name
|
549
|
+
header_params["entity_type.name"] = request.entity_type.name
|
550
|
+
end
|
551
|
+
|
478
552
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
479
553
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
480
554
|
|
@@ -540,6 +614,21 @@ module Google
|
|
540
614
|
#
|
541
615
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
542
616
|
#
|
617
|
+
# @example Basic example
|
618
|
+
# require "google/cloud/dialogflow/cx/v3"
|
619
|
+
#
|
620
|
+
# # Create a client object. The client can be reused for multiple calls.
|
621
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
622
|
+
#
|
623
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
624
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteEntityTypeRequest.new
|
625
|
+
#
|
626
|
+
# # Call the delete_entity_type method.
|
627
|
+
# result = client.delete_entity_type request
|
628
|
+
#
|
629
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
630
|
+
# p result
|
631
|
+
#
|
543
632
|
def delete_entity_type request, options = nil
|
544
633
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
545
634
|
|
@@ -557,9 +646,11 @@ module Google
|
|
557
646
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
558
647
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
559
648
|
|
560
|
-
header_params = {
|
561
|
-
|
562
|
-
|
649
|
+
header_params = {}
|
650
|
+
if request.name
|
651
|
+
header_params["name"] = request.name
|
652
|
+
end
|
653
|
+
|
563
654
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
564
655
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
565
656
|
|
@@ -1,17 +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
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/cloud/dialogflow/cx/v3/test_case_pb'
|
9
|
+
require 'google/cloud/dialogflow/cx/v3/webhook_pb'
|
11
10
|
require 'google/longrunning/operations_pb'
|
12
11
|
require 'google/protobuf/empty_pb'
|
13
12
|
require 'google/protobuf/field_mask_pb'
|
14
13
|
require 'google/protobuf/timestamp_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/dialogflow/cx/v3/environment.proto", :syntax => :proto3) do
|
17
18
|
add_message "google.cloud.dialogflow.cx.v3.Environment" do
|
@@ -20,10 +21,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
21
|
optional :description, :string, 3
|
21
22
|
repeated :version_configs, :message, 6, "google.cloud.dialogflow.cx.v3.Environment.VersionConfig"
|
22
23
|
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
24
|
+
optional :test_cases_config, :message, 7, "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig"
|
23
25
|
end
|
24
26
|
add_message "google.cloud.dialogflow.cx.v3.Environment.VersionConfig" do
|
25
27
|
optional :version, :string, 1
|
26
28
|
end
|
29
|
+
add_message "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig" do
|
30
|
+
repeated :test_cases, :string, 1
|
31
|
+
optional :enable_continuous_run, :bool, 2
|
32
|
+
optional :enable_predeployment_run, :bool, 3
|
33
|
+
end
|
27
34
|
add_message "google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest" do
|
28
35
|
optional :parent, :string, 1
|
29
36
|
optional :page_size, :int32, 2
|
@@ -85,6 +92,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
85
92
|
repeated :continuous_test_results, :message, 1, "google.cloud.dialogflow.cx.v3.ContinuousTestResult"
|
86
93
|
optional :next_page_token, :string, 2
|
87
94
|
end
|
95
|
+
add_message "google.cloud.dialogflow.cx.v3.DeployFlowRequest" do
|
96
|
+
optional :environment, :string, 1
|
97
|
+
optional :flow_version, :string, 2
|
98
|
+
end
|
99
|
+
add_message "google.cloud.dialogflow.cx.v3.DeployFlowResponse" do
|
100
|
+
optional :environment, :message, 1, "google.cloud.dialogflow.cx.v3.Environment"
|
101
|
+
optional :deployment, :string, 2
|
102
|
+
end
|
103
|
+
add_message "google.cloud.dialogflow.cx.v3.DeployFlowMetadata" do
|
104
|
+
repeated :test_errors, :message, 1, "google.cloud.dialogflow.cx.v3.TestError"
|
105
|
+
end
|
88
106
|
end
|
89
107
|
end
|
90
108
|
|
@@ -95,6 +113,7 @@ module Google
|
|
95
113
|
module V3
|
96
114
|
Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment").msgclass
|
97
115
|
Environment::VersionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.VersionConfig").msgclass
|
116
|
+
Environment::TestCasesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig").msgclass
|
98
117
|
ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest").msgclass
|
99
118
|
ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse").msgclass
|
100
119
|
GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetEnvironmentRequest").msgclass
|
@@ -110,6 +129,9 @@ module Google
|
|
110
129
|
RunContinuousTestMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata").msgclass
|
111
130
|
ListContinuousTestResultsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest").msgclass
|
112
131
|
ListContinuousTestResultsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse").msgclass
|
132
|
+
DeployFlowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeployFlowRequest").msgclass
|
133
|
+
DeployFlowResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeployFlowResponse").msgclass
|
134
|
+
DeployFlowMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeployFlowMetadata").msgclass
|
113
135
|
end
|
114
136
|
end
|
115
137
|
end
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment].
|
29
29
|
class Service
|
30
30
|
|
31
|
-
include GRPC::GenericService
|
31
|
+
include ::GRPC::GenericService
|
32
32
|
|
33
33
|
self.marshal_class_method = :encode
|
34
34
|
self.unmarshal_class_method = :decode
|
@@ -39,17 +39,49 @@ module Google
|
|
39
39
|
# Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
|
40
40
|
rpc :GetEnvironment, ::Google::Cloud::Dialogflow::CX::V3::GetEnvironmentRequest, ::Google::Cloud::Dialogflow::CX::V3::Environment
|
41
41
|
# Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
|
42
|
+
#
|
43
|
+
# This method is a [long-running
|
44
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
45
|
+
# The returned `Operation` type has the following method-specific fields:
|
46
|
+
#
|
47
|
+
# - `metadata`: An empty [Struct
|
48
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
49
|
+
# - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
|
42
50
|
rpc :CreateEnvironment, ::Google::Cloud::Dialogflow::CX::V3::CreateEnvironmentRequest, ::Google::Longrunning::Operation
|
43
51
|
# Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
|
52
|
+
#
|
53
|
+
# This method is a [long-running
|
54
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
55
|
+
# The returned `Operation` type has the following method-specific fields:
|
56
|
+
#
|
57
|
+
# - `metadata`: An empty [Struct
|
58
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
59
|
+
# - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
|
44
60
|
rpc :UpdateEnvironment, ::Google::Cloud::Dialogflow::CX::V3::UpdateEnvironmentRequest, ::Google::Longrunning::Operation
|
45
61
|
# Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
|
46
62
|
rpc :DeleteEnvironment, ::Google::Cloud::Dialogflow::CX::V3::DeleteEnvironmentRequest, ::Google::Protobuf::Empty
|
47
63
|
# Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
|
48
64
|
rpc :LookupEnvironmentHistory, ::Google::Cloud::Dialogflow::CX::V3::LookupEnvironmentHistoryRequest, ::Google::Cloud::Dialogflow::CX::V3::LookupEnvironmentHistoryResponse
|
49
65
|
# Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
|
66
|
+
#
|
67
|
+
# This method is a [long-running
|
68
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
69
|
+
# The returned `Operation` type has the following method-specific fields:
|
70
|
+
#
|
71
|
+
# - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
|
72
|
+
# - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
|
50
73
|
rpc :RunContinuousTest, ::Google::Cloud::Dialogflow::CX::V3::RunContinuousTestRequest, ::Google::Longrunning::Operation
|
51
74
|
# Fetches a list of continuous test results for a given environment.
|
52
75
|
rpc :ListContinuousTestResults, ::Google::Cloud::Dialogflow::CX::V3::ListContinuousTestResultsRequest, ::Google::Cloud::Dialogflow::CX::V3::ListContinuousTestResultsResponse
|
76
|
+
# Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
|
77
|
+
#
|
78
|
+
# This method is a [long-running
|
79
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
80
|
+
# The returned `Operation` type has the following method-specific fields:
|
81
|
+
#
|
82
|
+
# - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
|
83
|
+
# - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
|
84
|
+
rpc :DeployFlow, ::Google::Cloud::Dialogflow::CX::V3::DeployFlowRequest, ::Google::Longrunning::Operation
|
53
85
|
end
|
54
86
|
|
55
87
|
Stub = Service.rpc_stub_class
|