google-cloud-dialogflow-v2 0.4.1 → 0.6.2

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 +212 -207
  7. data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
  8. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +109 -103
  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 +148 -143
  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 +238 -233
  16. data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
  17. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +109 -103
  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 +183 -178
  27. data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
  28. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +109 -103
  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 +130 -125
  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 +86 -81
  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 +41 -6
  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,15 +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
214
215
  config.endpoint = @config.endpoint
215
216
  end
216
217
 
217
- @entity_types_stub = Gapic::ServiceStub.new(
218
- Google::Cloud::Dialogflow::V2::EntityTypes::Stub,
218
+ @entity_types_stub = ::Gapic::ServiceStub.new(
219
+ ::Google::Cloud::Dialogflow::V2::EntityTypes::Stub,
219
220
  credentials: credentials,
220
221
  endpoint: @config.endpoint,
221
222
  channel_args: @config.channel_args,
@@ -226,7 +227,7 @@ module Google
226
227
  ##
227
228
  # Get the associated client for long-running operations.
228
229
  #
229
- # @return [Google::Cloud::Dialogflow::V2::EntityTypes::Operations]
230
+ # @return [::Google::Cloud::Dialogflow::V2::EntityTypes::Operations]
230
231
  #
231
232
  attr_reader :operations_client
232
233
 
@@ -237,12 +238,12 @@ module Google
237
238
  #
238
239
  # @overload list_entity_types(request, options = nil)
239
240
  # Pass arguments to `list_entity_types` via a request object, either of type
240
- # {Google::Cloud::Dialogflow::V2::ListEntityTypesRequest} or an equivalent Hash.
241
+ # {::Google::Cloud::Dialogflow::V2::ListEntityTypesRequest} or an equivalent Hash.
241
242
  #
242
- # @param request [Google::Cloud::Dialogflow::V2::ListEntityTypesRequest, Hash]
243
+ # @param request [::Google::Cloud::Dialogflow::V2::ListEntityTypesRequest, ::Hash]
243
244
  # A request object representing the call parameters. Required. To specify no
244
245
  # parameters, or to keep all the default parameter values, pass an empty Hash.
245
- # @param options [Gapic::CallOptions, Hash]
246
+ # @param options [::Gapic::CallOptions, ::Hash]
246
247
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
247
248
  #
248
249
  # @overload list_entity_types(parent: nil, language_code: nil, page_size: nil, page_token: nil)
@@ -250,42 +251,42 @@ module Google
250
251
  # least one keyword argument is required. To specify no parameters, or to keep all
251
252
  # the default parameter values, pass an empty Hash as a request object (see above).
252
253
  #
253
- # @param parent [String]
254
+ # @param parent [::String]
254
255
  # Required. The agent to list all entity types from.
255
256
  # Format: `projects/<Project ID>/agent`.
256
- # @param language_code [String]
257
+ # @param language_code [::String]
257
258
  # Optional. The language used to access language-specific data.
258
259
  # If not specified, the agent's default language is used.
259
260
  # For more information, see
260
261
  # [Multilingual intent and entity
261
262
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
262
- # @param page_size [Integer]
263
+ # @param page_size [::Integer]
263
264
  # Optional. The maximum number of items to return in a single page. By
264
265
  # default 100 and at most 1000.
265
- # @param page_token [String]
266
+ # @param page_token [::String]
266
267
  # Optional. The next_page_token value returned from a previous list request.
267
268
  #
268
269
  # @yield [response, operation] Access the result along with the RPC operation
269
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dialogflow::V2::EntityType>]
270
- # @yieldparam operation [GRPC::ActiveCall::Operation]
270
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::EntityType>]
271
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
271
272
  #
272
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dialogflow::V2::EntityType>]
273
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::EntityType>]
273
274
  #
274
- # @raise [Google::Cloud::Error] if the RPC is aborted.
275
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
275
276
  #
276
277
  def list_entity_types request, options = nil
277
- raise ArgumentError, "request must be provided" if request.nil?
278
+ raise ::ArgumentError, "request must be provided" if request.nil?
278
279
 
279
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::ListEntityTypesRequest
280
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListEntityTypesRequest
280
281
 
281
282
  # Converts hash and nil to an options object
282
- 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
283
284
 
284
285
  # Customize the options with defaults
285
286
  metadata = @config.rpcs.list_entity_types.metadata.to_h
286
287
 
287
288
  # Set x-goog-api-client and x-goog-user-project headers
288
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
289
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
289
290
  lib_name: @config.lib_name, lib_version: @config.lib_version,
290
291
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
291
292
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -303,12 +304,12 @@ module Google
303
304
  retry_policy: @config.retry_policy
304
305
 
305
306
  @entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
306
- 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
307
308
  yield response, operation if block_given?
308
309
  return response
309
310
  end
310
- rescue GRPC::BadStatus => e
311
- raise Google::Cloud::Error.from_error(e)
311
+ rescue ::GRPC::BadStatus => e
312
+ raise ::Google::Cloud::Error.from_error(e)
312
313
  end
313
314
 
314
315
  ##
@@ -316,12 +317,12 @@ module Google
316
317
  #
317
318
  # @overload get_entity_type(request, options = nil)
318
319
  # Pass arguments to `get_entity_type` via a request object, either of type
319
- # {Google::Cloud::Dialogflow::V2::GetEntityTypeRequest} or an equivalent Hash.
320
+ # {::Google::Cloud::Dialogflow::V2::GetEntityTypeRequest} or an equivalent Hash.
320
321
  #
321
- # @param request [Google::Cloud::Dialogflow::V2::GetEntityTypeRequest, Hash]
322
+ # @param request [::Google::Cloud::Dialogflow::V2::GetEntityTypeRequest, ::Hash]
322
323
  # A request object representing the call parameters. Required. To specify no
323
324
  # parameters, or to keep all the default parameter values, pass an empty Hash.
324
- # @param options [Gapic::CallOptions, Hash]
325
+ # @param options [::Gapic::CallOptions, ::Hash]
325
326
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
326
327
  #
327
328
  # @overload get_entity_type(name: nil, language_code: nil)
@@ -329,10 +330,10 @@ module Google
329
330
  # least one keyword argument is required. To specify no parameters, or to keep all
330
331
  # the default parameter values, pass an empty Hash as a request object (see above).
331
332
  #
332
- # @param name [String]
333
+ # @param name [::String]
333
334
  # Required. The name of the entity type.
334
335
  # Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
335
- # @param language_code [String]
336
+ # @param language_code [::String]
336
337
  # Optional. The language used to access language-specific data.
337
338
  # If not specified, the agent's default language is used.
338
339
  # For more information, see
@@ -340,26 +341,26 @@ module Google
340
341
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
341
342
  #
342
343
  # @yield [response, operation] Access the result along with the RPC operation
343
- # @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
344
- # @yieldparam operation [GRPC::ActiveCall::Operation]
344
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::EntityType]
345
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
345
346
  #
346
- # @return [Google::Cloud::Dialogflow::V2::EntityType]
347
+ # @return [::Google::Cloud::Dialogflow::V2::EntityType]
347
348
  #
348
- # @raise [Google::Cloud::Error] if the RPC is aborted.
349
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
349
350
  #
350
351
  def get_entity_type request, options = nil
351
- raise ArgumentError, "request must be provided" if request.nil?
352
+ raise ::ArgumentError, "request must be provided" if request.nil?
352
353
 
353
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::GetEntityTypeRequest
354
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GetEntityTypeRequest
354
355
 
355
356
  # Converts hash and nil to an options object
356
- 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
357
358
 
358
359
  # Customize the options with defaults
359
360
  metadata = @config.rpcs.get_entity_type.metadata.to_h
360
361
 
361
362
  # Set x-goog-api-client and x-goog-user-project headers
362
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
363
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
363
364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
364
365
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
365
366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -380,8 +381,8 @@ module Google
380
381
  yield response, operation if block_given?
381
382
  return response
382
383
  end
383
- rescue GRPC::BadStatus => e
384
- raise Google::Cloud::Error.from_error(e)
384
+ rescue ::GRPC::BadStatus => e
385
+ raise ::Google::Cloud::Error.from_error(e)
385
386
  end
386
387
 
387
388
  ##
@@ -389,12 +390,12 @@ module Google
389
390
  #
390
391
  # @overload create_entity_type(request, options = nil)
391
392
  # Pass arguments to `create_entity_type` via a request object, either of type
392
- # {Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest} or an equivalent Hash.
393
+ # {::Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest} or an equivalent Hash.
393
394
  #
394
- # @param request [Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest, Hash]
395
+ # @param request [::Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest, ::Hash]
395
396
  # A request object representing the call parameters. Required. To specify no
396
397
  # parameters, or to keep all the default parameter values, pass an empty Hash.
397
- # @param options [Gapic::CallOptions, Hash]
398
+ # @param options [::Gapic::CallOptions, ::Hash]
398
399
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
399
400
  #
400
401
  # @overload create_entity_type(parent: nil, entity_type: nil, language_code: nil)
@@ -402,12 +403,12 @@ module Google
402
403
  # least one keyword argument is required. To specify no parameters, or to keep all
403
404
  # the default parameter values, pass an empty Hash as a request object (see above).
404
405
  #
405
- # @param parent [String]
406
+ # @param parent [::String]
406
407
  # Required. The agent to create a entity type for.
407
408
  # Format: `projects/<Project ID>/agent`.
408
- # @param entity_type [Google::Cloud::Dialogflow::V2::EntityType, Hash]
409
+ # @param entity_type [::Google::Cloud::Dialogflow::V2::EntityType, ::Hash]
409
410
  # Required. The entity type to create.
410
- # @param language_code [String]
411
+ # @param language_code [::String]
411
412
  # Optional. The language used to access language-specific data.
412
413
  # If not specified, the agent's default language is used.
413
414
  # For more information, see
@@ -415,26 +416,26 @@ module Google
415
416
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
416
417
  #
417
418
  # @yield [response, operation] Access the result along with the RPC operation
418
- # @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
419
- # @yieldparam operation [GRPC::ActiveCall::Operation]
419
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::EntityType]
420
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
420
421
  #
421
- # @return [Google::Cloud::Dialogflow::V2::EntityType]
422
+ # @return [::Google::Cloud::Dialogflow::V2::EntityType]
422
423
  #
423
- # @raise [Google::Cloud::Error] if the RPC is aborted.
424
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
424
425
  #
425
426
  def create_entity_type request, options = nil
426
- raise ArgumentError, "request must be provided" if request.nil?
427
+ raise ::ArgumentError, "request must be provided" if request.nil?
427
428
 
428
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest
429
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest
429
430
 
430
431
  # Converts hash and nil to an options object
431
- 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
432
433
 
433
434
  # Customize the options with defaults
434
435
  metadata = @config.rpcs.create_entity_type.metadata.to_h
435
436
 
436
437
  # Set x-goog-api-client and x-goog-user-project headers
437
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
438
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
438
439
  lib_name: @config.lib_name, lib_version: @config.lib_version,
439
440
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
440
441
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -455,8 +456,8 @@ module Google
455
456
  yield response, operation if block_given?
456
457
  return response
457
458
  end
458
- rescue GRPC::BadStatus => e
459
- raise Google::Cloud::Error.from_error(e)
459
+ rescue ::GRPC::BadStatus => e
460
+ raise ::Google::Cloud::Error.from_error(e)
460
461
  end
461
462
 
462
463
  ##
@@ -464,12 +465,12 @@ module Google
464
465
  #
465
466
  # @overload update_entity_type(request, options = nil)
466
467
  # Pass arguments to `update_entity_type` via a request object, either of type
467
- # {Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest} or an equivalent Hash.
468
+ # {::Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest} or an equivalent Hash.
468
469
  #
469
- # @param request [Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest, Hash]
470
+ # @param request [::Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest, ::Hash]
470
471
  # A request object representing the call parameters. Required. To specify no
471
472
  # parameters, or to keep all the default parameter values, pass an empty Hash.
472
- # @param options [Gapic::CallOptions, Hash]
473
+ # @param options [::Gapic::CallOptions, ::Hash]
473
474
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
474
475
  #
475
476
  # @overload update_entity_type(entity_type: nil, language_code: nil, update_mask: nil)
@@ -477,38 +478,38 @@ module Google
477
478
  # least one keyword argument is required. To specify no parameters, or to keep all
478
479
  # the default parameter values, pass an empty Hash as a request object (see above).
479
480
  #
480
- # @param entity_type [Google::Cloud::Dialogflow::V2::EntityType, Hash]
481
+ # @param entity_type [::Google::Cloud::Dialogflow::V2::EntityType, ::Hash]
481
482
  # Required. The entity type to update.
482
- # @param language_code [String]
483
+ # @param language_code [::String]
483
484
  # Optional. The language used to access language-specific data.
484
485
  # If not specified, the agent's default language is used.
485
486
  # For more information, see
486
487
  # [Multilingual intent and entity
487
488
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
488
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
489
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
489
490
  # Optional. The mask to control which fields get updated.
490
491
  #
491
492
  # @yield [response, operation] Access the result along with the RPC operation
492
- # @yieldparam response [Google::Cloud::Dialogflow::V2::EntityType]
493
- # @yieldparam operation [GRPC::ActiveCall::Operation]
493
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::EntityType]
494
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
494
495
  #
495
- # @return [Google::Cloud::Dialogflow::V2::EntityType]
496
+ # @return [::Google::Cloud::Dialogflow::V2::EntityType]
496
497
  #
497
- # @raise [Google::Cloud::Error] if the RPC is aborted.
498
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
498
499
  #
499
500
  def update_entity_type request, options = nil
500
- raise ArgumentError, "request must be provided" if request.nil?
501
+ raise ::ArgumentError, "request must be provided" if request.nil?
501
502
 
502
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest
503
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest
503
504
 
504
505
  # Converts hash and nil to an options object
505
- 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
506
507
 
507
508
  # Customize the options with defaults
508
509
  metadata = @config.rpcs.update_entity_type.metadata.to_h
509
510
 
510
511
  # Set x-goog-api-client and x-goog-user-project headers
511
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
512
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
512
513
  lib_name: @config.lib_name, lib_version: @config.lib_version,
513
514
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
514
515
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -529,8 +530,8 @@ module Google
529
530
  yield response, operation if block_given?
530
531
  return response
531
532
  end
532
- rescue GRPC::BadStatus => e
533
- raise Google::Cloud::Error.from_error(e)
533
+ rescue ::GRPC::BadStatus => e
534
+ raise ::Google::Cloud::Error.from_error(e)
534
535
  end
535
536
 
536
537
  ##
@@ -538,12 +539,12 @@ module Google
538
539
  #
539
540
  # @overload delete_entity_type(request, options = nil)
540
541
  # Pass arguments to `delete_entity_type` via a request object, either of type
541
- # {Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest} or an equivalent Hash.
542
+ # {::Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest} or an equivalent Hash.
542
543
  #
543
- # @param request [Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest, Hash]
544
+ # @param request [::Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest, ::Hash]
544
545
  # A request object representing the call parameters. Required. To specify no
545
546
  # parameters, or to keep all the default parameter values, pass an empty Hash.
546
- # @param options [Gapic::CallOptions, Hash]
547
+ # @param options [::Gapic::CallOptions, ::Hash]
547
548
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
548
549
  #
549
550
  # @overload delete_entity_type(name: nil)
@@ -551,31 +552,31 @@ module Google
551
552
  # least one keyword argument is required. To specify no parameters, or to keep all
552
553
  # the default parameter values, pass an empty Hash as a request object (see above).
553
554
  #
554
- # @param name [String]
555
+ # @param name [::String]
555
556
  # Required. The name of the entity type to delete.
556
557
  # Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
557
558
  #
558
559
  # @yield [response, operation] Access the result along with the RPC operation
559
- # @yieldparam response [Google::Protobuf::Empty]
560
- # @yieldparam operation [GRPC::ActiveCall::Operation]
560
+ # @yieldparam response [::Google::Protobuf::Empty]
561
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
561
562
  #
562
- # @return [Google::Protobuf::Empty]
563
+ # @return [::Google::Protobuf::Empty]
563
564
  #
564
- # @raise [Google::Cloud::Error] if the RPC is aborted.
565
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
565
566
  #
566
567
  def delete_entity_type request, options = nil
567
- raise ArgumentError, "request must be provided" if request.nil?
568
+ raise ::ArgumentError, "request must be provided" if request.nil?
568
569
 
569
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest
570
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest
570
571
 
571
572
  # Converts hash and nil to an options object
572
- 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
573
574
 
574
575
  # Customize the options with defaults
575
576
  metadata = @config.rpcs.delete_entity_type.metadata.to_h
576
577
 
577
578
  # Set x-goog-api-client and x-goog-user-project headers
578
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
579
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
581
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
581
582
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -596,23 +597,23 @@ module Google
596
597
  yield response, operation if block_given?
597
598
  return response
598
599
  end
599
- rescue GRPC::BadStatus => e
600
- raise Google::Cloud::Error.from_error(e)
600
+ rescue ::GRPC::BadStatus => e
601
+ raise ::Google::Cloud::Error.from_error(e)
601
602
  end
602
603
 
603
604
  ##
604
605
  # Updates/Creates multiple entity types in the specified agent.
605
606
  #
606
- # Operation <response: {Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesResponse BatchUpdateEntityTypesResponse}>
607
+ # Operation <response: {::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesResponse BatchUpdateEntityTypesResponse}>
607
608
  #
608
609
  # @overload batch_update_entity_types(request, options = nil)
609
610
  # Pass arguments to `batch_update_entity_types` via a request object, either of type
610
- # {Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest} or an equivalent Hash.
611
+ # {::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest} or an equivalent Hash.
611
612
  #
612
- # @param request [Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest, Hash]
613
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest, ::Hash]
613
614
  # A request object representing the call parameters. Required. To specify no
614
615
  # parameters, or to keep all the default parameter values, pass an empty Hash.
615
- # @param options [Gapic::CallOptions, Hash]
616
+ # @param options [::Gapic::CallOptions, ::Hash]
616
617
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
617
618
  #
618
619
  # @overload batch_update_entity_types(parent: nil, entity_type_batch_uri: nil, entity_type_batch_inline: nil, language_code: nil, update_mask: nil)
@@ -620,46 +621,46 @@ module Google
620
621
  # least one keyword argument is required. To specify no parameters, or to keep all
621
622
  # the default parameter values, pass an empty Hash as a request object (see above).
622
623
  #
623
- # @param parent [String]
624
+ # @param parent [::String]
624
625
  # Required. The name of the agent to update or create entity types in.
625
626
  # Format: `projects/<Project ID>/agent`.
626
- # @param entity_type_batch_uri [String]
627
+ # @param entity_type_batch_uri [::String]
627
628
  # The URI to a Google Cloud Storage file containing entity types to update
628
629
  # or create. The file format can either be a serialized proto (of
629
630
  # EntityBatch type) or a JSON object. Note: The URI must start with
630
631
  # "gs://".
631
- # @param entity_type_batch_inline [Google::Cloud::Dialogflow::V2::EntityTypeBatch, Hash]
632
+ # @param entity_type_batch_inline [::Google::Cloud::Dialogflow::V2::EntityTypeBatch, ::Hash]
632
633
  # The collection of entity types to update or create.
633
- # @param language_code [String]
634
+ # @param language_code [::String]
634
635
  # Optional. The language used to access language-specific data.
635
636
  # If not specified, the agent's default language is used.
636
637
  # For more information, see
637
638
  # [Multilingual intent and entity
638
639
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
639
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
640
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
640
641
  # Optional. The mask to control which fields get updated.
641
642
  #
642
643
  # @yield [response, operation] Access the result along with the RPC operation
643
- # @yieldparam response [Gapic::Operation]
644
- # @yieldparam operation [GRPC::ActiveCall::Operation]
644
+ # @yieldparam response [::Gapic::Operation]
645
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
645
646
  #
646
- # @return [Gapic::Operation]
647
+ # @return [::Gapic::Operation]
647
648
  #
648
- # @raise [Google::Cloud::Error] if the RPC is aborted.
649
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
649
650
  #
650
651
  def batch_update_entity_types request, options = nil
651
- raise ArgumentError, "request must be provided" if request.nil?
652
+ raise ::ArgumentError, "request must be provided" if request.nil?
652
653
 
653
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest
654
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest
654
655
 
655
656
  # Converts hash and nil to an options object
656
- 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
657
658
 
658
659
  # Customize the options with defaults
659
660
  metadata = @config.rpcs.batch_update_entity_types.metadata.to_h
660
661
 
661
662
  # Set x-goog-api-client and x-goog-user-project headers
662
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
663
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
663
664
  lib_name: @config.lib_name, lib_version: @config.lib_version,
664
665
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
665
666
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -677,27 +678,27 @@ module Google
677
678
  retry_policy: @config.retry_policy
678
679
 
679
680
  @entity_types_stub.call_rpc :batch_update_entity_types, request, options: options do |response, operation|
680
- response = Gapic::Operation.new response, @operations_client, options: options
681
+ response = ::Gapic::Operation.new response, @operations_client, options: options
681
682
  yield response, operation if block_given?
682
683
  return response
683
684
  end
684
- rescue GRPC::BadStatus => e
685
- raise Google::Cloud::Error.from_error(e)
685
+ rescue ::GRPC::BadStatus => e
686
+ raise ::Google::Cloud::Error.from_error(e)
686
687
  end
687
688
 
688
689
  ##
689
690
  # Deletes entity types in the specified agent.
690
691
  #
691
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
692
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
692
693
  #
693
694
  # @overload batch_delete_entity_types(request, options = nil)
694
695
  # Pass arguments to `batch_delete_entity_types` via a request object, either of type
695
- # {Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest} or an equivalent Hash.
696
+ # {::Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest} or an equivalent Hash.
696
697
  #
697
- # @param request [Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest, Hash]
698
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest, ::Hash]
698
699
  # A request object representing the call parameters. Required. To specify no
699
700
  # parameters, or to keep all the default parameter values, pass an empty Hash.
700
- # @param options [Gapic::CallOptions, Hash]
701
+ # @param options [::Gapic::CallOptions, ::Hash]
701
702
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
702
703
  #
703
704
  # @overload batch_delete_entity_types(parent: nil, entity_type_names: nil)
@@ -705,34 +706,34 @@ module Google
705
706
  # least one keyword argument is required. To specify no parameters, or to keep all
706
707
  # the default parameter values, pass an empty Hash as a request object (see above).
707
708
  #
708
- # @param parent [String]
709
+ # @param parent [::String]
709
710
  # Required. The name of the agent to delete all entities types for. Format:
710
711
  # `projects/<Project ID>/agent`.
711
- # @param entity_type_names [Array<String>]
712
+ # @param entity_type_names [::Array<::String>]
712
713
  # Required. The names entity types to delete. All names must point to the
713
714
  # same agent as `parent`.
714
715
  #
715
716
  # @yield [response, operation] Access the result along with the RPC operation
716
- # @yieldparam response [Gapic::Operation]
717
- # @yieldparam operation [GRPC::ActiveCall::Operation]
717
+ # @yieldparam response [::Gapic::Operation]
718
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
718
719
  #
719
- # @return [Gapic::Operation]
720
+ # @return [::Gapic::Operation]
720
721
  #
721
- # @raise [Google::Cloud::Error] if the RPC is aborted.
722
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
722
723
  #
723
724
  def batch_delete_entity_types request, options = nil
724
- raise ArgumentError, "request must be provided" if request.nil?
725
+ raise ::ArgumentError, "request must be provided" if request.nil?
725
726
 
726
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest
727
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest
727
728
 
728
729
  # Converts hash and nil to an options object
729
- 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
730
731
 
731
732
  # Customize the options with defaults
732
733
  metadata = @config.rpcs.batch_delete_entity_types.metadata.to_h
733
734
 
734
735
  # Set x-goog-api-client and x-goog-user-project headers
735
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
736
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
736
737
  lib_name: @config.lib_name, lib_version: @config.lib_version,
737
738
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
738
739
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -750,27 +751,27 @@ module Google
750
751
  retry_policy: @config.retry_policy
751
752
 
752
753
  @entity_types_stub.call_rpc :batch_delete_entity_types, request, options: options do |response, operation|
753
- response = Gapic::Operation.new response, @operations_client, options: options
754
+ response = ::Gapic::Operation.new response, @operations_client, options: options
754
755
  yield response, operation if block_given?
755
756
  return response
756
757
  end
757
- rescue GRPC::BadStatus => e
758
- raise Google::Cloud::Error.from_error(e)
758
+ rescue ::GRPC::BadStatus => e
759
+ raise ::Google::Cloud::Error.from_error(e)
759
760
  end
760
761
 
761
762
  ##
762
763
  # Creates multiple new entities in the specified entity type.
763
764
  #
764
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
765
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
765
766
  #
766
767
  # @overload batch_create_entities(request, options = nil)
767
768
  # Pass arguments to `batch_create_entities` via a request object, either of type
768
- # {Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest} or an equivalent Hash.
769
+ # {::Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest} or an equivalent Hash.
769
770
  #
770
- # @param request [Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest, Hash]
771
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest, ::Hash]
771
772
  # A request object representing the call parameters. Required. To specify no
772
773
  # parameters, or to keep all the default parameter values, pass an empty Hash.
773
- # @param options [Gapic::CallOptions, Hash]
774
+ # @param options [::Gapic::CallOptions, ::Hash]
774
775
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
775
776
  #
776
777
  # @overload batch_create_entities(parent: nil, entities: nil, language_code: nil)
@@ -778,12 +779,12 @@ module Google
778
779
  # least one keyword argument is required. To specify no parameters, or to keep all
779
780
  # the default parameter values, pass an empty Hash as a request object (see above).
780
781
  #
781
- # @param parent [String]
782
+ # @param parent [::String]
782
783
  # Required. The name of the entity type to create entities in. Format:
783
784
  # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
784
- # @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity, Hash>]
785
+ # @param entities [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity, ::Hash>]
785
786
  # Required. The entities to create.
786
- # @param language_code [String]
787
+ # @param language_code [::String]
787
788
  # Optional. The language used to access language-specific data.
788
789
  # If not specified, the agent's default language is used.
789
790
  # For more information, see
@@ -791,26 +792,26 @@ module Google
791
792
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
792
793
  #
793
794
  # @yield [response, operation] Access the result along with the RPC operation
794
- # @yieldparam response [Gapic::Operation]
795
- # @yieldparam operation [GRPC::ActiveCall::Operation]
795
+ # @yieldparam response [::Gapic::Operation]
796
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
796
797
  #
797
- # @return [Gapic::Operation]
798
+ # @return [::Gapic::Operation]
798
799
  #
799
- # @raise [Google::Cloud::Error] if the RPC is aborted.
800
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
800
801
  #
801
802
  def batch_create_entities request, options = nil
802
- raise ArgumentError, "request must be provided" if request.nil?
803
+ raise ::ArgumentError, "request must be provided" if request.nil?
803
804
 
804
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest
805
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest
805
806
 
806
807
  # Converts hash and nil to an options object
807
- 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
808
809
 
809
810
  # Customize the options with defaults
810
811
  metadata = @config.rpcs.batch_create_entities.metadata.to_h
811
812
 
812
813
  # Set x-goog-api-client and x-goog-user-project headers
813
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
814
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
814
815
  lib_name: @config.lib_name, lib_version: @config.lib_version,
815
816
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
816
817
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -828,12 +829,12 @@ module Google
828
829
  retry_policy: @config.retry_policy
829
830
 
830
831
  @entity_types_stub.call_rpc :batch_create_entities, request, options: options do |response, operation|
831
- response = Gapic::Operation.new response, @operations_client, options: options
832
+ response = ::Gapic::Operation.new response, @operations_client, options: options
832
833
  yield response, operation if block_given?
833
834
  return response
834
835
  end
835
- rescue GRPC::BadStatus => e
836
- raise Google::Cloud::Error.from_error(e)
836
+ rescue ::GRPC::BadStatus => e
837
+ raise ::Google::Cloud::Error.from_error(e)
837
838
  end
838
839
 
839
840
  ##
@@ -842,16 +843,16 @@ module Google
842
843
  # specified in the request.
843
844
  #
844
845
  #
845
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
846
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
846
847
  #
847
848
  # @overload batch_update_entities(request, options = nil)
848
849
  # Pass arguments to `batch_update_entities` via a request object, either of type
849
- # {Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest} or an equivalent Hash.
850
+ # {::Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest} or an equivalent Hash.
850
851
  #
851
- # @param request [Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest, Hash]
852
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest, ::Hash]
852
853
  # A request object representing the call parameters. Required. To specify no
853
854
  # parameters, or to keep all the default parameter values, pass an empty Hash.
854
- # @param options [Gapic::CallOptions, Hash]
855
+ # @param options [::Gapic::CallOptions, ::Hash]
855
856
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
856
857
  #
857
858
  # @overload batch_update_entities(parent: nil, entities: nil, language_code: nil, update_mask: nil)
@@ -859,41 +860,41 @@ module Google
859
860
  # least one keyword argument is required. To specify no parameters, or to keep all
860
861
  # the default parameter values, pass an empty Hash as a request object (see above).
861
862
  #
862
- # @param parent [String]
863
+ # @param parent [::String]
863
864
  # Required. The name of the entity type to update or create entities in.
864
865
  # Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
865
- # @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity, Hash>]
866
+ # @param entities [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity, ::Hash>]
866
867
  # Required. The entities to update or create.
867
- # @param language_code [String]
868
+ # @param language_code [::String]
868
869
  # Optional. The language used to access language-specific data.
869
870
  # If not specified, the agent's default language is used.
870
871
  # For more information, see
871
872
  # [Multilingual intent and entity
872
873
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
873
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
874
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
874
875
  # Optional. The mask to control which fields get updated.
875
876
  #
876
877
  # @yield [response, operation] Access the result along with the RPC operation
877
- # @yieldparam response [Gapic::Operation]
878
- # @yieldparam operation [GRPC::ActiveCall::Operation]
878
+ # @yieldparam response [::Gapic::Operation]
879
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
879
880
  #
880
- # @return [Gapic::Operation]
881
+ # @return [::Gapic::Operation]
881
882
  #
882
- # @raise [Google::Cloud::Error] if the RPC is aborted.
883
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
883
884
  #
884
885
  def batch_update_entities request, options = nil
885
- raise ArgumentError, "request must be provided" if request.nil?
886
+ raise ::ArgumentError, "request must be provided" if request.nil?
886
887
 
887
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest
888
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest
888
889
 
889
890
  # Converts hash and nil to an options object
890
- 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
891
892
 
892
893
  # Customize the options with defaults
893
894
  metadata = @config.rpcs.batch_update_entities.metadata.to_h
894
895
 
895
896
  # Set x-goog-api-client and x-goog-user-project headers
896
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
897
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
897
898
  lib_name: @config.lib_name, lib_version: @config.lib_version,
898
899
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
899
900
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -911,28 +912,28 @@ module Google
911
912
  retry_policy: @config.retry_policy
912
913
 
913
914
  @entity_types_stub.call_rpc :batch_update_entities, request, options: options do |response, operation|
914
- response = Gapic::Operation.new response, @operations_client, options: options
915
+ response = ::Gapic::Operation.new response, @operations_client, options: options
915
916
  yield response, operation if block_given?
916
917
  return response
917
918
  end
918
- rescue GRPC::BadStatus => e
919
- raise Google::Cloud::Error.from_error(e)
919
+ rescue ::GRPC::BadStatus => e
920
+ raise ::Google::Cloud::Error.from_error(e)
920
921
  end
921
922
 
922
923
  ##
923
924
  # Deletes entities in the specified entity type.
924
925
  #
925
926
  #
926
- # Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
927
+ # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
927
928
  #
928
929
  # @overload batch_delete_entities(request, options = nil)
929
930
  # Pass arguments to `batch_delete_entities` via a request object, either of type
930
- # {Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest} or an equivalent Hash.
931
+ # {::Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest} or an equivalent Hash.
931
932
  #
932
- # @param request [Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest, Hash]
933
+ # @param request [::Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest, ::Hash]
933
934
  # A request object representing the call parameters. Required. To specify no
934
935
  # parameters, or to keep all the default parameter values, pass an empty Hash.
935
- # @param options [Gapic::CallOptions, Hash]
936
+ # @param options [::Gapic::CallOptions, ::Hash]
936
937
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
937
938
  #
938
939
  # @overload batch_delete_entities(parent: nil, entity_values: nil, language_code: nil)
@@ -940,14 +941,14 @@ module Google
940
941
  # least one keyword argument is required. To specify no parameters, or to keep all
941
942
  # the default parameter values, pass an empty Hash as a request object (see above).
942
943
  #
943
- # @param parent [String]
944
+ # @param parent [::String]
944
945
  # Required. The name of the entity type to delete entries for. Format:
945
946
  # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
946
- # @param entity_values [Array<String>]
947
+ # @param entity_values [::Array<::String>]
947
948
  # Required. The reference `values` of the entities to delete. Note that
948
949
  # these are not fully-qualified names, i.e. they don't start with
949
950
  # `projects/<Project ID>`.
950
- # @param language_code [String]
951
+ # @param language_code [::String]
951
952
  # Optional. The language used to access language-specific data.
952
953
  # If not specified, the agent's default language is used.
953
954
  # For more information, see
@@ -955,26 +956,26 @@ module Google
955
956
  # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
956
957
  #
957
958
  # @yield [response, operation] Access the result along with the RPC operation
958
- # @yieldparam response [Gapic::Operation]
959
- # @yieldparam operation [GRPC::ActiveCall::Operation]
959
+ # @yieldparam response [::Gapic::Operation]
960
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
960
961
  #
961
- # @return [Gapic::Operation]
962
+ # @return [::Gapic::Operation]
962
963
  #
963
- # @raise [Google::Cloud::Error] if the RPC is aborted.
964
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
964
965
  #
965
966
  def batch_delete_entities request, options = nil
966
- raise ArgumentError, "request must be provided" if request.nil?
967
+ raise ::ArgumentError, "request must be provided" if request.nil?
967
968
 
968
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest
969
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest
969
970
 
970
971
  # Converts hash and nil to an options object
971
- 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
972
973
 
973
974
  # Customize the options with defaults
974
975
  metadata = @config.rpcs.batch_delete_entities.metadata.to_h
975
976
 
976
977
  # Set x-goog-api-client and x-goog-user-project headers
977
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
978
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
978
979
  lib_name: @config.lib_name, lib_version: @config.lib_version,
979
980
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
980
981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -992,12 +993,12 @@ module Google
992
993
  retry_policy: @config.retry_policy
993
994
 
994
995
  @entity_types_stub.call_rpc :batch_delete_entities, request, options: options do |response, operation|
995
- response = Gapic::Operation.new response, @operations_client, options: options
996
+ response = ::Gapic::Operation.new response, @operations_client, options: options
996
997
  yield response, operation if block_given?
997
998
  return response
998
999
  end
999
- rescue GRPC::BadStatus => e
1000
- raise Google::Cloud::Error.from_error(e)
1000
+ rescue ::GRPC::BadStatus => e
1001
+ raise ::Google::Cloud::Error.from_error(e)
1001
1002
  end
1002
1003
 
1003
1004
  ##
@@ -1007,7 +1008,7 @@ module Google
1007
1008
  # providing control over timeouts, retry behavior, logging, transport
1008
1009
  # parameters, and other low-level controls. Certain parameters can also be
1009
1010
  # applied individually to specific RPCs. See
1010
- # {Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration::Rpcs}
1011
+ # {::Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration::Rpcs}
1011
1012
  # for a list of RPCs that can be configured independently.
1012
1013
  #
1013
1014
  # Configuration can be applied globally to all clients, or to a single client
@@ -1018,22 +1019,22 @@ module Google
1018
1019
  # To modify the global config, setting the timeout for list_entity_types
1019
1020
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1020
1021
  #
1021
- # Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
1022
- # config.timeout = 10_000
1023
- # 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
1024
1025
  # end
1025
1026
  #
1026
1027
  # To apply the above configuration only to a new client:
1027
1028
  #
1028
- # client = Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
1029
- # config.timeout = 10_000
1030
- # 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
1031
1032
  # end
1032
1033
  #
1033
1034
  # @!attribute [rw] endpoint
1034
1035
  # The hostname or hostname:port of the service endpoint.
1035
1036
  # Defaults to `"dialogflow.googleapis.com"`.
1036
- # @return [String]
1037
+ # @return [::String]
1037
1038
  # @!attribute [rw] credentials
1038
1039
  # Credentials to send with calls. You may provide any of the following types:
1039
1040
  # * (`String`) The path to a service account key file in JSON format
@@ -1045,29 +1046,29 @@ module Google
1045
1046
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1046
1047
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1047
1048
  # * (`nil`) indicating no credentials
1048
- # @return [Object]
1049
+ # @return [::Object]
1049
1050
  # @!attribute [rw] scope
1050
1051
  # The OAuth scopes
1051
- # @return [Array<String>]
1052
+ # @return [::Array<::String>]
1052
1053
  # @!attribute [rw] lib_name
1053
1054
  # The library name as recorded in instrumentation and logging
1054
- # @return [String]
1055
+ # @return [::String]
1055
1056
  # @!attribute [rw] lib_version
1056
1057
  # The library version as recorded in instrumentation and logging
1057
- # @return [String]
1058
+ # @return [::String]
1058
1059
  # @!attribute [rw] channel_args
1059
1060
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1060
1061
  # `GRPC::Core::Channel` object is provided as the credential.
1061
- # @return [Hash]
1062
+ # @return [::Hash]
1062
1063
  # @!attribute [rw] interceptors
1063
1064
  # An array of interceptors that are run before calls are executed.
1064
- # @return [Array<GRPC::ClientInterceptor>]
1065
+ # @return [::Array<::GRPC::ClientInterceptor>]
1065
1066
  # @!attribute [rw] timeout
1066
- # The call timeout in milliseconds.
1067
- # @return [Numeric]
1067
+ # The call timeout in seconds.
1068
+ # @return [::Numeric]
1068
1069
  # @!attribute [rw] metadata
1069
1070
  # Additional gRPC headers to be sent with the call.
1070
- # @return [Hash{Symbol=>String}]
1071
+ # @return [::Hash{::Symbol=>::String}]
1071
1072
  # @!attribute [rw] retry_policy
1072
1073
  # The retry policy. The value is a hash with the following keys:
1073
1074
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1075,25 +1076,29 @@ module Google
1075
1076
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1076
1077
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1077
1078
  # trigger a retry.
1078
- # @return [Hash]
1079
+ # @return [::Hash]
1080
+ # @!attribute [rw] quota_project
1081
+ # A separate project against which to charge quota.
1082
+ # @return [::String]
1079
1083
  #
1080
1084
  class Configuration
1081
- extend Gapic::Config
1085
+ extend ::Gapic::Config
1082
1086
 
1083
- config_attr :endpoint, "dialogflow.googleapis.com", String
1084
- config_attr :credentials, nil do |value|
1087
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
1088
+ config_attr :credentials, nil do |value|
1085
1089
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1086
1090
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1087
1091
  allowed.any? { |klass| klass === value }
1088
1092
  end
1089
- config_attr :scope, nil, String, Array, nil
1090
- config_attr :lib_name, nil, String, nil
1091
- config_attr :lib_version, nil, String, nil
1092
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1093
- config_attr :interceptors, nil, Array, nil
1094
- config_attr :timeout, nil, Numeric, nil
1095
- config_attr :metadata, nil, Hash, nil
1096
- 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
1097
1102
 
1098
1103
  # @private
1099
1104
  def initialize parent_config = nil
@@ -1109,7 +1114,7 @@ module Google
1109
1114
  def rpcs
1110
1115
  @rpcs ||= begin
1111
1116
  parent_rpcs = nil
1112
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1117
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1113
1118
  Rpcs.new parent_rpcs
1114
1119
  end
1115
1120
  end
@@ -1134,77 +1139,77 @@ module Google
1134
1139
  class Rpcs
1135
1140
  ##
1136
1141
  # RPC-specific configuration for `list_entity_types`
1137
- # @return [Gapic::Config::Method]
1142
+ # @return [::Gapic::Config::Method]
1138
1143
  #
1139
1144
  attr_reader :list_entity_types
1140
1145
  ##
1141
1146
  # RPC-specific configuration for `get_entity_type`
1142
- # @return [Gapic::Config::Method]
1147
+ # @return [::Gapic::Config::Method]
1143
1148
  #
1144
1149
  attr_reader :get_entity_type
1145
1150
  ##
1146
1151
  # RPC-specific configuration for `create_entity_type`
1147
- # @return [Gapic::Config::Method]
1152
+ # @return [::Gapic::Config::Method]
1148
1153
  #
1149
1154
  attr_reader :create_entity_type
1150
1155
  ##
1151
1156
  # RPC-specific configuration for `update_entity_type`
1152
- # @return [Gapic::Config::Method]
1157
+ # @return [::Gapic::Config::Method]
1153
1158
  #
1154
1159
  attr_reader :update_entity_type
1155
1160
  ##
1156
1161
  # RPC-specific configuration for `delete_entity_type`
1157
- # @return [Gapic::Config::Method]
1162
+ # @return [::Gapic::Config::Method]
1158
1163
  #
1159
1164
  attr_reader :delete_entity_type
1160
1165
  ##
1161
1166
  # RPC-specific configuration for `batch_update_entity_types`
1162
- # @return [Gapic::Config::Method]
1167
+ # @return [::Gapic::Config::Method]
1163
1168
  #
1164
1169
  attr_reader :batch_update_entity_types
1165
1170
  ##
1166
1171
  # RPC-specific configuration for `batch_delete_entity_types`
1167
- # @return [Gapic::Config::Method]
1172
+ # @return [::Gapic::Config::Method]
1168
1173
  #
1169
1174
  attr_reader :batch_delete_entity_types
1170
1175
  ##
1171
1176
  # RPC-specific configuration for `batch_create_entities`
1172
- # @return [Gapic::Config::Method]
1177
+ # @return [::Gapic::Config::Method]
1173
1178
  #
1174
1179
  attr_reader :batch_create_entities
1175
1180
  ##
1176
1181
  # RPC-specific configuration for `batch_update_entities`
1177
- # @return [Gapic::Config::Method]
1182
+ # @return [::Gapic::Config::Method]
1178
1183
  #
1179
1184
  attr_reader :batch_update_entities
1180
1185
  ##
1181
1186
  # RPC-specific configuration for `batch_delete_entities`
1182
- # @return [Gapic::Config::Method]
1187
+ # @return [::Gapic::Config::Method]
1183
1188
  #
1184
1189
  attr_reader :batch_delete_entities
1185
1190
 
1186
1191
  # @private
1187
1192
  def initialize parent_rpcs = nil
1188
1193
  list_entity_types_config = parent_rpcs&.list_entity_types if parent_rpcs&.respond_to? :list_entity_types
1189
- @list_entity_types = Gapic::Config::Method.new list_entity_types_config
1194
+ @list_entity_types = ::Gapic::Config::Method.new list_entity_types_config
1190
1195
  get_entity_type_config = parent_rpcs&.get_entity_type if parent_rpcs&.respond_to? :get_entity_type
1191
- @get_entity_type = Gapic::Config::Method.new get_entity_type_config
1196
+ @get_entity_type = ::Gapic::Config::Method.new get_entity_type_config
1192
1197
  create_entity_type_config = parent_rpcs&.create_entity_type if parent_rpcs&.respond_to? :create_entity_type
1193
- @create_entity_type = Gapic::Config::Method.new create_entity_type_config
1198
+ @create_entity_type = ::Gapic::Config::Method.new create_entity_type_config
1194
1199
  update_entity_type_config = parent_rpcs&.update_entity_type if parent_rpcs&.respond_to? :update_entity_type
1195
- @update_entity_type = Gapic::Config::Method.new update_entity_type_config
1200
+ @update_entity_type = ::Gapic::Config::Method.new update_entity_type_config
1196
1201
  delete_entity_type_config = parent_rpcs&.delete_entity_type if parent_rpcs&.respond_to? :delete_entity_type
1197
- @delete_entity_type = Gapic::Config::Method.new delete_entity_type_config
1202
+ @delete_entity_type = ::Gapic::Config::Method.new delete_entity_type_config
1198
1203
  batch_update_entity_types_config = parent_rpcs&.batch_update_entity_types if parent_rpcs&.respond_to? :batch_update_entity_types
1199
- @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
1200
1205
  batch_delete_entity_types_config = parent_rpcs&.batch_delete_entity_types if parent_rpcs&.respond_to? :batch_delete_entity_types
1201
- @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
1202
1207
  batch_create_entities_config = parent_rpcs&.batch_create_entities if parent_rpcs&.respond_to? :batch_create_entities
1203
- @batch_create_entities = Gapic::Config::Method.new batch_create_entities_config
1208
+ @batch_create_entities = ::Gapic::Config::Method.new batch_create_entities_config
1204
1209
  batch_update_entities_config = parent_rpcs&.batch_update_entities if parent_rpcs&.respond_to? :batch_update_entities
1205
- @batch_update_entities = Gapic::Config::Method.new batch_update_entities_config
1210
+ @batch_update_entities = ::Gapic::Config::Method.new batch_update_entities_config
1206
1211
  batch_delete_entities_config = parent_rpcs&.batch_delete_entities if parent_rpcs&.respond_to? :batch_delete_entities
1207
- @batch_delete_entities = Gapic::Config::Method.new batch_delete_entities_config
1212
+ @batch_delete_entities = ::Gapic::Config::Method.new batch_delete_entities_config
1208
1213
 
1209
1214
  yield self if block_given?
1210
1215
  end