google-cloud-talent-v4beta1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/talent/v4beta1.rb +1 -1
  5. data/lib/google/cloud/talent/v4beta1/application_service.rb +1 -1
  6. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +124 -124
  7. data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +1 -1
  8. data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +17 -17
  9. data/lib/google/cloud/talent/v4beta1/company_service.rb +1 -1
  10. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +126 -126
  11. data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +1 -1
  12. data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +8 -8
  13. data/lib/google/cloud/talent/v4beta1/completion.rb +1 -1
  14. data/lib/google/cloud/talent/v4beta1/completion/client.rb +60 -60
  15. data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +1 -1
  16. data/lib/google/cloud/talent/v4beta1/completion/paths.rb +8 -8
  17. data/lib/google/cloud/talent/v4beta1/event_service.rb +1 -1
  18. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +53 -53
  19. data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +1 -1
  20. data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +3 -3
  21. data/lib/google/cloud/talent/v4beta1/job_service.rb +1 -1
  22. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +320 -320
  23. data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
  24. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +100 -100
  25. data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +13 -13
  26. data/lib/google/cloud/talent/v4beta1/profile_service.rb +1 -1
  27. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +176 -176
  28. data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +1 -1
  29. data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +5 -5
  30. data/lib/google/cloud/talent/v4beta1/tenant_service.rb +1 -1
  31. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +124 -124
  32. data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +1 -1
  33. data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +3 -3
  34. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  35. data/proto_docs/google/api/resource.rb +12 -12
  36. data/proto_docs/google/cloud/talent/v4beta1/application.rb +18 -18
  37. data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +27 -27
  38. data/proto_docs/google/cloud/talent/v4beta1/common.rb +167 -167
  39. data/proto_docs/google/cloud/talent/v4beta1/company.rb +21 -21
  40. data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +29 -29
  41. data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +28 -28
  42. data/proto_docs/google/cloud/talent/v4beta1/event.rb +30 -30
  43. data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +4 -4
  44. data/proto_docs/google/cloud/talent/v4beta1/filters.rb +197 -197
  45. data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +14 -14
  46. data/proto_docs/google/cloud/talent/v4beta1/job.rb +83 -83
  47. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +163 -163
  48. data/proto_docs/google/cloud/talent/v4beta1/profile.rb +202 -202
  49. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +82 -82
  50. data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +8 -8
  51. data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +27 -27
  52. data/proto_docs/google/longrunning/operations.rb +30 -30
  53. data/proto_docs/google/protobuf/any.rb +4 -4
  54. data/proto_docs/google/protobuf/duration.rb +4 -4
  55. data/proto_docs/google/protobuf/empty.rb +2 -2
  56. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  57. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  58. data/proto_docs/google/protobuf/wrappers.rb +27 -27
  59. data/proto_docs/google/rpc/status.rb +6 -6
  60. data/proto_docs/google/type/date.rb +6 -6
  61. data/proto_docs/google/type/latlng.rb +4 -4
  62. data/proto_docs/google/type/money.rb +5 -5
  63. data/proto_docs/google/type/postal_address.rb +13 -13
  64. data/proto_docs/google/type/timeofday.rb +7 -7
  65. metadata +2 -2
@@ -24,7 +24,7 @@ module Google
24
24
  module V4beta1
25
25
  module ApplicationService
26
26
  # Credentials for the ApplicationService 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"
@@ -36,11 +36,11 @@ module Google
36
36
  # @param profile [String]
37
37
  # @param application [String]
38
38
  #
39
- # @return [String]
39
+ # @return [::String]
40
40
  def application_path project:, tenant:, profile:, application:
41
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
- raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
43
- raise ArgumentError, "profile cannot contain /" if profile.to_s.include? "/"
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
43
+ raise ::ArgumentError, "profile cannot contain /" if profile.to_s.include? "/"
44
44
 
45
45
  "projects/#{project}/tenants/#{tenant}/profiles/#{profile}/applications/#{application}"
46
46
  end
@@ -65,24 +65,24 @@ module Google
65
65
  # @param project [String]
66
66
  # @param company [String]
67
67
  #
68
- # @return [String]
68
+ # @return [::String]
69
69
  def company_path **args
70
70
  resources = {
71
71
  "company:project:tenant" => (proc do |project:, tenant:, company:|
72
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
73
- raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
72
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
73
+ raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
74
74
 
75
75
  "projects/#{project}/tenants/#{tenant}/companies/#{company}"
76
76
  end),
77
77
  "company:project" => (proc do |project:, company:|
78
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
78
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
79
79
 
80
80
  "projects/#{project}/companies/#{company}"
81
81
  end)
82
82
  }
83
83
 
84
84
  resource = resources[args.keys.sort.join(":")]
85
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
85
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
86
86
  resource.call(**args)
87
87
  end
88
88
 
@@ -106,24 +106,24 @@ module Google
106
106
  # @param project [String]
107
107
  # @param job [String]
108
108
  #
109
- # @return [String]
109
+ # @return [::String]
110
110
  def job_path **args
111
111
  resources = {
112
112
  "job:project:tenant" => (proc do |project:, tenant:, job:|
113
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
114
- raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
113
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
114
+ raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
115
115
 
116
116
  "projects/#{project}/tenants/#{tenant}/jobs/#{job}"
117
117
  end),
118
118
  "job:project" => (proc do |project:, job:|
119
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
119
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
120
120
 
121
121
  "projects/#{project}/jobs/#{job}"
122
122
  end)
123
123
  }
124
124
 
125
125
  resource = resources[args.keys.sort.join(":")]
126
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
126
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
127
127
  resource.call(**args)
128
128
  end
129
129
 
@@ -138,10 +138,10 @@ module Google
138
138
  # @param tenant [String]
139
139
  # @param profile [String]
140
140
  #
141
- # @return [String]
141
+ # @return [::String]
142
142
  def profile_path project:, tenant:, profile:
143
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
144
- raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
143
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
144
+ raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
145
145
 
146
146
  "projects/#{project}/tenants/#{tenant}/profiles/#{profile}"
147
147
  end
@@ -36,7 +36,7 @@ module Google
36
36
  # To load this service and instantiate a client:
37
37
  #
38
38
  # require "google/cloud/talent/v4beta1/company_service"
39
- # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new
39
+ # client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
40
40
  #
41
41
  module CompanyService
42
42
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the CompanyService Client class.
40
40
  #
41
- # See {Google::Cloud::Talent::V4beta1::CompanyService::Client::Configuration}
41
+ # See {::Google::Cloud::Talent::V4beta1::CompanyService::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 CompanyService clients:
47
47
  #
48
- # Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -106,7 +106,7 @@ module Google
106
106
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
107
107
  # should be made on {Client.configure}.
108
108
  #
109
- # See {Google::Cloud::Talent::V4beta1::CompanyService::Client::Configuration}
109
+ # See {::Google::Cloud::Talent::V4beta1::CompanyService::Client::Configuration}
110
110
  # for a description of the configuration fields.
111
111
  #
112
112
  # @yield [config] Configure the Client client.
@@ -127,13 +127,13 @@ module Google
127
127
  # To create a new CompanyService client with the default
128
128
  # configuration:
129
129
  #
130
- # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new
130
+ # client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
131
131
  #
132
132
  # To create a new CompanyService client with a custom
133
133
  # configuration:
134
134
  #
135
- # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
136
- # config.timeout = 10_000
135
+ # client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
136
+ # config.timeout = 10.0
137
137
  # end
138
138
  #
139
139
  # @yield [config] Configure the CompanyService client.
@@ -160,8 +160,8 @@ module Google
160
160
  end
161
161
  @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
162
162
 
163
- @company_service_stub = Gapic::ServiceStub.new(
164
- Google::Cloud::Talent::V4beta1::CompanyService::Stub,
163
+ @company_service_stub = ::Gapic::ServiceStub.new(
164
+ ::Google::Cloud::Talent::V4beta1::CompanyService::Stub,
165
165
  credentials: credentials,
166
166
  endpoint: @config.endpoint,
167
167
  channel_args: @config.channel_args,
@@ -176,12 +176,12 @@ module Google
176
176
  #
177
177
  # @overload create_company(request, options = nil)
178
178
  # Pass arguments to `create_company` via a request object, either of type
179
- # {Google::Cloud::Talent::V4beta1::CreateCompanyRequest} or an equivalent Hash.
179
+ # {::Google::Cloud::Talent::V4beta1::CreateCompanyRequest} or an equivalent Hash.
180
180
  #
181
- # @param request [Google::Cloud::Talent::V4beta1::CreateCompanyRequest, Hash]
181
+ # @param request [::Google::Cloud::Talent::V4beta1::CreateCompanyRequest, ::Hash]
182
182
  # A request object representing the call parameters. Required. To specify no
183
183
  # parameters, or to keep all the default parameter values, pass an empty Hash.
184
- # @param options [Gapic::CallOptions, Hash]
184
+ # @param options [::Gapic::CallOptions, ::Hash]
185
185
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
186
186
  #
187
187
  # @overload create_company(parent: nil, company: nil)
@@ -189,36 +189,36 @@ module Google
189
189
  # least one keyword argument is required. To specify no parameters, or to keep all
190
190
  # the default parameter values, pass an empty Hash as a request object (see above).
191
191
  #
192
- # @param parent [String]
192
+ # @param parent [::String]
193
193
  # Required. Resource name of the tenant under which the company is created.
194
194
  #
195
195
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
196
196
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
197
197
  # is created, for example, "projects/foo".
198
- # @param company [Google::Cloud::Talent::V4beta1::Company, Hash]
198
+ # @param company [::Google::Cloud::Talent::V4beta1::Company, ::Hash]
199
199
  # Required. The company to be created.
200
200
  #
201
201
  # @yield [response, operation] Access the result along with the RPC operation
202
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Company]
203
- # @yieldparam operation [GRPC::ActiveCall::Operation]
202
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Company]
203
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
204
204
  #
205
- # @return [Google::Cloud::Talent::V4beta1::Company]
205
+ # @return [::Google::Cloud::Talent::V4beta1::Company]
206
206
  #
207
- # @raise [Google::Cloud::Error] if the RPC is aborted.
207
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
208
208
  #
209
209
  def create_company request, options = nil
210
- raise ArgumentError, "request must be provided" if request.nil?
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
211
211
 
212
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateCompanyRequest
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateCompanyRequest
213
213
 
214
214
  # Converts hash and nil to an options object
215
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
216
216
 
217
217
  # Customize the options with defaults
218
218
  metadata = @config.rpcs.create_company.metadata.to_h
219
219
 
220
220
  # Set x-goog-api-client and x-goog-user-project headers
221
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
221
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
222
222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
223
223
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
224
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -239,8 +239,8 @@ module Google
239
239
  yield response, operation if block_given?
240
240
  return response
241
241
  end
242
- rescue GRPC::BadStatus => e
243
- raise Google::Cloud::Error.from_error(e)
242
+ rescue ::GRPC::BadStatus => e
243
+ raise ::Google::Cloud::Error.from_error(e)
244
244
  end
245
245
 
246
246
  ##
@@ -248,12 +248,12 @@ module Google
248
248
  #
249
249
  # @overload get_company(request, options = nil)
250
250
  # Pass arguments to `get_company` via a request object, either of type
251
- # {Google::Cloud::Talent::V4beta1::GetCompanyRequest} or an equivalent Hash.
251
+ # {::Google::Cloud::Talent::V4beta1::GetCompanyRequest} or an equivalent Hash.
252
252
  #
253
- # @param request [Google::Cloud::Talent::V4beta1::GetCompanyRequest, Hash]
253
+ # @param request [::Google::Cloud::Talent::V4beta1::GetCompanyRequest, ::Hash]
254
254
  # A request object representing the call parameters. Required. To specify no
255
255
  # parameters, or to keep all the default parameter values, pass an empty Hash.
256
- # @param options [Gapic::CallOptions, Hash]
256
+ # @param options [::Gapic::CallOptions, ::Hash]
257
257
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
258
258
  #
259
259
  # @overload get_company(name: nil)
@@ -261,7 +261,7 @@ module Google
261
261
  # least one keyword argument is required. To specify no parameters, or to keep all
262
262
  # the default parameter values, pass an empty Hash as a request object (see above).
263
263
  #
264
- # @param name [String]
264
+ # @param name [::String]
265
265
  # Required. The resource name of the company to be retrieved.
266
266
  #
267
267
  # The format is
@@ -272,26 +272,26 @@ module Google
272
272
  # example, "projects/api-test-project/companies/bar".
273
273
  #
274
274
  # @yield [response, operation] Access the result along with the RPC operation
275
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Company]
276
- # @yieldparam operation [GRPC::ActiveCall::Operation]
275
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Company]
276
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
277
277
  #
278
- # @return [Google::Cloud::Talent::V4beta1::Company]
278
+ # @return [::Google::Cloud::Talent::V4beta1::Company]
279
279
  #
280
- # @raise [Google::Cloud::Error] if the RPC is aborted.
280
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
281
281
  #
282
282
  def get_company request, options = nil
283
- raise ArgumentError, "request must be provided" if request.nil?
283
+ raise ::ArgumentError, "request must be provided" if request.nil?
284
284
 
285
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetCompanyRequest
285
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetCompanyRequest
286
286
 
287
287
  # Converts hash and nil to an options object
288
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
288
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
289
289
 
290
290
  # Customize the options with defaults
291
291
  metadata = @config.rpcs.get_company.metadata.to_h
292
292
 
293
293
  # Set x-goog-api-client and x-goog-user-project headers
294
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
294
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
295
295
  lib_name: @config.lib_name, lib_version: @config.lib_version,
296
296
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
297
297
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -312,8 +312,8 @@ module Google
312
312
  yield response, operation if block_given?
313
313
  return response
314
314
  end
315
- rescue GRPC::BadStatus => e
316
- raise Google::Cloud::Error.from_error(e)
315
+ rescue ::GRPC::BadStatus => e
316
+ raise ::Google::Cloud::Error.from_error(e)
317
317
  end
318
318
 
319
319
  ##
@@ -321,12 +321,12 @@ module Google
321
321
  #
322
322
  # @overload update_company(request, options = nil)
323
323
  # Pass arguments to `update_company` via a request object, either of type
324
- # {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest} or an equivalent Hash.
324
+ # {::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest} or an equivalent Hash.
325
325
  #
326
- # @param request [Google::Cloud::Talent::V4beta1::UpdateCompanyRequest, Hash]
326
+ # @param request [::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest, ::Hash]
327
327
  # A request object representing the call parameters. Required. To specify no
328
328
  # parameters, or to keep all the default parameter values, pass an empty Hash.
329
- # @param options [Gapic::CallOptions, Hash]
329
+ # @param options [::Gapic::CallOptions, ::Hash]
330
330
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
331
331
  #
332
332
  # @overload update_company(company: nil, update_mask: nil)
@@ -334,38 +334,38 @@ module Google
334
334
  # least one keyword argument is required. To specify no parameters, or to keep all
335
335
  # the default parameter values, pass an empty Hash as a request object (see above).
336
336
  #
337
- # @param company [Google::Cloud::Talent::V4beta1::Company, Hash]
337
+ # @param company [::Google::Cloud::Talent::V4beta1::Company, ::Hash]
338
338
  # Required. The company resource to replace the current resource in the system.
339
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
339
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
340
340
  # Strongly recommended for the best service experience.
341
341
  #
342
- # If {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#update_mask update_mask} is provided, only the specified fields in
343
- # {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#company company} are updated. Otherwise all the fields are updated.
342
+ # If {::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#update_mask update_mask} is provided, only the specified fields in
343
+ # {::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#company company} are updated. Otherwise all the fields are updated.
344
344
  #
345
345
  # A field mask to specify the company fields to be updated. Only
346
- # top level fields of {Google::Cloud::Talent::V4beta1::Company Company} are supported.
346
+ # top level fields of {::Google::Cloud::Talent::V4beta1::Company Company} are supported.
347
347
  #
348
348
  # @yield [response, operation] Access the result along with the RPC operation
349
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Company]
350
- # @yieldparam operation [GRPC::ActiveCall::Operation]
349
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Company]
350
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
351
351
  #
352
- # @return [Google::Cloud::Talent::V4beta1::Company]
352
+ # @return [::Google::Cloud::Talent::V4beta1::Company]
353
353
  #
354
- # @raise [Google::Cloud::Error] if the RPC is aborted.
354
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
355
355
  #
356
356
  def update_company request, options = nil
357
- raise ArgumentError, "request must be provided" if request.nil?
357
+ raise ::ArgumentError, "request must be provided" if request.nil?
358
358
 
359
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateCompanyRequest
359
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest
360
360
 
361
361
  # Converts hash and nil to an options object
362
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
362
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
363
363
 
364
364
  # Customize the options with defaults
365
365
  metadata = @config.rpcs.update_company.metadata.to_h
366
366
 
367
367
  # Set x-goog-api-client and x-goog-user-project headers
368
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
368
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
370
370
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
371
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -386,8 +386,8 @@ module Google
386
386
  yield response, operation if block_given?
387
387
  return response
388
388
  end
389
- rescue GRPC::BadStatus => e
390
- raise Google::Cloud::Error.from_error(e)
389
+ rescue ::GRPC::BadStatus => e
390
+ raise ::Google::Cloud::Error.from_error(e)
391
391
  end
392
392
 
393
393
  ##
@@ -396,12 +396,12 @@ module Google
396
396
  #
397
397
  # @overload delete_company(request, options = nil)
398
398
  # Pass arguments to `delete_company` via a request object, either of type
399
- # {Google::Cloud::Talent::V4beta1::DeleteCompanyRequest} or an equivalent Hash.
399
+ # {::Google::Cloud::Talent::V4beta1::DeleteCompanyRequest} or an equivalent Hash.
400
400
  #
401
- # @param request [Google::Cloud::Talent::V4beta1::DeleteCompanyRequest, Hash]
401
+ # @param request [::Google::Cloud::Talent::V4beta1::DeleteCompanyRequest, ::Hash]
402
402
  # A request object representing the call parameters. Required. To specify no
403
403
  # parameters, or to keep all the default parameter values, pass an empty Hash.
404
- # @param options [Gapic::CallOptions, Hash]
404
+ # @param options [::Gapic::CallOptions, ::Hash]
405
405
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
406
406
  #
407
407
  # @overload delete_company(name: nil)
@@ -409,7 +409,7 @@ module Google
409
409
  # least one keyword argument is required. To specify no parameters, or to keep all
410
410
  # the default parameter values, pass an empty Hash as a request object (see above).
411
411
  #
412
- # @param name [String]
412
+ # @param name [::String]
413
413
  # Required. The resource name of the company to be deleted.
414
414
  #
415
415
  # The format is
@@ -420,26 +420,26 @@ module Google
420
420
  # example, "projects/foo/companies/bar".
421
421
  #
422
422
  # @yield [response, operation] Access the result along with the RPC operation
423
- # @yieldparam response [Google::Protobuf::Empty]
424
- # @yieldparam operation [GRPC::ActiveCall::Operation]
423
+ # @yieldparam response [::Google::Protobuf::Empty]
424
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
425
425
  #
426
- # @return [Google::Protobuf::Empty]
426
+ # @return [::Google::Protobuf::Empty]
427
427
  #
428
- # @raise [Google::Cloud::Error] if the RPC is aborted.
428
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
429
429
  #
430
430
  def delete_company request, options = nil
431
- raise ArgumentError, "request must be provided" if request.nil?
431
+ raise ::ArgumentError, "request must be provided" if request.nil?
432
432
 
433
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteCompanyRequest
433
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteCompanyRequest
434
434
 
435
435
  # Converts hash and nil to an options object
436
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
436
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
437
437
 
438
438
  # Customize the options with defaults
439
439
  metadata = @config.rpcs.delete_company.metadata.to_h
440
440
 
441
441
  # Set x-goog-api-client and x-goog-user-project headers
442
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
442
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
443
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
444
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
445
445
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -460,8 +460,8 @@ module Google
460
460
  yield response, operation if block_given?
461
461
  return response
462
462
  end
463
- rescue GRPC::BadStatus => e
464
- raise Google::Cloud::Error.from_error(e)
463
+ rescue ::GRPC::BadStatus => e
464
+ raise ::Google::Cloud::Error.from_error(e)
465
465
  end
466
466
 
467
467
  ##
@@ -469,12 +469,12 @@ module Google
469
469
  #
470
470
  # @overload list_companies(request, options = nil)
471
471
  # Pass arguments to `list_companies` via a request object, either of type
472
- # {Google::Cloud::Talent::V4beta1::ListCompaniesRequest} or an equivalent Hash.
472
+ # {::Google::Cloud::Talent::V4beta1::ListCompaniesRequest} or an equivalent Hash.
473
473
  #
474
- # @param request [Google::Cloud::Talent::V4beta1::ListCompaniesRequest, Hash]
474
+ # @param request [::Google::Cloud::Talent::V4beta1::ListCompaniesRequest, ::Hash]
475
475
  # A request object representing the call parameters. Required. To specify no
476
476
  # parameters, or to keep all the default parameter values, pass an empty Hash.
477
- # @param options [Gapic::CallOptions, Hash]
477
+ # @param options [::Gapic::CallOptions, ::Hash]
478
478
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
479
479
  #
480
480
  # @overload list_companies(parent: nil, page_token: nil, page_size: nil, require_open_jobs: nil)
@@ -482,7 +482,7 @@ module Google
482
482
  # least one keyword argument is required. To specify no parameters, or to keep all
483
483
  # the default parameter values, pass an empty Hash as a request object (see above).
484
484
  #
485
- # @param parent [String]
485
+ # @param parent [::String]
486
486
  # Required. Resource name of the tenant under which the company is created.
487
487
  #
488
488
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
@@ -490,40 +490,40 @@ module Google
490
490
  #
491
491
  # If tenant id is unspecified, the default tenant will be used, for
492
492
  # example, "projects/foo".
493
- # @param page_token [String]
493
+ # @param page_token [::String]
494
494
  # The starting indicator from which to return results.
495
- # @param page_size [Integer]
495
+ # @param page_size [::Integer]
496
496
  # The maximum number of companies to be returned, at most 100.
497
497
  # Default is 100 if a non-positive number is provided.
498
- # @param require_open_jobs [Boolean]
498
+ # @param require_open_jobs [::Boolean]
499
499
  # Set to true if the companies requested must have open jobs.
500
500
  #
501
501
  # Defaults to false.
502
502
  #
503
- # If true, at most {Google::Cloud::Talent::V4beta1::ListCompaniesRequest#page_size page_size} of companies are fetched, among which
503
+ # If true, at most {::Google::Cloud::Talent::V4beta1::ListCompaniesRequest#page_size page_size} of companies are fetched, among which
504
504
  # only those with open jobs are returned.
505
505
  #
506
506
  # @yield [response, operation] Access the result along with the RPC operation
507
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Company>]
508
- # @yieldparam operation [GRPC::ActiveCall::Operation]
507
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Company>]
508
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
509
509
  #
510
- # @return [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Company>]
510
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Company>]
511
511
  #
512
- # @raise [Google::Cloud::Error] if the RPC is aborted.
512
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
513
513
  #
514
514
  def list_companies request, options = nil
515
- raise ArgumentError, "request must be provided" if request.nil?
515
+ raise ::ArgumentError, "request must be provided" if request.nil?
516
516
 
517
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListCompaniesRequest
517
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListCompaniesRequest
518
518
 
519
519
  # Converts hash and nil to an options object
520
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
520
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
521
521
 
522
522
  # Customize the options with defaults
523
523
  metadata = @config.rpcs.list_companies.metadata.to_h
524
524
 
525
525
  # Set x-goog-api-client and x-goog-user-project headers
526
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
526
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
527
527
  lib_name: @config.lib_name, lib_version: @config.lib_version,
528
528
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
529
529
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -541,12 +541,12 @@ module Google
541
541
  retry_policy: @config.retry_policy
542
542
 
543
543
  @company_service_stub.call_rpc :list_companies, request, options: options do |response, operation|
544
- response = Gapic::PagedEnumerable.new @company_service_stub, :list_companies, request, response, operation, options
544
+ response = ::Gapic::PagedEnumerable.new @company_service_stub, :list_companies, request, response, operation, options
545
545
  yield response, operation if block_given?
546
546
  return response
547
547
  end
548
- rescue GRPC::BadStatus => e
549
- raise Google::Cloud::Error.from_error(e)
548
+ rescue ::GRPC::BadStatus => e
549
+ raise ::Google::Cloud::Error.from_error(e)
550
550
  end
551
551
 
552
552
  ##
@@ -556,7 +556,7 @@ module Google
556
556
  # providing control over timeouts, retry behavior, logging, transport
557
557
  # parameters, and other low-level controls. Certain parameters can also be
558
558
  # applied individually to specific RPCs. See
559
- # {Google::Cloud::Talent::V4beta1::CompanyService::Client::Configuration::Rpcs}
559
+ # {::Google::Cloud::Talent::V4beta1::CompanyService::Client::Configuration::Rpcs}
560
560
  # for a list of RPCs that can be configured independently.
561
561
  #
562
562
  # Configuration can be applied globally to all clients, or to a single client
@@ -567,22 +567,22 @@ module Google
567
567
  # To modify the global config, setting the timeout for create_company
568
568
  # to 20 seconds, and all remaining timeouts to 10 seconds:
569
569
  #
570
- # Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
571
- # config.timeout = 10_000
572
- # config.rpcs.create_company.timeout = 20_000
570
+ # ::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
571
+ # config.timeout = 10.0
572
+ # config.rpcs.create_company.timeout = 20.0
573
573
  # end
574
574
  #
575
575
  # To apply the above configuration only to a new client:
576
576
  #
577
- # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
578
- # config.timeout = 10_000
579
- # config.rpcs.create_company.timeout = 20_000
577
+ # client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
578
+ # config.timeout = 10.0
579
+ # config.rpcs.create_company.timeout = 20.0
580
580
  # end
581
581
  #
582
582
  # @!attribute [rw] endpoint
583
583
  # The hostname or hostname:port of the service endpoint.
584
584
  # Defaults to `"jobs.googleapis.com"`.
585
- # @return [String]
585
+ # @return [::String]
586
586
  # @!attribute [rw] credentials
587
587
  # Credentials to send with calls. You may provide any of the following types:
588
588
  # * (`String`) The path to a service account key file in JSON format
@@ -594,29 +594,29 @@ module Google
594
594
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
595
595
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
596
596
  # * (`nil`) indicating no credentials
597
- # @return [Object]
597
+ # @return [::Object]
598
598
  # @!attribute [rw] scope
599
599
  # The OAuth scopes
600
- # @return [Array<String>]
600
+ # @return [::Array<::String>]
601
601
  # @!attribute [rw] lib_name
602
602
  # The library name as recorded in instrumentation and logging
603
- # @return [String]
603
+ # @return [::String]
604
604
  # @!attribute [rw] lib_version
605
605
  # The library version as recorded in instrumentation and logging
606
- # @return [String]
606
+ # @return [::String]
607
607
  # @!attribute [rw] channel_args
608
608
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
609
609
  # `GRPC::Core::Channel` object is provided as the credential.
610
- # @return [Hash]
610
+ # @return [::Hash]
611
611
  # @!attribute [rw] interceptors
612
612
  # An array of interceptors that are run before calls are executed.
613
- # @return [Array<GRPC::ClientInterceptor>]
613
+ # @return [::Array<::GRPC::ClientInterceptor>]
614
614
  # @!attribute [rw] timeout
615
- # The call timeout in milliseconds.
616
- # @return [Numeric]
615
+ # The call timeout in seconds.
616
+ # @return [::Numeric]
617
617
  # @!attribute [rw] metadata
618
618
  # Additional gRPC headers to be sent with the call.
619
- # @return [Hash{Symbol=>String}]
619
+ # @return [::Hash{::Symbol=>::String}]
620
620
  # @!attribute [rw] retry_policy
621
621
  # The retry policy. The value is a hash with the following keys:
622
622
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -624,10 +624,10 @@ module Google
624
624
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
625
625
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
626
626
  # trigger a retry.
627
- # @return [Hash]
627
+ # @return [::Hash]
628
628
  #
629
629
  class Configuration
630
- extend Gapic::Config
630
+ extend ::Gapic::Config
631
631
 
632
632
  config_attr :endpoint, "jobs.googleapis.com", String
633
633
  config_attr :credentials, nil do |value|
@@ -635,14 +635,14 @@ module Google
635
635
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
636
636
  allowed.any? { |klass| klass === value }
637
637
  end
638
- config_attr :scope, nil, String, Array, nil
639
- config_attr :lib_name, nil, String, nil
640
- config_attr :lib_version, nil, String, nil
641
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
642
- config_attr :interceptors, nil, Array, nil
643
- config_attr :timeout, nil, Numeric, nil
644
- config_attr :metadata, nil, Hash, nil
645
- config_attr :retry_policy, nil, Hash, Proc, nil
638
+ config_attr :scope, nil, ::String, ::Array, nil
639
+ config_attr :lib_name, nil, ::String, nil
640
+ config_attr :lib_version, nil, ::String, nil
641
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
642
+ config_attr :interceptors, nil, ::Array, nil
643
+ config_attr :timeout, nil, ::Numeric, nil
644
+ config_attr :metadata, nil, ::Hash, nil
645
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
646
646
 
647
647
  # @private
648
648
  def initialize parent_config = nil
@@ -683,42 +683,42 @@ module Google
683
683
  class Rpcs
684
684
  ##
685
685
  # RPC-specific configuration for `create_company`
686
- # @return [Gapic::Config::Method]
686
+ # @return [::Gapic::Config::Method]
687
687
  #
688
688
  attr_reader :create_company
689
689
  ##
690
690
  # RPC-specific configuration for `get_company`
691
- # @return [Gapic::Config::Method]
691
+ # @return [::Gapic::Config::Method]
692
692
  #
693
693
  attr_reader :get_company
694
694
  ##
695
695
  # RPC-specific configuration for `update_company`
696
- # @return [Gapic::Config::Method]
696
+ # @return [::Gapic::Config::Method]
697
697
  #
698
698
  attr_reader :update_company
699
699
  ##
700
700
  # RPC-specific configuration for `delete_company`
701
- # @return [Gapic::Config::Method]
701
+ # @return [::Gapic::Config::Method]
702
702
  #
703
703
  attr_reader :delete_company
704
704
  ##
705
705
  # RPC-specific configuration for `list_companies`
706
- # @return [Gapic::Config::Method]
706
+ # @return [::Gapic::Config::Method]
707
707
  #
708
708
  attr_reader :list_companies
709
709
 
710
710
  # @private
711
711
  def initialize parent_rpcs = nil
712
712
  create_company_config = parent_rpcs&.create_company if parent_rpcs&.respond_to? :create_company
713
- @create_company = Gapic::Config::Method.new create_company_config
713
+ @create_company = ::Gapic::Config::Method.new create_company_config
714
714
  get_company_config = parent_rpcs&.get_company if parent_rpcs&.respond_to? :get_company
715
- @get_company = Gapic::Config::Method.new get_company_config
715
+ @get_company = ::Gapic::Config::Method.new get_company_config
716
716
  update_company_config = parent_rpcs&.update_company if parent_rpcs&.respond_to? :update_company
717
- @update_company = Gapic::Config::Method.new update_company_config
717
+ @update_company = ::Gapic::Config::Method.new update_company_config
718
718
  delete_company_config = parent_rpcs&.delete_company if parent_rpcs&.respond_to? :delete_company
719
- @delete_company = Gapic::Config::Method.new delete_company_config
719
+ @delete_company = ::Gapic::Config::Method.new delete_company_config
720
720
  list_companies_config = parent_rpcs&.list_companies if parent_rpcs&.respond_to? :list_companies
721
- @list_companies = Gapic::Config::Method.new list_companies_config
721
+ @list_companies = ::Gapic::Config::Method.new list_companies_config
722
722
 
723
723
  yield self if block_given?
724
724
  end