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::Environments::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 Environments clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Environments clients
47
+ # ::Google::Cloud::Dialogflow::V2::Environments::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 Environments client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new Environments client with the default
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new
101
+ # @example
108
102
  #
109
- # To create a new Environments client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Dialogflow::V2::Environments::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::Environments::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the Environments 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
@@ -156,7 +150,7 @@ module Google
156
150
  # Service calls
157
151
 
158
152
  ##
159
- # Returns the list of all non-draft environments of the specified agent.
153
+ # Returns the list of all non-default environments of the specified agent.
160
154
  #
161
155
  # @overload list_environments(request, options = nil)
162
156
  # Pass arguments to `list_environments` via a request object, either of type
@@ -176,6 +170,7 @@ module Google
176
170
  # @param parent [::String]
177
171
  # Required. The agent to list all environments from.
178
172
  # Format:
173
+ #
179
174
  # - `projects/<Project ID>/agent`
180
175
  # - `projects/<Project ID>/locations/<Location ID>/agent`
181
176
  # @param page_size [::Integer]
@@ -218,7 +213,9 @@ module Google
218
213
  options.apply_defaults timeout: @config.rpcs.list_environments.timeout,
219
214
  metadata: metadata,
220
215
  retry_policy: @config.rpcs.list_environments.retry_policy
221
- options.apply_defaults metadata: @config.metadata,
216
+
217
+ options.apply_defaults timeout: @config.timeout,
218
+ metadata: @config.metadata,
222
219
  retry_policy: @config.retry_policy
223
220
 
224
221
  @environments_stub.call_rpc :list_environments, request, options: options do |response, operation|
@@ -251,10 +248,13 @@ module Google
251
248
  # @param name [::String]
252
249
  # Required. The name of the environment.
253
250
  # Supported formats:
251
+ #
254
252
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
255
253
  # - `projects/<Project ID>/locations/<Location
256
254
  # ID>/agent/environments/<Environment ID>`
257
255
  #
256
+ # The environment ID for the default environment is `-`.
257
+ #
258
258
  # @yield [response, operation] Access the result along with the RPC operation
259
259
  # @yieldparam response [::Google::Cloud::Dialogflow::V2::Environment]
260
260
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -289,7 +289,9 @@ module Google
289
289
  options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
290
290
  metadata: metadata,
291
291
  retry_policy: @config.rpcs.get_environment.retry_policy
292
- options.apply_defaults metadata: @config.metadata,
292
+
293
+ options.apply_defaults timeout: @config.timeout,
294
+ metadata: @config.metadata,
293
295
  retry_policy: @config.retry_policy
294
296
 
295
297
  @environments_stub.call_rpc :get_environment, request, options: options do |response, operation|
@@ -321,6 +323,7 @@ module Google
321
323
  # @param parent [::String]
322
324
  # Required. The agent to create an environment for.
323
325
  # Supported formats:
326
+ #
324
327
  # - `projects/<Project ID>/agent`
325
328
  # - `projects/<Project ID>/locations/<Location ID>/agent`
326
329
  # @param environment [::Google::Cloud::Dialogflow::V2::Environment, ::Hash]
@@ -362,7 +365,9 @@ module Google
362
365
  options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
363
366
  metadata: metadata,
364
367
  retry_policy: @config.rpcs.create_environment.retry_policy
365
- options.apply_defaults metadata: @config.metadata,
368
+
369
+ options.apply_defaults timeout: @config.timeout,
370
+ metadata: @config.metadata,
366
371
  retry_policy: @config.retry_policy
367
372
 
368
373
  @environments_stub.call_rpc :create_environment, request, options: options do |response, operation|
@@ -379,13 +384,13 @@ module Google
379
384
  # This method allows you to deploy new agent versions into the environment.
380
385
  # When an environment is pointed to a new agent version by setting
381
386
  # `environment.agent_version`, the environment is temporarily set to the
382
- # `LOADING` state. During that time, the environment keeps on serving the
387
+ # `LOADING` state. During that time, the environment continues serving the
383
388
  # previous version of the agent. After the new agent version is done loading,
384
389
  # the environment is set back to the `RUNNING` state.
385
- # You can use "-" as Environment ID in environment name to update version
386
- # in "draft" environment. WARNING: this will negate all recent changes to
387
- # draft and can't be undone. You may want to save the draft to a version
388
- # before calling this function.
390
+ # You can use "-" as Environment ID in environment name to update an agent
391
+ # version in the default environment. WARNING: this will negate all recent
392
+ # changes to the draft agent and can't be undone. You may want to save the
393
+ # draft agent to a version before calling this method.
389
394
  #
390
395
  # @overload update_environment(request, options = nil)
391
396
  # Pass arguments to `update_environment` via a request object, either of type
@@ -407,10 +412,10 @@ module Google
407
412
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
408
413
  # Required. The mask to control which fields get updated.
409
414
  # @param allow_load_to_draft_and_discard_changes [::Boolean]
410
- # Optional. This field is used to prevent accidental overwrite of the draft
415
+ # Optional. This field is used to prevent accidental overwrite of the default
411
416
  # environment, which is an operation that cannot be undone. To confirm that
412
417
  # the caller desires this overwrite, this field must be explicitly set to
413
- # true when updating the draft environment (environment ID = `-`).
418
+ # true when updating the default environment (environment ID = `-`).
414
419
  #
415
420
  # @yield [response, operation] Access the result along with the RPC operation
416
421
  # @yieldparam response [::Google::Cloud::Dialogflow::V2::Environment]
@@ -446,7 +451,9 @@ module Google
446
451
  options.apply_defaults timeout: @config.rpcs.update_environment.timeout,
447
452
  metadata: metadata,
448
453
  retry_policy: @config.rpcs.update_environment.retry_policy
449
- options.apply_defaults metadata: @config.metadata,
454
+
455
+ options.apply_defaults timeout: @config.timeout,
456
+ metadata: @config.metadata,
450
457
  retry_policy: @config.retry_policy
451
458
 
452
459
  @environments_stub.call_rpc :update_environment, request, options: options do |response, operation|
@@ -478,9 +485,12 @@ module Google
478
485
  # @param name [::String]
479
486
  # Required. The name of the environment to delete.
480
487
  # / Format:
488
+ #
481
489
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
482
490
  # - `projects/<Project ID>/locations/<Location
483
- # ID>/agent/environments/<Environment ID>`
491
+ # ID>/agent/environments/<Environment ID>`
492
+ #
493
+ # The environment ID for the default environment is `-`.
484
494
  #
485
495
  # @yield [response, operation] Access the result along with the RPC operation
486
496
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -516,7 +526,9 @@ module Google
516
526
  options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
517
527
  metadata: metadata,
518
528
  retry_policy: @config.rpcs.delete_environment.retry_policy
519
- options.apply_defaults metadata: @config.metadata,
529
+
530
+ options.apply_defaults timeout: @config.timeout,
531
+ metadata: @config.metadata,
520
532
  retry_policy: @config.retry_policy
521
533
 
522
534
  @environments_stub.call_rpc :delete_environment, request, options: options do |response, operation|
@@ -548,9 +560,12 @@ module Google
548
560
  # @param parent [::String]
549
561
  # Required. The name of the environment to retrieve history for.
550
562
  # Supported formats:
563
+ #
551
564
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
552
565
  # - `projects/<Project ID>/locations/<Location
553
566
  # ID>/agent/environments/<Environment ID>`
567
+ #
568
+ # The environment ID for the default environment is `-`.
554
569
  # @param page_size [::Integer]
555
570
  # Optional. The maximum number of items to return in a single page. By default 100 and
556
571
  # at most 1000.
@@ -591,7 +606,9 @@ module Google
591
606
  options.apply_defaults timeout: @config.rpcs.get_environment_history.timeout,
592
607
  metadata: metadata,
593
608
  retry_policy: @config.rpcs.get_environment_history.retry_policy
594
- options.apply_defaults metadata: @config.metadata,
609
+
610
+ options.apply_defaults timeout: @config.timeout,
611
+ metadata: @config.metadata,
595
612
  retry_policy: @config.retry_policy
596
613
 
597
614
  @environments_stub.call_rpc :get_environment_history, request, options: options do |response, operation|
@@ -616,22 +633,21 @@ module Google
616
633
  # Configuration can be applied globally to all clients, or to a single client
617
634
  # on construction.
618
635
  #
619
- # # Examples
620
- #
621
- # To modify the global config, setting the timeout for list_environments
622
- # to 20 seconds, and all remaining timeouts to 10 seconds:
623
- #
624
- # ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
625
- # config.timeout = 10.0
626
- # config.rpcs.list_environments.timeout = 20.0
627
- # end
628
- #
629
- # To apply the above configuration only to a new client:
630
- #
631
- # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
632
- # config.timeout = 10.0
633
- # config.rpcs.list_environments.timeout = 20.0
634
- # end
636
+ # @example
637
+ #
638
+ # # Modify the global config, setting the timeout for
639
+ # # list_environments to 20 seconds,
640
+ # # and all remaining timeouts to 10 seconds.
641
+ # ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
642
+ # config.timeout = 10.0
643
+ # config.rpcs.list_environments.timeout = 20.0
644
+ # end
645
+ #
646
+ # # Apply the above configuration only to a new client.
647
+ # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
648
+ # config.timeout = 10.0
649
+ # config.rpcs.list_environments.timeout = 20.0
650
+ # end
635
651
  #
636
652
  # @!attribute [rw] endpoint
637
653
  # The hostname or hostname:port of the service endpoint.
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/fulfillment.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/protobuf/field_mask_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/dialogflow/v2/fulfillment.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.dialogflow.v2.Fulfillment" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
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
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Dialogflow::V2::Fulfillments::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 Fulfillments clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Fulfillments clients
47
+ # ::Google::Cloud::Dialogflow::V2::Fulfillments::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 Fulfillments client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new Fulfillments client with the default
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
101
+ # @example
108
102
  #
109
- # To create a new Fulfillments client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::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::Fulfillments::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the Fulfillments 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
@@ -211,7 +205,9 @@ module Google
211
205
  options.apply_defaults timeout: @config.rpcs.get_fulfillment.timeout,
212
206
  metadata: metadata,
213
207
  retry_policy: @config.rpcs.get_fulfillment.retry_policy
214
- options.apply_defaults metadata: @config.metadata,
208
+
209
+ options.apply_defaults timeout: @config.timeout,
210
+ metadata: @config.metadata,
215
211
  retry_policy: @config.retry_policy
216
212
 
217
213
  @fulfillments_stub.call_rpc :get_fulfillment, request, options: options do |response, operation|
@@ -280,7 +276,9 @@ module Google
280
276
  options.apply_defaults timeout: @config.rpcs.update_fulfillment.timeout,
281
277
  metadata: metadata,
282
278
  retry_policy: @config.rpcs.update_fulfillment.retry_policy
283
- options.apply_defaults metadata: @config.metadata,
279
+
280
+ options.apply_defaults timeout: @config.timeout,
281
+ metadata: @config.metadata,
284
282
  retry_policy: @config.retry_policy
285
283
 
286
284
  @fulfillments_stub.call_rpc :update_fulfillment, request, options: options do |response, operation|
@@ -304,22 +302,21 @@ module Google
304
302
  # Configuration can be applied globally to all clients, or to a single client
305
303
  # on construction.
306
304
  #
307
- # # Examples
308
- #
309
- # To modify the global config, setting the timeout for get_fulfillment
310
- # to 20 seconds, and all remaining timeouts to 10 seconds:
311
- #
312
- # ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
313
- # config.timeout = 10.0
314
- # config.rpcs.get_fulfillment.timeout = 20.0
315
- # end
316
- #
317
- # To apply the above configuration only to a new client:
318
- #
319
- # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
320
- # config.timeout = 10.0
321
- # config.rpcs.get_fulfillment.timeout = 20.0
322
- # end
305
+ # @example
306
+ #
307
+ # # Modify the global config, setting the timeout for
308
+ # # get_fulfillment to 20 seconds,
309
+ # # and all remaining timeouts to 10 seconds.
310
+ # ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
311
+ # config.timeout = 10.0
312
+ # config.rpcs.get_fulfillment.timeout = 20.0
313
+ # end
314
+ #
315
+ # # Apply the above configuration only to a new client.
316
+ # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
317
+ # config.timeout = 10.0
318
+ # config.rpcs.get_fulfillment.timeout = 20.0
319
+ # end
323
320
  #
324
321
  # @!attribute [rw] endpoint
325
322
  # The hostname or hostname:port of the service endpoint.
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/gcs.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/dialogflow/v2/gcs.proto", :syntax => :proto3) do
10
10
  end
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/human_agent_assistant_event.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/cloud/dialogflow/v2/participant_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/dialogflow/v2/human_agent_assistant_event.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.dialogflow.v2.HumanAgentAssistantEvent" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/intent.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'
@@ -14,6 +12,8 @@ require 'google/protobuf/duration_pb'
14
12
  require 'google/protobuf/empty_pb'
15
13
  require 'google/protobuf/field_mask_pb'
16
14
  require 'google/protobuf/struct_pb'
15
+ require 'google/protobuf'
16
+
17
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  add_file("google/cloud/dialogflow/v2/intent.proto", :syntax => :proto3) do
19
19
  add_message "google.cloud.dialogflow.v2.Intent" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
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 :DeleteIntent, ::Google::Cloud::Dialogflow::V2::DeleteIntentRequest, ::Google::Protobuf::Empty
58
58
  # Updates/Creates multiple intents 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`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
60
67
  #
61
68
  # Note: You should always train an agent prior to sending it queries. See the
62
69
  # [training
@@ -64,6 +71,14 @@ module Google
64
71
  rpc :BatchUpdateIntents, ::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest, ::Google::Longrunning::Operation
65
72
  # Deletes intents 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)
67
82
  #
68
83
  # Note: You should always train an agent prior to sending it queries. See the
69
84
  # [training