google-cloud-dialogflow-v2 0.10.0 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +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 +96 -54
  6. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +34 -25
  7. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
  8. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +37 -43
  9. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -0
  10. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +49 -47
  12. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
  13. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +46 -46
  14. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
  15. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +46 -46
  16. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
  17. data/lib/google/cloud/dialogflow/v2/documents/client.rb +75 -56
  18. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +34 -25
  19. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
  20. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +104 -51
  21. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +34 -25
  22. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +7 -7
  23. data/lib/google/cloud/dialogflow/v2/environments/client.rb +69 -56
  24. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
  25. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +37 -43
  26. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
  27. data/lib/google/cloud/dialogflow/v2/intents/client.rb +67 -48
  28. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +34 -25
  29. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
  30. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +46 -46
  31. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
  32. data/lib/google/cloud/dialogflow/v2/participants/client.rb +53 -52
  33. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
  34. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +46 -46
  35. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
  36. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +1 -1
  37. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +38 -47
  38. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  39. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
  40. data/lib/google/cloud/dialogflow/v2/versions/client.rb +51 -46
  41. data/proto_docs/google/api/field_behavior.rb +7 -1
  42. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +22 -4
  43. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +4 -3
  44. data/proto_docs/google/cloud/dialogflow/v2/session.rb +3 -0
  45. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  46. data/proto_docs/google/cloud/dialogflow/v2/version.rb +6 -0
  47. metadata +8 -7
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -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|
@@ -396,9 +404,9 @@ module Google
396
404
  end
397
405
 
398
406
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
407
+ # Waits until the specified long-running operation is done or reaches at most
408
+ # a specified timeout, returning the latest state. If the operation is
409
+ # already done, the latest state is immediately returned. If the timeout
402
410
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
411
  # timeout is used. If the server does not support this method, it returns
404
412
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -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.
@@ -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).
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Dialogflow::V2::EntityTypes::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 EntityTypes clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all EntityTypes clients
47
+ # ::Google::Cloud::Dialogflow::V2::EntityTypes::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]
@@ -67,10 +66,7 @@ module Google
67
66
 
68
67
  default_config.timeout = 60.0
69
68
  default_config.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
69
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
70
  }
75
71
 
76
72
  default_config
@@ -102,19 +98,15 @@ module Google
102
98
  ##
103
99
  # Create a new EntityTypes client object.
104
100
  #
105
- # ## Examples
106
- #
107
- # To create a new EntityTypes client with the default
108
- # configuration:
101
+ # @example
109
102
  #
110
- # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
111
105
  #
112
- # To create a new EntityTypes client with a custom
113
- # configuration:
114
- #
115
- # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
116
- # config.timeout = 10.0
117
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
118
110
  #
119
111
  # @yield [config] Configure the EntityTypes client.
120
112
  # @yieldparam config [Client::Configuration]
@@ -134,14 +126,13 @@ module Google
134
126
 
135
127
  # Create credentials
136
128
  credentials = @config.credentials
137
- # 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,
138
130
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
132
  !@config.endpoint.split(".").first.include?("-")
142
133
  credentials ||= Credentials.default scope: @config.scope,
143
134
  enable_self_signed_jwt: enable_self_signed_jwt
144
- if credentials.is_a?(String) || credentials.is_a?(Hash)
135
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
136
  credentials = Credentials.new credentials, scope: @config.scope
146
137
  end
147
138
  @quota_project_id = @config.quota_project
@@ -237,7 +228,9 @@ module Google
237
228
  options.apply_defaults timeout: @config.rpcs.list_entity_types.timeout,
238
229
  metadata: metadata,
239
230
  retry_policy: @config.rpcs.list_entity_types.retry_policy
240
- options.apply_defaults metadata: @config.metadata,
231
+
232
+ options.apply_defaults timeout: @config.timeout,
233
+ metadata: @config.metadata,
241
234
  retry_policy: @config.retry_policy
242
235
 
243
236
  @entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
@@ -311,7 +304,9 @@ module Google
311
304
  options.apply_defaults timeout: @config.rpcs.get_entity_type.timeout,
312
305
  metadata: metadata,
313
306
  retry_policy: @config.rpcs.get_entity_type.retry_policy
314
- options.apply_defaults metadata: @config.metadata,
307
+
308
+ options.apply_defaults timeout: @config.timeout,
309
+ metadata: @config.metadata,
315
310
  retry_policy: @config.retry_policy
316
311
 
317
312
  @entity_types_stub.call_rpc :get_entity_type, request, options: options do |response, operation|
@@ -390,7 +385,9 @@ module Google
390
385
  options.apply_defaults timeout: @config.rpcs.create_entity_type.timeout,
391
386
  metadata: metadata,
392
387
  retry_policy: @config.rpcs.create_entity_type.retry_policy
393
- options.apply_defaults metadata: @config.metadata,
388
+
389
+ options.apply_defaults timeout: @config.timeout,
390
+ metadata: @config.metadata,
394
391
  retry_policy: @config.retry_policy
395
392
 
396
393
  @entity_types_stub.call_rpc :create_entity_type, request, options: options do |response, operation|
@@ -468,7 +465,9 @@ module Google
468
465
  options.apply_defaults timeout: @config.rpcs.update_entity_type.timeout,
469
466
  metadata: metadata,
470
467
  retry_policy: @config.rpcs.update_entity_type.retry_policy
471
- options.apply_defaults metadata: @config.metadata,
468
+
469
+ options.apply_defaults timeout: @config.timeout,
470
+ metadata: @config.metadata,
472
471
  retry_policy: @config.retry_policy
473
472
 
474
473
  @entity_types_stub.call_rpc :update_entity_type, request, options: options do |response, operation|
@@ -539,7 +538,9 @@ module Google
539
538
  options.apply_defaults timeout: @config.rpcs.delete_entity_type.timeout,
540
539
  metadata: metadata,
541
540
  retry_policy: @config.rpcs.delete_entity_type.retry_policy
542
- options.apply_defaults metadata: @config.metadata,
541
+
542
+ options.apply_defaults timeout: @config.timeout,
543
+ metadata: @config.metadata,
543
544
  retry_policy: @config.retry_policy
544
545
 
545
546
  @entity_types_stub.call_rpc :delete_entity_type, request, options: options do |response, operation|
@@ -553,6 +554,13 @@ module Google
553
554
  ##
554
555
  # Updates/Creates multiple entity types in the specified agent.
555
556
  #
557
+ # This method is a [long-running
558
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
559
+ # The returned `Operation` type has the following method-specific fields:
560
+ #
561
+ # - `metadata`: An empty [Struct
562
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
563
+ # - `response`: {::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesResponse BatchUpdateEntityTypesResponse}
556
564
  #
557
565
  # Note: You should always train an agent prior to sending it queries. See the
558
566
  # [training
@@ -626,7 +634,9 @@ module Google
626
634
  options.apply_defaults timeout: @config.rpcs.batch_update_entity_types.timeout,
627
635
  metadata: metadata,
628
636
  retry_policy: @config.rpcs.batch_update_entity_types.retry_policy
629
- options.apply_defaults metadata: @config.metadata,
637
+
638
+ options.apply_defaults timeout: @config.timeout,
639
+ metadata: @config.metadata,
630
640
  retry_policy: @config.retry_policy
631
641
 
632
642
  @entity_types_stub.call_rpc :batch_update_entity_types, request, options: options do |response, operation|
@@ -641,6 +651,15 @@ module Google
641
651
  ##
642
652
  # Deletes entity types in the specified agent.
643
653
  #
654
+ # This method is a [long-running
655
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
656
+ # The returned `Operation` type has the following method-specific fields:
657
+ #
658
+ # - `metadata`: An empty [Struct
659
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
660
+ # - `response`: An [Empty
661
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
662
+ #
644
663
  # Note: You should always train an agent prior to sending it queries. See the
645
664
  # [training
646
665
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).
@@ -701,7 +720,9 @@ module Google
701
720
  options.apply_defaults timeout: @config.rpcs.batch_delete_entity_types.timeout,
702
721
  metadata: metadata,
703
722
  retry_policy: @config.rpcs.batch_delete_entity_types.retry_policy
704
- options.apply_defaults metadata: @config.metadata,
723
+
724
+ options.apply_defaults timeout: @config.timeout,
725
+ metadata: @config.metadata,
705
726
  retry_policy: @config.retry_policy
706
727
 
707
728
  @entity_types_stub.call_rpc :batch_delete_entity_types, request, options: options do |response, operation|
@@ -716,6 +737,15 @@ module Google
716
737
  ##
717
738
  # Creates multiple new entities in the specified entity type.
718
739
  #
740
+ # This method is a [long-running
741
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
742
+ # The returned `Operation` type has the following method-specific fields:
743
+ #
744
+ # - `metadata`: An empty [Struct
745
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
746
+ # - `response`: An [Empty
747
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
748
+ #
719
749
  # Note: You should always train an agent prior to sending it queries. See the
720
750
  # [training
721
751
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).
@@ -781,7 +811,9 @@ module Google
781
811
  options.apply_defaults timeout: @config.rpcs.batch_create_entities.timeout,
782
812
  metadata: metadata,
783
813
  retry_policy: @config.rpcs.batch_create_entities.retry_policy
784
- options.apply_defaults metadata: @config.metadata,
814
+
815
+ options.apply_defaults timeout: @config.timeout,
816
+ metadata: @config.metadata,
785
817
  retry_policy: @config.retry_policy
786
818
 
787
819
  @entity_types_stub.call_rpc :batch_create_entities, request, options: options do |response, operation|
@@ -798,6 +830,15 @@ module Google
798
830
  # method does not affect entities in the entity type that aren't explicitly
799
831
  # specified in the request.
800
832
  #
833
+ # This method is a [long-running
834
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
835
+ # The returned `Operation` type has the following method-specific fields:
836
+ #
837
+ # - `metadata`: An empty [Struct
838
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
839
+ # - `response`: An [Empty
840
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
841
+ #
801
842
  # Note: You should always train an agent prior to sending it queries. See the
802
843
  # [training
803
844
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).
@@ -865,7 +906,9 @@ module Google
865
906
  options.apply_defaults timeout: @config.rpcs.batch_update_entities.timeout,
866
907
  metadata: metadata,
867
908
  retry_policy: @config.rpcs.batch_update_entities.retry_policy
868
- options.apply_defaults metadata: @config.metadata,
909
+
910
+ options.apply_defaults timeout: @config.timeout,
911
+ metadata: @config.metadata,
869
912
  retry_policy: @config.retry_policy
870
913
 
871
914
  @entity_types_stub.call_rpc :batch_update_entities, request, options: options do |response, operation|
@@ -880,6 +923,15 @@ module Google
880
923
  ##
881
924
  # Deletes entities in the specified entity type.
882
925
  #
926
+ # This method is a [long-running
927
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
928
+ # The returned `Operation` type has the following method-specific fields:
929
+ #
930
+ # - `metadata`: An empty [Struct
931
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
932
+ # - `response`: An [Empty
933
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
934
+ #
883
935
  # Note: You should always train an agent prior to sending it queries. See the
884
936
  # [training
885
937
  # documentation](https://cloud.google.com/dialogflow/es/docs/training).
@@ -947,7 +999,9 @@ module Google
947
999
  options.apply_defaults timeout: @config.rpcs.batch_delete_entities.timeout,
948
1000
  metadata: metadata,
949
1001
  retry_policy: @config.rpcs.batch_delete_entities.retry_policy
950
- options.apply_defaults metadata: @config.metadata,
1002
+
1003
+ options.apply_defaults timeout: @config.timeout,
1004
+ metadata: @config.metadata,
951
1005
  retry_policy: @config.retry_policy
952
1006
 
953
1007
  @entity_types_stub.call_rpc :batch_delete_entities, request, options: options do |response, operation|
@@ -972,22 +1026,21 @@ module Google
972
1026
  # Configuration can be applied globally to all clients, or to a single client
973
1027
  # on construction.
974
1028
  #
975
- # # Examples
976
- #
977
- # To modify the global config, setting the timeout for list_entity_types
978
- # to 20 seconds, and all remaining timeouts to 10 seconds:
979
- #
980
- # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
981
- # config.timeout = 10.0
982
- # config.rpcs.list_entity_types.timeout = 20.0
983
- # end
984
- #
985
- # To apply the above configuration only to a new client:
986
- #
987
- # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
988
- # config.timeout = 10.0
989
- # config.rpcs.list_entity_types.timeout = 20.0
990
- # end
1029
+ # @example
1030
+ #
1031
+ # # Modify the global config, setting the timeout for
1032
+ # # list_entity_types to 20 seconds,
1033
+ # # and all remaining timeouts to 10 seconds.
1034
+ # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
1035
+ # config.timeout = 10.0
1036
+ # config.rpcs.list_entity_types.timeout = 20.0
1037
+ # end
1038
+ #
1039
+ # # Apply the above configuration only to a new client.
1040
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
1041
+ # config.timeout = 10.0
1042
+ # config.rpcs.list_entity_types.timeout = 20.0
1043
+ # end
991
1044
  #
992
1045
  # @!attribute [rw] endpoint
993
1046
  # The hostname or hostname:port of the service endpoint.