google-cloud-talent-v4beta1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/talent/v4beta1.rb +1 -1
  5. data/lib/google/cloud/talent/v4beta1/application_service.rb +1 -1
  6. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +124 -124
  7. data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +1 -1
  8. data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +17 -17
  9. data/lib/google/cloud/talent/v4beta1/company_service.rb +1 -1
  10. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +126 -126
  11. data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +1 -1
  12. data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +8 -8
  13. data/lib/google/cloud/talent/v4beta1/completion.rb +1 -1
  14. data/lib/google/cloud/talent/v4beta1/completion/client.rb +60 -60
  15. data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +1 -1
  16. data/lib/google/cloud/talent/v4beta1/completion/paths.rb +8 -8
  17. data/lib/google/cloud/talent/v4beta1/event_service.rb +1 -1
  18. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +53 -53
  19. data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +1 -1
  20. data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +3 -3
  21. data/lib/google/cloud/talent/v4beta1/job_service.rb +1 -1
  22. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +320 -320
  23. data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
  24. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +100 -100
  25. data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +13 -13
  26. data/lib/google/cloud/talent/v4beta1/profile_service.rb +1 -1
  27. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +176 -176
  28. data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +1 -1
  29. data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +5 -5
  30. data/lib/google/cloud/talent/v4beta1/tenant_service.rb +1 -1
  31. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +124 -124
  32. data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +1 -1
  33. data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +3 -3
  34. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  35. data/proto_docs/google/api/resource.rb +12 -12
  36. data/proto_docs/google/cloud/talent/v4beta1/application.rb +18 -18
  37. data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +27 -27
  38. data/proto_docs/google/cloud/talent/v4beta1/common.rb +167 -167
  39. data/proto_docs/google/cloud/talent/v4beta1/company.rb +21 -21
  40. data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +29 -29
  41. data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +28 -28
  42. data/proto_docs/google/cloud/talent/v4beta1/event.rb +30 -30
  43. data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +4 -4
  44. data/proto_docs/google/cloud/talent/v4beta1/filters.rb +197 -197
  45. data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +14 -14
  46. data/proto_docs/google/cloud/talent/v4beta1/job.rb +83 -83
  47. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +163 -163
  48. data/proto_docs/google/cloud/talent/v4beta1/profile.rb +202 -202
  49. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +82 -82
  50. data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +8 -8
  51. data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +27 -27
  52. data/proto_docs/google/longrunning/operations.rb +30 -30
  53. data/proto_docs/google/protobuf/any.rb +4 -4
  54. data/proto_docs/google/protobuf/duration.rb +4 -4
  55. data/proto_docs/google/protobuf/empty.rb +2 -2
  56. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  57. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  58. data/proto_docs/google/protobuf/wrappers.rb +27 -27
  59. data/proto_docs/google/rpc/status.rb +6 -6
  60. data/proto_docs/google/type/date.rb +6 -6
  61. data/proto_docs/google/type/latlng.rb +4 -4
  62. data/proto_docs/google/type/money.rb +5 -5
  63. data/proto_docs/google/type/postal_address.rb +13 -13
  64. data/proto_docs/google/type/timeofday.rb +7 -7
  65. metadata +2 -2
@@ -24,7 +24,7 @@ module Google
24
24
  module V4beta1
25
25
  module EventService
26
26
  # Credentials for the EventService 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/jobs"
@@ -33,7 +33,7 @@ module Google
33
33
  #
34
34
  # @param project [String]
35
35
  #
36
- # @return [String]
36
+ # @return [::String]
37
37
  def project_path project:
38
38
  "projects/#{project}"
39
39
  end
@@ -48,9 +48,9 @@ module Google
48
48
  # @param project [String]
49
49
  # @param tenant [String]
50
50
  #
51
- # @return [String]
51
+ # @return [::String]
52
52
  def tenant_path project:, tenant:
53
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
53
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
54
54
 
55
55
  "projects/#{project}/tenants/#{tenant}"
56
56
  end
@@ -37,7 +37,7 @@ module Google
37
37
  # To load this service and instantiate a client:
38
38
  #
39
39
  # require "google/cloud/talent/v4beta1/job_service"
40
- # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
40
+ # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new
41
41
  #
42
42
  module JobService
43
43
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the JobService Client class.
40
40
  #
41
- # See {Google::Cloud::Talent::V4beta1::JobService::Client::Configuration}
41
+ # See {::Google::Cloud::Talent::V4beta1::JobService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
44
  # ## Example
45
45
  #
46
46
  # To modify the configuration for all JobService clients:
47
47
  #
48
- # Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -116,7 +116,7 @@ module Google
116
116
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
117
117
  # should be made on {Client.configure}.
118
118
  #
119
- # See {Google::Cloud::Talent::V4beta1::JobService::Client::Configuration}
119
+ # See {::Google::Cloud::Talent::V4beta1::JobService::Client::Configuration}
120
120
  # for a description of the configuration fields.
121
121
  #
122
122
  # @yield [config] Configure the Client client.
@@ -137,13 +137,13 @@ module Google
137
137
  # To create a new JobService client with the default
138
138
  # configuration:
139
139
  #
140
- # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
140
+ # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new
141
141
  #
142
142
  # To create a new JobService client with a custom
143
143
  # configuration:
144
144
  #
145
- # client = Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
146
- # config.timeout = 10_000
145
+ # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
146
+ # config.timeout = 10.0
147
147
  # end
148
148
  #
149
149
  # @yield [config] Configure the JobService client.
@@ -175,8 +175,8 @@ module Google
175
175
  config.endpoint = @config.endpoint
176
176
  end
177
177
 
178
- @job_service_stub = Gapic::ServiceStub.new(
179
- Google::Cloud::Talent::V4beta1::JobService::Stub,
178
+ @job_service_stub = ::Gapic::ServiceStub.new(
179
+ ::Google::Cloud::Talent::V4beta1::JobService::Stub,
180
180
  credentials: credentials,
181
181
  endpoint: @config.endpoint,
182
182
  channel_args: @config.channel_args,
@@ -187,7 +187,7 @@ module Google
187
187
  ##
188
188
  # Get the associated client for long-running operations.
189
189
  #
190
- # @return [Google::Cloud::Talent::V4beta1::JobService::Operations]
190
+ # @return [::Google::Cloud::Talent::V4beta1::JobService::Operations]
191
191
  #
192
192
  attr_reader :operations_client
193
193
 
@@ -201,12 +201,12 @@ module Google
201
201
  #
202
202
  # @overload create_job(request, options = nil)
203
203
  # Pass arguments to `create_job` via a request object, either of type
204
- # {Google::Cloud::Talent::V4beta1::CreateJobRequest} or an equivalent Hash.
204
+ # {::Google::Cloud::Talent::V4beta1::CreateJobRequest} or an equivalent Hash.
205
205
  #
206
- # @param request [Google::Cloud::Talent::V4beta1::CreateJobRequest, Hash]
206
+ # @param request [::Google::Cloud::Talent::V4beta1::CreateJobRequest, ::Hash]
207
207
  # A request object representing the call parameters. Required. To specify no
208
208
  # parameters, or to keep all the default parameter values, pass an empty Hash.
209
- # @param options [Gapic::CallOptions, Hash]
209
+ # @param options [::Gapic::CallOptions, ::Hash]
210
210
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
211
211
  #
212
212
  # @overload create_job(parent: nil, job: nil)
@@ -214,36 +214,36 @@ module Google
214
214
  # least one keyword argument is required. To specify no parameters, or to keep all
215
215
  # the default parameter values, pass an empty Hash as a request object (see above).
216
216
  #
217
- # @param parent [String]
217
+ # @param parent [::String]
218
218
  # Required. The resource name of the tenant under which the job is created.
219
219
  #
220
220
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
221
221
  # "projects/foo/tenant/bar". If tenant id is unspecified a default tenant
222
222
  # is created. For example, "projects/foo".
223
- # @param job [Google::Cloud::Talent::V4beta1::Job, Hash]
223
+ # @param job [::Google::Cloud::Talent::V4beta1::Job, ::Hash]
224
224
  # Required. The Job to be created.
225
225
  #
226
226
  # @yield [response, operation] Access the result along with the RPC operation
227
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Job]
228
- # @yieldparam operation [GRPC::ActiveCall::Operation]
227
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Job]
228
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
229
229
  #
230
- # @return [Google::Cloud::Talent::V4beta1::Job]
230
+ # @return [::Google::Cloud::Talent::V4beta1::Job]
231
231
  #
232
- # @raise [Google::Cloud::Error] if the RPC is aborted.
232
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
233
233
  #
234
234
  def create_job request, options = nil
235
- raise ArgumentError, "request must be provided" if request.nil?
235
+ raise ::ArgumentError, "request must be provided" if request.nil?
236
236
 
237
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateJobRequest
237
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateJobRequest
238
238
 
239
239
  # Converts hash and nil to an options object
240
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
240
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
241
241
 
242
242
  # Customize the options with defaults
243
243
  metadata = @config.rpcs.create_job.metadata.to_h
244
244
 
245
245
  # Set x-goog-api-client and x-goog-user-project headers
246
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
246
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
247
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
248
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
249
249
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -264,8 +264,8 @@ module Google
264
264
  yield response, operation if block_given?
265
265
  return response
266
266
  end
267
- rescue GRPC::BadStatus => e
268
- raise Google::Cloud::Error.from_error(e)
267
+ rescue ::GRPC::BadStatus => e
268
+ raise ::Google::Cloud::Error.from_error(e)
269
269
  end
270
270
 
271
271
  ##
@@ -273,12 +273,12 @@ module Google
273
273
  #
274
274
  # @overload batch_create_jobs(request, options = nil)
275
275
  # Pass arguments to `batch_create_jobs` via a request object, either of type
276
- # {Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest} or an equivalent Hash.
276
+ # {::Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest} or an equivalent Hash.
277
277
  #
278
- # @param request [Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest, Hash]
278
+ # @param request [::Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest, ::Hash]
279
279
  # A request object representing the call parameters. Required. To specify no
280
280
  # parameters, or to keep all the default parameter values, pass an empty Hash.
281
- # @param options [Gapic::CallOptions, Hash]
281
+ # @param options [::Gapic::CallOptions, ::Hash]
282
282
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
283
283
  #
284
284
  # @overload batch_create_jobs(parent: nil, jobs: nil)
@@ -286,36 +286,36 @@ module Google
286
286
  # least one keyword argument is required. To specify no parameters, or to keep all
287
287
  # the default parameter values, pass an empty Hash as a request object (see above).
288
288
  #
289
- # @param parent [String]
289
+ # @param parent [::String]
290
290
  # Required. The resource name of the tenant under which the job is created.
291
291
  #
292
292
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
293
293
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
294
294
  # is created. For example, "projects/foo".
295
- # @param jobs [Array<Google::Cloud::Talent::V4beta1::Job, Hash>]
295
+ # @param jobs [::Array<::Google::Cloud::Talent::V4beta1::Job, ::Hash>]
296
296
  # Required. The jobs to be created.
297
297
  #
298
298
  # @yield [response, operation] Access the result along with the RPC operation
299
- # @yieldparam response [Gapic::Operation]
300
- # @yieldparam operation [GRPC::ActiveCall::Operation]
299
+ # @yieldparam response [::Gapic::Operation]
300
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
301
301
  #
302
- # @return [Gapic::Operation]
302
+ # @return [::Gapic::Operation]
303
303
  #
304
- # @raise [Google::Cloud::Error] if the RPC is aborted.
304
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
305
305
  #
306
306
  def batch_create_jobs request, options = nil
307
- raise ArgumentError, "request must be provided" if request.nil?
307
+ raise ::ArgumentError, "request must be provided" if request.nil?
308
308
 
309
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest
309
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest
310
310
 
311
311
  # Converts hash and nil to an options object
312
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
312
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
313
313
 
314
314
  # Customize the options with defaults
315
315
  metadata = @config.rpcs.batch_create_jobs.metadata.to_h
316
316
 
317
317
  # Set x-goog-api-client and x-goog-user-project headers
318
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
318
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
319
319
  lib_name: @config.lib_name, lib_version: @config.lib_version,
320
320
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
321
321
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -333,12 +333,12 @@ module Google
333
333
  retry_policy: @config.retry_policy
334
334
 
335
335
  @job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
336
- response = Gapic::Operation.new response, @operations_client, options: options
336
+ response = ::Gapic::Operation.new response, @operations_client, options: options
337
337
  yield response, operation if block_given?
338
338
  return response
339
339
  end
340
- rescue GRPC::BadStatus => e
341
- raise Google::Cloud::Error.from_error(e)
340
+ rescue ::GRPC::BadStatus => e
341
+ raise ::Google::Cloud::Error.from_error(e)
342
342
  end
343
343
 
344
344
  ##
@@ -347,12 +347,12 @@ module Google
347
347
  #
348
348
  # @overload get_job(request, options = nil)
349
349
  # Pass arguments to `get_job` via a request object, either of type
350
- # {Google::Cloud::Talent::V4beta1::GetJobRequest} or an equivalent Hash.
350
+ # {::Google::Cloud::Talent::V4beta1::GetJobRequest} or an equivalent Hash.
351
351
  #
352
- # @param request [Google::Cloud::Talent::V4beta1::GetJobRequest, Hash]
352
+ # @param request [::Google::Cloud::Talent::V4beta1::GetJobRequest, ::Hash]
353
353
  # A request object representing the call parameters. Required. To specify no
354
354
  # parameters, or to keep all the default parameter values, pass an empty Hash.
355
- # @param options [Gapic::CallOptions, Hash]
355
+ # @param options [::Gapic::CallOptions, ::Hash]
356
356
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
357
357
  #
358
358
  # @overload get_job(name: nil)
@@ -360,7 +360,7 @@ module Google
360
360
  # least one keyword argument is required. To specify no parameters, or to keep all
361
361
  # the default parameter values, pass an empty Hash as a request object (see above).
362
362
  #
363
- # @param name [String]
363
+ # @param name [::String]
364
364
  # Required. The resource name of the job to retrieve.
365
365
  #
366
366
  # The format is
@@ -371,26 +371,26 @@ module Google
371
371
  # example, "projects/foo/jobs/bar".
372
372
  #
373
373
  # @yield [response, operation] Access the result along with the RPC operation
374
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Job]
375
- # @yieldparam operation [GRPC::ActiveCall::Operation]
374
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Job]
375
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
376
376
  #
377
- # @return [Google::Cloud::Talent::V4beta1::Job]
377
+ # @return [::Google::Cloud::Talent::V4beta1::Job]
378
378
  #
379
- # @raise [Google::Cloud::Error] if the RPC is aborted.
379
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
380
380
  #
381
381
  def get_job request, options = nil
382
- raise ArgumentError, "request must be provided" if request.nil?
382
+ raise ::ArgumentError, "request must be provided" if request.nil?
383
383
 
384
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetJobRequest
384
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetJobRequest
385
385
 
386
386
  # Converts hash and nil to an options object
387
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
387
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
388
388
 
389
389
  # Customize the options with defaults
390
390
  metadata = @config.rpcs.get_job.metadata.to_h
391
391
 
392
392
  # Set x-goog-api-client and x-goog-user-project headers
393
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
393
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
394
394
  lib_name: @config.lib_name, lib_version: @config.lib_version,
395
395
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
396
396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -411,8 +411,8 @@ module Google
411
411
  yield response, operation if block_given?
412
412
  return response
413
413
  end
414
- rescue GRPC::BadStatus => e
415
- raise Google::Cloud::Error.from_error(e)
414
+ rescue ::GRPC::BadStatus => e
415
+ raise ::Google::Cloud::Error.from_error(e)
416
416
  end
417
417
 
418
418
  ##
@@ -423,12 +423,12 @@ module Google
423
423
  #
424
424
  # @overload update_job(request, options = nil)
425
425
  # Pass arguments to `update_job` via a request object, either of type
426
- # {Google::Cloud::Talent::V4beta1::UpdateJobRequest} or an equivalent Hash.
426
+ # {::Google::Cloud::Talent::V4beta1::UpdateJobRequest} or an equivalent Hash.
427
427
  #
428
- # @param request [Google::Cloud::Talent::V4beta1::UpdateJobRequest, Hash]
428
+ # @param request [::Google::Cloud::Talent::V4beta1::UpdateJobRequest, ::Hash]
429
429
  # A request object representing the call parameters. Required. To specify no
430
430
  # parameters, or to keep all the default parameter values, pass an empty Hash.
431
- # @param options [Gapic::CallOptions, Hash]
431
+ # @param options [::Gapic::CallOptions, ::Hash]
432
432
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
433
433
  #
434
434
  # @overload update_job(job: nil, update_mask: nil)
@@ -436,38 +436,38 @@ module Google
436
436
  # least one keyword argument is required. To specify no parameters, or to keep all
437
437
  # the default parameter values, pass an empty Hash as a request object (see above).
438
438
  #
439
- # @param job [Google::Cloud::Talent::V4beta1::Job, Hash]
439
+ # @param job [::Google::Cloud::Talent::V4beta1::Job, ::Hash]
440
440
  # Required. The Job to be updated.
441
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
441
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
442
442
  # Strongly recommended for the best service experience.
443
443
  #
444
- # If {Google::Cloud::Talent::V4beta1::UpdateJobRequest#update_mask update_mask} is provided, only the specified fields in
445
- # {Google::Cloud::Talent::V4beta1::UpdateJobRequest#job job} are updated. Otherwise all the fields are updated.
444
+ # If {::Google::Cloud::Talent::V4beta1::UpdateJobRequest#update_mask update_mask} is provided, only the specified fields in
445
+ # {::Google::Cloud::Talent::V4beta1::UpdateJobRequest#job job} are updated. Otherwise all the fields are updated.
446
446
  #
447
447
  # A field mask to restrict the fields that are updated. Only
448
- # top level fields of {Google::Cloud::Talent::V4beta1::Job Job} are supported.
448
+ # top level fields of {::Google::Cloud::Talent::V4beta1::Job Job} are supported.
449
449
  #
450
450
  # @yield [response, operation] Access the result along with the RPC operation
451
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Job]
452
- # @yieldparam operation [GRPC::ActiveCall::Operation]
451
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Job]
452
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
453
453
  #
454
- # @return [Google::Cloud::Talent::V4beta1::Job]
454
+ # @return [::Google::Cloud::Talent::V4beta1::Job]
455
455
  #
456
- # @raise [Google::Cloud::Error] if the RPC is aborted.
456
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
457
457
  #
458
458
  def update_job request, options = nil
459
- raise ArgumentError, "request must be provided" if request.nil?
459
+ raise ::ArgumentError, "request must be provided" if request.nil?
460
460
 
461
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateJobRequest
461
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateJobRequest
462
462
 
463
463
  # Converts hash and nil to an options object
464
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
464
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
465
465
 
466
466
  # Customize the options with defaults
467
467
  metadata = @config.rpcs.update_job.metadata.to_h
468
468
 
469
469
  # Set x-goog-api-client and x-goog-user-project headers
470
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
470
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
471
  lib_name: @config.lib_name, lib_version: @config.lib_version,
472
472
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
473
473
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -488,8 +488,8 @@ module Google
488
488
  yield response, operation if block_given?
489
489
  return response
490
490
  end
491
- rescue GRPC::BadStatus => e
492
- raise Google::Cloud::Error.from_error(e)
491
+ rescue ::GRPC::BadStatus => e
492
+ raise ::Google::Cloud::Error.from_error(e)
493
493
  end
494
494
 
495
495
  ##
@@ -497,12 +497,12 @@ module Google
497
497
  #
498
498
  # @overload batch_update_jobs(request, options = nil)
499
499
  # Pass arguments to `batch_update_jobs` via a request object, either of type
500
- # {Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest} or an equivalent Hash.
500
+ # {::Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest} or an equivalent Hash.
501
501
  #
502
- # @param request [Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest, Hash]
502
+ # @param request [::Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest, ::Hash]
503
503
  # A request object representing the call parameters. Required. To specify no
504
504
  # parameters, or to keep all the default parameter values, pass an empty Hash.
505
- # @param options [Gapic::CallOptions, Hash]
505
+ # @param options [::Gapic::CallOptions, ::Hash]
506
506
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
507
507
  #
508
508
  # @overload batch_update_jobs(parent: nil, jobs: nil, update_mask: nil)
@@ -510,51 +510,51 @@ module Google
510
510
  # least one keyword argument is required. To specify no parameters, or to keep all
511
511
  # the default parameter values, pass an empty Hash as a request object (see above).
512
512
  #
513
- # @param parent [String]
513
+ # @param parent [::String]
514
514
  # Required. The resource name of the tenant under which the job is created.
515
515
  #
516
516
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
517
517
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
518
518
  # is created. For example, "projects/foo".
519
- # @param jobs [Array<Google::Cloud::Talent::V4beta1::Job, Hash>]
519
+ # @param jobs [::Array<::Google::Cloud::Talent::V4beta1::Job, ::Hash>]
520
520
  # Required. The jobs to be updated.
521
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
521
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
522
522
  # Strongly recommended for the best service experience. Be aware that it will
523
523
  # also increase latency when checking the status of a batch operation.
524
524
  #
525
- # If {Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest#update_mask update_mask} is provided, only the specified fields in
526
- # {Google::Cloud::Talent::V4beta1::Job Job} are updated. Otherwise all the fields are updated.
525
+ # If {::Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest#update_mask update_mask} is provided, only the specified fields in
526
+ # {::Google::Cloud::Talent::V4beta1::Job Job} are updated. Otherwise all the fields are updated.
527
527
  #
528
528
  # A field mask to restrict the fields that are updated. Only
529
- # top level fields of {Google::Cloud::Talent::V4beta1::Job Job} are supported.
529
+ # top level fields of {::Google::Cloud::Talent::V4beta1::Job Job} are supported.
530
530
  #
531
- # If {Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest#update_mask update_mask} is provided, The {Google::Cloud::Talent::V4beta1::Job Job} inside
532
- # {Google::Cloud::Talent::V4beta1::JobOperationResult::JobResult JobResult}
531
+ # If {::Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest#update_mask update_mask} is provided, The {::Google::Cloud::Talent::V4beta1::Job Job} inside
532
+ # {::Google::Cloud::Talent::V4beta1::JobOperationResult::JobResult JobResult}
533
533
  # will only contains fields that is updated, plus the Id of the Job.
534
- # Otherwise, {Google::Cloud::Talent::V4beta1::Job Job} will include all fields, which can yield a very
534
+ # Otherwise, {::Google::Cloud::Talent::V4beta1::Job Job} will include all fields, which can yield a very
535
535
  # large response.
536
536
  #
537
537
  # @yield [response, operation] Access the result along with the RPC operation
538
- # @yieldparam response [Gapic::Operation]
539
- # @yieldparam operation [GRPC::ActiveCall::Operation]
538
+ # @yieldparam response [::Gapic::Operation]
539
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
540
540
  #
541
- # @return [Gapic::Operation]
541
+ # @return [::Gapic::Operation]
542
542
  #
543
- # @raise [Google::Cloud::Error] if the RPC is aborted.
543
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
544
544
  #
545
545
  def batch_update_jobs request, options = nil
546
- raise ArgumentError, "request must be provided" if request.nil?
546
+ raise ::ArgumentError, "request must be provided" if request.nil?
547
547
 
548
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest
548
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest
549
549
 
550
550
  # Converts hash and nil to an options object
551
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
551
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
552
552
 
553
553
  # Customize the options with defaults
554
554
  metadata = @config.rpcs.batch_update_jobs.metadata.to_h
555
555
 
556
556
  # Set x-goog-api-client and x-goog-user-project headers
557
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
557
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
558
558
  lib_name: @config.lib_name, lib_version: @config.lib_version,
559
559
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
560
560
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -572,12 +572,12 @@ module Google
572
572
  retry_policy: @config.retry_policy
573
573
 
574
574
  @job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
575
- response = Gapic::Operation.new response, @operations_client, options: options
575
+ response = ::Gapic::Operation.new response, @operations_client, options: options
576
576
  yield response, operation if block_given?
577
577
  return response
578
578
  end
579
- rescue GRPC::BadStatus => e
580
- raise Google::Cloud::Error.from_error(e)
579
+ rescue ::GRPC::BadStatus => e
580
+ raise ::Google::Cloud::Error.from_error(e)
581
581
  end
582
582
 
583
583
  ##
@@ -588,12 +588,12 @@ module Google
588
588
  #
589
589
  # @overload delete_job(request, options = nil)
590
590
  # Pass arguments to `delete_job` via a request object, either of type
591
- # {Google::Cloud::Talent::V4beta1::DeleteJobRequest} or an equivalent Hash.
591
+ # {::Google::Cloud::Talent::V4beta1::DeleteJobRequest} or an equivalent Hash.
592
592
  #
593
- # @param request [Google::Cloud::Talent::V4beta1::DeleteJobRequest, Hash]
593
+ # @param request [::Google::Cloud::Talent::V4beta1::DeleteJobRequest, ::Hash]
594
594
  # A request object representing the call parameters. Required. To specify no
595
595
  # parameters, or to keep all the default parameter values, pass an empty Hash.
596
- # @param options [Gapic::CallOptions, Hash]
596
+ # @param options [::Gapic::CallOptions, ::Hash]
597
597
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
598
598
  #
599
599
  # @overload delete_job(name: nil)
@@ -601,7 +601,7 @@ module Google
601
601
  # least one keyword argument is required. To specify no parameters, or to keep all
602
602
  # the default parameter values, pass an empty Hash as a request object (see above).
603
603
  #
604
- # @param name [String]
604
+ # @param name [::String]
605
605
  # Required. The resource name of the job to be deleted.
606
606
  #
607
607
  # The format is
@@ -612,26 +612,26 @@ module Google
612
612
  # example, "projects/foo/jobs/bar".
613
613
  #
614
614
  # @yield [response, operation] Access the result along with the RPC operation
615
- # @yieldparam response [Google::Protobuf::Empty]
616
- # @yieldparam operation [GRPC::ActiveCall::Operation]
615
+ # @yieldparam response [::Google::Protobuf::Empty]
616
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
617
617
  #
618
- # @return [Google::Protobuf::Empty]
618
+ # @return [::Google::Protobuf::Empty]
619
619
  #
620
- # @raise [Google::Cloud::Error] if the RPC is aborted.
620
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
621
621
  #
622
622
  def delete_job request, options = nil
623
- raise ArgumentError, "request must be provided" if request.nil?
623
+ raise ::ArgumentError, "request must be provided" if request.nil?
624
624
 
625
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteJobRequest
625
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteJobRequest
626
626
 
627
627
  # Converts hash and nil to an options object
628
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
628
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
629
629
 
630
630
  # Customize the options with defaults
631
631
  metadata = @config.rpcs.delete_job.metadata.to_h
632
632
 
633
633
  # Set x-goog-api-client and x-goog-user-project headers
634
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
634
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
635
635
  lib_name: @config.lib_name, lib_version: @config.lib_version,
636
636
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
637
637
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -652,21 +652,21 @@ module Google
652
652
  yield response, operation if block_given?
653
653
  return response
654
654
  end
655
- rescue GRPC::BadStatus => e
656
- raise Google::Cloud::Error.from_error(e)
655
+ rescue ::GRPC::BadStatus => e
656
+ raise ::Google::Cloud::Error.from_error(e)
657
657
  end
658
658
 
659
659
  ##
660
- # Deletes a list of {Google::Cloud::Talent::V4beta1::Job Job}s by filter.
660
+ # Deletes a list of {::Google::Cloud::Talent::V4beta1::Job Job}s by filter.
661
661
  #
662
662
  # @overload batch_delete_jobs(request, options = nil)
663
663
  # Pass arguments to `batch_delete_jobs` via a request object, either of type
664
- # {Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest} or an equivalent Hash.
664
+ # {::Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest} or an equivalent Hash.
665
665
  #
666
- # @param request [Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest, Hash]
666
+ # @param request [::Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest, ::Hash]
667
667
  # A request object representing the call parameters. Required. To specify no
668
668
  # parameters, or to keep all the default parameter values, pass an empty Hash.
669
- # @param options [Gapic::CallOptions, Hash]
669
+ # @param options [::Gapic::CallOptions, ::Hash]
670
670
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
671
671
  #
672
672
  # @overload batch_delete_jobs(parent: nil, filter: nil)
@@ -674,13 +674,13 @@ module Google
674
674
  # least one keyword argument is required. To specify no parameters, or to keep all
675
675
  # the default parameter values, pass an empty Hash as a request object (see above).
676
676
  #
677
- # @param parent [String]
677
+ # @param parent [::String]
678
678
  # Required. The resource name of the tenant under which the job is created.
679
679
  #
680
680
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
681
681
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
682
682
  # is created. For example, "projects/foo".
683
- # @param filter [String]
683
+ # @param filter [::String]
684
684
  # Required. The filter string specifies the jobs to be deleted.
685
685
  #
686
686
  # Supported operator: =, AND
@@ -694,26 +694,26 @@ module Google
694
694
  # requisitionId = "req-1"
695
695
  #
696
696
  # @yield [response, operation] Access the result along with the RPC operation
697
- # @yieldparam response [Google::Protobuf::Empty]
698
- # @yieldparam operation [GRPC::ActiveCall::Operation]
697
+ # @yieldparam response [::Google::Protobuf::Empty]
698
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
699
699
  #
700
- # @return [Google::Protobuf::Empty]
700
+ # @return [::Google::Protobuf::Empty]
701
701
  #
702
- # @raise [Google::Cloud::Error] if the RPC is aborted.
702
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
703
703
  #
704
704
  def batch_delete_jobs request, options = nil
705
- raise ArgumentError, "request must be provided" if request.nil?
705
+ raise ::ArgumentError, "request must be provided" if request.nil?
706
706
 
707
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest
707
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest
708
708
 
709
709
  # Converts hash and nil to an options object
710
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
710
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
711
711
 
712
712
  # Customize the options with defaults
713
713
  metadata = @config.rpcs.batch_delete_jobs.metadata.to_h
714
714
 
715
715
  # Set x-goog-api-client and x-goog-user-project headers
716
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
716
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
717
717
  lib_name: @config.lib_name, lib_version: @config.lib_version,
718
718
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
719
719
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -734,8 +734,8 @@ module Google
734
734
  yield response, operation if block_given?
735
735
  return response
736
736
  end
737
- rescue GRPC::BadStatus => e
738
- raise Google::Cloud::Error.from_error(e)
737
+ rescue ::GRPC::BadStatus => e
738
+ raise ::Google::Cloud::Error.from_error(e)
739
739
  end
740
740
 
741
741
  ##
@@ -743,12 +743,12 @@ module Google
743
743
  #
744
744
  # @overload list_jobs(request, options = nil)
745
745
  # Pass arguments to `list_jobs` via a request object, either of type
746
- # {Google::Cloud::Talent::V4beta1::ListJobsRequest} or an equivalent Hash.
746
+ # {::Google::Cloud::Talent::V4beta1::ListJobsRequest} or an equivalent Hash.
747
747
  #
748
- # @param request [Google::Cloud::Talent::V4beta1::ListJobsRequest, Hash]
748
+ # @param request [::Google::Cloud::Talent::V4beta1::ListJobsRequest, ::Hash]
749
749
  # A request object representing the call parameters. Required. To specify no
750
750
  # parameters, or to keep all the default parameter values, pass an empty Hash.
751
- # @param options [Gapic::CallOptions, Hash]
751
+ # @param options [::Gapic::CallOptions, ::Hash]
752
752
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
753
753
  #
754
754
  # @overload list_jobs(parent: nil, filter: nil, page_token: nil, page_size: nil, job_view: nil)
@@ -756,13 +756,13 @@ module Google
756
756
  # least one keyword argument is required. To specify no parameters, or to keep all
757
757
  # the default parameter values, pass an empty Hash as a request object (see above).
758
758
  #
759
- # @param parent [String]
759
+ # @param parent [::String]
760
760
  # Required. The resource name of the tenant under which the job is created.
761
761
  #
762
762
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
763
763
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
764
764
  # is created. For example, "projects/foo".
765
- # @param filter [String]
765
+ # @param filter [::String]
766
766
  # Required. The filter string specifies the jobs to be enumerated.
767
767
  #
768
768
  # Supported operator: =, AND
@@ -781,41 +781,41 @@ module Google
781
781
  # requisitionId = "req-1"
782
782
  # * companyName = "projects/foo/tenants/bar/companies/baz" AND
783
783
  # status = "EXPIRED"
784
- # @param page_token [String]
784
+ # @param page_token [::String]
785
785
  # The starting point of a query result.
786
- # @param page_size [Integer]
786
+ # @param page_size [::Integer]
787
787
  # The maximum number of jobs to be returned per page of results.
788
788
  #
789
- # If {Google::Cloud::Talent::V4beta1::ListJobsRequest#job_view job_view} is set to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_ID_ONLY JobView.JOB_VIEW_ID_ONLY}, the maximum allowed
789
+ # If {::Google::Cloud::Talent::V4beta1::ListJobsRequest#job_view job_view} is set to {::Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_ID_ONLY JobView.JOB_VIEW_ID_ONLY}, the maximum allowed
790
790
  # page size is 1000. Otherwise, the maximum allowed page size is 100.
791
791
  #
792
792
  # Default is 100 if empty or a number < 1 is specified.
793
- # @param job_view [Google::Cloud::Talent::V4beta1::JobView]
793
+ # @param job_view [::Google::Cloud::Talent::V4beta1::JobView]
794
794
  # The desired job attributes returned for jobs in the
795
- # search response. Defaults to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_FULL JobView.JOB_VIEW_FULL} if no value is
795
+ # search response. Defaults to {::Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_FULL JobView.JOB_VIEW_FULL} if no value is
796
796
  # specified.
797
797
  #
798
798
  # @yield [response, operation] Access the result along with the RPC operation
799
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Job>]
800
- # @yieldparam operation [GRPC::ActiveCall::Operation]
799
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Job>]
800
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
801
801
  #
802
- # @return [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Job>]
802
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Job>]
803
803
  #
804
- # @raise [Google::Cloud::Error] if the RPC is aborted.
804
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
805
805
  #
806
806
  def list_jobs request, options = nil
807
- raise ArgumentError, "request must be provided" if request.nil?
807
+ raise ::ArgumentError, "request must be provided" if request.nil?
808
808
 
809
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListJobsRequest
809
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListJobsRequest
810
810
 
811
811
  # Converts hash and nil to an options object
812
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
812
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
813
813
 
814
814
  # Customize the options with defaults
815
815
  metadata = @config.rpcs.list_jobs.metadata.to_h
816
816
 
817
817
  # Set x-goog-api-client and x-goog-user-project headers
818
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
818
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
819
819
  lib_name: @config.lib_name, lib_version: @config.lib_version,
820
820
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
821
821
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -833,29 +833,29 @@ module Google
833
833
  retry_policy: @config.retry_policy
834
834
 
835
835
  @job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
836
- response = Gapic::PagedEnumerable.new @job_service_stub, :list_jobs, request, response, operation, options
836
+ response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_jobs, request, response, operation, options
837
837
  yield response, operation if block_given?
838
838
  return response
839
839
  end
840
- rescue GRPC::BadStatus => e
841
- raise Google::Cloud::Error.from_error(e)
840
+ rescue ::GRPC::BadStatus => e
841
+ raise ::Google::Cloud::Error.from_error(e)
842
842
  end
843
843
 
844
844
  ##
845
- # Searches for jobs using the provided {Google::Cloud::Talent::V4beta1::SearchJobsRequest SearchJobsRequest}.
845
+ # Searches for jobs using the provided {::Google::Cloud::Talent::V4beta1::SearchJobsRequest SearchJobsRequest}.
846
846
  #
847
- # This call constrains the {Google::Cloud::Talent::V4beta1::Job#visibility visibility} of jobs
847
+ # This call constrains the {::Google::Cloud::Talent::V4beta1::Job#visibility visibility} of jobs
848
848
  # present in the database, and only returns jobs that the caller has
849
849
  # permission to search against.
850
850
  #
851
851
  # @overload search_jobs(request, options = nil)
852
852
  # Pass arguments to `search_jobs` via a request object, either of type
853
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest} or an equivalent Hash.
853
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest} or an equivalent Hash.
854
854
  #
855
- # @param request [Google::Cloud::Talent::V4beta1::SearchJobsRequest, Hash]
855
+ # @param request [::Google::Cloud::Talent::V4beta1::SearchJobsRequest, ::Hash]
856
856
  # A request object representing the call parameters. Required. To specify no
857
857
  # parameters, or to keep all the default parameter values, pass an empty Hash.
858
- # @param options [Gapic::CallOptions, Hash]
858
+ # @param options [::Gapic::CallOptions, ::Hash]
859
859
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
860
860
  #
861
861
  # @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
@@ -863,29 +863,29 @@ module Google
863
863
  # least one keyword argument is required. To specify no parameters, or to keep all
864
864
  # the default parameter values, pass an empty Hash as a request object (see above).
865
865
  #
866
- # @param parent [String]
866
+ # @param parent [::String]
867
867
  # Required. The resource name of the tenant to search within.
868
868
  #
869
869
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
870
870
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
871
871
  # is created. For example, "projects/foo".
872
- # @param search_mode [Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode]
872
+ # @param search_mode [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode]
873
873
  # Mode of a search.
874
874
  #
875
- # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode::JOB_SEARCH SearchMode.JOB_SEARCH}.
876
- # @param request_metadata [Google::Cloud::Talent::V4beta1::RequestMetadata, Hash]
875
+ # Defaults to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode::JOB_SEARCH SearchMode.JOB_SEARCH}.
876
+ # @param request_metadata [::Google::Cloud::Talent::V4beta1::RequestMetadata, ::Hash]
877
877
  # Required. The meta information collected about the job searcher, used to improve the
878
878
  # search quality of the service. The identifiers (such as `user_id`) are
879
879
  # provided by users, and must be unique and consistent.
880
- # @param job_query [Google::Cloud::Talent::V4beta1::JobQuery, Hash]
880
+ # @param job_query [::Google::Cloud::Talent::V4beta1::JobQuery, ::Hash]
881
881
  # Query used to search against jobs, such as keyword, location filters, etc.
882
- # @param enable_broadening [Boolean]
882
+ # @param enable_broadening [::Boolean]
883
883
  # Controls whether to broaden the search when it produces sparse results.
884
884
  # Broadened queries append results to the end of the matching results
885
885
  # list.
886
886
  #
887
887
  # Defaults to false.
888
- # @param require_precise_result_size [Boolean]
888
+ # @param require_precise_result_size [::Boolean]
889
889
  # Controls if the search job request requires the return of a precise
890
890
  # count of the first 300 results. Setting this to `true` ensures
891
891
  # consistency in the number of results per page. Best practice is to set this
@@ -895,7 +895,7 @@ module Google
895
895
  # Enabling this flag may adversely impact performance.
896
896
  #
897
897
  # Defaults to false.
898
- # @param histogram_queries [Array<Google::Cloud::Talent::V4beta1::HistogramQuery, Hash>]
898
+ # @param histogram_queries [::Array<::Google::Cloud::Talent::V4beta1::HistogramQuery, ::Hash>]
899
899
  # An expression specifies a histogram request against matching jobs.
900
900
  #
901
901
  # Expression syntax is an aggregation function call with histogram facets and
@@ -928,20 +928,20 @@ module Google
928
928
  #
929
929
  # Job histogram facets:
930
930
  #
931
- # * company_display_name: histogram by {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}.
932
- # * employment_type: histogram by {Google::Cloud::Talent::V4beta1::Job#employment_types Job.employment_types}, for example,
931
+ # * company_display_name: histogram by {::Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}.
932
+ # * employment_type: histogram by {::Google::Cloud::Talent::V4beta1::Job#employment_types Job.employment_types}, for example,
933
933
  # "FULL_TIME", "PART_TIME".
934
- # * company_size: histogram by {Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
934
+ # * company_size: histogram by {::Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
935
935
  # "MEDIUM", "BIG".
936
- # * publish_time_in_month: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
936
+ # * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
937
937
  # in months.
938
938
  # Must specify list of numeric buckets in spec.
939
- # * publish_time_in_year: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
939
+ # * publish_time_in_year: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
940
940
  # in years.
941
941
  # Must specify list of numeric buckets in spec.
942
- # * degree_types: histogram by the {Google::Cloud::Talent::V4beta1::Job#degree_types Job.degree_types}, for example,
942
+ # * degree_types: histogram by the {::Google::Cloud::Talent::V4beta1::Job#degree_types Job.degree_types}, for example,
943
943
  # "Bachelors", "Masters".
944
- # * job_level: histogram by the {Google::Cloud::Talent::V4beta1::Job#job_level Job.job_level}, for example, "Entry
944
+ # * job_level: histogram by the {::Google::Cloud::Talent::V4beta1::Job#job_level Job.job_level}, for example, "Entry
945
945
  # Level".
946
946
  # * country: histogram by the country code of jobs, for example, "US", "FR".
947
947
  # * admin1: histogram by the admin1 code of jobs, which is a global
@@ -956,14 +956,14 @@ module Google
956
956
  # and longitude), for example, 37.4038522,-122.0987765. Since the
957
957
  # coordinates of a city center can change, customers may need to refresh
958
958
  # them periodically.
959
- # * locale: histogram by the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code}, for example, "en-US",
959
+ # * locale: histogram by the {::Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code}, for example, "en-US",
960
960
  # "fr-FR".
961
- # * language: histogram by the language subtag of the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code},
961
+ # * language: histogram by the language subtag of the {::Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code},
962
962
  # for example, "en", "fr".
963
- # * category: histogram by the {Google::Cloud::Talent::V4beta1::JobCategory JobCategory}, for example,
963
+ # * category: histogram by the {::Google::Cloud::Talent::V4beta1::JobCategory JobCategory}, for example,
964
964
  # "COMPUTER_AND_IT", "HEALTHCARE".
965
965
  # * base_compensation_unit: histogram by the
966
- # {Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit CompensationInfo.CompensationUnit} of base
966
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit CompensationInfo.CompensationUnit} of base
967
967
  # salary, for example, "WEEKLY", "MONTHLY".
968
968
  # * base_compensation: histogram by the base salary. Must specify list of
969
969
  # numeric buckets to group results by.
@@ -971,10 +971,10 @@ module Google
971
971
  # Must specify list of numeric buckets to group results by.
972
972
  # * annualized_total_compensation: histogram by the total annualized salary.
973
973
  # Must specify list of numeric buckets to group results by.
974
- # * string_custom_attribute: histogram by string {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
974
+ # * string_custom_attribute: histogram by string {::Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
975
975
  # Values can be accessed via square bracket notations like
976
976
  # string_custom_attribute["key1"].
977
- # * numeric_custom_attribute: histogram by numeric {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
977
+ # * numeric_custom_attribute: histogram by numeric {::Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
978
978
  # Values can be accessed via square bracket notations like
979
979
  # numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
980
980
  # group results by.
@@ -987,13 +987,13 @@ module Google
987
987
  # * `count(string_custom_attribute["some-string-custom-attribute"])`
988
988
  # * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
989
989
  # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
990
- # @param job_view [Google::Cloud::Talent::V4beta1::JobView]
990
+ # @param job_view [::Google::Cloud::Talent::V4beta1::JobView]
991
991
  # The desired job attributes returned for jobs in the search response.
992
- # Defaults to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
993
- # @param offset [Integer]
992
+ # Defaults to {::Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
993
+ # @param offset [::Integer]
994
994
  # An integer that specifies the current offset (that is, starting result
995
995
  # location, amongst the jobs deemed by the API as relevant) in search
996
- # results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchJobsRequest#page_token page_token} is unset.
996
+ # results. This field is only considered if {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#page_token page_token} is unset.
997
997
  #
998
998
  # The maximum allowed value is 5000. Otherwise an error is thrown.
999
999
  #
@@ -1001,15 +1001,15 @@ module Google
1001
1001
  # job, and 10 means to return from the 11th job. This can be used for
1002
1002
  # pagination, (for example, pageSize = 10 and offset = 10 means to return
1003
1003
  # from the second page).
1004
- # @param page_size [Integer]
1004
+ # @param page_size [::Integer]
1005
1005
  # A limit on the number of jobs returned in the search results.
1006
1006
  # Increasing this value above the default value of 10 can increase search
1007
1007
  # response time. The value can be between 1 and 100.
1008
- # @param page_token [String]
1008
+ # @param page_token [::String]
1009
1009
  # The token specifying the current offset within
1010
- # search results. See {Google::Cloud::Talent::V4beta1::SearchJobsResponse#next_page_token SearchJobsResponse.next_page_token} for
1010
+ # search results. See {::Google::Cloud::Talent::V4beta1::SearchJobsResponse#next_page_token SearchJobsResponse.next_page_token} for
1011
1011
  # an explanation of how to obtain the next set of query results.
1012
- # @param order_by [String]
1012
+ # @param order_by [::String]
1013
1013
  # The criteria determining how search results are sorted. Default is
1014
1014
  # `"relevance desc"`.
1015
1015
  #
@@ -1018,32 +1018,32 @@ module Google
1018
1018
  # * `"relevance desc"`: By relevance descending, as determined by the API
1019
1019
  # algorithms. Relevance thresholding of query results is only available
1020
1020
  # with this ordering.
1021
- # * `"posting_publish_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1021
+ # * `"posting_publish_time desc"`: By {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1022
1022
  # descending.
1023
- # * `"posting_update_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_update_time Job.posting_update_time}
1023
+ # * `"posting_update_time desc"`: By {::Google::Cloud::Talent::V4beta1::Job#posting_update_time Job.posting_update_time}
1024
1024
  # descending.
1025
- # * `"title"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} ascending.
1026
- # * `"title desc"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} descending.
1025
+ # * `"title"`: By {::Google::Cloud::Talent::V4beta1::Job#title Job.title} ascending.
1026
+ # * `"title desc"`: By {::Google::Cloud::Talent::V4beta1::Job#title Job.title} descending.
1027
1027
  # * `"annualized_base_compensation"`: By job's
1028
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} ascending. Jobs
1028
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} ascending. Jobs
1029
1029
  # whose annualized base compensation is unspecified are put at the end of
1030
1030
  # search results.
1031
1031
  # * `"annualized_base_compensation desc"`: By job's
1032
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} descending. Jobs
1032
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} descending. Jobs
1033
1033
  # whose annualized base compensation is unspecified are put at the end of
1034
1034
  # search results.
1035
1035
  # * `"annualized_total_compensation"`: By job's
1036
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} ascending. Jobs
1036
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} ascending. Jobs
1037
1037
  # whose annualized base compensation is unspecified are put at the end of
1038
1038
  # search results.
1039
1039
  # * `"annualized_total_compensation desc"`: By job's
1040
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} descending. Jobs
1040
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} descending. Jobs
1041
1041
  # whose annualized base compensation is unspecified are put at the end of
1042
1042
  # search results.
1043
1043
  # * `"custom_ranking desc"`: By the relevance score adjusted to the
1044
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#ranking_expression SearchJobsRequest.CustomRankingInfo.ranking_expression} with weight
1044
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#ranking_expression SearchJobsRequest.CustomRankingInfo.ranking_expression} with weight
1045
1045
  # factor assigned by
1046
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#importance_level SearchJobsRequest.CustomRankingInfo.importance_level} in descending
1046
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#importance_level SearchJobsRequest.CustomRankingInfo.importance_level} in descending
1047
1047
  # order.
1048
1048
  # * Location sorting: Use the special syntax to order jobs by distance:<br>
1049
1049
  # `"distance_from('Hawaii')"`: Order by distance from Hawaii.<br>
@@ -1059,8 +1059,8 @@ module Google
1059
1059
  # don't have locations will be ranked at the bottom. Distance is calculated
1060
1060
  # with a precision of 11.3 meters (37.4 feet). Diversification strategy is
1061
1061
  # still applied unless explicitly disabled in
1062
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest#diversification_level diversification_level}.
1063
- # @param diversification_level [Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel]
1062
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#diversification_level diversification_level}.
1063
+ # @param diversification_level [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel]
1064
1064
  # Controls whether highly similar jobs are returned next to each other in
1065
1065
  # the search results. Jobs are identified as highly similar based on
1066
1066
  # their titles, job categories, and locations. Highly similar results are
@@ -1068,15 +1068,15 @@ module Google
1068
1068
  # displayed to the job seeker higher up in the results, with the other jobs
1069
1069
  # being displayed lower down in the results.
1070
1070
  #
1071
- # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel::SIMPLE DiversificationLevel.SIMPLE} if no value
1071
+ # Defaults to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel::SIMPLE DiversificationLevel.SIMPLE} if no value
1072
1072
  # is specified.
1073
- # @param custom_ranking_info [Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo, Hash]
1073
+ # @param custom_ranking_info [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo, ::Hash]
1074
1074
  # Controls over how job documents get ranked on top of existing relevance
1075
1075
  # score (determined by API algorithm).
1076
- # @param disable_keyword_match [Boolean]
1077
- # Controls whether to disable exact keyword match on {Google::Cloud::Talent::V4beta1::Job#title Job.title},
1078
- # {Google::Cloud::Talent::V4beta1::Job#description Job.description}, {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1079
- # {Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
1076
+ # @param disable_keyword_match [::Boolean]
1077
+ # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4beta1::Job#title Job.title},
1078
+ # {::Google::Cloud::Talent::V4beta1::Job#description Job.description}, {::Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1079
+ # {::Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
1080
1080
  # keyword match returns jobs that do not match given category filters when
1081
1081
  # there are matching keywords. For example, for the query "program manager,"
1082
1082
  # a result is returned even if the job posting has the title "software
@@ -1087,7 +1087,7 @@ module Google
1087
1087
  # location specific ontology, jobs with "cloud" keyword matches are returned
1088
1088
  # regardless of this flag's value.
1089
1089
  #
1090
- # Use {Google::Cloud::Talent::V4beta1::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
1090
+ # Use {::Google::Cloud::Talent::V4beta1::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
1091
1091
  # company-specific globally matched custom field/attribute string values are
1092
1092
  # needed. Enabling keyword match improves recall of subsequent search
1093
1093
  # requests.
@@ -1095,26 +1095,26 @@ module Google
1095
1095
  # Defaults to false.
1096
1096
  #
1097
1097
  # @yield [response, operation] Access the result along with the RPC operation
1098
- # @yieldparam response [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1099
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1098
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1099
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1100
1100
  #
1101
- # @return [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1101
+ # @return [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1102
1102
  #
1103
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1103
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1104
1104
  #
1105
1105
  def search_jobs request, options = nil
1106
- raise ArgumentError, "request must be provided" if request.nil?
1106
+ raise ::ArgumentError, "request must be provided" if request.nil?
1107
1107
 
1108
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::SearchJobsRequest
1108
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::SearchJobsRequest
1109
1109
 
1110
1110
  # Converts hash and nil to an options object
1111
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1111
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1112
1112
 
1113
1113
  # Customize the options with defaults
1114
1114
  metadata = @config.rpcs.search_jobs.metadata.to_h
1115
1115
 
1116
1116
  # Set x-goog-api-client and x-goog-user-project headers
1117
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1117
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1118
1118
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1119
1119
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
1120
1120
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1135,30 +1135,30 @@ module Google
1135
1135
  yield response, operation if block_given?
1136
1136
  return response
1137
1137
  end
1138
- rescue GRPC::BadStatus => e
1139
- raise Google::Cloud::Error.from_error(e)
1138
+ rescue ::GRPC::BadStatus => e
1139
+ raise ::Google::Cloud::Error.from_error(e)
1140
1140
  end
1141
1141
 
1142
1142
  ##
1143
- # Searches for jobs using the provided {Google::Cloud::Talent::V4beta1::SearchJobsRequest SearchJobsRequest}.
1143
+ # Searches for jobs using the provided {::Google::Cloud::Talent::V4beta1::SearchJobsRequest SearchJobsRequest}.
1144
1144
  #
1145
1145
  # This API call is intended for the use case of targeting passive job
1146
1146
  # seekers (for example, job seekers who have signed up to receive email
1147
1147
  # alerts about potential job opportunities), and has different algorithmic
1148
1148
  # adjustments that are targeted to passive job seekers.
1149
1149
  #
1150
- # This call constrains the {Google::Cloud::Talent::V4beta1::Job#visibility visibility} of jobs
1150
+ # This call constrains the {::Google::Cloud::Talent::V4beta1::Job#visibility visibility} of jobs
1151
1151
  # present in the database, and only returns jobs the caller has
1152
1152
  # permission to search against.
1153
1153
  #
1154
1154
  # @overload search_jobs_for_alert(request, options = nil)
1155
1155
  # Pass arguments to `search_jobs_for_alert` via a request object, either of type
1156
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest} or an equivalent Hash.
1156
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest} or an equivalent Hash.
1157
1157
  #
1158
- # @param request [Google::Cloud::Talent::V4beta1::SearchJobsRequest, Hash]
1158
+ # @param request [::Google::Cloud::Talent::V4beta1::SearchJobsRequest, ::Hash]
1159
1159
  # A request object representing the call parameters. Required. To specify no
1160
1160
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1161
- # @param options [Gapic::CallOptions, Hash]
1161
+ # @param options [::Gapic::CallOptions, ::Hash]
1162
1162
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1163
1163
  #
1164
1164
  # @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
@@ -1166,29 +1166,29 @@ module Google
1166
1166
  # least one keyword argument is required. To specify no parameters, or to keep all
1167
1167
  # the default parameter values, pass an empty Hash as a request object (see above).
1168
1168
  #
1169
- # @param parent [String]
1169
+ # @param parent [::String]
1170
1170
  # Required. The resource name of the tenant to search within.
1171
1171
  #
1172
1172
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
1173
1173
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
1174
1174
  # is created. For example, "projects/foo".
1175
- # @param search_mode [Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode]
1175
+ # @param search_mode [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode]
1176
1176
  # Mode of a search.
1177
1177
  #
1178
- # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode::JOB_SEARCH SearchMode.JOB_SEARCH}.
1179
- # @param request_metadata [Google::Cloud::Talent::V4beta1::RequestMetadata, Hash]
1178
+ # Defaults to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode::JOB_SEARCH SearchMode.JOB_SEARCH}.
1179
+ # @param request_metadata [::Google::Cloud::Talent::V4beta1::RequestMetadata, ::Hash]
1180
1180
  # Required. The meta information collected about the job searcher, used to improve the
1181
1181
  # search quality of the service. The identifiers (such as `user_id`) are
1182
1182
  # provided by users, and must be unique and consistent.
1183
- # @param job_query [Google::Cloud::Talent::V4beta1::JobQuery, Hash]
1183
+ # @param job_query [::Google::Cloud::Talent::V4beta1::JobQuery, ::Hash]
1184
1184
  # Query used to search against jobs, such as keyword, location filters, etc.
1185
- # @param enable_broadening [Boolean]
1185
+ # @param enable_broadening [::Boolean]
1186
1186
  # Controls whether to broaden the search when it produces sparse results.
1187
1187
  # Broadened queries append results to the end of the matching results
1188
1188
  # list.
1189
1189
  #
1190
1190
  # Defaults to false.
1191
- # @param require_precise_result_size [Boolean]
1191
+ # @param require_precise_result_size [::Boolean]
1192
1192
  # Controls if the search job request requires the return of a precise
1193
1193
  # count of the first 300 results. Setting this to `true` ensures
1194
1194
  # consistency in the number of results per page. Best practice is to set this
@@ -1198,7 +1198,7 @@ module Google
1198
1198
  # Enabling this flag may adversely impact performance.
1199
1199
  #
1200
1200
  # Defaults to false.
1201
- # @param histogram_queries [Array<Google::Cloud::Talent::V4beta1::HistogramQuery, Hash>]
1201
+ # @param histogram_queries [::Array<::Google::Cloud::Talent::V4beta1::HistogramQuery, ::Hash>]
1202
1202
  # An expression specifies a histogram request against matching jobs.
1203
1203
  #
1204
1204
  # Expression syntax is an aggregation function call with histogram facets and
@@ -1231,20 +1231,20 @@ module Google
1231
1231
  #
1232
1232
  # Job histogram facets:
1233
1233
  #
1234
- # * company_display_name: histogram by {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}.
1235
- # * employment_type: histogram by {Google::Cloud::Talent::V4beta1::Job#employment_types Job.employment_types}, for example,
1234
+ # * company_display_name: histogram by {::Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}.
1235
+ # * employment_type: histogram by {::Google::Cloud::Talent::V4beta1::Job#employment_types Job.employment_types}, for example,
1236
1236
  # "FULL_TIME", "PART_TIME".
1237
- # * company_size: histogram by {Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
1237
+ # * company_size: histogram by {::Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
1238
1238
  # "MEDIUM", "BIG".
1239
- # * publish_time_in_month: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1239
+ # * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1240
1240
  # in months.
1241
1241
  # Must specify list of numeric buckets in spec.
1242
- # * publish_time_in_year: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1242
+ # * publish_time_in_year: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1243
1243
  # in years.
1244
1244
  # Must specify list of numeric buckets in spec.
1245
- # * degree_types: histogram by the {Google::Cloud::Talent::V4beta1::Job#degree_types Job.degree_types}, for example,
1245
+ # * degree_types: histogram by the {::Google::Cloud::Talent::V4beta1::Job#degree_types Job.degree_types}, for example,
1246
1246
  # "Bachelors", "Masters".
1247
- # * job_level: histogram by the {Google::Cloud::Talent::V4beta1::Job#job_level Job.job_level}, for example, "Entry
1247
+ # * job_level: histogram by the {::Google::Cloud::Talent::V4beta1::Job#job_level Job.job_level}, for example, "Entry
1248
1248
  # Level".
1249
1249
  # * country: histogram by the country code of jobs, for example, "US", "FR".
1250
1250
  # * admin1: histogram by the admin1 code of jobs, which is a global
@@ -1259,14 +1259,14 @@ module Google
1259
1259
  # and longitude), for example, 37.4038522,-122.0987765. Since the
1260
1260
  # coordinates of a city center can change, customers may need to refresh
1261
1261
  # them periodically.
1262
- # * locale: histogram by the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code}, for example, "en-US",
1262
+ # * locale: histogram by the {::Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code}, for example, "en-US",
1263
1263
  # "fr-FR".
1264
- # * language: histogram by the language subtag of the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code},
1264
+ # * language: histogram by the language subtag of the {::Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code},
1265
1265
  # for example, "en", "fr".
1266
- # * category: histogram by the {Google::Cloud::Talent::V4beta1::JobCategory JobCategory}, for example,
1266
+ # * category: histogram by the {::Google::Cloud::Talent::V4beta1::JobCategory JobCategory}, for example,
1267
1267
  # "COMPUTER_AND_IT", "HEALTHCARE".
1268
1268
  # * base_compensation_unit: histogram by the
1269
- # {Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit CompensationInfo.CompensationUnit} of base
1269
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit CompensationInfo.CompensationUnit} of base
1270
1270
  # salary, for example, "WEEKLY", "MONTHLY".
1271
1271
  # * base_compensation: histogram by the base salary. Must specify list of
1272
1272
  # numeric buckets to group results by.
@@ -1274,10 +1274,10 @@ module Google
1274
1274
  # Must specify list of numeric buckets to group results by.
1275
1275
  # * annualized_total_compensation: histogram by the total annualized salary.
1276
1276
  # Must specify list of numeric buckets to group results by.
1277
- # * string_custom_attribute: histogram by string {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
1277
+ # * string_custom_attribute: histogram by string {::Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
1278
1278
  # Values can be accessed via square bracket notations like
1279
1279
  # string_custom_attribute["key1"].
1280
- # * numeric_custom_attribute: histogram by numeric {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
1280
+ # * numeric_custom_attribute: histogram by numeric {::Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
1281
1281
  # Values can be accessed via square bracket notations like
1282
1282
  # numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
1283
1283
  # group results by.
@@ -1290,13 +1290,13 @@ module Google
1290
1290
  # * `count(string_custom_attribute["some-string-custom-attribute"])`
1291
1291
  # * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
1292
1292
  # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
1293
- # @param job_view [Google::Cloud::Talent::V4beta1::JobView]
1293
+ # @param job_view [::Google::Cloud::Talent::V4beta1::JobView]
1294
1294
  # The desired job attributes returned for jobs in the search response.
1295
- # Defaults to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
1296
- # @param offset [Integer]
1295
+ # Defaults to {::Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
1296
+ # @param offset [::Integer]
1297
1297
  # An integer that specifies the current offset (that is, starting result
1298
1298
  # location, amongst the jobs deemed by the API as relevant) in search
1299
- # results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchJobsRequest#page_token page_token} is unset.
1299
+ # results. This field is only considered if {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#page_token page_token} is unset.
1300
1300
  #
1301
1301
  # The maximum allowed value is 5000. Otherwise an error is thrown.
1302
1302
  #
@@ -1304,15 +1304,15 @@ module Google
1304
1304
  # job, and 10 means to return from the 11th job. This can be used for
1305
1305
  # pagination, (for example, pageSize = 10 and offset = 10 means to return
1306
1306
  # from the second page).
1307
- # @param page_size [Integer]
1307
+ # @param page_size [::Integer]
1308
1308
  # A limit on the number of jobs returned in the search results.
1309
1309
  # Increasing this value above the default value of 10 can increase search
1310
1310
  # response time. The value can be between 1 and 100.
1311
- # @param page_token [String]
1311
+ # @param page_token [::String]
1312
1312
  # The token specifying the current offset within
1313
- # search results. See {Google::Cloud::Talent::V4beta1::SearchJobsResponse#next_page_token SearchJobsResponse.next_page_token} for
1313
+ # search results. See {::Google::Cloud::Talent::V4beta1::SearchJobsResponse#next_page_token SearchJobsResponse.next_page_token} for
1314
1314
  # an explanation of how to obtain the next set of query results.
1315
- # @param order_by [String]
1315
+ # @param order_by [::String]
1316
1316
  # The criteria determining how search results are sorted. Default is
1317
1317
  # `"relevance desc"`.
1318
1318
  #
@@ -1321,32 +1321,32 @@ module Google
1321
1321
  # * `"relevance desc"`: By relevance descending, as determined by the API
1322
1322
  # algorithms. Relevance thresholding of query results is only available
1323
1323
  # with this ordering.
1324
- # * `"posting_publish_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1324
+ # * `"posting_publish_time desc"`: By {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1325
1325
  # descending.
1326
- # * `"posting_update_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_update_time Job.posting_update_time}
1326
+ # * `"posting_update_time desc"`: By {::Google::Cloud::Talent::V4beta1::Job#posting_update_time Job.posting_update_time}
1327
1327
  # descending.
1328
- # * `"title"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} ascending.
1329
- # * `"title desc"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} descending.
1328
+ # * `"title"`: By {::Google::Cloud::Talent::V4beta1::Job#title Job.title} ascending.
1329
+ # * `"title desc"`: By {::Google::Cloud::Talent::V4beta1::Job#title Job.title} descending.
1330
1330
  # * `"annualized_base_compensation"`: By job's
1331
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} ascending. Jobs
1331
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} ascending. Jobs
1332
1332
  # whose annualized base compensation is unspecified are put at the end of
1333
1333
  # search results.
1334
1334
  # * `"annualized_base_compensation desc"`: By job's
1335
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} descending. Jobs
1335
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} descending. Jobs
1336
1336
  # whose annualized base compensation is unspecified are put at the end of
1337
1337
  # search results.
1338
1338
  # * `"annualized_total_compensation"`: By job's
1339
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} ascending. Jobs
1339
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} ascending. Jobs
1340
1340
  # whose annualized base compensation is unspecified are put at the end of
1341
1341
  # search results.
1342
1342
  # * `"annualized_total_compensation desc"`: By job's
1343
- # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} descending. Jobs
1343
+ # {::Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} descending. Jobs
1344
1344
  # whose annualized base compensation is unspecified are put at the end of
1345
1345
  # search results.
1346
1346
  # * `"custom_ranking desc"`: By the relevance score adjusted to the
1347
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#ranking_expression SearchJobsRequest.CustomRankingInfo.ranking_expression} with weight
1347
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#ranking_expression SearchJobsRequest.CustomRankingInfo.ranking_expression} with weight
1348
1348
  # factor assigned by
1349
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#importance_level SearchJobsRequest.CustomRankingInfo.importance_level} in descending
1349
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#importance_level SearchJobsRequest.CustomRankingInfo.importance_level} in descending
1350
1350
  # order.
1351
1351
  # * Location sorting: Use the special syntax to order jobs by distance:<br>
1352
1352
  # `"distance_from('Hawaii')"`: Order by distance from Hawaii.<br>
@@ -1362,8 +1362,8 @@ module Google
1362
1362
  # don't have locations will be ranked at the bottom. Distance is calculated
1363
1363
  # with a precision of 11.3 meters (37.4 feet). Diversification strategy is
1364
1364
  # still applied unless explicitly disabled in
1365
- # {Google::Cloud::Talent::V4beta1::SearchJobsRequest#diversification_level diversification_level}.
1366
- # @param diversification_level [Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel]
1365
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#diversification_level diversification_level}.
1366
+ # @param diversification_level [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel]
1367
1367
  # Controls whether highly similar jobs are returned next to each other in
1368
1368
  # the search results. Jobs are identified as highly similar based on
1369
1369
  # their titles, job categories, and locations. Highly similar results are
@@ -1371,15 +1371,15 @@ module Google
1371
1371
  # displayed to the job seeker higher up in the results, with the other jobs
1372
1372
  # being displayed lower down in the results.
1373
1373
  #
1374
- # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel::SIMPLE DiversificationLevel.SIMPLE} if no value
1374
+ # Defaults to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel::SIMPLE DiversificationLevel.SIMPLE} if no value
1375
1375
  # is specified.
1376
- # @param custom_ranking_info [Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo, Hash]
1376
+ # @param custom_ranking_info [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo, ::Hash]
1377
1377
  # Controls over how job documents get ranked on top of existing relevance
1378
1378
  # score (determined by API algorithm).
1379
- # @param disable_keyword_match [Boolean]
1380
- # Controls whether to disable exact keyword match on {Google::Cloud::Talent::V4beta1::Job#title Job.title},
1381
- # {Google::Cloud::Talent::V4beta1::Job#description Job.description}, {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1382
- # {Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
1379
+ # @param disable_keyword_match [::Boolean]
1380
+ # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4beta1::Job#title Job.title},
1381
+ # {::Google::Cloud::Talent::V4beta1::Job#description Job.description}, {::Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1382
+ # {::Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
1383
1383
  # keyword match returns jobs that do not match given category filters when
1384
1384
  # there are matching keywords. For example, for the query "program manager,"
1385
1385
  # a result is returned even if the job posting has the title "software
@@ -1390,7 +1390,7 @@ module Google
1390
1390
  # location specific ontology, jobs with "cloud" keyword matches are returned
1391
1391
  # regardless of this flag's value.
1392
1392
  #
1393
- # Use {Google::Cloud::Talent::V4beta1::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
1393
+ # Use {::Google::Cloud::Talent::V4beta1::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
1394
1394
  # company-specific globally matched custom field/attribute string values are
1395
1395
  # needed. Enabling keyword match improves recall of subsequent search
1396
1396
  # requests.
@@ -1398,26 +1398,26 @@ module Google
1398
1398
  # Defaults to false.
1399
1399
  #
1400
1400
  # @yield [response, operation] Access the result along with the RPC operation
1401
- # @yieldparam response [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1402
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1401
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1402
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1403
1403
  #
1404
- # @return [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1404
+ # @return [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1405
1405
  #
1406
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1406
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1407
1407
  #
1408
1408
  def search_jobs_for_alert request, options = nil
1409
- raise ArgumentError, "request must be provided" if request.nil?
1409
+ raise ::ArgumentError, "request must be provided" if request.nil?
1410
1410
 
1411
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::SearchJobsRequest
1411
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::SearchJobsRequest
1412
1412
 
1413
1413
  # Converts hash and nil to an options object
1414
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1414
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1415
1415
 
1416
1416
  # Customize the options with defaults
1417
1417
  metadata = @config.rpcs.search_jobs_for_alert.metadata.to_h
1418
1418
 
1419
1419
  # Set x-goog-api-client and x-goog-user-project headers
1420
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1420
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1421
1421
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1422
1422
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
1423
1423
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1438,8 +1438,8 @@ module Google
1438
1438
  yield response, operation if block_given?
1439
1439
  return response
1440
1440
  end
1441
- rescue GRPC::BadStatus => e
1442
- raise Google::Cloud::Error.from_error(e)
1441
+ rescue ::GRPC::BadStatus => e
1442
+ raise ::Google::Cloud::Error.from_error(e)
1443
1443
  end
1444
1444
 
1445
1445
  ##
@@ -1449,7 +1449,7 @@ module Google
1449
1449
  # providing control over timeouts, retry behavior, logging, transport
1450
1450
  # parameters, and other low-level controls. Certain parameters can also be
1451
1451
  # applied individually to specific RPCs. See
1452
- # {Google::Cloud::Talent::V4beta1::JobService::Client::Configuration::Rpcs}
1452
+ # {::Google::Cloud::Talent::V4beta1::JobService::Client::Configuration::Rpcs}
1453
1453
  # for a list of RPCs that can be configured independently.
1454
1454
  #
1455
1455
  # Configuration can be applied globally to all clients, or to a single client
@@ -1460,22 +1460,22 @@ module Google
1460
1460
  # To modify the global config, setting the timeout for create_job
1461
1461
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1462
1462
  #
1463
- # Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
1464
- # config.timeout = 10_000
1465
- # config.rpcs.create_job.timeout = 20_000
1463
+ # ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
1464
+ # config.timeout = 10.0
1465
+ # config.rpcs.create_job.timeout = 20.0
1466
1466
  # end
1467
1467
  #
1468
1468
  # To apply the above configuration only to a new client:
1469
1469
  #
1470
- # client = Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
1471
- # config.timeout = 10_000
1472
- # config.rpcs.create_job.timeout = 20_000
1470
+ # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
1471
+ # config.timeout = 10.0
1472
+ # config.rpcs.create_job.timeout = 20.0
1473
1473
  # end
1474
1474
  #
1475
1475
  # @!attribute [rw] endpoint
1476
1476
  # The hostname or hostname:port of the service endpoint.
1477
1477
  # Defaults to `"jobs.googleapis.com"`.
1478
- # @return [String]
1478
+ # @return [::String]
1479
1479
  # @!attribute [rw] credentials
1480
1480
  # Credentials to send with calls. You may provide any of the following types:
1481
1481
  # * (`String`) The path to a service account key file in JSON format
@@ -1487,29 +1487,29 @@ module Google
1487
1487
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1488
1488
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1489
1489
  # * (`nil`) indicating no credentials
1490
- # @return [Object]
1490
+ # @return [::Object]
1491
1491
  # @!attribute [rw] scope
1492
1492
  # The OAuth scopes
1493
- # @return [Array<String>]
1493
+ # @return [::Array<::String>]
1494
1494
  # @!attribute [rw] lib_name
1495
1495
  # The library name as recorded in instrumentation and logging
1496
- # @return [String]
1496
+ # @return [::String]
1497
1497
  # @!attribute [rw] lib_version
1498
1498
  # The library version as recorded in instrumentation and logging
1499
- # @return [String]
1499
+ # @return [::String]
1500
1500
  # @!attribute [rw] channel_args
1501
1501
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1502
1502
  # `GRPC::Core::Channel` object is provided as the credential.
1503
- # @return [Hash]
1503
+ # @return [::Hash]
1504
1504
  # @!attribute [rw] interceptors
1505
1505
  # An array of interceptors that are run before calls are executed.
1506
- # @return [Array<GRPC::ClientInterceptor>]
1506
+ # @return [::Array<::GRPC::ClientInterceptor>]
1507
1507
  # @!attribute [rw] timeout
1508
- # The call timeout in milliseconds.
1509
- # @return [Numeric]
1508
+ # The call timeout in seconds.
1509
+ # @return [::Numeric]
1510
1510
  # @!attribute [rw] metadata
1511
1511
  # Additional gRPC headers to be sent with the call.
1512
- # @return [Hash{Symbol=>String}]
1512
+ # @return [::Hash{::Symbol=>::String}]
1513
1513
  # @!attribute [rw] retry_policy
1514
1514
  # The retry policy. The value is a hash with the following keys:
1515
1515
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1517,10 +1517,10 @@ module Google
1517
1517
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1518
1518
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1519
1519
  # trigger a retry.
1520
- # @return [Hash]
1520
+ # @return [::Hash]
1521
1521
  #
1522
1522
  class Configuration
1523
- extend Gapic::Config
1523
+ extend ::Gapic::Config
1524
1524
 
1525
1525
  config_attr :endpoint, "jobs.googleapis.com", String
1526
1526
  config_attr :credentials, nil do |value|
@@ -1528,14 +1528,14 @@ module Google
1528
1528
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1529
1529
  allowed.any? { |klass| klass === value }
1530
1530
  end
1531
- config_attr :scope, nil, String, Array, nil
1532
- config_attr :lib_name, nil, String, nil
1533
- config_attr :lib_version, nil, String, nil
1534
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1535
- config_attr :interceptors, nil, Array, nil
1536
- config_attr :timeout, nil, Numeric, nil
1537
- config_attr :metadata, nil, Hash, nil
1538
- config_attr :retry_policy, nil, Hash, Proc, nil
1531
+ config_attr :scope, nil, ::String, ::Array, nil
1532
+ config_attr :lib_name, nil, ::String, nil
1533
+ config_attr :lib_version, nil, ::String, nil
1534
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1535
+ config_attr :interceptors, nil, ::Array, nil
1536
+ config_attr :timeout, nil, ::Numeric, nil
1537
+ config_attr :metadata, nil, ::Hash, nil
1538
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
1539
1539
 
1540
1540
  # @private
1541
1541
  def initialize parent_config = nil
@@ -1576,77 +1576,77 @@ module Google
1576
1576
  class Rpcs
1577
1577
  ##
1578
1578
  # RPC-specific configuration for `create_job`
1579
- # @return [Gapic::Config::Method]
1579
+ # @return [::Gapic::Config::Method]
1580
1580
  #
1581
1581
  attr_reader :create_job
1582
1582
  ##
1583
1583
  # RPC-specific configuration for `batch_create_jobs`
1584
- # @return [Gapic::Config::Method]
1584
+ # @return [::Gapic::Config::Method]
1585
1585
  #
1586
1586
  attr_reader :batch_create_jobs
1587
1587
  ##
1588
1588
  # RPC-specific configuration for `get_job`
1589
- # @return [Gapic::Config::Method]
1589
+ # @return [::Gapic::Config::Method]
1590
1590
  #
1591
1591
  attr_reader :get_job
1592
1592
  ##
1593
1593
  # RPC-specific configuration for `update_job`
1594
- # @return [Gapic::Config::Method]
1594
+ # @return [::Gapic::Config::Method]
1595
1595
  #
1596
1596
  attr_reader :update_job
1597
1597
  ##
1598
1598
  # RPC-specific configuration for `batch_update_jobs`
1599
- # @return [Gapic::Config::Method]
1599
+ # @return [::Gapic::Config::Method]
1600
1600
  #
1601
1601
  attr_reader :batch_update_jobs
1602
1602
  ##
1603
1603
  # RPC-specific configuration for `delete_job`
1604
- # @return [Gapic::Config::Method]
1604
+ # @return [::Gapic::Config::Method]
1605
1605
  #
1606
1606
  attr_reader :delete_job
1607
1607
  ##
1608
1608
  # RPC-specific configuration for `batch_delete_jobs`
1609
- # @return [Gapic::Config::Method]
1609
+ # @return [::Gapic::Config::Method]
1610
1610
  #
1611
1611
  attr_reader :batch_delete_jobs
1612
1612
  ##
1613
1613
  # RPC-specific configuration for `list_jobs`
1614
- # @return [Gapic::Config::Method]
1614
+ # @return [::Gapic::Config::Method]
1615
1615
  #
1616
1616
  attr_reader :list_jobs
1617
1617
  ##
1618
1618
  # RPC-specific configuration for `search_jobs`
1619
- # @return [Gapic::Config::Method]
1619
+ # @return [::Gapic::Config::Method]
1620
1620
  #
1621
1621
  attr_reader :search_jobs
1622
1622
  ##
1623
1623
  # RPC-specific configuration for `search_jobs_for_alert`
1624
- # @return [Gapic::Config::Method]
1624
+ # @return [::Gapic::Config::Method]
1625
1625
  #
1626
1626
  attr_reader :search_jobs_for_alert
1627
1627
 
1628
1628
  # @private
1629
1629
  def initialize parent_rpcs = nil
1630
1630
  create_job_config = parent_rpcs&.create_job if parent_rpcs&.respond_to? :create_job
1631
- @create_job = Gapic::Config::Method.new create_job_config
1631
+ @create_job = ::Gapic::Config::Method.new create_job_config
1632
1632
  batch_create_jobs_config = parent_rpcs&.batch_create_jobs if parent_rpcs&.respond_to? :batch_create_jobs
1633
- @batch_create_jobs = Gapic::Config::Method.new batch_create_jobs_config
1633
+ @batch_create_jobs = ::Gapic::Config::Method.new batch_create_jobs_config
1634
1634
  get_job_config = parent_rpcs&.get_job if parent_rpcs&.respond_to? :get_job
1635
- @get_job = Gapic::Config::Method.new get_job_config
1635
+ @get_job = ::Gapic::Config::Method.new get_job_config
1636
1636
  update_job_config = parent_rpcs&.update_job if parent_rpcs&.respond_to? :update_job
1637
- @update_job = Gapic::Config::Method.new update_job_config
1637
+ @update_job = ::Gapic::Config::Method.new update_job_config
1638
1638
  batch_update_jobs_config = parent_rpcs&.batch_update_jobs if parent_rpcs&.respond_to? :batch_update_jobs
1639
- @batch_update_jobs = Gapic::Config::Method.new batch_update_jobs_config
1639
+ @batch_update_jobs = ::Gapic::Config::Method.new batch_update_jobs_config
1640
1640
  delete_job_config = parent_rpcs&.delete_job if parent_rpcs&.respond_to? :delete_job
1641
- @delete_job = Gapic::Config::Method.new delete_job_config
1641
+ @delete_job = ::Gapic::Config::Method.new delete_job_config
1642
1642
  batch_delete_jobs_config = parent_rpcs&.batch_delete_jobs if parent_rpcs&.respond_to? :batch_delete_jobs
1643
- @batch_delete_jobs = Gapic::Config::Method.new batch_delete_jobs_config
1643
+ @batch_delete_jobs = ::Gapic::Config::Method.new batch_delete_jobs_config
1644
1644
  list_jobs_config = parent_rpcs&.list_jobs if parent_rpcs&.respond_to? :list_jobs
1645
- @list_jobs = Gapic::Config::Method.new list_jobs_config
1645
+ @list_jobs = ::Gapic::Config::Method.new list_jobs_config
1646
1646
  search_jobs_config = parent_rpcs&.search_jobs if parent_rpcs&.respond_to? :search_jobs
1647
- @search_jobs = Gapic::Config::Method.new search_jobs_config
1647
+ @search_jobs = ::Gapic::Config::Method.new search_jobs_config
1648
1648
  search_jobs_for_alert_config = parent_rpcs&.search_jobs_for_alert if parent_rpcs&.respond_to? :search_jobs_for_alert
1649
- @search_jobs_for_alert = Gapic::Config::Method.new search_jobs_for_alert_config
1649
+ @search_jobs_for_alert = ::Gapic::Config::Method.new search_jobs_for_alert_config
1650
1650
 
1651
1651
  yield self if block_given?
1652
1652
  end