google-cloud-dialogflow-cx-v3 0.19.0 → 0.21.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/agent_pb.rb +6 -1
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +4 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +338 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +119 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +45 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +184 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +116 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +14 -2
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +40 -14
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +189 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +44 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +4 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +40 -14
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +48 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +39 -13
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +228 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +20 -5
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +58 -13
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +94 -4
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +37 -0
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +84 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +49 -4
- data/proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb +61 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +24 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +109 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +54 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +48 -3
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +38 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb +49 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +17 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +9 -6
- data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +13 -6
- data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +3 -0
- metadata +13 -5
@@ -178,7 +178,8 @@ module Google
|
|
178
178
|
# @param parent [::String]
|
179
179
|
# Required. The flow to list all transition route groups for.
|
180
180
|
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
181
|
-
# ID>/flows/<Flow ID
|
181
|
+
# ID>/flows/<Flow ID>`
|
182
|
+
# or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
|
182
183
|
# @param page_size [::Integer]
|
183
184
|
# The maximum number of items to return in a single page. By default 100 and
|
184
185
|
# at most 1000.
|
@@ -205,6 +206,26 @@ module Google
|
|
205
206
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>]
|
206
207
|
#
|
207
208
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
209
|
+
#
|
210
|
+
# @example Basic example
|
211
|
+
# require "google/cloud/dialogflow/cx/v3"
|
212
|
+
#
|
213
|
+
# # Create a client object. The client can be reused for multiple calls.
|
214
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
|
215
|
+
#
|
216
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
217
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListTransitionRouteGroupsRequest.new
|
218
|
+
#
|
219
|
+
# # Call the list_transition_route_groups method.
|
220
|
+
# result = client.list_transition_route_groups request
|
221
|
+
#
|
222
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
223
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
224
|
+
# result.each do |item|
|
225
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
|
226
|
+
# p item
|
227
|
+
# end
|
228
|
+
#
|
208
229
|
def list_transition_route_groups request, options = nil
|
209
230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
210
231
|
|
@@ -264,7 +285,9 @@ module Google
|
|
264
285
|
# Required. The name of the
|
265
286
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}.
|
266
287
|
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
267
|
-
# ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID
|
288
|
+
# ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`
|
289
|
+
# or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
290
|
+
# ID>/transitionRouteGroups/<Transition Route Group ID>`.
|
268
291
|
# @param language_code [::String]
|
269
292
|
# The language to retrieve the transition route group for. The following
|
270
293
|
# fields are language dependent:
|
@@ -285,6 +308,22 @@ module Google
|
|
285
308
|
# @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
|
286
309
|
#
|
287
310
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
311
|
+
#
|
312
|
+
# @example Basic example
|
313
|
+
# require "google/cloud/dialogflow/cx/v3"
|
314
|
+
#
|
315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
316
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
|
317
|
+
#
|
318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
319
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetTransitionRouteGroupRequest.new
|
320
|
+
#
|
321
|
+
# # Call the get_transition_route_group method.
|
322
|
+
# result = client.get_transition_route_group request
|
323
|
+
#
|
324
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
|
325
|
+
# p result
|
326
|
+
#
|
288
327
|
def get_transition_route_group request, options = nil
|
289
328
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
290
329
|
|
@@ -348,7 +387,9 @@ module Google
|
|
348
387
|
# Required. The flow to create an
|
349
388
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
|
350
389
|
# for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
351
|
-
# ID>/flows/<Flow ID
|
390
|
+
# ID>/flows/<Flow ID>`
|
391
|
+
# or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`
|
392
|
+
# for agent-level groups.
|
352
393
|
# @param transition_route_group [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup, ::Hash]
|
353
394
|
# Required. The transition route group to create.
|
354
395
|
# @param language_code [::String]
|
@@ -370,6 +411,22 @@ module Google
|
|
370
411
|
# @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
|
371
412
|
#
|
372
413
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
414
|
+
#
|
415
|
+
# @example Basic example
|
416
|
+
# require "google/cloud/dialogflow/cx/v3"
|
417
|
+
#
|
418
|
+
# # Create a client object. The client can be reused for multiple calls.
|
419
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
|
420
|
+
#
|
421
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
422
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateTransitionRouteGroupRequest.new
|
423
|
+
#
|
424
|
+
# # Call the create_transition_route_group method.
|
425
|
+
# result = client.create_transition_route_group request
|
426
|
+
#
|
427
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
|
428
|
+
# p result
|
429
|
+
#
|
373
430
|
def create_transition_route_group request, options = nil
|
374
431
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
375
432
|
|
@@ -451,6 +508,22 @@ module Google
|
|
451
508
|
# @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
|
452
509
|
#
|
453
510
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
511
|
+
#
|
512
|
+
# @example Basic example
|
513
|
+
# require "google/cloud/dialogflow/cx/v3"
|
514
|
+
#
|
515
|
+
# # Create a client object. The client can be reused for multiple calls.
|
516
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
|
517
|
+
#
|
518
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
519
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateTransitionRouteGroupRequest.new
|
520
|
+
#
|
521
|
+
# # Call the update_transition_route_group method.
|
522
|
+
# result = client.update_transition_route_group request
|
523
|
+
#
|
524
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
|
525
|
+
# p result
|
526
|
+
#
|
454
527
|
def update_transition_route_group request, options = nil
|
455
528
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
456
529
|
|
@@ -514,7 +587,8 @@ module Google
|
|
514
587
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
|
515
588
|
# to delete. Format: `projects/<Project ID>/locations/<Location
|
516
589
|
# ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
|
517
|
-
# Route Group ID
|
590
|
+
# Route Group ID>` or `projects/<Project ID>/locations/<Location
|
591
|
+
# ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>`.
|
518
592
|
# @param force [::Boolean]
|
519
593
|
# This field has no effect for transition route group that no page is using.
|
520
594
|
# If the transition route group is referenced by any page:
|
@@ -530,6 +604,22 @@ module Google
|
|
530
604
|
# @return [::Google::Protobuf::Empty]
|
531
605
|
#
|
532
606
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
607
|
+
#
|
608
|
+
# @example Basic example
|
609
|
+
# require "google/cloud/dialogflow/cx/v3"
|
610
|
+
#
|
611
|
+
# # Create a client object. The client can be reused for multiple calls.
|
612
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
|
613
|
+
#
|
614
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
615
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteTransitionRouteGroupRequest.new
|
616
|
+
#
|
617
|
+
# # Call the delete_transition_route_group method.
|
618
|
+
# result = client.delete_transition_route_group request
|
619
|
+
#
|
620
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
621
|
+
# p result
|
622
|
+
#
|
533
623
|
def delete_transition_route_group request, options = nil
|
534
624
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
535
625
|
|
@@ -249,6 +249,13 @@ module Google
|
|
249
249
|
["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/?$}, false]
|
250
250
|
]
|
251
251
|
)
|
252
|
+
.with_bindings(
|
253
|
+
uri_method: :get,
|
254
|
+
uri_template: "/v3/{parent}/transitionRouteGroups",
|
255
|
+
matches: [
|
256
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
|
257
|
+
]
|
258
|
+
)
|
252
259
|
transcoder.transcode request_pb
|
253
260
|
end
|
254
261
|
|
@@ -270,6 +277,13 @@ module Google
|
|
270
277
|
["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
|
271
278
|
]
|
272
279
|
)
|
280
|
+
.with_bindings(
|
281
|
+
uri_method: :get,
|
282
|
+
uri_template: "/v3/{name}",
|
283
|
+
matches: [
|
284
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
|
285
|
+
]
|
286
|
+
)
|
273
287
|
transcoder.transcode request_pb
|
274
288
|
end
|
275
289
|
|
@@ -292,6 +306,14 @@ module Google
|
|
292
306
|
["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/?$}, false]
|
293
307
|
]
|
294
308
|
)
|
309
|
+
.with_bindings(
|
310
|
+
uri_method: :post,
|
311
|
+
uri_template: "/v3/{parent}/transitionRouteGroups",
|
312
|
+
body: "transition_route_group",
|
313
|
+
matches: [
|
314
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
|
315
|
+
]
|
316
|
+
)
|
295
317
|
transcoder.transcode request_pb
|
296
318
|
end
|
297
319
|
|
@@ -314,6 +336,14 @@ module Google
|
|
314
336
|
["transition_route_group.name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
|
315
337
|
]
|
316
338
|
)
|
339
|
+
.with_bindings(
|
340
|
+
uri_method: :patch,
|
341
|
+
uri_template: "/v3/{transition_route_group.name}",
|
342
|
+
body: "transition_route_group",
|
343
|
+
matches: [
|
344
|
+
["transition_route_group.name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
|
345
|
+
]
|
346
|
+
)
|
317
347
|
transcoder.transcode request_pb
|
318
348
|
end
|
319
349
|
|
@@ -335,6 +365,13 @@ module Google
|
|
335
365
|
["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
|
336
366
|
]
|
337
367
|
)
|
368
|
+
.with_bindings(
|
369
|
+
uri_method: :delete,
|
370
|
+
uri_template: "/v3/{name}",
|
371
|
+
matches: [
|
372
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
|
373
|
+
]
|
374
|
+
)
|
338
375
|
transcoder.transcode request_pb
|
339
376
|
end
|
340
377
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
|
8
|
-
descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\
|
8
|
+
descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\x9a\x05\n\x11ValidationMessage\x12T\n\rresource_type\x18\x01 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType\x12\x15\n\tresources\x18\x02 \x03(\tB\x02\x18\x01\x12\x43\n\x0eresource_names\x18\x06 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.ResourceName\x12K\n\x08severity\x18\x03 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity\x12\x0e\n\x06\x64\x65tail\x18\x04 \x01(\t\"\xad\x02\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41GENT\x10\x01\x12\n\n\x06INTENT\x10\x02\x12\x1a\n\x16INTENT_TRAINING_PHRASE\x10\x08\x12\x14\n\x10INTENT_PARAMETER\x10\t\x12\x0b\n\x07INTENTS\x10\n\x12\x1b\n\x17INTENT_TRAINING_PHRASES\x10\x0b\x12\x0f\n\x0b\x45NTITY_TYPE\x10\x03\x12\x10\n\x0c\x45NTITY_TYPES\x10\x0c\x12\x0b\n\x07WEBHOOK\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\x12\x08\n\x04PAGE\x10\x06\x12\t\n\x05PAGES\x10\r\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x07\x12 \n\x1c\x41GENT_TRANSITION_ROUTE_GROUP\x10\x0e\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"2\n\x0cResourceName\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\tB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16ValidationMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
9
9
|
|
10
10
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
11
|
|
@@ -157,7 +157,8 @@ module Google
|
|
157
157
|
credentials: credentials,
|
158
158
|
endpoint: @config.endpoint,
|
159
159
|
channel_args: @config.channel_args,
|
160
|
-
interceptors: @config.interceptors
|
160
|
+
interceptors: @config.interceptors,
|
161
|
+
channel_pool_config: @config.channel_pool
|
161
162
|
)
|
162
163
|
end
|
163
164
|
|
@@ -974,6 +975,14 @@ module Google
|
|
974
975
|
end
|
975
976
|
end
|
976
977
|
|
978
|
+
##
|
979
|
+
# Configuration for the channel pool
|
980
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
981
|
+
#
|
982
|
+
def channel_pool
|
983
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
984
|
+
end
|
985
|
+
|
977
986
|
##
|
978
987
|
# Configuration RPC class for the Versions API.
|
979
988
|
#
|
@@ -94,7 +94,8 @@ module Google
|
|
94
94
|
credentials: credentials,
|
95
95
|
endpoint: @config.endpoint,
|
96
96
|
channel_args: @config.channel_args,
|
97
|
-
interceptors: @config.interceptors
|
97
|
+
interceptors: @config.interceptors,
|
98
|
+
channel_pool_config: @config.channel_pool
|
98
99
|
)
|
99
100
|
|
100
101
|
# Used by an LRO wrapper for some methods of this service
|
@@ -702,6 +703,14 @@ module Google
|
|
702
703
|
end
|
703
704
|
end
|
704
705
|
|
706
|
+
##
|
707
|
+
# Configuration for the channel pool
|
708
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
709
|
+
#
|
710
|
+
def channel_pool
|
711
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
712
|
+
end
|
713
|
+
|
705
714
|
##
|
706
715
|
# Configuration RPC class for the Operations API.
|
707
716
|
#
|
@@ -204,6 +204,26 @@ module Google
|
|
204
204
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Version>]
|
205
205
|
#
|
206
206
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
207
|
+
#
|
208
|
+
# @example Basic example
|
209
|
+
# require "google/cloud/dialogflow/cx/v3"
|
210
|
+
#
|
211
|
+
# # Create a client object. The client can be reused for multiple calls.
|
212
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
|
213
|
+
#
|
214
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
215
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListVersionsRequest.new
|
216
|
+
#
|
217
|
+
# # Call the list_versions method.
|
218
|
+
# result = client.list_versions request
|
219
|
+
#
|
220
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
221
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
222
|
+
# result.each do |item|
|
223
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Version.
|
224
|
+
# p item
|
225
|
+
# end
|
226
|
+
#
|
207
227
|
def list_versions request, options = nil
|
208
228
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
209
229
|
|
@@ -269,6 +289,22 @@ module Google
|
|
269
289
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Version]
|
270
290
|
#
|
271
291
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
292
|
+
#
|
293
|
+
# @example Basic example
|
294
|
+
# require "google/cloud/dialogflow/cx/v3"
|
295
|
+
#
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
297
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetVersionRequest.new
|
301
|
+
#
|
302
|
+
# # Call the get_version method.
|
303
|
+
# result = client.get_version request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Version.
|
306
|
+
# p result
|
307
|
+
#
|
272
308
|
def get_version request, options = nil
|
273
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
274
310
|
|
@@ -345,6 +381,29 @@ module Google
|
|
345
381
|
# @return [::Gapic::Operation]
|
346
382
|
#
|
347
383
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
384
|
+
#
|
385
|
+
# @example Basic example
|
386
|
+
# require "google/cloud/dialogflow/cx/v3"
|
387
|
+
#
|
388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
389
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
|
390
|
+
#
|
391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
392
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateVersionRequest.new
|
393
|
+
#
|
394
|
+
# # Call the create_version method.
|
395
|
+
# result = client.create_version request
|
396
|
+
#
|
397
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
398
|
+
# # check the status of an operation, cancel it, or wait for results.
|
399
|
+
# # Here is how to wait for a response.
|
400
|
+
# result.wait_until_done! timeout: 60
|
401
|
+
# if result.response?
|
402
|
+
# p result.response
|
403
|
+
# else
|
404
|
+
# puts "No response received."
|
405
|
+
# end
|
406
|
+
#
|
348
407
|
def create_version request, options = nil
|
349
408
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
350
409
|
|
@@ -411,6 +470,22 @@ module Google
|
|
411
470
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Version]
|
412
471
|
#
|
413
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/dialogflow/cx/v3"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateVersionRequest.new
|
482
|
+
#
|
483
|
+
# # Call the update_version method.
|
484
|
+
# result = client.update_version request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Version.
|
487
|
+
# p result
|
488
|
+
#
|
414
489
|
def update_version request, options = nil
|
415
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
416
491
|
|
@@ -475,6 +550,22 @@ module Google
|
|
475
550
|
# @return [::Google::Protobuf::Empty]
|
476
551
|
#
|
477
552
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
553
|
+
#
|
554
|
+
# @example Basic example
|
555
|
+
# require "google/cloud/dialogflow/cx/v3"
|
556
|
+
#
|
557
|
+
# # Create a client object. The client can be reused for multiple calls.
|
558
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
|
559
|
+
#
|
560
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
561
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteVersionRequest.new
|
562
|
+
#
|
563
|
+
# # Call the delete_version method.
|
564
|
+
# result = client.delete_version request
|
565
|
+
#
|
566
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
567
|
+
# p result
|
568
|
+
#
|
478
569
|
def delete_version request, options = nil
|
479
570
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
480
571
|
|
@@ -553,6 +644,29 @@ module Google
|
|
553
644
|
# @return [::Gapic::Operation]
|
554
645
|
#
|
555
646
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
647
|
+
#
|
648
|
+
# @example Basic example
|
649
|
+
# require "google/cloud/dialogflow/cx/v3"
|
650
|
+
#
|
651
|
+
# # Create a client object. The client can be reused for multiple calls.
|
652
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
|
653
|
+
#
|
654
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
655
|
+
# request = Google::Cloud::Dialogflow::CX::V3::LoadVersionRequest.new
|
656
|
+
#
|
657
|
+
# # Call the load_version method.
|
658
|
+
# result = client.load_version request
|
659
|
+
#
|
660
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
661
|
+
# # check the status of an operation, cancel it, or wait for results.
|
662
|
+
# # Here is how to wait for a response.
|
663
|
+
# result.wait_until_done! timeout: 60
|
664
|
+
# if result.response?
|
665
|
+
# p result.response
|
666
|
+
# else
|
667
|
+
# puts "No response received."
|
668
|
+
# end
|
669
|
+
#
|
556
670
|
def load_version request, options = nil
|
557
671
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
558
672
|
|
@@ -633,6 +747,22 @@ module Google
|
|
633
747
|
# @return [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse]
|
634
748
|
#
|
635
749
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
750
|
+
#
|
751
|
+
# @example Basic example
|
752
|
+
# require "google/cloud/dialogflow/cx/v3"
|
753
|
+
#
|
754
|
+
# # Create a client object. The client can be reused for multiple calls.
|
755
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
|
756
|
+
#
|
757
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
758
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest.new
|
759
|
+
#
|
760
|
+
# # Call the compare_versions method.
|
761
|
+
# result = client.compare_versions request
|
762
|
+
#
|
763
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse.
|
764
|
+
# p result
|
765
|
+
#
|
636
766
|
def compare_versions request, options = nil
|
637
767
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
638
768
|
|
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
# @return [::Gapic::Operation]
|
138
138
|
#
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
140
|
+
#
|
141
|
+
# @example Basic example
|
142
|
+
# require "google/longrunning"
|
143
|
+
#
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
146
|
+
#
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
149
|
+
#
|
150
|
+
# # Call the list_operations method.
|
151
|
+
# result = client.list_operations request
|
152
|
+
#
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
155
|
+
# result.each do |item|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
157
|
+
# p item
|
158
|
+
# end
|
159
|
+
#
|
140
160
|
def list_operations request, options = nil
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
142
162
|
|
@@ -202,6 +222,29 @@ module Google
|
|
202
222
|
# @return [::Gapic::Operation]
|
203
223
|
#
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/longrunning"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
234
|
+
#
|
235
|
+
# # Call the get_operation method.
|
236
|
+
# result = client.get_operation request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
240
|
+
# # Here is how to wait for a response.
|
241
|
+
# result.wait_until_done! timeout: 60
|
242
|
+
# if result.response?
|
243
|
+
# p result.response
|
244
|
+
# else
|
245
|
+
# puts "No response received."
|
246
|
+
# end
|
247
|
+
#
|
205
248
|
def get_operation request, options = nil
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
250
|
|
@@ -268,6 +311,22 @@ module Google
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
269
312
|
#
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/longrunning"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete_operation method.
|
325
|
+
# result = client.delete_operation request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
328
|
+
# p result
|
329
|
+
#
|
271
330
|
def delete_operation request, options = nil
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
332
|
|
@@ -339,6 +398,22 @@ module Google
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
340
399
|
#
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
401
|
+
#
|
402
|
+
# @example Basic example
|
403
|
+
# require "google/longrunning"
|
404
|
+
#
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
407
|
+
#
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
410
|
+
#
|
411
|
+
# # Call the cancel_operation method.
|
412
|
+
# result = client.cancel_operation request
|
413
|
+
#
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
415
|
+
# p result
|
416
|
+
#
|
342
417
|
def cancel_operation request, options = nil
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
419
|
|
@@ -151,7 +151,8 @@ module Google
|
|
151
151
|
credentials: credentials,
|
152
152
|
endpoint: @config.endpoint,
|
153
153
|
channel_args: @config.channel_args,
|
154
|
-
interceptors: @config.interceptors
|
154
|
+
interceptors: @config.interceptors,
|
155
|
+
channel_pool_config: @config.channel_pool
|
155
156
|
)
|
156
157
|
end
|
157
158
|
|
@@ -740,6 +741,14 @@ module Google
|
|
740
741
|
end
|
741
742
|
end
|
742
743
|
|
744
|
+
##
|
745
|
+
# Configuration for the channel pool
|
746
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
747
|
+
#
|
748
|
+
def channel_pool
|
749
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
750
|
+
end
|
751
|
+
|
743
752
|
##
|
744
753
|
# Configuration RPC class for the Webhooks API.
|
745
754
|
#
|