google-cloud-dialogflow-v2 0.10.1 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -2
  4. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +39 -5
  5. data/lib/google/cloud/dialogflow/v2/agents/client.rb +94 -49
  6. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +30 -21
  7. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -2
  8. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
  9. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +35 -38
  10. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -2
  11. data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -2
  12. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
  13. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +47 -42
  14. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -2
  15. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -2
  16. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -2
  17. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +44 -41
  19. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
  20. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +44 -41
  21. data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -2
  22. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
  23. data/lib/google/cloud/dialogflow/v2/documents/client.rb +73 -51
  24. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +30 -21
  25. data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -2
  26. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
  27. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +102 -46
  28. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +30 -21
  29. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -2
  30. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +7 -7
  31. data/lib/google/cloud/dialogflow/v2/environments/client.rb +67 -51
  32. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -2
  33. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
  34. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +35 -38
  35. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -2
  36. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -2
  38. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
  39. data/lib/google/cloud/dialogflow/v2/intents/client.rb +65 -43
  40. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +30 -21
  41. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -2
  42. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
  43. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +44 -41
  44. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -2
  45. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
  46. data/lib/google/cloud/dialogflow/v2/participants/client.rb +50 -43
  47. data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -2
  48. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +44 -41
  50. data/lib/google/cloud/dialogflow/v2/session_pb.rb +3 -2
  51. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -1
  52. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +49 -38
  53. data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +1 -1
  54. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  55. data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -2
  56. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
  57. data/lib/google/cloud/dialogflow/v2/versions/client.rb +49 -41
  58. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -2
  59. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +22 -4
  60. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +4 -3
  61. data/proto_docs/google/cloud/dialogflow/v2/session.rb +3 -0
  62. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  63. data/proto_docs/google/cloud/dialogflow/v2/version.rb +6 -0
  64. metadata +8 -7
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Dialogflow::V2::Documents::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Documents clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::Documents::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Documents clients
47
+ # ::Google::Cloud::Dialogflow::V2::Documents::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new Documents client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new Documents client with the default
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Dialogflow::V2::Documents::Client.new
101
+ # @example
108
102
  #
109
- # To create a new Documents client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::Documents::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Dialogflow::V2::Documents::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Dialogflow::V2::Documents::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the Documents client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -229,7 +223,9 @@ module Google
229
223
  options.apply_defaults timeout: @config.rpcs.list_documents.timeout,
230
224
  metadata: metadata,
231
225
  retry_policy: @config.rpcs.list_documents.retry_policy
232
- options.apply_defaults metadata: @config.metadata,
226
+
227
+ options.apply_defaults timeout: @config.timeout,
228
+ metadata: @config.metadata,
233
229
  retry_policy: @config.retry_policy
234
230
 
235
231
  @documents_stub.call_rpc :list_documents, request, options: options do |response, operation|
@@ -298,7 +294,9 @@ module Google
298
294
  options.apply_defaults timeout: @config.rpcs.get_document.timeout,
299
295
  metadata: metadata,
300
296
  retry_policy: @config.rpcs.get_document.retry_policy
301
- options.apply_defaults metadata: @config.metadata,
297
+
298
+ options.apply_defaults timeout: @config.timeout,
299
+ metadata: @config.metadata,
302
300
  retry_policy: @config.retry_policy
303
301
 
304
302
  @documents_stub.call_rpc :get_document, request, options: options do |response, operation|
@@ -312,8 +310,12 @@ module Google
312
310
  ##
313
311
  # Creates a new document.
314
312
  #
315
- # Operation <response: {::Google::Cloud::Dialogflow::V2::Document Document},
316
- # metadata: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}>
313
+ # This method is a [long-running
314
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
315
+ # The returned `Operation` type has the following method-specific fields:
316
+ #
317
+ # - `metadata`: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}
318
+ # - `response`: {::Google::Cloud::Dialogflow::V2::Document Document}
317
319
  #
318
320
  # @overload create_document(request, options = nil)
319
321
  # Pass arguments to `create_document` via a request object, either of type
@@ -371,7 +373,9 @@ module Google
371
373
  options.apply_defaults timeout: @config.rpcs.create_document.timeout,
372
374
  metadata: metadata,
373
375
  retry_policy: @config.rpcs.create_document.retry_policy
374
- options.apply_defaults metadata: @config.metadata,
376
+
377
+ options.apply_defaults timeout: @config.timeout,
378
+ metadata: @config.metadata,
375
379
  retry_policy: @config.retry_policy
376
380
 
377
381
  @documents_stub.call_rpc :create_document, request, options: options do |response, operation|
@@ -386,8 +390,13 @@ module Google
386
390
  ##
387
391
  # Deletes the specified document.
388
392
  #
389
- # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty},
390
- # metadata: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}>
393
+ # This method is a [long-running
394
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
395
+ # The returned `Operation` type has the following method-specific fields:
396
+ #
397
+ # - `metadata`: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}
398
+ # - `response`: An [Empty
399
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
391
400
  #
392
401
  # @overload delete_document(request, options = nil)
393
402
  # Pass arguments to `delete_document` via a request object, either of type
@@ -443,7 +452,9 @@ module Google
443
452
  options.apply_defaults timeout: @config.rpcs.delete_document.timeout,
444
453
  metadata: metadata,
445
454
  retry_policy: @config.rpcs.delete_document.retry_policy
446
- options.apply_defaults metadata: @config.metadata,
455
+
456
+ options.apply_defaults timeout: @config.timeout,
457
+ metadata: @config.metadata,
447
458
  retry_policy: @config.retry_policy
448
459
 
449
460
  @documents_stub.call_rpc :delete_document, request, options: options do |response, operation|
@@ -458,8 +469,12 @@ module Google
458
469
  ##
459
470
  # Updates the specified document.
460
471
  #
461
- # Operation <response: {::Google::Cloud::Dialogflow::V2::Document Document},
462
- # metadata: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}>
472
+ # This method is a [long-running
473
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
474
+ # The returned `Operation` type has the following method-specific fields:
475
+ #
476
+ # - `metadata`: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}
477
+ # - `response`: {::Google::Cloud::Dialogflow::V2::Document Document}
463
478
  #
464
479
  # @overload update_document(request, options = nil)
465
480
  # Pass arguments to `update_document` via a request object, either of type
@@ -517,7 +532,9 @@ module Google
517
532
  options.apply_defaults timeout: @config.rpcs.update_document.timeout,
518
533
  metadata: metadata,
519
534
  retry_policy: @config.rpcs.update_document.retry_policy
520
- options.apply_defaults metadata: @config.metadata,
535
+
536
+ options.apply_defaults timeout: @config.timeout,
537
+ metadata: @config.metadata,
521
538
  retry_policy: @config.retry_policy
522
539
 
523
540
  @documents_stub.call_rpc :update_document, request, options: options do |response, operation|
@@ -535,12 +552,16 @@ module Google
535
552
  # Note: Even when the content of the document has not changed, there still
536
553
  # may be side effects because of internal implementation changes.
537
554
  #
555
+ # This method is a [long-running
556
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
557
+ # The returned `Operation` type has the following method-specific fields:
558
+ #
559
+ # - `metadata`: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}
560
+ # - `response`: {::Google::Cloud::Dialogflow::V2::Document Document}
561
+ #
538
562
  # Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
539
563
  # only use `projects.knowledgeBases.documents`.
540
564
  #
541
- # Operation <response: {::Google::Cloud::Dialogflow::V2::Document Document},
542
- # metadata: {::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata KnowledgeOperationMetadata}>
543
- #
544
565
  # @overload reload_document(request, options = nil)
545
566
  # Pass arguments to `reload_document` via a request object, either of type
546
567
  # {::Google::Cloud::Dialogflow::V2::ReloadDocumentRequest} or an equivalent Hash.
@@ -601,7 +622,9 @@ module Google
601
622
  options.apply_defaults timeout: @config.rpcs.reload_document.timeout,
602
623
  metadata: metadata,
603
624
  retry_policy: @config.rpcs.reload_document.retry_policy
604
- options.apply_defaults metadata: @config.metadata,
625
+
626
+ options.apply_defaults timeout: @config.timeout,
627
+ metadata: @config.metadata,
605
628
  retry_policy: @config.retry_policy
606
629
 
607
630
  @documents_stub.call_rpc :reload_document, request, options: options do |response, operation|
@@ -626,22 +649,21 @@ module Google
626
649
  # Configuration can be applied globally to all clients, or to a single client
627
650
  # on construction.
628
651
  #
629
- # # Examples
630
- #
631
- # To modify the global config, setting the timeout for list_documents
632
- # to 20 seconds, and all remaining timeouts to 10 seconds:
633
- #
634
- # ::Google::Cloud::Dialogflow::V2::Documents::Client.configure do |config|
635
- # config.timeout = 10.0
636
- # config.rpcs.list_documents.timeout = 20.0
637
- # end
638
- #
639
- # To apply the above configuration only to a new client:
640
- #
641
- # client = ::Google::Cloud::Dialogflow::V2::Documents::Client.new do |config|
642
- # config.timeout = 10.0
643
- # config.rpcs.list_documents.timeout = 20.0
644
- # end
652
+ # @example
653
+ #
654
+ # # Modify the global config, setting the timeout for
655
+ # # list_documents to 20 seconds,
656
+ # # and all remaining timeouts to 10 seconds.
657
+ # ::Google::Cloud::Dialogflow::V2::Documents::Client.configure do |config|
658
+ # config.timeout = 10.0
659
+ # config.rpcs.list_documents.timeout = 20.0
660
+ # end
661
+ #
662
+ # # Apply the above configuration only to a new client.
663
+ # client = ::Google::Cloud::Dialogflow::V2::Documents::Client.new do |config|
664
+ # config.timeout = 10.0
665
+ # config.rpcs.list_documents.timeout = 20.0
666
+ # end
645
667
  #
646
668
  # @!attribute [rw] endpoint
647
669
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/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'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/longrunning/operations_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/dialogflow/v2/entity_type.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.dialogflow.v2.EntityType" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -57,6 +57,13 @@ module Google
57
57
  rpc :DeleteEntityType, ::Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest, ::Google::Protobuf::Empty
58
58
  # Updates/Creates multiple entity types in the specified agent.
59
59
  #
60
+ # This method is a [long-running
61
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
62
+ # The returned `Operation` type has the following method-specific fields:
63
+ #
64
+ # - `metadata`: An empty [Struct
65
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
66
+ # - `response`: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]
60
67
  #
61
68
  # Note: You should always train an agent prior to sending it queries. See the
62
69
  # [training
@@ -64,12 +71,30 @@ module Google
64
71
  rpc :BatchUpdateEntityTypes, ::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest, ::Google::Longrunning::Operation
65
72
  # Deletes entity types in the specified agent.
66
73
  #
74
+ # This method is a [long-running
75
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
76
+ # The returned `Operation` type has the following method-specific fields:
77
+ #
78
+ # - `metadata`: An empty [Struct
79
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
80
+ # - `response`: An [Empty
81
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
82
+ #
67
83
  # Note: You should always train an agent prior to sending it queries. See the
68
84
  # [training
69
85
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).
70
86
  rpc :BatchDeleteEntityTypes, ::Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest, ::Google::Longrunning::Operation
71
87
  # Creates multiple new entities in the specified entity type.
72
88
  #
89
+ # This method is a [long-running
90
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
91
+ # The returned `Operation` type has the following method-specific fields:
92
+ #
93
+ # - `metadata`: An empty [Struct
94
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
95
+ # - `response`: An [Empty
96
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
97
+ #
73
98
  # Note: You should always train an agent prior to sending it queries. See the
74
99
  # [training
75
100
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).
@@ -78,12 +103,31 @@ module Google
78
103
  # method does not affect entities in the entity type that aren't explicitly
79
104
  # specified in the request.
80
105
  #
106
+ # This method is a [long-running
107
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
108
+ # The returned `Operation` type has the following method-specific fields:
109
+ #
110
+ # - `metadata`: An empty [Struct
111
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
112
+ # - `response`: An [Empty
113
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
114
+ #
81
115
  # Note: You should always train an agent prior to sending it queries. See the
82
116
  # [training
83
117
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).
118
+ #
84
119
  rpc :BatchUpdateEntities, ::Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest, ::Google::Longrunning::Operation
85
120
  # Deletes entities in the specified entity type.
86
121
  #
122
+ # This method is a [long-running
123
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
124
+ # The returned `Operation` type has the following method-specific fields:
125
+ #
126
+ # - `metadata`: An empty [Struct
127
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
128
+ # - `response`: An [Empty
129
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
130
+ #
87
131
  # Note: You should always train an agent prior to sending it queries. See the
88
132
  # [training
89
133
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).