google-cloud-dialogflow-v2 0.4.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/dialogflow/v2.rb +2 -1
  5. data/lib/google/cloud/dialogflow/v2/agents.rb +5 -5
  6. data/lib/google/cloud/dialogflow/v2/agents/client.rb +218 -205
  7. data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
  8. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +108 -102
  9. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +2 -2
  10. data/lib/google/cloud/dialogflow/v2/contexts.rb +3 -3
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +147 -142
  12. data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +1 -1
  13. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +14 -14
  14. data/lib/google/cloud/dialogflow/v2/entity_types.rb +2 -2
  15. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +244 -231
  16. data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
  17. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +108 -102
  18. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +3 -3
  19. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +51 -0
  20. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +45 -0
  21. data/lib/google/cloud/dialogflow/v2/environments.rb +49 -0
  22. data/lib/google/cloud/dialogflow/v2/environments/client.rb +384 -0
  23. data/lib/google/cloud/dialogflow/v2/environments/credentials.rb +52 -0
  24. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +47 -0
  25. data/lib/google/cloud/dialogflow/v2/intents.rb +3 -3
  26. data/lib/google/cloud/dialogflow/v2/intents/client.rb +189 -176
  27. data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
  28. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +108 -102
  29. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +11 -11
  30. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -1
  31. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +129 -124
  32. data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +1 -1
  33. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +14 -14
  34. data/lib/google/cloud/dialogflow/v2/sessions.rb +3 -3
  35. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +85 -80
  36. data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +1 -1
  37. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +22 -22
  38. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  39. data/proto_docs/google/api/resource.rb +12 -12
  40. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +69 -69
  41. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +45 -44
  42. data/proto_docs/google/cloud/dialogflow/v2/context.rb +38 -38
  43. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +86 -86
  44. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +103 -0
  45. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +251 -250
  46. data/proto_docs/google/cloud/dialogflow/v2/session.rb +114 -106
  47. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +35 -35
  48. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +8 -8
  49. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +43 -36
  50. data/proto_docs/google/longrunning/operations.rb +30 -30
  51. data/proto_docs/google/protobuf/any.rb +4 -4
  52. data/proto_docs/google/protobuf/duration.rb +4 -4
  53. data/proto_docs/google/protobuf/empty.rb +2 -2
  54. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  55. data/proto_docs/google/protobuf/struct.rb +18 -18
  56. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  57. data/proto_docs/google/rpc/status.rb +6 -6
  58. data/proto_docs/google/type/latlng.rb +4 -4
  59. metadata +40 -5
  60. data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -24,7 +24,7 @@ module Google
24
24
  module V2
25
25
  module Contexts
26
26
  # Credentials for the Contexts API.
27
- class Credentials < Google::Auth::Credentials
27
+ class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
29
  "https://www.googleapis.com/auth/cloud-platform",
30
30
  "https://www.googleapis.com/auth/dialogflow"
@@ -47,27 +47,27 @@ module Google
47
47
  # @param session [String]
48
48
  # @param context [String]
49
49
  #
50
- # @return [String]
50
+ # @return [::String]
51
51
  def context_path **args
52
52
  resources = {
53
53
  "context:project:session" => (proc do |project:, session:, context:|
54
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
55
- raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
54
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
55
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
56
56
 
57
57
  "projects/#{project}/agent/sessions/#{session}/contexts/#{context}"
58
58
  end),
59
59
  "context:environment:project:session:user" => (proc do |project:, environment:, user:, session:, context:|
60
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
- raise ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
62
- raise ArgumentError, "user cannot contain /" if user.to_s.include? "/"
63
- raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
62
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
63
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
64
64
 
65
65
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
66
66
  end)
67
67
  }
68
68
 
69
69
  resource = resources[args.keys.sort.join(":")]
70
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
70
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
71
71
  resource.call(**args)
72
72
  end
73
73
 
@@ -92,25 +92,25 @@ module Google
92
92
  # @param user [String]
93
93
  # @param session [String]
94
94
  #
95
- # @return [String]
95
+ # @return [::String]
96
96
  def session_path **args
97
97
  resources = {
98
98
  "project:session" => (proc do |project:, session:|
99
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
99
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
100
100
 
101
101
  "projects/#{project}/agent/sessions/#{session}"
102
102
  end),
103
103
  "environment:project:session:user" => (proc do |project:, environment:, user:, session:|
104
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
105
- raise ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
106
- raise ArgumentError, "user cannot contain /" if user.to_s.include? "/"
104
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
105
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
106
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
107
107
 
108
108
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
109
109
  end)
110
110
  }
111
111
 
112
112
  resource = resources[args.keys.sort.join(":")]
113
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
113
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
114
114
  resource.call(**args)
115
115
  end
116
116
 
@@ -55,7 +55,7 @@ module Google
55
55
  #
56
56
  # * **User** - entities that are built for an individual user such as
57
57
  # favorites, preferences, playlists, and so on. A user entity is
58
- # represented by the {Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityType} type.
58
+ # represented by the {::Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityType} type.
59
59
  #
60
60
  # For more information about entity types, see the
61
61
  # [Dialogflow
@@ -64,7 +64,7 @@ module Google
64
64
  # To load this service and instantiate a client:
65
65
  #
66
66
  # require "google/cloud/dialogflow/v2/entity_types"
67
- # client = Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
67
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
68
68
  #
69
69
  module EntityTypes
70
70
  end
@@ -50,7 +50,7 @@ module Google
50
50
  #
51
51
  # * **User** - entities that are built for an individual user such as
52
52
  # favorites, preferences, playlists, and so on. A user entity is
53
- # represented by the {Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityType} type.
53
+ # represented by the {::Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityType} type.
54
54
  #
55
55
  # For more information about entity types, see the
56
56
  # [Dialogflow
@@ -65,15 +65,15 @@ module Google
65
65
  ##
66
66
  # Configure the EntityTypes Client class.
67
67
  #
68
- # See {Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration}
68
+ # See {::Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration}
69
69
  # for a description of the configuration fields.
70
70
  #
71
71
  # ## Example
72
72
  #
73
73
  # To modify the configuration for all EntityTypes clients:
74
74
  #
75
- # Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
76
- # config.timeout = 10_000
75
+ # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
76
+ # config.timeout = 10.0
77
77
  # end
78
78
  #
79
79
  # @yield [config] Configure the Client client.
@@ -155,7 +155,7 @@ module Google
155
155
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
156
156
  # should be made on {Client.configure}.
157
157
  #
158
- # See {Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration}
158
+ # See {::Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration}
159
159
  # for a description of the configuration fields.
160
160
  #
161
161
  # @yield [config] Configure the Client client.
@@ -176,13 +176,13 @@ module Google
176
176
  # To create a new EntityTypes client with the default
177
177
  # configuration:
178
178
  #
179
- # client = Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
179
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
180
180
  #
181
181
  # To create a new EntityTypes client with a custom
182
182
  # configuration:
183
183
  #
184
- # client = Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
185
- # config.timeout = 10_000
184
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
185
+ # config.timeout = 10.0
186
186
  # end
187
187
  #
188
188
  # @yield [config] Configure the EntityTypes client.
@@ -207,14 +207,16 @@ module Google
207
207
  if credentials.is_a?(String) || credentials.is_a?(Hash)
208
208
  credentials = Credentials.new credentials, scope: @config.scope
209
209
  end
210
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
210
+ @quota_project_id = @config.quota_project
211
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
211
212
 
212
213
  @operations_client = Operations.new do |config|
213
214
  config.credentials = credentials
215
+ config.endpoint = @config.endpoint
214
216
  end
215
217
 
216
- @entity_types_stub = Gapic::ServiceStub.new(
217
- Google::Cloud::Dialogflow::V2::EntityTypes::Stub,
218
+ @entity_types_stub = ::Gapic::ServiceStub.new(
219
+ ::Google::Cloud::Dialogflow::V2::EntityTypes::Stub,
218
220
  credentials: credentials,
219
221
  endpoint: @config.endpoint,
220
222
  channel_args: @config.channel_args,
@@ -222,6 +224,13 @@ module Google
222
224
  )
223
225
  end
224
226
 
227
+ ##
228
+ # Get the associated client for long-running operations.
229
+ #
230
+ # @return [::Google::Cloud::Dialogflow::V2::EntityTypes::Operations]
231
+ #
232
+ attr_reader :operations_client
233
+
225
234
  # Service calls
226
235
 
227
236
  ##
@@ -229,12 +238,12 @@ module Google
229
238
  #
230
239
  # @overload list_entity_types(request, options = nil)
231
240
  # Pass arguments to `list_entity_types` via a request object, either of type
232
- # {Google::Cloud::Dialogflow::V2::ListEntityTypesRequest} or an equivalent Hash.
241
+ # {::Google::Cloud::Dialogflow::V2::ListEntityTypesRequest} or an equivalent Hash.
233
242
  #
234
- # @param request [Google::Cloud::Dialogflow::V2::ListEntityTypesRequest, Hash]
243
+ # @param request [::Google::Cloud::Dialogflow::V2::ListEntityTypesRequest, ::Hash]
235
244
  # A request object representing the call parameters. Required. To specify no
236
245
  # parameters, or to keep all the default parameter values, pass an empty Hash.
237
- # @param options [Gapic::CallOptions, Hash]
246
+ # @param options [::Gapic::CallOptions, ::Hash]
238
247
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
239
248
  #
240
249
  # @overload list_entity_types(parent: nil, language_code: nil, page_size: nil, page_token: nil)
@@ -242,42 +251,42 @@ module Google
242
251
  # least one keyword argument is required. To specify no parameters, or to keep all
243
252
  # the default parameter values, pass an empty Hash as a request object (see above).
244
253
  #
245
- # @param parent [String]
254
+ # @param parent [::String]
246
255
  # Required. The agent to list all entity types from.
247
256
  # Format: `projects/<Project ID>/agent`.
248
- # @param language_code [String]
257
+ # @param language_code [::String]
249
258
  # Optional. The language used to access language-specific data.
250
259
  # If not specified, the agent's default language is used.
251
260
  # For more information, see
252
261
  # [Multilingual intent and entity
253
262
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
254
- # @param page_size [Integer]
263
+ # @param page_size [::Integer]
255
264
  # Optional. The maximum number of items to return in a single page. By
256
265
  # default 100 and at most 1000.
257
- # @param page_token [String]
266
+ # @param page_token [::String]
258
267
  # Optional. The next_page_token value returned from a previous list request.
259
268
  #
260
269
  # @yield [response, operation] Access the result along with the RPC operation
261
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dialogflow::V2::EntityType>]
262
- # @yieldparam operation [GRPC::ActiveCall::Operation]
270
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::EntityType>]
271
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
263
272
  #
264
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dialogflow::V2::EntityType>]
273
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::EntityType>]
265
274
  #
266
- # @raise [Google::Cloud::Error] if the RPC is aborted.
275
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
267
276
  #
268
277
  def list_entity_types request, options = nil
269
- raise ArgumentError, "request must be provided" if request.nil?
278
+ raise ::ArgumentError, "request must be provided" if request.nil?
270
279
 
271
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::ListEntityTypesRequest
280
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListEntityTypesRequest
272
281
 
273
282
  # Converts hash and nil to an options object
274
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
283
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
275
284
 
276
285
  # Customize the options with defaults
277
286
  metadata = @config.rpcs.list_entity_types.metadata.to_h
278
287
 
279
288
  # Set x-goog-api-client and x-goog-user-project headers
280
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
289
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
281
290
  lib_name: @config.lib_name, lib_version: @config.lib_version,
282
291
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
283
292
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -295,12 +304,12 @@ module Google
295
304
  retry_policy: @config.retry_policy
296
305
 
297
306
  @entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
298
- response = Gapic::PagedEnumerable.new @entity_types_stub, :list_entity_types, request, response, operation, options
307
+ response = ::Gapic::PagedEnumerable.new @entity_types_stub, :list_entity_types, request, response, operation, options
299
308
  yield response, operation if block_given?
300
309
  return response
301
310
  end
302
- rescue GRPC::BadStatus => e
303
- raise Google::Cloud::Error.from_error(e)
311
+ rescue ::GRPC::BadStatus => e
312
+ raise ::Google::Cloud::Error.from_error(e)
304
313
  end
305
314
 
306
315
  ##
@@ -308,12 +317,12 @@ module Google
308
317
  #
309
318
  # @overload get_entity_type(request, options = nil)
310
319
  # Pass arguments to `get_entity_type` via a request object, either of type
311
- # {Google::Cloud::Dialogflow::V2::GetEntityTypeRequest} or an equivalent Hash.
320
+ # {::Google::Cloud::Dialogflow::V2::GetEntityTypeRequest} or an equivalent Hash.
312
321
  #
313
- # @param request [Google::Cloud::Dialogflow::V2::GetEntityTypeRequest, Hash]
322
+ # @param request [::Google::Cloud::Dialogflow::V2::GetEntityTypeRequest, ::Hash]
314
323
  # A request object representing the call parameters. Required. To specify no
315
324
  # parameters, or to keep all the default parameter values, pass an empty Hash.
316
- # @param options [Gapic::CallOptions, Hash]
325
+ # @param options [::Gapic::CallOptions, ::Hash]
317
326
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
318
327
  #
319
328
  # @overload get_entity_type(name: nil, language_code: nil)
@@ -321,10 +330,10 @@ module Google
321
330
  # least one keyword argument is required. To specify no parameters, or to keep all
322
331
  # the default parameter values, pass an empty Hash as a request object (see above).
323
332
  #
324
- # @param name [String]
333
+ # @param name [::String]
325
334
  # Required. The name of the entity type.
326
335
  # Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
327
- # @param language_code [String]
336
+ # @param language_code [::String]
328
337
  # Optional. The language used to access language-specific data.
329
338
  # If not specified, the agent's default language is used.
330
339
  # For more information, see
@@ -332,26 +341,26 @@ module Google
332
341
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
333
342
  #
334
343
  # @yield [response, operation] Access the result along with the RPC operation
335
- # @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
336
- # @yieldparam operation [GRPC::ActiveCall::Operation]
344
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::EntityType]
345
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
337
346
  #
338
- # @return [Google::Cloud::Dialogflow::V2::EntityType]
347
+ # @return [::Google::Cloud::Dialogflow::V2::EntityType]
339
348
  #
340
- # @raise [Google::Cloud::Error] if the RPC is aborted.
349
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
341
350
  #
342
351
  def get_entity_type request, options = nil
343
- raise ArgumentError, "request must be provided" if request.nil?
352
+ raise ::ArgumentError, "request must be provided" if request.nil?
344
353
 
345
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::GetEntityTypeRequest
354
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GetEntityTypeRequest
346
355
 
347
356
  # Converts hash and nil to an options object
348
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
357
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
349
358
 
350
359
  # Customize the options with defaults
351
360
  metadata = @config.rpcs.get_entity_type.metadata.to_h
352
361
 
353
362
  # Set x-goog-api-client and x-goog-user-project headers
354
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
363
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
365
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
357
366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -372,8 +381,8 @@ module Google
372
381
  yield response, operation if block_given?
373
382
  return response
374
383
  end
375
- rescue GRPC::BadStatus => e
376
- raise Google::Cloud::Error.from_error(e)
384
+ rescue ::GRPC::BadStatus => e
385
+ raise ::Google::Cloud::Error.from_error(e)
377
386
  end
378
387
 
379
388
  ##
@@ -381,12 +390,12 @@ module Google
381
390
  #
382
391
  # @overload create_entity_type(request, options = nil)
383
392
  # Pass arguments to `create_entity_type` via a request object, either of type
384
- # {Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest} or an equivalent Hash.
393
+ # {::Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest} or an equivalent Hash.
385
394
  #
386
- # @param request [Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest, Hash]
395
+ # @param request [::Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest, ::Hash]
387
396
  # A request object representing the call parameters. Required. To specify no
388
397
  # parameters, or to keep all the default parameter values, pass an empty Hash.
389
- # @param options [Gapic::CallOptions, Hash]
398
+ # @param options [::Gapic::CallOptions, ::Hash]
390
399
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
391
400
  #
392
401
  # @overload create_entity_type(parent: nil, entity_type: nil, language_code: nil)
@@ -394,12 +403,12 @@ module Google
394
403
  # least one keyword argument is required. To specify no parameters, or to keep all
395
404
  # the default parameter values, pass an empty Hash as a request object (see above).
396
405
  #
397
- # @param parent [String]
406
+ # @param parent [::String]
398
407
  # Required. The agent to create a entity type for.
399
408
  # Format: `projects/<Project ID>/agent`.
400
- # @param entity_type [Google::Cloud::Dialogflow::V2::EntityType, Hash]
409
+ # @param entity_type [::Google::Cloud::Dialogflow::V2::EntityType, ::Hash]
401
410
  # Required. The entity type to create.
402
- # @param language_code [String]
411
+ # @param language_code [::String]
403
412
  # Optional. The language used to access language-specific data.
404
413
  # If not specified, the agent's default language is used.
405
414
  # For more information, see
@@ -407,26 +416,26 @@ module Google
407
416
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
408
417
  #
409
418
  # @yield [response, operation] Access the result along with the RPC operation
410
- # @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
411
- # @yieldparam operation [GRPC::ActiveCall::Operation]
419
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::EntityType]
420
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
412
421
  #
413
- # @return [Google::Cloud::Dialogflow::V2::EntityType]
422
+ # @return [::Google::Cloud::Dialogflow::V2::EntityType]
414
423
  #
415
- # @raise [Google::Cloud::Error] if the RPC is aborted.
424
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
416
425
  #
417
426
  def create_entity_type request, options = nil
418
- raise ArgumentError, "request must be provided" if request.nil?
427
+ raise ::ArgumentError, "request must be provided" if request.nil?
419
428
 
420
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest
429
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest
421
430
 
422
431
  # Converts hash and nil to an options object
423
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
432
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
424
433
 
425
434
  # Customize the options with defaults
426
435
  metadata = @config.rpcs.create_entity_type.metadata.to_h
427
436
 
428
437
  # Set x-goog-api-client and x-goog-user-project headers
429
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
438
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
430
439
  lib_name: @config.lib_name, lib_version: @config.lib_version,
431
440
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
432
441
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -447,8 +456,8 @@ module Google
447
456
  yield response, operation if block_given?
448
457
  return response
449
458
  end
450
- rescue GRPC::BadStatus => e
451
- raise Google::Cloud::Error.from_error(e)
459
+ rescue ::GRPC::BadStatus => e
460
+ raise ::Google::Cloud::Error.from_error(e)
452
461
  end
453
462
 
454
463
  ##
@@ -456,12 +465,12 @@ module Google
456
465
  #
457
466
  # @overload update_entity_type(request, options = nil)
458
467
  # Pass arguments to `update_entity_type` via a request object, either of type
459
- # {Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest} or an equivalent Hash.
468
+ # {::Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest} or an equivalent Hash.
460
469
  #
461
- # @param request [Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest, Hash]
470
+ # @param request [::Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest, ::Hash]
462
471
  # A request object representing the call parameters. Required. To specify no
463
472
  # parameters, or to keep all the default parameter values, pass an empty Hash.
464
- # @param options [Gapic::CallOptions, Hash]
473
+ # @param options [::Gapic::CallOptions, ::Hash]
465
474
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
466
475
  #
467
476
  # @overload update_entity_type(entity_type: nil, language_code: nil, update_mask: nil)
@@ -469,38 +478,38 @@ module Google
469
478
  # least one keyword argument is required. To specify no parameters, or to keep all
470
479
  # the default parameter values, pass an empty Hash as a request object (see above).
471
480
  #
472
- # @param entity_type [Google::Cloud::Dialogflow::V2::EntityType, Hash]
481
+ # @param entity_type [::Google::Cloud::Dialogflow::V2::EntityType, ::Hash]
473
482
  # Required. The entity type to update.
474
- # @param language_code [String]
483
+ # @param language_code [::String]
475
484
  # Optional. The language used to access language-specific data.
476
485
  # If not specified, the agent's default language is used.
477
486
  # For more information, see
478
487
  # [Multilingual intent and entity
479
488
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
480
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
489
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
481
490
  # Optional. The mask to control which fields get updated.
482
491
  #
483
492
  # @yield [response, operation] Access the result along with the RPC operation
484
- # @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
485
- # @yieldparam operation [GRPC::ActiveCall::Operation]
493
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::EntityType]
494
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
486
495
  #
487
- # @return [Google::Cloud::Dialogflow::V2::EntityType]
496
+ # @return [::Google::Cloud::Dialogflow::V2::EntityType]
488
497
  #
489
- # @raise [Google::Cloud::Error] if the RPC is aborted.
498
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
490
499
  #
491
500
  def update_entity_type request, options = nil
492
- raise ArgumentError, "request must be provided" if request.nil?
501
+ raise ::ArgumentError, "request must be provided" if request.nil?
493
502
 
494
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest
503
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest
495
504
 
496
505
  # Converts hash and nil to an options object
497
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
506
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
498
507
 
499
508
  # Customize the options with defaults
500
509
  metadata = @config.rpcs.update_entity_type.metadata.to_h
501
510
 
502
511
  # Set x-goog-api-client and x-goog-user-project headers
503
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
512
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
504
513
  lib_name: @config.lib_name, lib_version: @config.lib_version,
505
514
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
506
515
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -521,8 +530,8 @@ module Google
521
530
  yield response, operation if block_given?
522
531
  return response
523
532
  end
524
- rescue GRPC::BadStatus => e
525
- raise Google::Cloud::Error.from_error(e)
533
+ rescue ::GRPC::BadStatus => e
534
+ raise ::Google::Cloud::Error.from_error(e)
526
535
  end
527
536
 
528
537
  ##
@@ -530,12 +539,12 @@ module Google
530
539
  #
531
540
  # @overload delete_entity_type(request, options = nil)
532
541
  # Pass arguments to `delete_entity_type` via a request object, either of type
533
- # {Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest} or an equivalent Hash.
542
+ # {::Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest} or an equivalent Hash.
534
543
  #
535
- # @param request [Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest, Hash]
544
+ # @param request [::Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest, ::Hash]
536
545
  # A request object representing the call parameters. Required. To specify no
537
546
  # parameters, or to keep all the default parameter values, pass an empty Hash.
538
- # @param options [Gapic::CallOptions, Hash]
547
+ # @param options [::Gapic::CallOptions, ::Hash]
539
548
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
540
549
  #
541
550
  # @overload delete_entity_type(name: nil)
@@ -543,31 +552,31 @@ module Google
543
552
  # least one keyword argument is required. To specify no parameters, or to keep all
544
553
  # the default parameter values, pass an empty Hash as a request object (see above).
545
554
  #
546
- # @param name [String]
555
+ # @param name [::String]
547
556
  # Required. The name of the entity type to delete.
548
557
  # Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
549
558
  #
550
559
  # @yield [response, operation] Access the result along with the RPC operation
551
- # @yieldparam response [Google::Protobuf::Empty]
552
- # @yieldparam operation [GRPC::ActiveCall::Operation]
560
+ # @yieldparam response [::Google::Protobuf::Empty]
561
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
553
562
  #
554
- # @return [Google::Protobuf::Empty]
563
+ # @return [::Google::Protobuf::Empty]
555
564
  #
556
- # @raise [Google::Cloud::Error] if the RPC is aborted.
565
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
557
566
  #
558
567
  def delete_entity_type request, options = nil
559
- raise ArgumentError, "request must be provided" if request.nil?
568
+ raise ::ArgumentError, "request must be provided" if request.nil?
560
569
 
561
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest
570
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest
562
571
 
563
572
  # Converts hash and nil to an options object
564
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
573
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
565
574
 
566
575
  # Customize the options with defaults
567
576
  metadata = @config.rpcs.delete_entity_type.metadata.to_h
568
577
 
569
578
  # Set x-goog-api-client and x-goog-user-project headers
570
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
579
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
581
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
573
582
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -588,23 +597,23 @@ module Google
588
597
  yield response, operation if block_given?
589
598
  return response
590
599
  end
591
- rescue GRPC::BadStatus => e
592
- raise Google::Cloud::Error.from_error(e)
600
+ rescue ::GRPC::BadStatus => e
601
+ raise ::Google::Cloud::Error.from_error(e)
593
602
  end
594
603
 
595
604
  ##
596
605
  # Updates/Creates multiple entity types in the specified agent.
597
606
  #
598
- # Operation <response: {Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesResponse BatchUpdateEntityTypesResponse}>
607
+ # Operation <response: {::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesResponse BatchUpdateEntityTypesResponse}>
599
608
  #
600
609
  # @overload batch_update_entity_types(request, options = nil)
601
610
  # Pass arguments to `batch_update_entity_types` via a request object, either of type
602
- # {Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest} or an equivalent Hash.
611
+ # {::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest} or an equivalent Hash.
603
612
  #
604
- # @param request [Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest, Hash]
613
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest, ::Hash]
605
614
  # A request object representing the call parameters. Required. To specify no
606
615
  # parameters, or to keep all the default parameter values, pass an empty Hash.
607
- # @param options [Gapic::CallOptions, Hash]
616
+ # @param options [::Gapic::CallOptions, ::Hash]
608
617
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
609
618
  #
610
619
  # @overload batch_update_entity_types(parent: nil, entity_type_batch_uri: nil, entity_type_batch_inline: nil, language_code: nil, update_mask: nil)
@@ -612,46 +621,46 @@ module Google
612
621
  # least one keyword argument is required. To specify no parameters, or to keep all
613
622
  # the default parameter values, pass an empty Hash as a request object (see above).
614
623
  #
615
- # @param parent [String]
624
+ # @param parent [::String]
616
625
  # Required. The name of the agent to update or create entity types in.
617
626
  # Format: `projects/<Project ID>/agent`.
618
- # @param entity_type_batch_uri [String]
627
+ # @param entity_type_batch_uri [::String]
619
628
  # The URI to a Google Cloud Storage file containing entity types to update
620
629
  # or create. The file format can either be a serialized proto (of
621
630
  # EntityBatch type) or a JSON object. Note: The URI must start with
622
631
  # "gs://".
623
- # @param entity_type_batch_inline [Google::Cloud::Dialogflow::V2::EntityTypeBatch, Hash]
632
+ # @param entity_type_batch_inline [::Google::Cloud::Dialogflow::V2::EntityTypeBatch, ::Hash]
624
633
  # The collection of entity types to update or create.
625
- # @param language_code [String]
634
+ # @param language_code [::String]
626
635
  # Optional. The language used to access language-specific data.
627
636
  # If not specified, the agent's default language is used.
628
637
  # For more information, see
629
638
  # [Multilingual intent and entity
630
639
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
631
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
640
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
632
641
  # Optional. The mask to control which fields get updated.
633
642
  #
634
643
  # @yield [response, operation] Access the result along with the RPC operation
635
- # @yieldparam response [Gapic::Operation]
636
- # @yieldparam operation [GRPC::ActiveCall::Operation]
644
+ # @yieldparam response [::Gapic::Operation]
645
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
637
646
  #
638
- # @return [Gapic::Operation]
647
+ # @return [::Gapic::Operation]
639
648
  #
640
- # @raise [Google::Cloud::Error] if the RPC is aborted.
649
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
641
650
  #
642
651
  def batch_update_entity_types request, options = nil
643
- raise ArgumentError, "request must be provided" if request.nil?
652
+ raise ::ArgumentError, "request must be provided" if request.nil?
644
653
 
645
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest
654
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest
646
655
 
647
656
  # Converts hash and nil to an options object
648
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
657
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
649
658
 
650
659
  # Customize the options with defaults
651
660
  metadata = @config.rpcs.batch_update_entity_types.metadata.to_h
652
661
 
653
662
  # Set x-goog-api-client and x-goog-user-project headers
654
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
663
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
655
664
  lib_name: @config.lib_name, lib_version: @config.lib_version,
656
665
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
657
666
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -669,27 +678,27 @@ module Google
669
678
  retry_policy: @config.retry_policy
670
679
 
671
680
  @entity_types_stub.call_rpc :batch_update_entity_types, request, options: options do |response, operation|
672
- response = Gapic::Operation.new response, @operations_client, options: options
681
+ response = ::Gapic::Operation.new response, @operations_client, options: options
673
682
  yield response, operation if block_given?
674
683
  return response
675
684
  end
676
- rescue GRPC::BadStatus => e
677
- raise Google::Cloud::Error.from_error(e)
685
+ rescue ::GRPC::BadStatus => e
686
+ raise ::Google::Cloud::Error.from_error(e)
678
687
  end
679
688
 
680
689
  ##
681
690
  # Deletes entity types in the specified agent.
682
691
  #
683
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
692
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
684
693
  #
685
694
  # @overload batch_delete_entity_types(request, options = nil)
686
695
  # Pass arguments to `batch_delete_entity_types` via a request object, either of type
687
- # {Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest} or an equivalent Hash.
696
+ # {::Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest} or an equivalent Hash.
688
697
  #
689
- # @param request [Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest, Hash]
698
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest, ::Hash]
690
699
  # A request object representing the call parameters. Required. To specify no
691
700
  # parameters, or to keep all the default parameter values, pass an empty Hash.
692
- # @param options [Gapic::CallOptions, Hash]
701
+ # @param options [::Gapic::CallOptions, ::Hash]
693
702
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
694
703
  #
695
704
  # @overload batch_delete_entity_types(parent: nil, entity_type_names: nil)
@@ -697,34 +706,34 @@ module Google
697
706
  # least one keyword argument is required. To specify no parameters, or to keep all
698
707
  # the default parameter values, pass an empty Hash as a request object (see above).
699
708
  #
700
- # @param parent [String]
709
+ # @param parent [::String]
701
710
  # Required. The name of the agent to delete all entities types for. Format:
702
711
  # `projects/<Project ID>/agent`.
703
- # @param entity_type_names [Array<String>]
712
+ # @param entity_type_names [::Array<::String>]
704
713
  # Required. The names entity types to delete. All names must point to the
705
714
  # same agent as `parent`.
706
715
  #
707
716
  # @yield [response, operation] Access the result along with the RPC operation
708
- # @yieldparam response [Gapic::Operation]
709
- # @yieldparam operation [GRPC::ActiveCall::Operation]
717
+ # @yieldparam response [::Gapic::Operation]
718
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
710
719
  #
711
- # @return [Gapic::Operation]
720
+ # @return [::Gapic::Operation]
712
721
  #
713
- # @raise [Google::Cloud::Error] if the RPC is aborted.
722
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
714
723
  #
715
724
  def batch_delete_entity_types request, options = nil
716
- raise ArgumentError, "request must be provided" if request.nil?
725
+ raise ::ArgumentError, "request must be provided" if request.nil?
717
726
 
718
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest
727
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest
719
728
 
720
729
  # Converts hash and nil to an options object
721
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
730
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
722
731
 
723
732
  # Customize the options with defaults
724
733
  metadata = @config.rpcs.batch_delete_entity_types.metadata.to_h
725
734
 
726
735
  # Set x-goog-api-client and x-goog-user-project headers
727
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
736
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
737
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
738
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
730
739
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -742,27 +751,27 @@ module Google
742
751
  retry_policy: @config.retry_policy
743
752
 
744
753
  @entity_types_stub.call_rpc :batch_delete_entity_types, request, options: options do |response, operation|
745
- response = Gapic::Operation.new response, @operations_client, options: options
754
+ response = ::Gapic::Operation.new response, @operations_client, options: options
746
755
  yield response, operation if block_given?
747
756
  return response
748
757
  end
749
- rescue GRPC::BadStatus => e
750
- raise Google::Cloud::Error.from_error(e)
758
+ rescue ::GRPC::BadStatus => e
759
+ raise ::Google::Cloud::Error.from_error(e)
751
760
  end
752
761
 
753
762
  ##
754
763
  # Creates multiple new entities in the specified entity type.
755
764
  #
756
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
765
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
757
766
  #
758
767
  # @overload batch_create_entities(request, options = nil)
759
768
  # Pass arguments to `batch_create_entities` via a request object, either of type
760
- # {Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest} or an equivalent Hash.
769
+ # {::Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest} or an equivalent Hash.
761
770
  #
762
- # @param request [Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest, Hash]
771
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest, ::Hash]
763
772
  # A request object representing the call parameters. Required. To specify no
764
773
  # parameters, or to keep all the default parameter values, pass an empty Hash.
765
- # @param options [Gapic::CallOptions, Hash]
774
+ # @param options [::Gapic::CallOptions, ::Hash]
766
775
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
767
776
  #
768
777
  # @overload batch_create_entities(parent: nil, entities: nil, language_code: nil)
@@ -770,12 +779,12 @@ module Google
770
779
  # least one keyword argument is required. To specify no parameters, or to keep all
771
780
  # the default parameter values, pass an empty Hash as a request object (see above).
772
781
  #
773
- # @param parent [String]
782
+ # @param parent [::String]
774
783
  # Required. The name of the entity type to create entities in. Format:
775
784
  # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
776
- # @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity, Hash>]
785
+ # @param entities [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity, ::Hash>]
777
786
  # Required. The entities to create.
778
- # @param language_code [String]
787
+ # @param language_code [::String]
779
788
  # Optional. The language used to access language-specific data.
780
789
  # If not specified, the agent's default language is used.
781
790
  # For more information, see
@@ -783,26 +792,26 @@ module Google
783
792
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
784
793
  #
785
794
  # @yield [response, operation] Access the result along with the RPC operation
786
- # @yieldparam response [Gapic::Operation]
787
- # @yieldparam operation [GRPC::ActiveCall::Operation]
795
+ # @yieldparam response [::Gapic::Operation]
796
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
788
797
  #
789
- # @return [Gapic::Operation]
798
+ # @return [::Gapic::Operation]
790
799
  #
791
- # @raise [Google::Cloud::Error] if the RPC is aborted.
800
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
792
801
  #
793
802
  def batch_create_entities request, options = nil
794
- raise ArgumentError, "request must be provided" if request.nil?
803
+ raise ::ArgumentError, "request must be provided" if request.nil?
795
804
 
796
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest
805
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest
797
806
 
798
807
  # Converts hash and nil to an options object
799
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
808
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
800
809
 
801
810
  # Customize the options with defaults
802
811
  metadata = @config.rpcs.batch_create_entities.metadata.to_h
803
812
 
804
813
  # Set x-goog-api-client and x-goog-user-project headers
805
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
814
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
815
  lib_name: @config.lib_name, lib_version: @config.lib_version,
807
816
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
808
817
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -820,12 +829,12 @@ module Google
820
829
  retry_policy: @config.retry_policy
821
830
 
822
831
  @entity_types_stub.call_rpc :batch_create_entities, request, options: options do |response, operation|
823
- response = Gapic::Operation.new response, @operations_client, options: options
832
+ response = ::Gapic::Operation.new response, @operations_client, options: options
824
833
  yield response, operation if block_given?
825
834
  return response
826
835
  end
827
- rescue GRPC::BadStatus => e
828
- raise Google::Cloud::Error.from_error(e)
836
+ rescue ::GRPC::BadStatus => e
837
+ raise ::Google::Cloud::Error.from_error(e)
829
838
  end
830
839
 
831
840
  ##
@@ -834,16 +843,16 @@ module Google
834
843
  # specified in the request.
835
844
  #
836
845
  #
837
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
846
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
838
847
  #
839
848
  # @overload batch_update_entities(request, options = nil)
840
849
  # Pass arguments to `batch_update_entities` via a request object, either of type
841
- # {Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest} or an equivalent Hash.
850
+ # {::Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest} or an equivalent Hash.
842
851
  #
843
- # @param request [Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest, Hash]
852
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest, ::Hash]
844
853
  # A request object representing the call parameters. Required. To specify no
845
854
  # parameters, or to keep all the default parameter values, pass an empty Hash.
846
- # @param options [Gapic::CallOptions, Hash]
855
+ # @param options [::Gapic::CallOptions, ::Hash]
847
856
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
848
857
  #
849
858
  # @overload batch_update_entities(parent: nil, entities: nil, language_code: nil, update_mask: nil)
@@ -851,41 +860,41 @@ module Google
851
860
  # least one keyword argument is required. To specify no parameters, or to keep all
852
861
  # the default parameter values, pass an empty Hash as a request object (see above).
853
862
  #
854
- # @param parent [String]
863
+ # @param parent [::String]
855
864
  # Required. The name of the entity type to update or create entities in.
856
865
  # Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
857
- # @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity, Hash>]
866
+ # @param entities [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity, ::Hash>]
858
867
  # Required. The entities to update or create.
859
- # @param language_code [String]
868
+ # @param language_code [::String]
860
869
  # Optional. The language used to access language-specific data.
861
870
  # If not specified, the agent's default language is used.
862
871
  # For more information, see
863
872
  # [Multilingual intent and entity
864
873
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
865
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
874
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
866
875
  # Optional. The mask to control which fields get updated.
867
876
  #
868
877
  # @yield [response, operation] Access the result along with the RPC operation
869
- # @yieldparam response [Gapic::Operation]
870
- # @yieldparam operation [GRPC::ActiveCall::Operation]
878
+ # @yieldparam response [::Gapic::Operation]
879
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
871
880
  #
872
- # @return [Gapic::Operation]
881
+ # @return [::Gapic::Operation]
873
882
  #
874
- # @raise [Google::Cloud::Error] if the RPC is aborted.
883
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
875
884
  #
876
885
  def batch_update_entities request, options = nil
877
- raise ArgumentError, "request must be provided" if request.nil?
886
+ raise ::ArgumentError, "request must be provided" if request.nil?
878
887
 
879
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest
888
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest
880
889
 
881
890
  # Converts hash and nil to an options object
882
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
891
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
883
892
 
884
893
  # Customize the options with defaults
885
894
  metadata = @config.rpcs.batch_update_entities.metadata.to_h
886
895
 
887
896
  # Set x-goog-api-client and x-goog-user-project headers
888
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
897
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
889
898
  lib_name: @config.lib_name, lib_version: @config.lib_version,
890
899
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
891
900
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -903,28 +912,28 @@ module Google
903
912
  retry_policy: @config.retry_policy
904
913
 
905
914
  @entity_types_stub.call_rpc :batch_update_entities, request, options: options do |response, operation|
906
- response = Gapic::Operation.new response, @operations_client, options: options
915
+ response = ::Gapic::Operation.new response, @operations_client, options: options
907
916
  yield response, operation if block_given?
908
917
  return response
909
918
  end
910
- rescue GRPC::BadStatus => e
911
- raise Google::Cloud::Error.from_error(e)
919
+ rescue ::GRPC::BadStatus => e
920
+ raise ::Google::Cloud::Error.from_error(e)
912
921
  end
913
922
 
914
923
  ##
915
924
  # Deletes entities in the specified entity type.
916
925
  #
917
926
  #
918
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
927
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
919
928
  #
920
929
  # @overload batch_delete_entities(request, options = nil)
921
930
  # Pass arguments to `batch_delete_entities` via a request object, either of type
922
- # {Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest} or an equivalent Hash.
931
+ # {::Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest} or an equivalent Hash.
923
932
  #
924
- # @param request [Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest, Hash]
933
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest, ::Hash]
925
934
  # A request object representing the call parameters. Required. To specify no
926
935
  # parameters, or to keep all the default parameter values, pass an empty Hash.
927
- # @param options [Gapic::CallOptions, Hash]
936
+ # @param options [::Gapic::CallOptions, ::Hash]
928
937
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
929
938
  #
930
939
  # @overload batch_delete_entities(parent: nil, entity_values: nil, language_code: nil)
@@ -932,14 +941,14 @@ module Google
932
941
  # least one keyword argument is required. To specify no parameters, or to keep all
933
942
  # the default parameter values, pass an empty Hash as a request object (see above).
934
943
  #
935
- # @param parent [String]
944
+ # @param parent [::String]
936
945
  # Required. The name of the entity type to delete entries for. Format:
937
946
  # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
938
- # @param entity_values [Array<String>]
947
+ # @param entity_values [::Array<::String>]
939
948
  # Required. The reference `values` of the entities to delete. Note that
940
949
  # these are not fully-qualified names, i.e. they don't start with
941
950
  # `projects/<Project ID>`.
942
- # @param language_code [String]
951
+ # @param language_code [::String]
943
952
  # Optional. The language used to access language-specific data.
944
953
  # If not specified, the agent's default language is used.
945
954
  # For more information, see
@@ -947,26 +956,26 @@ module Google
947
956
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
948
957
  #
949
958
  # @yield [response, operation] Access the result along with the RPC operation
950
- # @yieldparam response [Gapic::Operation]
951
- # @yieldparam operation [GRPC::ActiveCall::Operation]
959
+ # @yieldparam response [::Gapic::Operation]
960
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
952
961
  #
953
- # @return [Gapic::Operation]
962
+ # @return [::Gapic::Operation]
954
963
  #
955
- # @raise [Google::Cloud::Error] if the RPC is aborted.
964
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
956
965
  #
957
966
  def batch_delete_entities request, options = nil
958
- raise ArgumentError, "request must be provided" if request.nil?
967
+ raise ::ArgumentError, "request must be provided" if request.nil?
959
968
 
960
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest
969
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest
961
970
 
962
971
  # Converts hash and nil to an options object
963
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
972
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
964
973
 
965
974
  # Customize the options with defaults
966
975
  metadata = @config.rpcs.batch_delete_entities.metadata.to_h
967
976
 
968
977
  # Set x-goog-api-client and x-goog-user-project headers
969
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
978
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
970
979
  lib_name: @config.lib_name, lib_version: @config.lib_version,
971
980
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
972
981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -984,12 +993,12 @@ module Google
984
993
  retry_policy: @config.retry_policy
985
994
 
986
995
  @entity_types_stub.call_rpc :batch_delete_entities, request, options: options do |response, operation|
987
- response = Gapic::Operation.new response, @operations_client, options: options
996
+ response = ::Gapic::Operation.new response, @operations_client, options: options
988
997
  yield response, operation if block_given?
989
998
  return response
990
999
  end
991
- rescue GRPC::BadStatus => e
992
- raise Google::Cloud::Error.from_error(e)
1000
+ rescue ::GRPC::BadStatus => e
1001
+ raise ::Google::Cloud::Error.from_error(e)
993
1002
  end
994
1003
 
995
1004
  ##
@@ -999,7 +1008,7 @@ module Google
999
1008
  # providing control over timeouts, retry behavior, logging, transport
1000
1009
  # parameters, and other low-level controls. Certain parameters can also be
1001
1010
  # applied individually to specific RPCs. See
1002
- # {Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration::Rpcs}
1011
+ # {::Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration::Rpcs}
1003
1012
  # for a list of RPCs that can be configured independently.
1004
1013
  #
1005
1014
  # Configuration can be applied globally to all clients, or to a single client
@@ -1010,22 +1019,22 @@ module Google
1010
1019
  # To modify the global config, setting the timeout for list_entity_types
1011
1020
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1012
1021
  #
1013
- # Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
1014
- # config.timeout = 10_000
1015
- # config.rpcs.list_entity_types.timeout = 20_000
1022
+ # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
1023
+ # config.timeout = 10.0
1024
+ # config.rpcs.list_entity_types.timeout = 20.0
1016
1025
  # end
1017
1026
  #
1018
1027
  # To apply the above configuration only to a new client:
1019
1028
  #
1020
- # client = Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
1021
- # config.timeout = 10_000
1022
- # config.rpcs.list_entity_types.timeout = 20_000
1029
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
1030
+ # config.timeout = 10.0
1031
+ # config.rpcs.list_entity_types.timeout = 20.0
1023
1032
  # end
1024
1033
  #
1025
1034
  # @!attribute [rw] endpoint
1026
1035
  # The hostname or hostname:port of the service endpoint.
1027
1036
  # Defaults to `"dialogflow.googleapis.com"`.
1028
- # @return [String]
1037
+ # @return [::String]
1029
1038
  # @!attribute [rw] credentials
1030
1039
  # Credentials to send with calls. You may provide any of the following types:
1031
1040
  # * (`String`) The path to a service account key file in JSON format
@@ -1037,29 +1046,29 @@ module Google
1037
1046
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1038
1047
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1039
1048
  # * (`nil`) indicating no credentials
1040
- # @return [Object]
1049
+ # @return [::Object]
1041
1050
  # @!attribute [rw] scope
1042
1051
  # The OAuth scopes
1043
- # @return [Array<String>]
1052
+ # @return [::Array<::String>]
1044
1053
  # @!attribute [rw] lib_name
1045
1054
  # The library name as recorded in instrumentation and logging
1046
- # @return [String]
1055
+ # @return [::String]
1047
1056
  # @!attribute [rw] lib_version
1048
1057
  # The library version as recorded in instrumentation and logging
1049
- # @return [String]
1058
+ # @return [::String]
1050
1059
  # @!attribute [rw] channel_args
1051
1060
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1052
1061
  # `GRPC::Core::Channel` object is provided as the credential.
1053
- # @return [Hash]
1062
+ # @return [::Hash]
1054
1063
  # @!attribute [rw] interceptors
1055
1064
  # An array of interceptors that are run before calls are executed.
1056
- # @return [Array<GRPC::ClientInterceptor>]
1065
+ # @return [::Array<::GRPC::ClientInterceptor>]
1057
1066
  # @!attribute [rw] timeout
1058
- # The call timeout in milliseconds.
1059
- # @return [Numeric]
1067
+ # The call timeout in seconds.
1068
+ # @return [::Numeric]
1060
1069
  # @!attribute [rw] metadata
1061
1070
  # Additional gRPC headers to be sent with the call.
1062
- # @return [Hash{Symbol=>String}]
1071
+ # @return [::Hash{::Symbol=>::String}]
1063
1072
  # @!attribute [rw] retry_policy
1064
1073
  # The retry policy. The value is a hash with the following keys:
1065
1074
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1067,25 +1076,29 @@ module Google
1067
1076
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1068
1077
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1069
1078
  # trigger a retry.
1070
- # @return [Hash]
1079
+ # @return [::Hash]
1080
+ # @!attribute [rw] quota_project
1081
+ # A separate project against which to charge quota.
1082
+ # @return [::String]
1071
1083
  #
1072
1084
  class Configuration
1073
- extend Gapic::Config
1085
+ extend ::Gapic::Config
1074
1086
 
1075
- config_attr :endpoint, "dialogflow.googleapis.com", String
1076
- config_attr :credentials, nil do |value|
1087
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
1088
+ config_attr :credentials, nil do |value|
1077
1089
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1078
1090
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1079
1091
  allowed.any? { |klass| klass === value }
1080
1092
  end
1081
- config_attr :scope, nil, String, Array, nil
1082
- config_attr :lib_name, nil, String, nil
1083
- config_attr :lib_version, nil, String, nil
1084
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1085
- config_attr :interceptors, nil, Array, nil
1086
- config_attr :timeout, nil, Numeric, nil
1087
- config_attr :metadata, nil, Hash, nil
1088
- config_attr :retry_policy, nil, Hash, Proc, nil
1093
+ config_attr :scope, nil, ::String, ::Array, nil
1094
+ config_attr :lib_name, nil, ::String, nil
1095
+ config_attr :lib_version, nil, ::String, nil
1096
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1097
+ config_attr :interceptors, nil, ::Array, nil
1098
+ config_attr :timeout, nil, ::Numeric, nil
1099
+ config_attr :metadata, nil, ::Hash, nil
1100
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1101
+ config_attr :quota_project, nil, ::String, nil
1089
1102
 
1090
1103
  # @private
1091
1104
  def initialize parent_config = nil
@@ -1126,77 +1139,77 @@ module Google
1126
1139
  class Rpcs
1127
1140
  ##
1128
1141
  # RPC-specific configuration for `list_entity_types`
1129
- # @return [Gapic::Config::Method]
1142
+ # @return [::Gapic::Config::Method]
1130
1143
  #
1131
1144
  attr_reader :list_entity_types
1132
1145
  ##
1133
1146
  # RPC-specific configuration for `get_entity_type`
1134
- # @return [Gapic::Config::Method]
1147
+ # @return [::Gapic::Config::Method]
1135
1148
  #
1136
1149
  attr_reader :get_entity_type
1137
1150
  ##
1138
1151
  # RPC-specific configuration for `create_entity_type`
1139
- # @return [Gapic::Config::Method]
1152
+ # @return [::Gapic::Config::Method]
1140
1153
  #
1141
1154
  attr_reader :create_entity_type
1142
1155
  ##
1143
1156
  # RPC-specific configuration for `update_entity_type`
1144
- # @return [Gapic::Config::Method]
1157
+ # @return [::Gapic::Config::Method]
1145
1158
  #
1146
1159
  attr_reader :update_entity_type
1147
1160
  ##
1148
1161
  # RPC-specific configuration for `delete_entity_type`
1149
- # @return [Gapic::Config::Method]
1162
+ # @return [::Gapic::Config::Method]
1150
1163
  #
1151
1164
  attr_reader :delete_entity_type
1152
1165
  ##
1153
1166
  # RPC-specific configuration for `batch_update_entity_types`
1154
- # @return [Gapic::Config::Method]
1167
+ # @return [::Gapic::Config::Method]
1155
1168
  #
1156
1169
  attr_reader :batch_update_entity_types
1157
1170
  ##
1158
1171
  # RPC-specific configuration for `batch_delete_entity_types`
1159
- # @return [Gapic::Config::Method]
1172
+ # @return [::Gapic::Config::Method]
1160
1173
  #
1161
1174
  attr_reader :batch_delete_entity_types
1162
1175
  ##
1163
1176
  # RPC-specific configuration for `batch_create_entities`
1164
- # @return [Gapic::Config::Method]
1177
+ # @return [::Gapic::Config::Method]
1165
1178
  #
1166
1179
  attr_reader :batch_create_entities
1167
1180
  ##
1168
1181
  # RPC-specific configuration for `batch_update_entities`
1169
- # @return [Gapic::Config::Method]
1182
+ # @return [::Gapic::Config::Method]
1170
1183
  #
1171
1184
  attr_reader :batch_update_entities
1172
1185
  ##
1173
1186
  # RPC-specific configuration for `batch_delete_entities`
1174
- # @return [Gapic::Config::Method]
1187
+ # @return [::Gapic::Config::Method]
1175
1188
  #
1176
1189
  attr_reader :batch_delete_entities
1177
1190
 
1178
1191
  # @private
1179
1192
  def initialize parent_rpcs = nil
1180
1193
  list_entity_types_config = parent_rpcs&.list_entity_types if parent_rpcs&.respond_to? :list_entity_types
1181
- @list_entity_types = Gapic::Config::Method.new list_entity_types_config
1194
+ @list_entity_types = ::Gapic::Config::Method.new list_entity_types_config
1182
1195
  get_entity_type_config = parent_rpcs&.get_entity_type if parent_rpcs&.respond_to? :get_entity_type
1183
- @get_entity_type = Gapic::Config::Method.new get_entity_type_config
1196
+ @get_entity_type = ::Gapic::Config::Method.new get_entity_type_config
1184
1197
  create_entity_type_config = parent_rpcs&.create_entity_type if parent_rpcs&.respond_to? :create_entity_type
1185
- @create_entity_type = Gapic::Config::Method.new create_entity_type_config
1198
+ @create_entity_type = ::Gapic::Config::Method.new create_entity_type_config
1186
1199
  update_entity_type_config = parent_rpcs&.update_entity_type if parent_rpcs&.respond_to? :update_entity_type
1187
- @update_entity_type = Gapic::Config::Method.new update_entity_type_config
1200
+ @update_entity_type = ::Gapic::Config::Method.new update_entity_type_config
1188
1201
  delete_entity_type_config = parent_rpcs&.delete_entity_type if parent_rpcs&.respond_to? :delete_entity_type
1189
- @delete_entity_type = Gapic::Config::Method.new delete_entity_type_config
1202
+ @delete_entity_type = ::Gapic::Config::Method.new delete_entity_type_config
1190
1203
  batch_update_entity_types_config = parent_rpcs&.batch_update_entity_types if parent_rpcs&.respond_to? :batch_update_entity_types
1191
- @batch_update_entity_types = Gapic::Config::Method.new batch_update_entity_types_config
1204
+ @batch_update_entity_types = ::Gapic::Config::Method.new batch_update_entity_types_config
1192
1205
  batch_delete_entity_types_config = parent_rpcs&.batch_delete_entity_types if parent_rpcs&.respond_to? :batch_delete_entity_types
1193
- @batch_delete_entity_types = Gapic::Config::Method.new batch_delete_entity_types_config
1206
+ @batch_delete_entity_types = ::Gapic::Config::Method.new batch_delete_entity_types_config
1194
1207
  batch_create_entities_config = parent_rpcs&.batch_create_entities if parent_rpcs&.respond_to? :batch_create_entities
1195
- @batch_create_entities = Gapic::Config::Method.new batch_create_entities_config
1208
+ @batch_create_entities = ::Gapic::Config::Method.new batch_create_entities_config
1196
1209
  batch_update_entities_config = parent_rpcs&.batch_update_entities if parent_rpcs&.respond_to? :batch_update_entities
1197
- @batch_update_entities = Gapic::Config::Method.new batch_update_entities_config
1210
+ @batch_update_entities = ::Gapic::Config::Method.new batch_update_entities_config
1198
1211
  batch_delete_entities_config = parent_rpcs&.batch_delete_entities if parent_rpcs&.respond_to? :batch_delete_entities
1199
- @batch_delete_entities = Gapic::Config::Method.new batch_delete_entities_config
1212
+ @batch_delete_entities = ::Gapic::Config::Method.new batch_delete_entities_config
1200
1213
 
1201
1214
  yield self if block_given?
1202
1215
  end