google-cloud-dialogflow-v2 0.3.0 → 0.4.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 +48 -1
- data/lib/google-cloud-dialogflow-v2.rb +21 -1
- data/lib/google/cloud/dialogflow/v2.rb +16 -0
- data/lib/google/cloud/dialogflow/v2/agents.rb +58 -2
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +88 -65
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/contexts.rb +47 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +62 -39
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +43 -0
- data/lib/google/cloud/dialogflow/v2/entity_types.rb +58 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +103 -65
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/intents.rb +62 -2
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +74 -47
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +46 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +48 -53
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +43 -0
- data/lib/google/cloud/dialogflow/v2/sessions.rb +33 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +15 -28
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +0 -2
- data/proto_docs/google/cloud/dialogflow/v2/context.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +28 -1
- metadata +2 -2
@@ -16,6 +16,62 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "
|
20
|
-
require "
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/dialogflow/v2/version"
|
24
|
+
|
21
25
|
require "google/cloud/dialogflow/v2/entity_types/credentials"
|
26
|
+
require "google/cloud/dialogflow/v2/entity_types/paths"
|
27
|
+
require "google/cloud/dialogflow/v2/entity_types/operations"
|
28
|
+
require "google/cloud/dialogflow/v2/entity_types/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Dialogflow
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# Entities are extracted from user input and represent parameters that are
|
36
|
+
# meaningful to your application. For example, a date range, a proper name
|
37
|
+
# such as a geographic location or landmark, and so on. Entities represent
|
38
|
+
# actionable data for your application.
|
39
|
+
#
|
40
|
+
# When you define an entity, you can also include synonyms that all map to
|
41
|
+
# that entity. For example, "soft drink", "soda", "pop", and so on.
|
42
|
+
#
|
43
|
+
# There are three types of entities:
|
44
|
+
#
|
45
|
+
# * **System** - entities that are defined by the Dialogflow API for common
|
46
|
+
# data types such as date, time, currency, and so on. A system entity is
|
47
|
+
# represented by the `EntityType` type.
|
48
|
+
#
|
49
|
+
# * **Custom** - entities that are defined by you that represent
|
50
|
+
# actionable data that is meaningful to your application. For example,
|
51
|
+
# you could define a `pizza.sauce` entity for red or white pizza sauce,
|
52
|
+
# a `pizza.cheese` entity for the different types of cheese on a pizza,
|
53
|
+
# a `pizza.topping` entity for different toppings, and so on. A custom
|
54
|
+
# entity is represented by the `EntityType` type.
|
55
|
+
#
|
56
|
+
# * **User** - entities that are built for an individual user such as
|
57
|
+
# favorites, preferences, playlists, and so on. A user entity is
|
58
|
+
# represented by the {Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityType} type.
|
59
|
+
#
|
60
|
+
# For more information about entity types, see the
|
61
|
+
# [Dialogflow
|
62
|
+
# documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
|
63
|
+
#
|
64
|
+
# To load this service and instantiate a client:
|
65
|
+
#
|
66
|
+
# require "google/cloud/dialogflow/v2/entity_types"
|
67
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
|
68
|
+
#
|
69
|
+
module EntityTypes
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
helper_path = ::File.join __dir__, "entity_types", "helpers.rb"
|
77
|
+
require "google/cloud/dialogflow/v2/entity_types/helpers" if ::File.file? helper_path
|
@@ -16,16 +16,8 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "gapic/common"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
19
|
require "google/cloud/errors"
|
24
|
-
require "google/cloud/dialogflow/v2/version"
|
25
20
|
require "google/cloud/dialogflow/v2/entity_type_pb"
|
26
|
-
require "google/cloud/dialogflow/v2/entity_types/credentials"
|
27
|
-
require "google/cloud/dialogflow/v2/entity_types/paths"
|
28
|
-
require "google/cloud/dialogflow/v2/entity_types/operations"
|
29
21
|
|
30
22
|
module Google
|
31
23
|
module Cloud
|
@@ -236,12 +228,20 @@ module Google
|
|
236
228
|
# Returns the list of all entity types in the specified agent.
|
237
229
|
#
|
238
230
|
# @overload list_entity_types(request, options = nil)
|
239
|
-
#
|
240
|
-
#
|
231
|
+
# Pass arguments to `list_entity_types` via a request object, either of type
|
232
|
+
# {Google::Cloud::Dialogflow::V2::ListEntityTypesRequest} or an equivalent Hash.
|
233
|
+
#
|
234
|
+
# @param request [Google::Cloud::Dialogflow::V2::ListEntityTypesRequest, Hash]
|
235
|
+
# A request object representing the call parameters. Required. To specify no
|
236
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
241
237
|
# @param options [Gapic::CallOptions, Hash]
|
242
238
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
243
239
|
#
|
244
240
|
# @overload list_entity_types(parent: nil, language_code: nil, page_size: nil, page_token: nil)
|
241
|
+
# Pass arguments to `list_entity_types` via keyword arguments. Note that at
|
242
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
243
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
244
|
+
#
|
245
245
|
# @param parent [String]
|
246
246
|
# Required. The agent to list all entity types from.
|
247
247
|
# Format: `projects/<Project ID>/agent`.
|
@@ -257,7 +257,6 @@ module Google
|
|
257
257
|
# @param page_token [String]
|
258
258
|
# Optional. The next_page_token value returned from a previous list request.
|
259
259
|
#
|
260
|
-
#
|
261
260
|
# @yield [response, operation] Access the result along with the RPC operation
|
262
261
|
# @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dialogflow::V2::EntityType>]
|
263
262
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -308,12 +307,20 @@ module Google
|
|
308
307
|
# Retrieves the specified entity type.
|
309
308
|
#
|
310
309
|
# @overload get_entity_type(request, options = nil)
|
311
|
-
#
|
312
|
-
#
|
310
|
+
# Pass arguments to `get_entity_type` via a request object, either of type
|
311
|
+
# {Google::Cloud::Dialogflow::V2::GetEntityTypeRequest} or an equivalent Hash.
|
312
|
+
#
|
313
|
+
# @param request [Google::Cloud::Dialogflow::V2::GetEntityTypeRequest, Hash]
|
314
|
+
# A request object representing the call parameters. Required. To specify no
|
315
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
313
316
|
# @param options [Gapic::CallOptions, Hash]
|
314
317
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
315
318
|
#
|
316
319
|
# @overload get_entity_type(name: nil, language_code: nil)
|
320
|
+
# Pass arguments to `get_entity_type` via keyword arguments. Note that at
|
321
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
322
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
323
|
+
#
|
317
324
|
# @param name [String]
|
318
325
|
# Required. The name of the entity type.
|
319
326
|
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
@@ -324,7 +331,6 @@ module Google
|
|
324
331
|
# [Multilingual intent and entity
|
325
332
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
326
333
|
#
|
327
|
-
#
|
328
334
|
# @yield [response, operation] Access the result along with the RPC operation
|
329
335
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
|
330
336
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -374,16 +380,24 @@ module Google
|
|
374
380
|
# Creates an entity type in the specified agent.
|
375
381
|
#
|
376
382
|
# @overload create_entity_type(request, options = nil)
|
377
|
-
#
|
378
|
-
#
|
383
|
+
# Pass arguments to `create_entity_type` via a request object, either of type
|
384
|
+
# {Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest} or an equivalent Hash.
|
385
|
+
#
|
386
|
+
# @param request [Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest, Hash]
|
387
|
+
# A request object representing the call parameters. Required. To specify no
|
388
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
379
389
|
# @param options [Gapic::CallOptions, Hash]
|
380
390
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
381
391
|
#
|
382
392
|
# @overload create_entity_type(parent: nil, entity_type: nil, language_code: nil)
|
393
|
+
# Pass arguments to `create_entity_type` via keyword arguments. Note that at
|
394
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
395
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
396
|
+
#
|
383
397
|
# @param parent [String]
|
384
398
|
# Required. The agent to create a entity type for.
|
385
399
|
# Format: `projects/<Project ID>/agent`.
|
386
|
-
# @param entity_type [Google::Cloud::Dialogflow::V2::EntityType
|
400
|
+
# @param entity_type [Google::Cloud::Dialogflow::V2::EntityType, Hash]
|
387
401
|
# Required. The entity type to create.
|
388
402
|
# @param language_code [String]
|
389
403
|
# Optional. The language used to access language-specific data.
|
@@ -392,7 +406,6 @@ module Google
|
|
392
406
|
# [Multilingual intent and entity
|
393
407
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
394
408
|
#
|
395
|
-
#
|
396
409
|
# @yield [response, operation] Access the result along with the RPC operation
|
397
410
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
|
398
411
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -442,13 +455,21 @@ module Google
|
|
442
455
|
# Updates the specified entity type.
|
443
456
|
#
|
444
457
|
# @overload update_entity_type(request, options = nil)
|
445
|
-
#
|
446
|
-
#
|
458
|
+
# Pass arguments to `update_entity_type` via a request object, either of type
|
459
|
+
# {Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest} or an equivalent Hash.
|
460
|
+
#
|
461
|
+
# @param request [Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest, Hash]
|
462
|
+
# A request object representing the call parameters. Required. To specify no
|
463
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
447
464
|
# @param options [Gapic::CallOptions, Hash]
|
448
465
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
449
466
|
#
|
450
467
|
# @overload update_entity_type(entity_type: nil, language_code: nil, update_mask: nil)
|
451
|
-
#
|
468
|
+
# Pass arguments to `update_entity_type` via keyword arguments. Note that at
|
469
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
470
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
471
|
+
#
|
472
|
+
# @param entity_type [Google::Cloud::Dialogflow::V2::EntityType, Hash]
|
452
473
|
# Required. The entity type to update.
|
453
474
|
# @param language_code [String]
|
454
475
|
# Optional. The language used to access language-specific data.
|
@@ -456,10 +477,9 @@ module Google
|
|
456
477
|
# For more information, see
|
457
478
|
# [Multilingual intent and entity
|
458
479
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
459
|
-
# @param update_mask [Google::Protobuf::FieldMask
|
480
|
+
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
460
481
|
# Optional. The mask to control which fields get updated.
|
461
482
|
#
|
462
|
-
#
|
463
483
|
# @yield [response, operation] Access the result along with the RPC operation
|
464
484
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
|
465
485
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -509,17 +529,24 @@ module Google
|
|
509
529
|
# Deletes the specified entity type.
|
510
530
|
#
|
511
531
|
# @overload delete_entity_type(request, options = nil)
|
512
|
-
#
|
513
|
-
#
|
532
|
+
# Pass arguments to `delete_entity_type` via a request object, either of type
|
533
|
+
# {Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest} or an equivalent Hash.
|
534
|
+
#
|
535
|
+
# @param request [Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest, Hash]
|
536
|
+
# A request object representing the call parameters. Required. To specify no
|
537
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
514
538
|
# @param options [Gapic::CallOptions, Hash]
|
515
539
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
516
540
|
#
|
517
541
|
# @overload delete_entity_type(name: nil)
|
542
|
+
# Pass arguments to `delete_entity_type` via keyword arguments. Note that at
|
543
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
544
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
545
|
+
#
|
518
546
|
# @param name [String]
|
519
547
|
# Required. The name of the entity type to delete.
|
520
548
|
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
521
549
|
#
|
522
|
-
#
|
523
550
|
# @yield [response, operation] Access the result along with the RPC operation
|
524
551
|
# @yieldparam response [Google::Protobuf::Empty]
|
525
552
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -571,14 +598,20 @@ module Google
|
|
571
598
|
# Operation <response: {Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesResponse BatchUpdateEntityTypesResponse}>
|
572
599
|
#
|
573
600
|
# @overload batch_update_entity_types(request, options = nil)
|
574
|
-
#
|
575
|
-
#
|
601
|
+
# Pass arguments to `batch_update_entity_types` via a request object, either of type
|
602
|
+
# {Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest} or an equivalent Hash.
|
576
603
|
#
|
577
|
-
#
|
604
|
+
# @param request [Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest, Hash]
|
605
|
+
# A request object representing the call parameters. Required. To specify no
|
606
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
578
607
|
# @param options [Gapic::CallOptions, Hash]
|
579
608
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
580
609
|
#
|
581
610
|
# @overload batch_update_entity_types(parent: nil, entity_type_batch_uri: nil, entity_type_batch_inline: nil, language_code: nil, update_mask: nil)
|
611
|
+
# Pass arguments to `batch_update_entity_types` via keyword arguments. Note that at
|
612
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
613
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
614
|
+
#
|
582
615
|
# @param parent [String]
|
583
616
|
# Required. The name of the agent to update or create entity types in.
|
584
617
|
# Format: `projects/<Project ID>/agent`.
|
@@ -587,7 +620,7 @@ module Google
|
|
587
620
|
# or create. The file format can either be a serialized proto (of
|
588
621
|
# EntityBatch type) or a JSON object. Note: The URI must start with
|
589
622
|
# "gs://".
|
590
|
-
# @param entity_type_batch_inline [Google::Cloud::Dialogflow::V2::EntityTypeBatch
|
623
|
+
# @param entity_type_batch_inline [Google::Cloud::Dialogflow::V2::EntityTypeBatch, Hash]
|
591
624
|
# The collection of entity types to update or create.
|
592
625
|
# @param language_code [String]
|
593
626
|
# Optional. The language used to access language-specific data.
|
@@ -595,10 +628,9 @@ module Google
|
|
595
628
|
# For more information, see
|
596
629
|
# [Multilingual intent and entity
|
597
630
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
598
|
-
# @param update_mask [Google::Protobuf::FieldMask
|
631
|
+
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
599
632
|
# Optional. The mask to control which fields get updated.
|
600
633
|
#
|
601
|
-
#
|
602
634
|
# @yield [response, operation] Access the result along with the RPC operation
|
603
635
|
# @yieldparam response [Gapic::Operation]
|
604
636
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -651,14 +683,20 @@ module Google
|
|
651
683
|
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
652
684
|
#
|
653
685
|
# @overload batch_delete_entity_types(request, options = nil)
|
654
|
-
#
|
655
|
-
#
|
686
|
+
# Pass arguments to `batch_delete_entity_types` via a request object, either of type
|
687
|
+
# {Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest} or an equivalent Hash.
|
656
688
|
#
|
657
|
-
#
|
689
|
+
# @param request [Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest, Hash]
|
690
|
+
# A request object representing the call parameters. Required. To specify no
|
691
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
658
692
|
# @param options [Gapic::CallOptions, Hash]
|
659
693
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
660
694
|
#
|
661
695
|
# @overload batch_delete_entity_types(parent: nil, entity_type_names: nil)
|
696
|
+
# Pass arguments to `batch_delete_entity_types` via keyword arguments. Note that at
|
697
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
698
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
699
|
+
#
|
662
700
|
# @param parent [String]
|
663
701
|
# Required. The name of the agent to delete all entities types for. Format:
|
664
702
|
# `projects/<Project ID>/agent`.
|
@@ -666,7 +704,6 @@ module Google
|
|
666
704
|
# Required. The names entity types to delete. All names must point to the
|
667
705
|
# same agent as `parent`.
|
668
706
|
#
|
669
|
-
#
|
670
707
|
# @yield [response, operation] Access the result along with the RPC operation
|
671
708
|
# @yieldparam response [Gapic::Operation]
|
672
709
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -719,18 +756,24 @@ module Google
|
|
719
756
|
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
720
757
|
#
|
721
758
|
# @overload batch_create_entities(request, options = nil)
|
722
|
-
#
|
723
|
-
#
|
759
|
+
# Pass arguments to `batch_create_entities` via a request object, either of type
|
760
|
+
# {Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest} or an equivalent Hash.
|
724
761
|
#
|
725
|
-
#
|
762
|
+
# @param request [Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest, Hash]
|
763
|
+
# A request object representing the call parameters. Required. To specify no
|
764
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
726
765
|
# @param options [Gapic::CallOptions, Hash]
|
727
766
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
728
767
|
#
|
729
768
|
# @overload batch_create_entities(parent: nil, entities: nil, language_code: nil)
|
769
|
+
# Pass arguments to `batch_create_entities` via keyword arguments. Note that at
|
770
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
771
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
772
|
+
#
|
730
773
|
# @param parent [String]
|
731
774
|
# Required. The name of the entity type to create entities in. Format:
|
732
775
|
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
733
|
-
# @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity
|
776
|
+
# @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity, Hash>]
|
734
777
|
# Required. The entities to create.
|
735
778
|
# @param language_code [String]
|
736
779
|
# Optional. The language used to access language-specific data.
|
@@ -739,7 +782,6 @@ module Google
|
|
739
782
|
# [Multilingual intent and entity
|
740
783
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
741
784
|
#
|
742
|
-
#
|
743
785
|
# @yield [response, operation] Access the result along with the RPC operation
|
744
786
|
# @yieldparam response [Gapic::Operation]
|
745
787
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -795,21 +837,24 @@ module Google
|
|
795
837
|
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
796
838
|
#
|
797
839
|
# @overload batch_update_entities(request, options = nil)
|
798
|
-
#
|
799
|
-
#
|
800
|
-
# method does not affect entities in the entity type that aren't explicitly
|
801
|
-
# specified in the request.
|
840
|
+
# Pass arguments to `batch_update_entities` via a request object, either of type
|
841
|
+
# {Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest} or an equivalent Hash.
|
802
842
|
#
|
803
|
-
#
|
804
|
-
#
|
843
|
+
# @param request [Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest, Hash]
|
844
|
+
# A request object representing the call parameters. Required. To specify no
|
845
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
805
846
|
# @param options [Gapic::CallOptions, Hash]
|
806
847
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
807
848
|
#
|
808
849
|
# @overload batch_update_entities(parent: nil, entities: nil, language_code: nil, update_mask: nil)
|
850
|
+
# Pass arguments to `batch_update_entities` via keyword arguments. Note that at
|
851
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
852
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
853
|
+
#
|
809
854
|
# @param parent [String]
|
810
855
|
# Required. The name of the entity type to update or create entities in.
|
811
856
|
# Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
812
|
-
# @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity
|
857
|
+
# @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity, Hash>]
|
813
858
|
# Required. The entities to update or create.
|
814
859
|
# @param language_code [String]
|
815
860
|
# Optional. The language used to access language-specific data.
|
@@ -817,10 +862,9 @@ module Google
|
|
817
862
|
# For more information, see
|
818
863
|
# [Multilingual intent and entity
|
819
864
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
820
|
-
# @param update_mask [Google::Protobuf::FieldMask
|
865
|
+
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
821
866
|
# Optional. The mask to control which fields get updated.
|
822
867
|
#
|
823
|
-
#
|
824
868
|
# @yield [response, operation] Access the result along with the RPC operation
|
825
869
|
# @yieldparam response [Gapic::Operation]
|
826
870
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -874,15 +918,20 @@ module Google
|
|
874
918
|
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
875
919
|
#
|
876
920
|
# @overload batch_delete_entities(request, options = nil)
|
877
|
-
#
|
878
|
-
#
|
879
|
-
#
|
921
|
+
# Pass arguments to `batch_delete_entities` via a request object, either of type
|
922
|
+
# {Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest} or an equivalent Hash.
|
880
923
|
#
|
881
|
-
#
|
924
|
+
# @param request [Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest, Hash]
|
925
|
+
# A request object representing the call parameters. Required. To specify no
|
926
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
882
927
|
# @param options [Gapic::CallOptions, Hash]
|
883
928
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
884
929
|
#
|
885
930
|
# @overload batch_delete_entities(parent: nil, entity_values: nil, language_code: nil)
|
931
|
+
# Pass arguments to `batch_delete_entities` via keyword arguments. Note that at
|
932
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
933
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
934
|
+
#
|
886
935
|
# @param parent [String]
|
887
936
|
# Required. The name of the entity type to delete entries for. Format:
|
888
937
|
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
@@ -897,7 +946,6 @@ module Google
|
|
897
946
|
# [Multilingual intent and entity
|
898
947
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
899
948
|
#
|
900
|
-
#
|
901
949
|
# @yield [response, operation] Access the result along with the RPC operation
|
902
950
|
# @yieldparam response [Gapic::Operation]
|
903
951
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -1160,13 +1208,3 @@ module Google
|
|
1160
1208
|
end
|
1161
1209
|
end
|
1162
1210
|
end
|
1163
|
-
|
1164
|
-
# rubocop:disable Lint/HandleExceptions
|
1165
|
-
|
1166
|
-
# Once client is loaded, load helpers.rb if it exists.
|
1167
|
-
begin
|
1168
|
-
require "google/cloud/dialogflow/v2/entity_types/helpers"
|
1169
|
-
rescue LoadError
|
1170
|
-
end
|
1171
|
-
|
1172
|
-
# rubocop:enable Lint/HandleExceptions
|
@@ -16,11 +16,7 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "gapic/common"
|
20
19
|
require "gapic/operation"
|
21
|
-
|
22
|
-
require "google/cloud/dialogflow/v2/version"
|
23
|
-
require "google/cloud/dialogflow/v2/entity_types/client"
|
24
20
|
require "google/longrunning/operations_pb"
|
25
21
|
|
26
22
|
module Google
|
@@ -109,16 +105,20 @@ module Google
|
|
109
105
|
# to use different resource name schemes, such as `users/*/operations`.
|
110
106
|
#
|
111
107
|
# @overload list_operations(request, options = nil)
|
112
|
-
#
|
113
|
-
#
|
114
|
-
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
108
|
+
# Pass arguments to `list_operations` via a request object, either of type
|
109
|
+
# {Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
115
110
|
#
|
116
|
-
#
|
117
|
-
#
|
111
|
+
# @param request [Google::Longrunning::ListOperationsRequest, Hash]
|
112
|
+
# A request object representing the call parameters. Required. To specify no
|
113
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
118
114
|
# @param options [Gapic::CallOptions, Hash]
|
119
115
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
120
116
|
#
|
121
117
|
# @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
|
118
|
+
# Pass arguments to `list_operations` via keyword arguments. Note that at
|
119
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
120
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
121
|
+
#
|
122
122
|
# @param name [String]
|
123
123
|
# The name of the operation collection.
|
124
124
|
# @param filter [String]
|
@@ -128,7 +128,6 @@ module Google
|
|
128
128
|
# @param page_token [String]
|
129
129
|
# The standard list page token.
|
130
130
|
#
|
131
|
-
#
|
132
131
|
# @yield [response, operation] Access the result along with the RPC operation
|
133
132
|
# @yieldparam response [Gapic::PagedEnumerable<Gapic::Operation>]
|
134
133
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -182,18 +181,23 @@ module Google
|
|
182
181
|
# service.
|
183
182
|
#
|
184
183
|
# @overload get_operation(request, options = nil)
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
184
|
+
# Pass arguments to `get_operation` via a request object, either of type
|
185
|
+
# {Google::Longrunning::GetOperationRequest} or an equivalent Hash.
|
186
|
+
#
|
187
|
+
# @param request [Google::Longrunning::GetOperationRequest, Hash]
|
188
|
+
# A request object representing the call parameters. Required. To specify no
|
189
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
189
190
|
# @param options [Gapic::CallOptions, Hash]
|
190
191
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
191
192
|
#
|
192
193
|
# @overload get_operation(name: nil)
|
194
|
+
# Pass arguments to `get_operation` via keyword arguments. Note that at
|
195
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
196
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
197
|
+
#
|
193
198
|
# @param name [String]
|
194
199
|
# The name of the operation resource.
|
195
200
|
#
|
196
|
-
#
|
197
201
|
# @yield [response, operation] Access the result along with the RPC operation
|
198
202
|
# @yieldparam response [Gapic::Operation]
|
199
203
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -247,19 +251,23 @@ module Google
|
|
247
251
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
248
252
|
#
|
249
253
|
# @overload delete_operation(request, options = nil)
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
254
|
+
# Pass arguments to `delete_operation` via a request object, either of type
|
255
|
+
# {Google::Longrunning::DeleteOperationRequest} or an equivalent Hash.
|
256
|
+
#
|
257
|
+
# @param request [Google::Longrunning::DeleteOperationRequest, Hash]
|
258
|
+
# A request object representing the call parameters. Required. To specify no
|
259
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
255
260
|
# @param options [Gapic::CallOptions, Hash]
|
256
261
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
257
262
|
#
|
258
263
|
# @overload delete_operation(name: nil)
|
264
|
+
# Pass arguments to `delete_operation` via keyword arguments. Note that at
|
265
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
266
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
267
|
+
#
|
259
268
|
# @param name [String]
|
260
269
|
# The name of the operation resource to be deleted.
|
261
270
|
#
|
262
|
-
#
|
263
271
|
# @yield [response, operation] Access the result along with the RPC operation
|
264
272
|
# @yieldparam response [Google::Protobuf::Empty]
|
265
273
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -318,25 +326,23 @@ module Google
|
|
318
326
|
# corresponding to `Code.CANCELLED`.
|
319
327
|
#
|
320
328
|
# @overload cancel_operation(request, options = nil)
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
# other methods to check whether the cancellation succeeded or whether the
|
328
|
-
# operation completed despite cancellation. On successful cancellation,
|
329
|
-
# the operation is not deleted; instead, it becomes an operation with
|
330
|
-
# an {Google::Longrunning::Operation#error Operation.error} value with a {Google::Rpc::Status#code google.rpc.Status.code} of 1,
|
331
|
-
# corresponding to `Code.CANCELLED`.
|
329
|
+
# Pass arguments to `cancel_operation` via a request object, either of type
|
330
|
+
# {Google::Longrunning::CancelOperationRequest} or an equivalent Hash.
|
331
|
+
#
|
332
|
+
# @param request [Google::Longrunning::CancelOperationRequest, Hash]
|
333
|
+
# A request object representing the call parameters. Required. To specify no
|
334
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
332
335
|
# @param options [Gapic::CallOptions, Hash]
|
333
336
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
334
337
|
#
|
335
338
|
# @overload cancel_operation(name: nil)
|
339
|
+
# Pass arguments to `cancel_operation` via keyword arguments. Note that at
|
340
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
341
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
342
|
+
#
|
336
343
|
# @param name [String]
|
337
344
|
# The name of the operation resource to be cancelled.
|
338
345
|
#
|
339
|
-
#
|
340
346
|
# @yield [response, operation] Access the result along with the RPC operation
|
341
347
|
# @yieldparam response [Google::Protobuf::Empty]
|
342
348
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|