google-cloud-talent-v4beta1 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/talent/v4beta1.rb +1 -1
  5. data/lib/google/cloud/talent/v4beta1/application_service.rb +1 -1
  6. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +124 -124
  7. data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +1 -1
  8. data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +17 -17
  9. data/lib/google/cloud/talent/v4beta1/company_service.rb +1 -1
  10. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +126 -126
  11. data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +1 -1
  12. data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +8 -8
  13. data/lib/google/cloud/talent/v4beta1/completion.rb +1 -1
  14. data/lib/google/cloud/talent/v4beta1/completion/client.rb +60 -60
  15. data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +1 -1
  16. data/lib/google/cloud/talent/v4beta1/completion/paths.rb +8 -8
  17. data/lib/google/cloud/talent/v4beta1/event_service.rb +1 -1
  18. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +53 -53
  19. data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +1 -1
  20. data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +3 -3
  21. data/lib/google/cloud/talent/v4beta1/job_service.rb +1 -1
  22. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +320 -320
  23. data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
  24. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +100 -100
  25. data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +13 -13
  26. data/lib/google/cloud/talent/v4beta1/profile_service.rb +1 -1
  27. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +176 -176
  28. data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +1 -1
  29. data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +5 -5
  30. data/lib/google/cloud/talent/v4beta1/tenant_service.rb +1 -1
  31. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +124 -124
  32. data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +1 -1
  33. data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +3 -3
  34. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  35. data/proto_docs/google/api/resource.rb +12 -12
  36. data/proto_docs/google/cloud/talent/v4beta1/application.rb +18 -18
  37. data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +27 -27
  38. data/proto_docs/google/cloud/talent/v4beta1/common.rb +167 -167
  39. data/proto_docs/google/cloud/talent/v4beta1/company.rb +21 -21
  40. data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +29 -29
  41. data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +28 -28
  42. data/proto_docs/google/cloud/talent/v4beta1/event.rb +30 -30
  43. data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +4 -4
  44. data/proto_docs/google/cloud/talent/v4beta1/filters.rb +197 -197
  45. data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +14 -14
  46. data/proto_docs/google/cloud/talent/v4beta1/job.rb +83 -83
  47. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +163 -163
  48. data/proto_docs/google/cloud/talent/v4beta1/profile.rb +202 -202
  49. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +82 -82
  50. data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +8 -8
  51. data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +27 -27
  52. data/proto_docs/google/longrunning/operations.rb +30 -30
  53. data/proto_docs/google/protobuf/any.rb +4 -4
  54. data/proto_docs/google/protobuf/duration.rb +4 -4
  55. data/proto_docs/google/protobuf/empty.rb +2 -2
  56. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  57. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  58. data/proto_docs/google/protobuf/wrappers.rb +27 -27
  59. data/proto_docs/google/rpc/status.rb +6 -6
  60. data/proto_docs/google/type/date.rb +6 -6
  61. data/proto_docs/google/type/latlng.rb +4 -4
  62. data/proto_docs/google/type/money.rb +5 -5
  63. data/proto_docs/google/type/postal_address.rb +13 -13
  64. data/proto_docs/google/type/timeofday.rb +7 -7
  65. metadata +2 -2
@@ -44,24 +44,24 @@ module Google
44
44
  # @param project [String]
45
45
  # @param company [String]
46
46
  #
47
- # @return [String]
47
+ # @return [::String]
48
48
  def company_path **args
49
49
  resources = {
50
50
  "company:project:tenant" => (proc do |project:, tenant:, company:|
51
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
52
- raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
51
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
52
+ raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
53
53
 
54
54
  "projects/#{project}/tenants/#{tenant}/companies/#{company}"
55
55
  end),
56
56
  "company:project" => (proc do |project:, company:|
57
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
57
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
58
58
 
59
59
  "projects/#{project}/companies/#{company}"
60
60
  end)
61
61
  }
62
62
 
63
63
  resource = resources[args.keys.sort.join(":")]
64
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
64
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
65
65
  resource.call(**args)
66
66
  end
67
67
 
@@ -85,24 +85,24 @@ module Google
85
85
  # @param project [String]
86
86
  # @param job [String]
87
87
  #
88
- # @return [String]
88
+ # @return [::String]
89
89
  def job_path **args
90
90
  resources = {
91
91
  "job:project:tenant" => (proc do |project:, tenant:, job:|
92
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
93
- raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
92
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
93
+ raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
94
94
 
95
95
  "projects/#{project}/tenants/#{tenant}/jobs/#{job}"
96
96
  end),
97
97
  "job:project" => (proc do |project:, job:|
98
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
98
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
99
99
 
100
100
  "projects/#{project}/jobs/#{job}"
101
101
  end)
102
102
  }
103
103
 
104
104
  resource = resources[args.keys.sort.join(":")]
105
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
105
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
106
106
  resource.call(**args)
107
107
  end
108
108
 
@@ -115,7 +115,7 @@ module Google
115
115
  #
116
116
  # @param project [String]
117
117
  #
118
- # @return [String]
118
+ # @return [::String]
119
119
  def project_path project:
120
120
  "projects/#{project}"
121
121
  end
@@ -130,9 +130,9 @@ module Google
130
130
  # @param project [String]
131
131
  # @param tenant [String]
132
132
  #
133
- # @return [String]
133
+ # @return [::String]
134
134
  def tenant_path project:, tenant:
135
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
135
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
136
136
 
137
137
  "projects/#{project}/tenants/#{tenant}"
138
138
  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/profile_service"
40
- # client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new
40
+ # client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new
41
41
  #
42
42
  module ProfileService
43
43
  end
@@ -39,15 +39,15 @@ module Google
39
39
  ##
40
40
  # Configure the ProfileService Client class.
41
41
  #
42
- # See {Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
42
+ # See {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
45
  # ## Example
46
46
  #
47
47
  # To modify the configuration for all ProfileService clients:
48
48
  #
49
- # Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
50
- # config.timeout = 10_000
49
+ # ::Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
50
+ # config.timeout = 10.0
51
51
  # end
52
52
  #
53
53
  # @yield [config] Configure the Client client.
@@ -109,7 +109,7 @@ module Google
109
109
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
110
110
  # should be made on {Client.configure}.
111
111
  #
112
- # See {Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
112
+ # See {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
113
113
  # for a description of the configuration fields.
114
114
  #
115
115
  # @yield [config] Configure the Client client.
@@ -130,13 +130,13 @@ module Google
130
130
  # To create a new ProfileService client with the default
131
131
  # configuration:
132
132
  #
133
- # client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new
133
+ # client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new
134
134
  #
135
135
  # To create a new ProfileService client with a custom
136
136
  # configuration:
137
137
  #
138
- # client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
139
- # config.timeout = 10_000
138
+ # client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
139
+ # config.timeout = 10.0
140
140
  # end
141
141
  #
142
142
  # @yield [config] Configure the ProfileService client.
@@ -163,8 +163,8 @@ module Google
163
163
  end
164
164
  @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
165
165
 
166
- @profile_service_stub = Gapic::ServiceStub.new(
167
- Google::Cloud::Talent::V4beta1::ProfileService::Stub,
166
+ @profile_service_stub = ::Gapic::ServiceStub.new(
167
+ ::Google::Cloud::Talent::V4beta1::ProfileService::Stub,
168
168
  credentials: credentials,
169
169
  endpoint: @config.endpoint,
170
170
  channel_args: @config.channel_args,
@@ -179,12 +179,12 @@ module Google
179
179
  #
180
180
  # @overload list_profiles(request, options = nil)
181
181
  # Pass arguments to `list_profiles` via a request object, either of type
182
- # {Google::Cloud::Talent::V4beta1::ListProfilesRequest} or an equivalent Hash.
182
+ # {::Google::Cloud::Talent::V4beta1::ListProfilesRequest} or an equivalent Hash.
183
183
  #
184
- # @param request [Google::Cloud::Talent::V4beta1::ListProfilesRequest, Hash]
184
+ # @param request [::Google::Cloud::Talent::V4beta1::ListProfilesRequest, ::Hash]
185
185
  # A request object representing the call parameters. Required. To specify no
186
186
  # parameters, or to keep all the default parameter values, pass an empty Hash.
187
- # @param options [Gapic::CallOptions, Hash]
187
+ # @param options [::Gapic::CallOptions, ::Hash]
188
188
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
189
189
  #
190
190
  # @overload list_profiles(parent: nil, filter: nil, page_token: nil, page_size: nil, read_mask: nil)
@@ -192,12 +192,12 @@ module Google
192
192
  # least one keyword argument is required. To specify no parameters, or to keep all
193
193
  # the default parameter values, pass an empty Hash as a request object (see above).
194
194
  #
195
- # @param parent [String]
195
+ # @param parent [::String]
196
196
  # Required. The resource name of the tenant under which the profile is created.
197
197
  #
198
198
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
199
199
  # "projects/foo/tenants/bar".
200
- # @param filter [String]
200
+ # @param filter [::String]
201
201
  # The filter string specifies the profiles to be enumerated.
202
202
  #
203
203
  # Supported operator: =, AND
@@ -215,16 +215,16 @@ module Google
215
215
  #
216
216
  # * externalId = "externalId-1"
217
217
  # * groupId = "groupId-1"
218
- # @param page_token [String]
218
+ # @param page_token [::String]
219
219
  # The token that specifies the current offset (that is, starting result).
220
220
  #
221
- # Please set the value to {Google::Cloud::Talent::V4beta1::ListProfilesResponse#next_page_token ListProfilesResponse.next_page_token} to
221
+ # Please set the value to {::Google::Cloud::Talent::V4beta1::ListProfilesResponse#next_page_token ListProfilesResponse.next_page_token} to
222
222
  # continue the list.
223
- # @param page_size [Integer]
223
+ # @param page_size [::Integer]
224
224
  # The maximum number of profiles to be returned, at most 100.
225
225
  #
226
226
  # Default is 100 unless a positive number smaller than 100 is specified.
227
- # @param read_mask [Google::Protobuf::FieldMask, Hash]
227
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
228
228
  # A field mask to specify the profile fields to be listed in response.
229
229
  # All fields are listed if it is unset.
230
230
  #
@@ -233,26 +233,26 @@ module Google
233
233
  # * name
234
234
  #
235
235
  # @yield [response, operation] Access the result along with the RPC operation
236
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Profile>]
237
- # @yieldparam operation [GRPC::ActiveCall::Operation]
236
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Profile>]
237
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
238
238
  #
239
- # @return [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Profile>]
239
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Profile>]
240
240
  #
241
- # @raise [Google::Cloud::Error] if the RPC is aborted.
241
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
242
242
  #
243
243
  def list_profiles request, options = nil
244
- raise ArgumentError, "request must be provided" if request.nil?
244
+ raise ::ArgumentError, "request must be provided" if request.nil?
245
245
 
246
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListProfilesRequest
246
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListProfilesRequest
247
247
 
248
248
  # Converts hash and nil to an options object
249
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
249
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
250
250
 
251
251
  # Customize the options with defaults
252
252
  metadata = @config.rpcs.list_profiles.metadata.to_h
253
253
 
254
254
  # Set x-goog-api-client and x-goog-user-project headers
255
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
255
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
256
256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
257
257
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
258
258
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -270,12 +270,12 @@ module Google
270
270
  retry_policy: @config.retry_policy
271
271
 
272
272
  @profile_service_stub.call_rpc :list_profiles, request, options: options do |response, operation|
273
- response = Gapic::PagedEnumerable.new @profile_service_stub, :list_profiles, request, response, operation, options
273
+ response = ::Gapic::PagedEnumerable.new @profile_service_stub, :list_profiles, request, response, operation, options
274
274
  yield response, operation if block_given?
275
275
  return response
276
276
  end
277
- rescue GRPC::BadStatus => e
278
- raise Google::Cloud::Error.from_error(e)
277
+ rescue ::GRPC::BadStatus => e
278
+ raise ::Google::Cloud::Error.from_error(e)
279
279
  end
280
280
 
281
281
  ##
@@ -283,12 +283,12 @@ module Google
283
283
  #
284
284
  # @overload create_profile(request, options = nil)
285
285
  # Pass arguments to `create_profile` via a request object, either of type
286
- # {Google::Cloud::Talent::V4beta1::CreateProfileRequest} or an equivalent Hash.
286
+ # {::Google::Cloud::Talent::V4beta1::CreateProfileRequest} or an equivalent Hash.
287
287
  #
288
- # @param request [Google::Cloud::Talent::V4beta1::CreateProfileRequest, Hash]
288
+ # @param request [::Google::Cloud::Talent::V4beta1::CreateProfileRequest, ::Hash]
289
289
  # A request object representing the call parameters. Required. To specify no
290
290
  # parameters, or to keep all the default parameter values, pass an empty Hash.
291
- # @param options [Gapic::CallOptions, Hash]
291
+ # @param options [::Gapic::CallOptions, ::Hash]
292
292
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
293
293
  #
294
294
  # @overload create_profile(parent: nil, profile: nil)
@@ -296,35 +296,35 @@ module Google
296
296
  # least one keyword argument is required. To specify no parameters, or to keep all
297
297
  # the default parameter values, pass an empty Hash as a request object (see above).
298
298
  #
299
- # @param parent [String]
299
+ # @param parent [::String]
300
300
  # Required. The name of the tenant this profile belongs to.
301
301
  #
302
302
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
303
303
  # "projects/foo/tenants/bar".
304
- # @param profile [Google::Cloud::Talent::V4beta1::Profile, Hash]
304
+ # @param profile [::Google::Cloud::Talent::V4beta1::Profile, ::Hash]
305
305
  # Required. The profile to be created.
306
306
  #
307
307
  # @yield [response, operation] Access the result along with the RPC operation
308
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Profile]
309
- # @yieldparam operation [GRPC::ActiveCall::Operation]
308
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Profile]
309
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
310
310
  #
311
- # @return [Google::Cloud::Talent::V4beta1::Profile]
311
+ # @return [::Google::Cloud::Talent::V4beta1::Profile]
312
312
  #
313
- # @raise [Google::Cloud::Error] if the RPC is aborted.
313
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
314
314
  #
315
315
  def create_profile request, options = nil
316
- raise ArgumentError, "request must be provided" if request.nil?
316
+ raise ::ArgumentError, "request must be provided" if request.nil?
317
317
 
318
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateProfileRequest
318
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateProfileRequest
319
319
 
320
320
  # Converts hash and nil to an options object
321
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
321
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
322
322
 
323
323
  # Customize the options with defaults
324
324
  metadata = @config.rpcs.create_profile.metadata.to_h
325
325
 
326
326
  # Set x-goog-api-client and x-goog-user-project headers
327
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
327
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
328
328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
329
329
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
330
330
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -345,8 +345,8 @@ module Google
345
345
  yield response, operation if block_given?
346
346
  return response
347
347
  end
348
- rescue GRPC::BadStatus => e
349
- raise Google::Cloud::Error.from_error(e)
348
+ rescue ::GRPC::BadStatus => e
349
+ raise ::Google::Cloud::Error.from_error(e)
350
350
  end
351
351
 
352
352
  ##
@@ -354,12 +354,12 @@ module Google
354
354
  #
355
355
  # @overload get_profile(request, options = nil)
356
356
  # Pass arguments to `get_profile` via a request object, either of type
357
- # {Google::Cloud::Talent::V4beta1::GetProfileRequest} or an equivalent Hash.
357
+ # {::Google::Cloud::Talent::V4beta1::GetProfileRequest} or an equivalent Hash.
358
358
  #
359
- # @param request [Google::Cloud::Talent::V4beta1::GetProfileRequest, Hash]
359
+ # @param request [::Google::Cloud::Talent::V4beta1::GetProfileRequest, ::Hash]
360
360
  # A request object representing the call parameters. Required. To specify no
361
361
  # parameters, or to keep all the default parameter values, pass an empty Hash.
362
- # @param options [Gapic::CallOptions, Hash]
362
+ # @param options [::Gapic::CallOptions, ::Hash]
363
363
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
364
364
  #
365
365
  # @overload get_profile(name: nil)
@@ -367,7 +367,7 @@ module Google
367
367
  # least one keyword argument is required. To specify no parameters, or to keep all
368
368
  # the default parameter values, pass an empty Hash as a request object (see above).
369
369
  #
370
- # @param name [String]
370
+ # @param name [::String]
371
371
  # Required. Resource name of the profile to get.
372
372
  #
373
373
  # The format is
@@ -375,26 +375,26 @@ module Google
375
375
  # example, "projects/foo/tenants/bar/profiles/baz".
376
376
  #
377
377
  # @yield [response, operation] Access the result along with the RPC operation
378
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Profile]
379
- # @yieldparam operation [GRPC::ActiveCall::Operation]
378
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Profile]
379
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
380
380
  #
381
- # @return [Google::Cloud::Talent::V4beta1::Profile]
381
+ # @return [::Google::Cloud::Talent::V4beta1::Profile]
382
382
  #
383
- # @raise [Google::Cloud::Error] if the RPC is aborted.
383
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
384
384
  #
385
385
  def get_profile request, options = nil
386
- raise ArgumentError, "request must be provided" if request.nil?
386
+ raise ::ArgumentError, "request must be provided" if request.nil?
387
387
 
388
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetProfileRequest
388
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetProfileRequest
389
389
 
390
390
  # Converts hash and nil to an options object
391
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
391
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
392
392
 
393
393
  # Customize the options with defaults
394
394
  metadata = @config.rpcs.get_profile.metadata.to_h
395
395
 
396
396
  # Set x-goog-api-client and x-goog-user-project headers
397
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
397
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
398
398
  lib_name: @config.lib_name, lib_version: @config.lib_version,
399
399
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
400
400
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -415,8 +415,8 @@ module Google
415
415
  yield response, operation if block_given?
416
416
  return response
417
417
  end
418
- rescue GRPC::BadStatus => e
419
- raise Google::Cloud::Error.from_error(e)
418
+ rescue ::GRPC::BadStatus => e
419
+ raise ::Google::Cloud::Error.from_error(e)
420
420
  end
421
421
 
422
422
  ##
@@ -424,12 +424,12 @@ module Google
424
424
  #
425
425
  # @overload update_profile(request, options = nil)
426
426
  # Pass arguments to `update_profile` via a request object, either of type
427
- # {Google::Cloud::Talent::V4beta1::UpdateProfileRequest} or an equivalent Hash.
427
+ # {::Google::Cloud::Talent::V4beta1::UpdateProfileRequest} or an equivalent Hash.
428
428
  #
429
- # @param request [Google::Cloud::Talent::V4beta1::UpdateProfileRequest, Hash]
429
+ # @param request [::Google::Cloud::Talent::V4beta1::UpdateProfileRequest, ::Hash]
430
430
  # A request object representing the call parameters. Required. To specify no
431
431
  # parameters, or to keep all the default parameter values, pass an empty Hash.
432
- # @param options [Gapic::CallOptions, Hash]
432
+ # @param options [::Gapic::CallOptions, ::Hash]
433
433
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
434
434
  #
435
435
  # @overload update_profile(profile: nil, update_mask: nil)
@@ -437,34 +437,34 @@ module Google
437
437
  # least one keyword argument is required. To specify no parameters, or to keep all
438
438
  # the default parameter values, pass an empty Hash as a request object (see above).
439
439
  #
440
- # @param profile [Google::Cloud::Talent::V4beta1::Profile, Hash]
440
+ # @param profile [::Google::Cloud::Talent::V4beta1::Profile, ::Hash]
441
441
  # Required. Profile to be updated.
442
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
442
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
443
443
  # A field mask to specify the profile fields to update.
444
444
  #
445
445
  # A full update is performed if it is unset.
446
446
  #
447
447
  # @yield [response, operation] Access the result along with the RPC operation
448
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Profile]
449
- # @yieldparam operation [GRPC::ActiveCall::Operation]
448
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Profile]
449
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
450
450
  #
451
- # @return [Google::Cloud::Talent::V4beta1::Profile]
451
+ # @return [::Google::Cloud::Talent::V4beta1::Profile]
452
452
  #
453
- # @raise [Google::Cloud::Error] if the RPC is aborted.
453
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
454
454
  #
455
455
  def update_profile request, options = nil
456
- raise ArgumentError, "request must be provided" if request.nil?
456
+ raise ::ArgumentError, "request must be provided" if request.nil?
457
457
 
458
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateProfileRequest
458
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateProfileRequest
459
459
 
460
460
  # Converts hash and nil to an options object
461
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
461
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
462
462
 
463
463
  # Customize the options with defaults
464
464
  metadata = @config.rpcs.update_profile.metadata.to_h
465
465
 
466
466
  # Set x-goog-api-client and x-goog-user-project headers
467
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
467
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
468
468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
469
469
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
470
470
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -485,8 +485,8 @@ module Google
485
485
  yield response, operation if block_given?
486
486
  return response
487
487
  end
488
- rescue GRPC::BadStatus => e
489
- raise Google::Cloud::Error.from_error(e)
488
+ rescue ::GRPC::BadStatus => e
489
+ raise ::Google::Cloud::Error.from_error(e)
490
490
  end
491
491
 
492
492
  ##
@@ -496,12 +496,12 @@ module Google
496
496
  #
497
497
  # @overload delete_profile(request, options = nil)
498
498
  # Pass arguments to `delete_profile` via a request object, either of type
499
- # {Google::Cloud::Talent::V4beta1::DeleteProfileRequest} or an equivalent Hash.
499
+ # {::Google::Cloud::Talent::V4beta1::DeleteProfileRequest} or an equivalent Hash.
500
500
  #
501
- # @param request [Google::Cloud::Talent::V4beta1::DeleteProfileRequest, Hash]
501
+ # @param request [::Google::Cloud::Talent::V4beta1::DeleteProfileRequest, ::Hash]
502
502
  # A request object representing the call parameters. Required. To specify no
503
503
  # parameters, or to keep all the default parameter values, pass an empty Hash.
504
- # @param options [Gapic::CallOptions, Hash]
504
+ # @param options [::Gapic::CallOptions, ::Hash]
505
505
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
506
506
  #
507
507
  # @overload delete_profile(name: nil)
@@ -509,7 +509,7 @@ module Google
509
509
  # least one keyword argument is required. To specify no parameters, or to keep all
510
510
  # the default parameter values, pass an empty Hash as a request object (see above).
511
511
  #
512
- # @param name [String]
512
+ # @param name [::String]
513
513
  # Required. Resource name of the profile to be deleted.
514
514
  #
515
515
  # The format is
@@ -517,26 +517,26 @@ module Google
517
517
  # example, "projects/foo/tenants/bar/profiles/baz".
518
518
  #
519
519
  # @yield [response, operation] Access the result along with the RPC operation
520
- # @yieldparam response [Google::Protobuf::Empty]
521
- # @yieldparam operation [GRPC::ActiveCall::Operation]
520
+ # @yieldparam response [::Google::Protobuf::Empty]
521
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
522
522
  #
523
- # @return [Google::Protobuf::Empty]
523
+ # @return [::Google::Protobuf::Empty]
524
524
  #
525
- # @raise [Google::Cloud::Error] if the RPC is aborted.
525
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
526
526
  #
527
527
  def delete_profile request, options = nil
528
- raise ArgumentError, "request must be provided" if request.nil?
528
+ raise ::ArgumentError, "request must be provided" if request.nil?
529
529
 
530
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteProfileRequest
530
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteProfileRequest
531
531
 
532
532
  # Converts hash and nil to an options object
533
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
533
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
534
534
 
535
535
  # Customize the options with defaults
536
536
  metadata = @config.rpcs.delete_profile.metadata.to_h
537
537
 
538
538
  # Set x-goog-api-client and x-goog-user-project headers
539
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
539
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
540
540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
541
541
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
542
542
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -557,8 +557,8 @@ module Google
557
557
  yield response, operation if block_given?
558
558
  return response
559
559
  end
560
- rescue GRPC::BadStatus => e
561
- raise Google::Cloud::Error.from_error(e)
560
+ rescue ::GRPC::BadStatus => e
561
+ raise ::Google::Cloud::Error.from_error(e)
562
562
  end
563
563
 
564
564
  ##
@@ -567,16 +567,16 @@ module Google
567
567
  # For example, search by raw queries "software engineer in Mountain View" or
568
568
  # search by structured filters (location filter, education filter, etc.).
569
569
  #
570
- # See {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} for more information.
570
+ # See {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} for more information.
571
571
  #
572
572
  # @overload search_profiles(request, options = nil)
573
573
  # Pass arguments to `search_profiles` via a request object, either of type
574
- # {Google::Cloud::Talent::V4beta1::SearchProfilesRequest} or an equivalent Hash.
574
+ # {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest} or an equivalent Hash.
575
575
  #
576
- # @param request [Google::Cloud::Talent::V4beta1::SearchProfilesRequest, Hash]
576
+ # @param request [::Google::Cloud::Talent::V4beta1::SearchProfilesRequest, ::Hash]
577
577
  # A request object representing the call parameters. Required. To specify no
578
578
  # parameters, or to keep all the default parameter values, pass an empty Hash.
579
- # @param options [Gapic::CallOptions, Hash]
579
+ # @param options [::Gapic::CallOptions, ::Hash]
580
580
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
581
581
  #
582
582
  # @overload search_profiles(parent: nil, request_metadata: nil, profile_query: nil, page_size: nil, page_token: nil, offset: nil, disable_spell_check: nil, order_by: nil, case_sensitive_sort: nil, histogram_queries: nil, result_set_id: nil, strict_keywords_search: nil)
@@ -584,45 +584,45 @@ module Google
584
584
  # least one keyword argument is required. To specify no parameters, or to keep all
585
585
  # the default parameter values, pass an empty Hash as a request object (see above).
586
586
  #
587
- # @param parent [String]
587
+ # @param parent [::String]
588
588
  # Required. The resource name of the tenant to search within.
589
589
  #
590
590
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
591
591
  # "projects/foo/tenants/bar".
592
- # @param request_metadata [Google::Cloud::Talent::V4beta1::RequestMetadata, Hash]
592
+ # @param request_metadata [::Google::Cloud::Talent::V4beta1::RequestMetadata, ::Hash]
593
593
  # Required. The meta information collected about the profile search user. This is used
594
594
  # to improve the search quality of the service. These values are provided by
595
595
  # users, and must be precise and consistent.
596
- # @param profile_query [Google::Cloud::Talent::V4beta1::ProfileQuery, Hash]
597
- # Search query to execute. See {Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
598
- # @param page_size [Integer]
596
+ # @param profile_query [::Google::Cloud::Talent::V4beta1::ProfileQuery, ::Hash]
597
+ # Search query to execute. See {::Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
598
+ # @param page_size [::Integer]
599
599
  # A limit on the number of profiles returned in the search results.
600
600
  # A value above the default value 10 can increase search response time.
601
601
  #
602
602
  # The maximum value allowed is 100. Otherwise an error is thrown.
603
- # @param page_token [String]
603
+ # @param page_token [::String]
604
604
  # The pageToken, similar to offset enables users of the API to paginate
605
605
  # through the search results. To retrieve the first page of results, set the
606
606
  # pageToken to empty. The search response includes a
607
- # {Google::Cloud::Talent::V4beta1::SearchProfilesResponse#next_page_token nextPageToken} field that can be
607
+ # {::Google::Cloud::Talent::V4beta1::SearchProfilesResponse#next_page_token nextPageToken} field that can be
608
608
  # used to populate the pageToken field for the next page of results. Using
609
609
  # pageToken instead of offset increases the performance of the API,
610
610
  # especially compared to larger offset values.
611
- # @param offset [Integer]
611
+ # @param offset [::Integer]
612
612
  # An integer that specifies the current offset (that is, starting result) in
613
- # search results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token} is unset.
613
+ # search results. This field is only considered if {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token} is unset.
614
614
  #
615
615
  # The maximum allowed value is 5000. Otherwise an error is thrown.
616
616
  #
617
617
  # For example, 0 means to search from the first profile, and 10 means to
618
618
  # search from the 11th profile. This can be used for pagination, for example
619
619
  # pageSize = 10 and offset = 10 means to search from the second page.
620
- # @param disable_spell_check [Boolean]
620
+ # @param disable_spell_check [::Boolean]
621
621
  # This flag controls the spell-check feature. If `false`, the
622
622
  # service attempts to correct a misspelled query.
623
623
  #
624
624
  # For example, "enginee" is corrected to "engineer".
625
- # @param order_by [String]
625
+ # @param order_by [::String]
626
626
  # The criteria that determines how search results are sorted.
627
627
  # Defaults is "relevance desc" if no value is specified.
628
628
  #
@@ -630,25 +630,25 @@ module Google
630
630
  #
631
631
  # * "relevance desc": By descending relevance, as determined by the API
632
632
  # algorithms.
633
- # * "update_date desc": Sort by {Google::Cloud::Talent::V4beta1::Profile#update_time Profile.update_time} in descending order
633
+ # * "update_date desc": Sort by {::Google::Cloud::Talent::V4beta1::Profile#update_time Profile.update_time} in descending order
634
634
  # (recently updated profiles first).
635
- # * "create_date desc": Sort by {Google::Cloud::Talent::V4beta1::Profile#create_time Profile.create_time} in descending order
635
+ # * "create_date desc": Sort by {::Google::Cloud::Talent::V4beta1::Profile#create_time Profile.create_time} in descending order
636
636
  # (recently created profiles first).
637
- # * "first_name": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name} in
637
+ # * "first_name": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name} in
638
638
  # ascending order.
639
- # * "first_name desc": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name}
639
+ # * "first_name desc": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name}
640
640
  # in descending order.
641
- # * "last_name": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name} in
641
+ # * "last_name": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name} in
642
642
  # ascending order.
643
- # * "last_name desc": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name}
643
+ # * "last_name desc": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name}
644
644
  # in ascending order.
645
- # @param case_sensitive_sort [Boolean]
645
+ # @param case_sensitive_sort [::Boolean]
646
646
  # When sort by field is based on alphabetical order, sort values case
647
647
  # sensitively (based on ASCII) when the value is set to true. Default value
648
648
  # is case in-sensitive sort (false).
649
- # @param histogram_queries [Array<Google::Cloud::Talent::V4beta1::HistogramQuery, Hash>]
649
+ # @param histogram_queries [::Array<::Google::Cloud::Talent::V4beta1::HistogramQuery, ::Hash>]
650
650
  # A list of expressions specifies histogram requests against matching
651
- # profiles for {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
651
+ # profiles for {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
652
652
  #
653
653
  # The expression syntax looks like a function definition with parameters.
654
654
  #
@@ -700,13 +700,13 @@ module Google
700
700
  # * experience_in_months: experience in months. 0 means 0 month to 1 month
701
701
  # (exclusive).
702
702
  # * application_date: The application date specifies application start dates.
703
- # See {Google::Cloud::Talent::V4beta1::ApplicationDateFilter ApplicationDateFilter} for more details.
703
+ # See {::Google::Cloud::Talent::V4beta1::ApplicationDateFilter ApplicationDateFilter} for more details.
704
704
  # * application_outcome_notes: The application outcome reason specifies the
705
705
  # reasons behind the outcome of the job application.
706
- # See {Google::Cloud::Talent::V4beta1::ApplicationOutcomeNotesFilter ApplicationOutcomeNotesFilter} for more details.
706
+ # See {::Google::Cloud::Talent::V4beta1::ApplicationOutcomeNotesFilter ApplicationOutcomeNotesFilter} for more details.
707
707
  # * application_job_title: The application job title specifies the job
708
708
  # applied for in the application.
709
- # See {Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter} for more details.
709
+ # See {::Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter} for more details.
710
710
  # * hirable_status: Hirable status specifies the profile's hirable status.
711
711
  # * string_custom_attribute: String custom attributes. Values can be accessed
712
712
  # via square bracket notation like string_custom_attribute["key1"].
@@ -721,28 +721,28 @@ module Google
721
721
  # * count(string_custom_attribute["assigned_recruiter"])
722
722
  # * count(numeric_custom_attribute["favorite_number"],
723
723
  # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
724
- # @param result_set_id [String]
724
+ # @param result_set_id [::String]
725
725
  # An id that uniquely identifies the result set of a
726
- # {Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles} call. The id should be
726
+ # {::Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles} call. The id should be
727
727
  # retrieved from the
728
- # {Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} message returned from a previous
729
- # invocation of {Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles}.
728
+ # {::Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} message returned from a previous
729
+ # invocation of {::Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles}.
730
730
  #
731
731
  # A result set is an ordered list of search results.
732
732
  #
733
733
  # If this field is not set, a new result set is computed based on the
734
- # {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query}. A new {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} is returned as a handle to
734
+ # {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query}. A new {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} is returned as a handle to
735
735
  # access this result set.
736
736
  #
737
737
  # If this field is set, the service will ignore the resource and
738
- # {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query} values, and simply retrieve a page of results from the
739
- # corresponding result set. In this case, one and only one of {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token}
740
- # or {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#offset offset} must be set.
741
- #
742
- # A typical use case is to invoke {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} without this
743
- # field, then use the resulting {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} in
744
- # {Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} to page through the results.
745
- # @param strict_keywords_search [Boolean]
738
+ # {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query} values, and simply retrieve a page of results from the
739
+ # corresponding result set. In this case, one and only one of {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token}
740
+ # or {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#offset offset} must be set.
741
+ #
742
+ # A typical use case is to invoke {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} without this
743
+ # field, then use the resulting {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} in
744
+ # {::Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} to page through the results.
745
+ # @param strict_keywords_search [::Boolean]
746
746
  # This flag is used to indicate whether the service will attempt to
747
747
  # understand synonyms and terms related to the search query or treat the
748
748
  # query "as is" when it generates a set of results. By default this flag is
@@ -758,26 +758,26 @@ module Google
758
758
  # longer boolean strings.
759
759
  #
760
760
  # @yield [response, operation] Access the result along with the RPC operation
761
- # @yieldparam response [Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
762
- # @yieldparam operation [GRPC::ActiveCall::Operation]
761
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
762
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
763
763
  #
764
- # @return [Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
764
+ # @return [::Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
765
765
  #
766
- # @raise [Google::Cloud::Error] if the RPC is aborted.
766
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
767
767
  #
768
768
  def search_profiles request, options = nil
769
- raise ArgumentError, "request must be provided" if request.nil?
769
+ raise ::ArgumentError, "request must be provided" if request.nil?
770
770
 
771
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::SearchProfilesRequest
771
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::SearchProfilesRequest
772
772
 
773
773
  # Converts hash and nil to an options object
774
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
774
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
775
775
 
776
776
  # Customize the options with defaults
777
777
  metadata = @config.rpcs.search_profiles.metadata.to_h
778
778
 
779
779
  # Set x-goog-api-client and x-goog-user-project headers
780
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
780
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
781
781
  lib_name: @config.lib_name, lib_version: @config.lib_version,
782
782
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
783
783
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -798,8 +798,8 @@ module Google
798
798
  yield response, operation if block_given?
799
799
  return response
800
800
  end
801
- rescue GRPC::BadStatus => e
802
- raise Google::Cloud::Error.from_error(e)
801
+ rescue ::GRPC::BadStatus => e
802
+ raise ::Google::Cloud::Error.from_error(e)
803
803
  end
804
804
 
805
805
  ##
@@ -809,7 +809,7 @@ module Google
809
809
  # providing control over timeouts, retry behavior, logging, transport
810
810
  # parameters, and other low-level controls. Certain parameters can also be
811
811
  # applied individually to specific RPCs. See
812
- # {Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration::Rpcs}
812
+ # {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration::Rpcs}
813
813
  # for a list of RPCs that can be configured independently.
814
814
  #
815
815
  # Configuration can be applied globally to all clients, or to a single client
@@ -820,22 +820,22 @@ module Google
820
820
  # To modify the global config, setting the timeout for list_profiles
821
821
  # to 20 seconds, and all remaining timeouts to 10 seconds:
822
822
  #
823
- # Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
824
- # config.timeout = 10_000
825
- # config.rpcs.list_profiles.timeout = 20_000
823
+ # ::Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
824
+ # config.timeout = 10.0
825
+ # config.rpcs.list_profiles.timeout = 20.0
826
826
  # end
827
827
  #
828
828
  # To apply the above configuration only to a new client:
829
829
  #
830
- # client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
831
- # config.timeout = 10_000
832
- # config.rpcs.list_profiles.timeout = 20_000
830
+ # client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
831
+ # config.timeout = 10.0
832
+ # config.rpcs.list_profiles.timeout = 20.0
833
833
  # end
834
834
  #
835
835
  # @!attribute [rw] endpoint
836
836
  # The hostname or hostname:port of the service endpoint.
837
837
  # Defaults to `"jobs.googleapis.com"`.
838
- # @return [String]
838
+ # @return [::String]
839
839
  # @!attribute [rw] credentials
840
840
  # Credentials to send with calls. You may provide any of the following types:
841
841
  # * (`String`) The path to a service account key file in JSON format
@@ -847,29 +847,29 @@ module Google
847
847
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
848
848
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
849
849
  # * (`nil`) indicating no credentials
850
- # @return [Object]
850
+ # @return [::Object]
851
851
  # @!attribute [rw] scope
852
852
  # The OAuth scopes
853
- # @return [Array<String>]
853
+ # @return [::Array<::String>]
854
854
  # @!attribute [rw] lib_name
855
855
  # The library name as recorded in instrumentation and logging
856
- # @return [String]
856
+ # @return [::String]
857
857
  # @!attribute [rw] lib_version
858
858
  # The library version as recorded in instrumentation and logging
859
- # @return [String]
859
+ # @return [::String]
860
860
  # @!attribute [rw] channel_args
861
861
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
862
862
  # `GRPC::Core::Channel` object is provided as the credential.
863
- # @return [Hash]
863
+ # @return [::Hash]
864
864
  # @!attribute [rw] interceptors
865
865
  # An array of interceptors that are run before calls are executed.
866
- # @return [Array<GRPC::ClientInterceptor>]
866
+ # @return [::Array<::GRPC::ClientInterceptor>]
867
867
  # @!attribute [rw] timeout
868
- # The call timeout in milliseconds.
869
- # @return [Numeric]
868
+ # The call timeout in seconds.
869
+ # @return [::Numeric]
870
870
  # @!attribute [rw] metadata
871
871
  # Additional gRPC headers to be sent with the call.
872
- # @return [Hash{Symbol=>String}]
872
+ # @return [::Hash{::Symbol=>::String}]
873
873
  # @!attribute [rw] retry_policy
874
874
  # The retry policy. The value is a hash with the following keys:
875
875
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -877,10 +877,10 @@ module Google
877
877
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
878
878
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
879
879
  # trigger a retry.
880
- # @return [Hash]
880
+ # @return [::Hash]
881
881
  #
882
882
  class Configuration
883
- extend Gapic::Config
883
+ extend ::Gapic::Config
884
884
 
885
885
  config_attr :endpoint, "jobs.googleapis.com", String
886
886
  config_attr :credentials, nil do |value|
@@ -888,14 +888,14 @@ module Google
888
888
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
889
889
  allowed.any? { |klass| klass === value }
890
890
  end
891
- config_attr :scope, nil, String, Array, nil
892
- config_attr :lib_name, nil, String, nil
893
- config_attr :lib_version, nil, String, nil
894
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
895
- config_attr :interceptors, nil, Array, nil
896
- config_attr :timeout, nil, Numeric, nil
897
- config_attr :metadata, nil, Hash, nil
898
- config_attr :retry_policy, nil, Hash, Proc, nil
891
+ config_attr :scope, nil, ::String, ::Array, nil
892
+ config_attr :lib_name, nil, ::String, nil
893
+ config_attr :lib_version, nil, ::String, nil
894
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
895
+ config_attr :interceptors, nil, ::Array, nil
896
+ config_attr :timeout, nil, ::Numeric, nil
897
+ config_attr :metadata, nil, ::Hash, nil
898
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
899
899
 
900
900
  # @private
901
901
  def initialize parent_config = nil
@@ -936,49 +936,49 @@ module Google
936
936
  class Rpcs
937
937
  ##
938
938
  # RPC-specific configuration for `list_profiles`
939
- # @return [Gapic::Config::Method]
939
+ # @return [::Gapic::Config::Method]
940
940
  #
941
941
  attr_reader :list_profiles
942
942
  ##
943
943
  # RPC-specific configuration for `create_profile`
944
- # @return [Gapic::Config::Method]
944
+ # @return [::Gapic::Config::Method]
945
945
  #
946
946
  attr_reader :create_profile
947
947
  ##
948
948
  # RPC-specific configuration for `get_profile`
949
- # @return [Gapic::Config::Method]
949
+ # @return [::Gapic::Config::Method]
950
950
  #
951
951
  attr_reader :get_profile
952
952
  ##
953
953
  # RPC-specific configuration for `update_profile`
954
- # @return [Gapic::Config::Method]
954
+ # @return [::Gapic::Config::Method]
955
955
  #
956
956
  attr_reader :update_profile
957
957
  ##
958
958
  # RPC-specific configuration for `delete_profile`
959
- # @return [Gapic::Config::Method]
959
+ # @return [::Gapic::Config::Method]
960
960
  #
961
961
  attr_reader :delete_profile
962
962
  ##
963
963
  # RPC-specific configuration for `search_profiles`
964
- # @return [Gapic::Config::Method]
964
+ # @return [::Gapic::Config::Method]
965
965
  #
966
966
  attr_reader :search_profiles
967
967
 
968
968
  # @private
969
969
  def initialize parent_rpcs = nil
970
970
  list_profiles_config = parent_rpcs&.list_profiles if parent_rpcs&.respond_to? :list_profiles
971
- @list_profiles = Gapic::Config::Method.new list_profiles_config
971
+ @list_profiles = ::Gapic::Config::Method.new list_profiles_config
972
972
  create_profile_config = parent_rpcs&.create_profile if parent_rpcs&.respond_to? :create_profile
973
- @create_profile = Gapic::Config::Method.new create_profile_config
973
+ @create_profile = ::Gapic::Config::Method.new create_profile_config
974
974
  get_profile_config = parent_rpcs&.get_profile if parent_rpcs&.respond_to? :get_profile
975
- @get_profile = Gapic::Config::Method.new get_profile_config
975
+ @get_profile = ::Gapic::Config::Method.new get_profile_config
976
976
  update_profile_config = parent_rpcs&.update_profile if parent_rpcs&.respond_to? :update_profile
977
- @update_profile = Gapic::Config::Method.new update_profile_config
977
+ @update_profile = ::Gapic::Config::Method.new update_profile_config
978
978
  delete_profile_config = parent_rpcs&.delete_profile if parent_rpcs&.respond_to? :delete_profile
979
- @delete_profile = Gapic::Config::Method.new delete_profile_config
979
+ @delete_profile = ::Gapic::Config::Method.new delete_profile_config
980
980
  search_profiles_config = parent_rpcs&.search_profiles if parent_rpcs&.respond_to? :search_profiles
981
- @search_profiles = Gapic::Config::Method.new search_profiles_config
981
+ @search_profiles = ::Gapic::Config::Method.new search_profiles_config
982
982
 
983
983
  yield self if block_given?
984
984
  end