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 CompanyService
26
26
  # Credentials for the CompanyService 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"
@@ -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
 
@@ -74,7 +74,7 @@ module Google
74
74
  #
75
75
  # @param project [String]
76
76
  #
77
- # @return [String]
77
+ # @return [::String]
78
78
  def project_path project:
79
79
  "projects/#{project}"
80
80
  end
@@ -89,9 +89,9 @@ module Google
89
89
  # @param project [String]
90
90
  # @param tenant [String]
91
91
  #
92
- # @return [String]
92
+ # @return [::String]
93
93
  def tenant_path project:, tenant:
94
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
94
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
95
95
 
96
96
  "projects/#{project}/tenants/#{tenant}"
97
97
  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/completion"
39
- # client = Google::Cloud::Talent::V4beta1::Completion::Client.new
39
+ # client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new
40
40
  #
41
41
  module Completion
42
42
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the Completion Client class.
40
40
  #
41
- # See {Google::Cloud::Talent::V4beta1::Completion::Client::Configuration}
41
+ # See {::Google::Cloud::Talent::V4beta1::Completion::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 Completion clients:
47
47
  #
48
- # Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -86,7 +86,7 @@ module Google
86
86
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
87
87
  # should be made on {Client.configure}.
88
88
  #
89
- # See {Google::Cloud::Talent::V4beta1::Completion::Client::Configuration}
89
+ # See {::Google::Cloud::Talent::V4beta1::Completion::Client::Configuration}
90
90
  # for a description of the configuration fields.
91
91
  #
92
92
  # @yield [config] Configure the Client client.
@@ -107,13 +107,13 @@ module Google
107
107
  # To create a new Completion client with the default
108
108
  # configuration:
109
109
  #
110
- # client = Google::Cloud::Talent::V4beta1::Completion::Client.new
110
+ # client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new
111
111
  #
112
112
  # To create a new Completion client with a custom
113
113
  # configuration:
114
114
  #
115
- # client = Google::Cloud::Talent::V4beta1::Completion::Client.new do |config|
116
- # config.timeout = 10_000
115
+ # client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new do |config|
116
+ # config.timeout = 10.0
117
117
  # end
118
118
  #
119
119
  # @yield [config] Configure the Completion client.
@@ -140,8 +140,8 @@ module Google
140
140
  end
141
141
  @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
142
142
 
143
- @completion_stub = Gapic::ServiceStub.new(
144
- Google::Cloud::Talent::V4beta1::Completion::Stub,
143
+ @completion_stub = ::Gapic::ServiceStub.new(
144
+ ::Google::Cloud::Talent::V4beta1::Completion::Stub,
145
145
  credentials: credentials,
146
146
  endpoint: @config.endpoint,
147
147
  channel_args: @config.channel_args,
@@ -157,12 +157,12 @@ module Google
157
157
  #
158
158
  # @overload complete_query(request, options = nil)
159
159
  # Pass arguments to `complete_query` via a request object, either of type
160
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest} or an equivalent Hash.
160
+ # {::Google::Cloud::Talent::V4beta1::CompleteQueryRequest} or an equivalent Hash.
161
161
  #
162
- # @param request [Google::Cloud::Talent::V4beta1::CompleteQueryRequest, Hash]
162
+ # @param request [::Google::Cloud::Talent::V4beta1::CompleteQueryRequest, ::Hash]
163
163
  # A request object representing the call parameters. Required. To specify no
164
164
  # parameters, or to keep all the default parameter values, pass an empty Hash.
165
- # @param options [Gapic::CallOptions, Hash]
165
+ # @param options [::Gapic::CallOptions, ::Hash]
166
166
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
167
167
  #
168
168
  # @overload complete_query(parent: nil, query: nil, language_codes: nil, page_size: nil, company: nil, scope: nil, type: nil)
@@ -170,7 +170,7 @@ module Google
170
170
  # least one keyword argument is required. To specify no parameters, or to keep all
171
171
  # the default parameter values, pass an empty Hash as a request object (see above).
172
172
  #
173
- # @param parent [String]
173
+ # @param parent [::String]
174
174
  # Required. Resource name of tenant the completion is performed within.
175
175
  #
176
176
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
@@ -178,22 +178,22 @@ module Google
178
178
  #
179
179
  # If tenant id is unspecified, the default tenant is used, for
180
180
  # example, "projects/foo".
181
- # @param query [String]
181
+ # @param query [::String]
182
182
  # Required. The query used to generate suggestions.
183
183
  #
184
184
  # The maximum number of allowed characters is 255.
185
- # @param language_codes [Array<String>]
185
+ # @param language_codes [::Array<::String>]
186
186
  # The list of languages of the query. This is
187
187
  # the BCP-47 language code, such as "en-US" or "sr-Latn".
188
188
  # For more information, see
189
189
  # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
190
190
  #
191
191
  # The maximum number of allowed characters is 255.
192
- # @param page_size [Integer]
192
+ # @param page_size [::Integer]
193
193
  # Required. Completion result count.
194
194
  #
195
195
  # The maximum allowed page size is 10.
196
- # @param company [String]
196
+ # @param company [::String]
197
197
  # If provided, restricts completion to specified company.
198
198
  #
199
199
  # The format is
@@ -202,32 +202,32 @@ module Google
202
202
  #
203
203
  # If tenant id is unspecified, the default tenant is used, for
204
204
  # example, "projects/foo".
205
- # @param scope [Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope]
206
- # The scope of the completion. The defaults is {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC CompletionScope.PUBLIC}.
207
- # @param type [Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType]
208
- # The completion topic. The default is {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED}.
205
+ # @param scope [::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope]
206
+ # The scope of the completion. The defaults is {::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC CompletionScope.PUBLIC}.
207
+ # @param type [::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType]
208
+ # The completion topic. The default is {::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED}.
209
209
  #
210
210
  # @yield [response, operation] Access the result along with the RPC operation
211
- # @yieldparam response [Google::Cloud::Talent::V4beta1::CompleteQueryResponse]
212
- # @yieldparam operation [GRPC::ActiveCall::Operation]
211
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::CompleteQueryResponse]
212
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
213
213
  #
214
- # @return [Google::Cloud::Talent::V4beta1::CompleteQueryResponse]
214
+ # @return [::Google::Cloud::Talent::V4beta1::CompleteQueryResponse]
215
215
  #
216
- # @raise [Google::Cloud::Error] if the RPC is aborted.
216
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
217
  #
218
218
  def complete_query request, options = nil
219
- raise ArgumentError, "request must be provided" if request.nil?
219
+ raise ::ArgumentError, "request must be provided" if request.nil?
220
220
 
221
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CompleteQueryRequest
221
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CompleteQueryRequest
222
222
 
223
223
  # Converts hash and nil to an options object
224
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
224
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
225
225
 
226
226
  # Customize the options with defaults
227
227
  metadata = @config.rpcs.complete_query.metadata.to_h
228
228
 
229
229
  # Set x-goog-api-client and x-goog-user-project headers
230
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
230
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
231
231
  lib_name: @config.lib_name, lib_version: @config.lib_version,
232
232
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
233
233
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -248,8 +248,8 @@ module Google
248
248
  yield response, operation if block_given?
249
249
  return response
250
250
  end
251
- rescue GRPC::BadStatus => e
252
- raise Google::Cloud::Error.from_error(e)
251
+ rescue ::GRPC::BadStatus => e
252
+ raise ::Google::Cloud::Error.from_error(e)
253
253
  end
254
254
 
255
255
  ##
@@ -259,7 +259,7 @@ module Google
259
259
  # providing control over timeouts, retry behavior, logging, transport
260
260
  # parameters, and other low-level controls. Certain parameters can also be
261
261
  # applied individually to specific RPCs. See
262
- # {Google::Cloud::Talent::V4beta1::Completion::Client::Configuration::Rpcs}
262
+ # {::Google::Cloud::Talent::V4beta1::Completion::Client::Configuration::Rpcs}
263
263
  # for a list of RPCs that can be configured independently.
264
264
  #
265
265
  # Configuration can be applied globally to all clients, or to a single client
@@ -270,22 +270,22 @@ module Google
270
270
  # To modify the global config, setting the timeout for complete_query
271
271
  # to 20 seconds, and all remaining timeouts to 10 seconds:
272
272
  #
273
- # Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
274
- # config.timeout = 10_000
275
- # config.rpcs.complete_query.timeout = 20_000
273
+ # ::Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
274
+ # config.timeout = 10.0
275
+ # config.rpcs.complete_query.timeout = 20.0
276
276
  # end
277
277
  #
278
278
  # To apply the above configuration only to a new client:
279
279
  #
280
- # client = Google::Cloud::Talent::V4beta1::Completion::Client.new do |config|
281
- # config.timeout = 10_000
282
- # config.rpcs.complete_query.timeout = 20_000
280
+ # client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new do |config|
281
+ # config.timeout = 10.0
282
+ # config.rpcs.complete_query.timeout = 20.0
283
283
  # end
284
284
  #
285
285
  # @!attribute [rw] endpoint
286
286
  # The hostname or hostname:port of the service endpoint.
287
287
  # Defaults to `"jobs.googleapis.com"`.
288
- # @return [String]
288
+ # @return [::String]
289
289
  # @!attribute [rw] credentials
290
290
  # Credentials to send with calls. You may provide any of the following types:
291
291
  # * (`String`) The path to a service account key file in JSON format
@@ -297,29 +297,29 @@ module Google
297
297
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
298
298
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
299
299
  # * (`nil`) indicating no credentials
300
- # @return [Object]
300
+ # @return [::Object]
301
301
  # @!attribute [rw] scope
302
302
  # The OAuth scopes
303
- # @return [Array<String>]
303
+ # @return [::Array<::String>]
304
304
  # @!attribute [rw] lib_name
305
305
  # The library name as recorded in instrumentation and logging
306
- # @return [String]
306
+ # @return [::String]
307
307
  # @!attribute [rw] lib_version
308
308
  # The library version as recorded in instrumentation and logging
309
- # @return [String]
309
+ # @return [::String]
310
310
  # @!attribute [rw] channel_args
311
311
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
312
312
  # `GRPC::Core::Channel` object is provided as the credential.
313
- # @return [Hash]
313
+ # @return [::Hash]
314
314
  # @!attribute [rw] interceptors
315
315
  # An array of interceptors that are run before calls are executed.
316
- # @return [Array<GRPC::ClientInterceptor>]
316
+ # @return [::Array<::GRPC::ClientInterceptor>]
317
317
  # @!attribute [rw] timeout
318
- # The call timeout in milliseconds.
319
- # @return [Numeric]
318
+ # The call timeout in seconds.
319
+ # @return [::Numeric]
320
320
  # @!attribute [rw] metadata
321
321
  # Additional gRPC headers to be sent with the call.
322
- # @return [Hash{Symbol=>String}]
322
+ # @return [::Hash{::Symbol=>::String}]
323
323
  # @!attribute [rw] retry_policy
324
324
  # The retry policy. The value is a hash with the following keys:
325
325
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -327,10 +327,10 @@ module Google
327
327
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
328
328
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
329
329
  # trigger a retry.
330
- # @return [Hash]
330
+ # @return [::Hash]
331
331
  #
332
332
  class Configuration
333
- extend Gapic::Config
333
+ extend ::Gapic::Config
334
334
 
335
335
  config_attr :endpoint, "jobs.googleapis.com", String
336
336
  config_attr :credentials, nil do |value|
@@ -338,14 +338,14 @@ module Google
338
338
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
339
339
  allowed.any? { |klass| klass === value }
340
340
  end
341
- config_attr :scope, nil, String, Array, nil
342
- config_attr :lib_name, nil, String, nil
343
- config_attr :lib_version, nil, String, nil
344
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
345
- config_attr :interceptors, nil, Array, nil
346
- config_attr :timeout, nil, Numeric, nil
347
- config_attr :metadata, nil, Hash, nil
348
- config_attr :retry_policy, nil, Hash, Proc, nil
341
+ config_attr :scope, nil, ::String, ::Array, nil
342
+ config_attr :lib_name, nil, ::String, nil
343
+ config_attr :lib_version, nil, ::String, nil
344
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
345
+ config_attr :interceptors, nil, ::Array, nil
346
+ config_attr :timeout, nil, ::Numeric, nil
347
+ config_attr :metadata, nil, ::Hash, nil
348
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
349
349
 
350
350
  # @private
351
351
  def initialize parent_config = nil
@@ -386,14 +386,14 @@ module Google
386
386
  class Rpcs
387
387
  ##
388
388
  # RPC-specific configuration for `complete_query`
389
- # @return [Gapic::Config::Method]
389
+ # @return [::Gapic::Config::Method]
390
390
  #
391
391
  attr_reader :complete_query
392
392
 
393
393
  # @private
394
394
  def initialize parent_rpcs = nil
395
395
  complete_query_config = parent_rpcs&.complete_query if parent_rpcs&.respond_to? :complete_query
396
- @complete_query = Gapic::Config::Method.new complete_query_config
396
+ @complete_query = ::Gapic::Config::Method.new complete_query_config
397
397
 
398
398
  yield self if block_given?
399
399
  end
@@ -24,7 +24,7 @@ module Google
24
24
  module V4beta1
25
25
  module Completion
26
26
  # Credentials for the Completion 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"
@@ -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
 
@@ -74,7 +74,7 @@ module Google
74
74
  #
75
75
  # @param project [String]
76
76
  #
77
- # @return [String]
77
+ # @return [::String]
78
78
  def project_path project:
79
79
  "projects/#{project}"
80
80
  end
@@ -89,9 +89,9 @@ module Google
89
89
  # @param project [String]
90
90
  # @param tenant [String]
91
91
  #
92
- # @return [String]
92
+ # @return [::String]
93
93
  def tenant_path project:, tenant:
94
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
94
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
95
95
 
96
96
  "projects/#{project}/tenants/#{tenant}"
97
97
  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/event_service"
39
- # client = Google::Cloud::Talent::V4beta1::EventService::Client.new
39
+ # client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new
40
40
  #
41
41
  module EventService
42
42
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the EventService Client class.
40
40
  #
41
- # See {Google::Cloud::Talent::V4beta1::EventService::Client::Configuration}
41
+ # See {::Google::Cloud::Talent::V4beta1::EventService::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 EventService clients:
47
47
  #
48
- # Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -80,7 +80,7 @@ module Google
80
80
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
81
81
  # should be made on {Client.configure}.
82
82
  #
83
- # See {Google::Cloud::Talent::V4beta1::EventService::Client::Configuration}
83
+ # See {::Google::Cloud::Talent::V4beta1::EventService::Client::Configuration}
84
84
  # for a description of the configuration fields.
85
85
  #
86
86
  # @yield [config] Configure the Client client.
@@ -101,13 +101,13 @@ module Google
101
101
  # To create a new EventService client with the default
102
102
  # configuration:
103
103
  #
104
- # client = Google::Cloud::Talent::V4beta1::EventService::Client.new
104
+ # client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new
105
105
  #
106
106
  # To create a new EventService client with a custom
107
107
  # configuration:
108
108
  #
109
- # client = Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
110
- # config.timeout = 10_000
109
+ # client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
110
+ # config.timeout = 10.0
111
111
  # end
112
112
  #
113
113
  # @yield [config] Configure the EventService client.
@@ -134,8 +134,8 @@ module Google
134
134
  end
135
135
  @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
136
136
 
137
- @event_service_stub = Gapic::ServiceStub.new(
138
- Google::Cloud::Talent::V4beta1::EventService::Stub,
137
+ @event_service_stub = ::Gapic::ServiceStub.new(
138
+ ::Google::Cloud::Talent::V4beta1::EventService::Stub,
139
139
  credentials: credentials,
140
140
  endpoint: @config.endpoint,
141
141
  channel_args: @config.channel_args,
@@ -156,12 +156,12 @@ module Google
156
156
  #
157
157
  # @overload create_client_event(request, options = nil)
158
158
  # Pass arguments to `create_client_event` via a request object, either of type
159
- # {Google::Cloud::Talent::V4beta1::CreateClientEventRequest} or an equivalent Hash.
159
+ # {::Google::Cloud::Talent::V4beta1::CreateClientEventRequest} or an equivalent Hash.
160
160
  #
161
- # @param request [Google::Cloud::Talent::V4beta1::CreateClientEventRequest, Hash]
161
+ # @param request [::Google::Cloud::Talent::V4beta1::CreateClientEventRequest, ::Hash]
162
162
  # A request object representing the call parameters. Required. To specify no
163
163
  # parameters, or to keep all the default parameter values, pass an empty Hash.
164
- # @param options [Gapic::CallOptions, Hash]
164
+ # @param options [::Gapic::CallOptions, ::Hash]
165
165
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
166
166
  #
167
167
  # @overload create_client_event(parent: nil, client_event: nil)
@@ -169,37 +169,37 @@ module Google
169
169
  # least one keyword argument is required. To specify no parameters, or to keep all
170
170
  # the default parameter values, pass an empty Hash as a request object (see above).
171
171
  #
172
- # @param parent [String]
172
+ # @param parent [::String]
173
173
  # Required. Resource name of the tenant under which the event is created.
174
174
  #
175
175
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
176
176
  # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
177
177
  # is created, for example, "projects/foo".
178
- # @param client_event [Google::Cloud::Talent::V4beta1::ClientEvent, Hash]
178
+ # @param client_event [::Google::Cloud::Talent::V4beta1::ClientEvent, ::Hash]
179
179
  # Required. Events issued when end user interacts with customer's application that
180
180
  # uses Cloud Talent Solution.
181
181
  #
182
182
  # @yield [response, operation] Access the result along with the RPC operation
183
- # @yieldparam response [Google::Cloud::Talent::V4beta1::ClientEvent]
184
- # @yieldparam operation [GRPC::ActiveCall::Operation]
183
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::ClientEvent]
184
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
185
185
  #
186
- # @return [Google::Cloud::Talent::V4beta1::ClientEvent]
186
+ # @return [::Google::Cloud::Talent::V4beta1::ClientEvent]
187
187
  #
188
- # @raise [Google::Cloud::Error] if the RPC is aborted.
188
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
189
189
  #
190
190
  def create_client_event request, options = nil
191
- raise ArgumentError, "request must be provided" if request.nil?
191
+ raise ::ArgumentError, "request must be provided" if request.nil?
192
192
 
193
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateClientEventRequest
193
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateClientEventRequest
194
194
 
195
195
  # Converts hash and nil to an options object
196
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
196
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
197
197
 
198
198
  # Customize the options with defaults
199
199
  metadata = @config.rpcs.create_client_event.metadata.to_h
200
200
 
201
201
  # Set x-goog-api-client and x-goog-user-project headers
202
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
202
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
203
203
  lib_name: @config.lib_name, lib_version: @config.lib_version,
204
204
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
205
205
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -220,8 +220,8 @@ module Google
220
220
  yield response, operation if block_given?
221
221
  return response
222
222
  end
223
- rescue GRPC::BadStatus => e
224
- raise Google::Cloud::Error.from_error(e)
223
+ rescue ::GRPC::BadStatus => e
224
+ raise ::Google::Cloud::Error.from_error(e)
225
225
  end
226
226
 
227
227
  ##
@@ -231,7 +231,7 @@ module Google
231
231
  # providing control over timeouts, retry behavior, logging, transport
232
232
  # parameters, and other low-level controls. Certain parameters can also be
233
233
  # applied individually to specific RPCs. See
234
- # {Google::Cloud::Talent::V4beta1::EventService::Client::Configuration::Rpcs}
234
+ # {::Google::Cloud::Talent::V4beta1::EventService::Client::Configuration::Rpcs}
235
235
  # for a list of RPCs that can be configured independently.
236
236
  #
237
237
  # Configuration can be applied globally to all clients, or to a single client
@@ -242,22 +242,22 @@ module Google
242
242
  # To modify the global config, setting the timeout for create_client_event
243
243
  # to 20 seconds, and all remaining timeouts to 10 seconds:
244
244
  #
245
- # Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
246
- # config.timeout = 10_000
247
- # config.rpcs.create_client_event.timeout = 20_000
245
+ # ::Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
246
+ # config.timeout = 10.0
247
+ # config.rpcs.create_client_event.timeout = 20.0
248
248
  # end
249
249
  #
250
250
  # To apply the above configuration only to a new client:
251
251
  #
252
- # client = Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
253
- # config.timeout = 10_000
254
- # config.rpcs.create_client_event.timeout = 20_000
252
+ # client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
253
+ # config.timeout = 10.0
254
+ # config.rpcs.create_client_event.timeout = 20.0
255
255
  # end
256
256
  #
257
257
  # @!attribute [rw] endpoint
258
258
  # The hostname or hostname:port of the service endpoint.
259
259
  # Defaults to `"jobs.googleapis.com"`.
260
- # @return [String]
260
+ # @return [::String]
261
261
  # @!attribute [rw] credentials
262
262
  # Credentials to send with calls. You may provide any of the following types:
263
263
  # * (`String`) The path to a service account key file in JSON format
@@ -269,29 +269,29 @@ module Google
269
269
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
270
270
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
271
271
  # * (`nil`) indicating no credentials
272
- # @return [Object]
272
+ # @return [::Object]
273
273
  # @!attribute [rw] scope
274
274
  # The OAuth scopes
275
- # @return [Array<String>]
275
+ # @return [::Array<::String>]
276
276
  # @!attribute [rw] lib_name
277
277
  # The library name as recorded in instrumentation and logging
278
- # @return [String]
278
+ # @return [::String]
279
279
  # @!attribute [rw] lib_version
280
280
  # The library version as recorded in instrumentation and logging
281
- # @return [String]
281
+ # @return [::String]
282
282
  # @!attribute [rw] channel_args
283
283
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
284
284
  # `GRPC::Core::Channel` object is provided as the credential.
285
- # @return [Hash]
285
+ # @return [::Hash]
286
286
  # @!attribute [rw] interceptors
287
287
  # An array of interceptors that are run before calls are executed.
288
- # @return [Array<GRPC::ClientInterceptor>]
288
+ # @return [::Array<::GRPC::ClientInterceptor>]
289
289
  # @!attribute [rw] timeout
290
- # The call timeout in milliseconds.
291
- # @return [Numeric]
290
+ # The call timeout in seconds.
291
+ # @return [::Numeric]
292
292
  # @!attribute [rw] metadata
293
293
  # Additional gRPC headers to be sent with the call.
294
- # @return [Hash{Symbol=>String}]
294
+ # @return [::Hash{::Symbol=>::String}]
295
295
  # @!attribute [rw] retry_policy
296
296
  # The retry policy. The value is a hash with the following keys:
297
297
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -299,10 +299,10 @@ module Google
299
299
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
300
300
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
301
301
  # trigger a retry.
302
- # @return [Hash]
302
+ # @return [::Hash]
303
303
  #
304
304
  class Configuration
305
- extend Gapic::Config
305
+ extend ::Gapic::Config
306
306
 
307
307
  config_attr :endpoint, "jobs.googleapis.com", String
308
308
  config_attr :credentials, nil do |value|
@@ -310,14 +310,14 @@ module Google
310
310
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
311
311
  allowed.any? { |klass| klass === value }
312
312
  end
313
- config_attr :scope, nil, String, Array, nil
314
- config_attr :lib_name, nil, String, nil
315
- config_attr :lib_version, nil, String, nil
316
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
317
- config_attr :interceptors, nil, Array, nil
318
- config_attr :timeout, nil, Numeric, nil
319
- config_attr :metadata, nil, Hash, nil
320
- config_attr :retry_policy, nil, Hash, Proc, nil
313
+ config_attr :scope, nil, ::String, ::Array, nil
314
+ config_attr :lib_name, nil, ::String, nil
315
+ config_attr :lib_version, nil, ::String, nil
316
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
317
+ config_attr :interceptors, nil, ::Array, nil
318
+ config_attr :timeout, nil, ::Numeric, nil
319
+ config_attr :metadata, nil, ::Hash, nil
320
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
321
321
 
322
322
  # @private
323
323
  def initialize parent_config = nil
@@ -358,14 +358,14 @@ module Google
358
358
  class Rpcs
359
359
  ##
360
360
  # RPC-specific configuration for `create_client_event`
361
- # @return [Gapic::Config::Method]
361
+ # @return [::Gapic::Config::Method]
362
362
  #
363
363
  attr_reader :create_client_event
364
364
 
365
365
  # @private
366
366
  def initialize parent_rpcs = nil
367
367
  create_client_event_config = parent_rpcs&.create_client_event if parent_rpcs&.respond_to? :create_client_event
368
- @create_client_event = Gapic::Config::Method.new create_client_event_config
368
+ @create_client_event = ::Gapic::Config::Method.new create_client_event_config
369
369
 
370
370
  yield self if block_given?
371
371
  end