google-cloud-talent-v4beta1 0.1.0 → 0.2.3

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