google-cloud-talent-v4beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google-cloud-talent-v4beta1.rb +21 -0
  7. data/lib/google/cloud/common_resources_pb.rb +15 -0
  8. data/lib/google/cloud/talent/v4beta1.rb +41 -0
  9. data/lib/google/cloud/talent/v4beta1/application_pb.rb +64 -0
  10. data/lib/google/cloud/talent/v4beta1/application_service.rb +50 -0
  11. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +717 -0
  12. data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +52 -0
  13. data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +155 -0
  14. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +56 -0
  15. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +54 -0
  16. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +19 -0
  17. data/lib/google/cloud/talent/v4beta1/common_pb.rb +342 -0
  18. data/lib/google/cloud/talent/v4beta1/company_pb.rb +42 -0
  19. data/lib/google/cloud/talent/v4beta1/company_service.rb +49 -0
  20. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +732 -0
  21. data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +52 -0
  22. data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +105 -0
  23. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +57 -0
  24. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +54 -0
  25. data/lib/google/cloud/talent/v4beta1/completion.rb +49 -0
  26. data/lib/google/cloud/talent/v4beta1/completion/client.rb +407 -0
  27. data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +52 -0
  28. data/lib/google/cloud/talent/v4beta1/completion/paths.rb +105 -0
  29. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +57 -0
  30. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +46 -0
  31. data/lib/google/cloud/talent/v4beta1/event_pb.rb +70 -0
  32. data/lib/google/cloud/talent/v4beta1/event_service.rb +49 -0
  33. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +379 -0
  34. data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +52 -0
  35. data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +64 -0
  36. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +28 -0
  37. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +51 -0
  38. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +188 -0
  39. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +28 -0
  40. data/lib/google/cloud/talent/v4beta1/job_pb.rb +73 -0
  41. data/lib/google/cloud/talent/v4beta1/job_service.rb +50 -0
  42. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +1660 -0
  43. data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +52 -0
  44. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +564 -0
  45. data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +146 -0
  46. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +167 -0
  47. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +86 -0
  48. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +214 -0
  49. data/lib/google/cloud/talent/v4beta1/profile_service.rb +50 -0
  50. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +992 -0
  51. data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +52 -0
  52. data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +69 -0
  53. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +92 -0
  54. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +63 -0
  55. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +35 -0
  56. data/lib/google/cloud/talent/v4beta1/tenant_service.rb +49 -0
  57. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +712 -0
  58. data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +52 -0
  59. data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +64 -0
  60. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +56 -0
  61. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +53 -0
  62. data/lib/google/cloud/talent/v4beta1/version.rb +28 -0
  63. data/proto_docs/README.md +4 -0
  64. data/proto_docs/google/api/field_behavior.rb +59 -0
  65. data/proto_docs/google/api/resource.rb +247 -0
  66. data/proto_docs/google/cloud/talent/v4beta1/application.rb +169 -0
  67. data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +122 -0
  68. data/proto_docs/google/cloud/talent/v4beta1/common.rb +1106 -0
  69. data/proto_docs/google/cloud/talent/v4beta1/company.rb +117 -0
  70. data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +138 -0
  71. data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +143 -0
  72. data/proto_docs/google/cloud/talent/v4beta1/event.rb +237 -0
  73. data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +43 -0
  74. data/proto_docs/google/cloud/talent/v4beta1/filters.rb +818 -0
  75. data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +69 -0
  76. data/proto_docs/google/cloud/talent/v4beta1/job.rb +356 -0
  77. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +746 -0
  78. data/proto_docs/google/cloud/talent/v4beta1/profile.rb +811 -0
  79. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +392 -0
  80. data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +77 -0
  81. data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +118 -0
  82. data/proto_docs/google/longrunning/operations.rb +150 -0
  83. data/proto_docs/google/protobuf/any.rb +138 -0
  84. data/proto_docs/google/protobuf/duration.rb +98 -0
  85. data/proto_docs/google/protobuf/empty.rb +36 -0
  86. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  87. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  88. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  89. data/proto_docs/google/rpc/status.rb +46 -0
  90. data/proto_docs/google/type/date.rb +50 -0
  91. data/proto_docs/google/type/latlng.rb +38 -0
  92. data/proto_docs/google/type/money.rb +43 -0
  93. data/proto_docs/google/type/postal_address.rb +135 -0
  94. data/proto_docs/google/type/timeofday.rb +44 -0
  95. metadata +251 -0
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/talent/v4beta1/version"
24
+
25
+ require "google/cloud/talent/v4beta1/job_service/credentials"
26
+ require "google/cloud/talent/v4beta1/job_service/paths"
27
+ require "google/cloud/talent/v4beta1/job_service/operations"
28
+ require "google/cloud/talent/v4beta1/job_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Talent
33
+ module V4beta1
34
+ ##
35
+ # A service handles job management, including job CRUD, enumeration and search.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/talent/v4beta1/job_service"
40
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
41
+ #
42
+ module JobService
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "job_service", "helpers.rb"
50
+ require "google/cloud/talent/v4beta1/job_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,1660 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/talent/v4beta1/job_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Talent
25
+ module V4beta1
26
+ module JobService
27
+ ##
28
+ # Client for the JobService service.
29
+ #
30
+ # A service handles job management, including job CRUD, enumeration and search.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :job_service_stub
37
+
38
+ ##
39
+ # Configure the JobService Client class.
40
+ #
41
+ # See {Google::Cloud::Talent::V4beta1::JobService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # ## Example
45
+ #
46
+ # To modify the configuration for all JobService clients:
47
+ #
48
+ # Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
49
+ # config.timeout = 10_000
50
+ # end
51
+ #
52
+ # @yield [config] Configure the Client client.
53
+ # @yieldparam config [Client::Configuration]
54
+ #
55
+ # @return [Client::Configuration]
56
+ #
57
+ def self.configure
58
+ @configure ||= begin
59
+ namespace = ["Google", "Cloud", "Talent", "V4beta1"]
60
+ parent_config = while namespace.any?
61
+ parent_name = namespace.join "::"
62
+ parent_const = const_get parent_name
63
+ break parent_const.configure if parent_const&.respond_to? :configure
64
+ namespace.pop
65
+ end
66
+ default_config = Client::Configuration.new parent_config
67
+
68
+ default_config.rpcs.create_job.timeout = 30.0
69
+
70
+ default_config.rpcs.batch_create_jobs.timeout = 30.0
71
+
72
+ default_config.rpcs.get_job.timeout = 30.0
73
+ default_config.rpcs.get_job.retry_policy = {
74
+ initial_delay: 0.1,
75
+ max_delay: 60.0,
76
+ multiplier: 1.3,
77
+ retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
78
+ }
79
+
80
+ default_config.rpcs.update_job.timeout = 30.0
81
+
82
+ default_config.rpcs.batch_update_jobs.timeout = 30.0
83
+
84
+ default_config.rpcs.delete_job.timeout = 30.0
85
+ default_config.rpcs.delete_job.retry_policy = {
86
+ initial_delay: 0.1,
87
+ max_delay: 60.0,
88
+ multiplier: 1.3,
89
+ retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
90
+ }
91
+
92
+ default_config.rpcs.batch_delete_jobs.timeout = 30.0
93
+
94
+ default_config.rpcs.list_jobs.timeout = 30.0
95
+ default_config.rpcs.list_jobs.retry_policy = {
96
+ initial_delay: 0.1,
97
+ max_delay: 60.0,
98
+ multiplier: 1.3,
99
+ retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
100
+ }
101
+
102
+ default_config.rpcs.search_jobs.timeout = 30.0
103
+
104
+ default_config.rpcs.search_jobs_for_alert.timeout = 30.0
105
+
106
+ default_config
107
+ end
108
+ yield @configure if block_given?
109
+ @configure
110
+ end
111
+
112
+ ##
113
+ # Configure the JobService Client instance.
114
+ #
115
+ # The configuration is set to the derived mode, meaning that values can be changed,
116
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
117
+ # should be made on {Client.configure}.
118
+ #
119
+ # See {Google::Cloud::Talent::V4beta1::JobService::Client::Configuration}
120
+ # for a description of the configuration fields.
121
+ #
122
+ # @yield [config] Configure the Client client.
123
+ # @yieldparam config [Client::Configuration]
124
+ #
125
+ # @return [Client::Configuration]
126
+ #
127
+ def configure
128
+ yield @config if block_given?
129
+ @config
130
+ end
131
+
132
+ ##
133
+ # Create a new JobService client object.
134
+ #
135
+ # ## Examples
136
+ #
137
+ # To create a new JobService client with the default
138
+ # configuration:
139
+ #
140
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
141
+ #
142
+ # To create a new JobService client with a custom
143
+ # configuration:
144
+ #
145
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
146
+ # config.timeout = 10_000
147
+ # end
148
+ #
149
+ # @yield [config] Configure the JobService client.
150
+ # @yieldparam config [Client::Configuration]
151
+ #
152
+ def initialize
153
+ # These require statements are intentionally placed here to initialize
154
+ # the gRPC module only when it's required.
155
+ # See https://github.com/googleapis/toolkit/issues/446
156
+ require "gapic/grpc"
157
+ require "google/cloud/talent/v4beta1/job_service_services_pb"
158
+
159
+ # Create the configuration object
160
+ @config = Configuration.new Client.configure
161
+
162
+ # Yield the configuration if needed
163
+ yield @config if block_given?
164
+
165
+ # Create credentials
166
+ credentials = @config.credentials
167
+ credentials ||= Credentials.default scope: @config.scope
168
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
169
+ credentials = Credentials.new credentials, scope: @config.scope
170
+ end
171
+ @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
172
+
173
+ @operations_client = Operations.new do |config|
174
+ config.credentials = credentials
175
+ config.endpoint = @config.endpoint
176
+ end
177
+
178
+ @job_service_stub = Gapic::ServiceStub.new(
179
+ Google::Cloud::Talent::V4beta1::JobService::Stub,
180
+ credentials: credentials,
181
+ endpoint: @config.endpoint,
182
+ channel_args: @config.channel_args,
183
+ interceptors: @config.interceptors
184
+ )
185
+ end
186
+
187
+ ##
188
+ # Get the associated client for long-running operations.
189
+ #
190
+ # @return [Google::Cloud::Talent::V4beta1::JobService::Operations]
191
+ #
192
+ attr_reader :operations_client
193
+
194
+ # Service calls
195
+
196
+ ##
197
+ # Creates a new job.
198
+ #
199
+ # Typically, the job becomes searchable within 10 seconds, but it may take
200
+ # up to 5 minutes.
201
+ #
202
+ # @overload create_job(request, options = nil)
203
+ # Pass arguments to `create_job` via a request object, either of type
204
+ # {Google::Cloud::Talent::V4beta1::CreateJobRequest} or an equivalent Hash.
205
+ #
206
+ # @param request [Google::Cloud::Talent::V4beta1::CreateJobRequest, Hash]
207
+ # A request object representing the call parameters. Required. To specify no
208
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
209
+ # @param options [Gapic::CallOptions, Hash]
210
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
211
+ #
212
+ # @overload create_job(parent: nil, job: nil)
213
+ # Pass arguments to `create_job` via keyword arguments. Note that at
214
+ # least one keyword argument is required. To specify no parameters, or to keep all
215
+ # the default parameter values, pass an empty Hash as a request object (see above).
216
+ #
217
+ # @param parent [String]
218
+ # Required. The resource name of the tenant under which the job is created.
219
+ #
220
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
221
+ # "projects/foo/tenant/bar". If tenant id is unspecified a default tenant
222
+ # is created. For example, "projects/foo".
223
+ # @param job [Google::Cloud::Talent::V4beta1::Job, Hash]
224
+ # Required. The Job to be created.
225
+ #
226
+ # @yield [response, operation] Access the result along with the RPC operation
227
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::Job]
228
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
229
+ #
230
+ # @return [Google::Cloud::Talent::V4beta1::Job]
231
+ #
232
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
233
+ #
234
+ def create_job request, options = nil
235
+ raise ArgumentError, "request must be provided" if request.nil?
236
+
237
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateJobRequest
238
+
239
+ # Converts hash and nil to an options object
240
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
241
+
242
+ # Customize the options with defaults
243
+ metadata = @config.rpcs.create_job.metadata.to_h
244
+
245
+ # Set x-goog-api-client and x-goog-user-project headers
246
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
247
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
248
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
249
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
250
+
251
+ header_params = {
252
+ "parent" => request.parent
253
+ }
254
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
255
+ metadata[:"x-goog-request-params"] ||= request_params_header
256
+
257
+ options.apply_defaults timeout: @config.rpcs.create_job.timeout,
258
+ metadata: metadata,
259
+ retry_policy: @config.rpcs.create_job.retry_policy
260
+ options.apply_defaults metadata: @config.metadata,
261
+ retry_policy: @config.retry_policy
262
+
263
+ @job_service_stub.call_rpc :create_job, request, options: options do |response, operation|
264
+ yield response, operation if block_given?
265
+ return response
266
+ end
267
+ rescue GRPC::BadStatus => e
268
+ raise Google::Cloud::Error.from_error(e)
269
+ end
270
+
271
+ ##
272
+ # Begins executing a batch create jobs operation.
273
+ #
274
+ # @overload batch_create_jobs(request, options = nil)
275
+ # Pass arguments to `batch_create_jobs` via a request object, either of type
276
+ # {Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest} or an equivalent Hash.
277
+ #
278
+ # @param request [Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest, Hash]
279
+ # A request object representing the call parameters. Required. To specify no
280
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
281
+ # @param options [Gapic::CallOptions, Hash]
282
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
283
+ #
284
+ # @overload batch_create_jobs(parent: nil, jobs: nil)
285
+ # Pass arguments to `batch_create_jobs` via keyword arguments. Note that at
286
+ # least one keyword argument is required. To specify no parameters, or to keep all
287
+ # the default parameter values, pass an empty Hash as a request object (see above).
288
+ #
289
+ # @param parent [String]
290
+ # Required. The resource name of the tenant under which the job is created.
291
+ #
292
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
293
+ # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
294
+ # is created. For example, "projects/foo".
295
+ # @param jobs [Array<Google::Cloud::Talent::V4beta1::Job, Hash>]
296
+ # Required. The jobs to be created.
297
+ #
298
+ # @yield [response, operation] Access the result along with the RPC operation
299
+ # @yieldparam response [Gapic::Operation]
300
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
301
+ #
302
+ # @return [Gapic::Operation]
303
+ #
304
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
305
+ #
306
+ def batch_create_jobs request, options = nil
307
+ raise ArgumentError, "request must be provided" if request.nil?
308
+
309
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest
310
+
311
+ # Converts hash and nil to an options object
312
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
313
+
314
+ # Customize the options with defaults
315
+ metadata = @config.rpcs.batch_create_jobs.metadata.to_h
316
+
317
+ # Set x-goog-api-client and x-goog-user-project headers
318
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
319
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
320
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
321
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
322
+
323
+ header_params = {
324
+ "parent" => request.parent
325
+ }
326
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
327
+ metadata[:"x-goog-request-params"] ||= request_params_header
328
+
329
+ options.apply_defaults timeout: @config.rpcs.batch_create_jobs.timeout,
330
+ metadata: metadata,
331
+ retry_policy: @config.rpcs.batch_create_jobs.retry_policy
332
+ options.apply_defaults metadata: @config.metadata,
333
+ retry_policy: @config.retry_policy
334
+
335
+ @job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
336
+ response = Gapic::Operation.new response, @operations_client, options: options
337
+ yield response, operation if block_given?
338
+ return response
339
+ end
340
+ rescue GRPC::BadStatus => e
341
+ raise Google::Cloud::Error.from_error(e)
342
+ end
343
+
344
+ ##
345
+ # Retrieves the specified job, whose status is OPEN or recently EXPIRED
346
+ # within the last 90 days.
347
+ #
348
+ # @overload get_job(request, options = nil)
349
+ # Pass arguments to `get_job` via a request object, either of type
350
+ # {Google::Cloud::Talent::V4beta1::GetJobRequest} or an equivalent Hash.
351
+ #
352
+ # @param request [Google::Cloud::Talent::V4beta1::GetJobRequest, Hash]
353
+ # A request object representing the call parameters. Required. To specify no
354
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
355
+ # @param options [Gapic::CallOptions, Hash]
356
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
357
+ #
358
+ # @overload get_job(name: nil)
359
+ # Pass arguments to `get_job` via keyword arguments. Note that at
360
+ # least one keyword argument is required. To specify no parameters, or to keep all
361
+ # the default parameter values, pass an empty Hash as a request object (see above).
362
+ #
363
+ # @param name [String]
364
+ # Required. The resource name of the job to retrieve.
365
+ #
366
+ # The format is
367
+ # "projects/\\{project_id}/tenants/\\{tenant_id}/jobs/\\{job_id}". For
368
+ # example, "projects/foo/tenants/bar/jobs/baz".
369
+ #
370
+ # If tenant id is unspecified, the default tenant is used. For
371
+ # example, "projects/foo/jobs/bar".
372
+ #
373
+ # @yield [response, operation] Access the result along with the RPC operation
374
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::Job]
375
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
376
+ #
377
+ # @return [Google::Cloud::Talent::V4beta1::Job]
378
+ #
379
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
380
+ #
381
+ def get_job request, options = nil
382
+ raise ArgumentError, "request must be provided" if request.nil?
383
+
384
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetJobRequest
385
+
386
+ # Converts hash and nil to an options object
387
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
388
+
389
+ # Customize the options with defaults
390
+ metadata = @config.rpcs.get_job.metadata.to_h
391
+
392
+ # Set x-goog-api-client and x-goog-user-project headers
393
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
394
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
395
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
396
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
397
+
398
+ header_params = {
399
+ "name" => request.name
400
+ }
401
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
402
+ metadata[:"x-goog-request-params"] ||= request_params_header
403
+
404
+ options.apply_defaults timeout: @config.rpcs.get_job.timeout,
405
+ metadata: metadata,
406
+ retry_policy: @config.rpcs.get_job.retry_policy
407
+ options.apply_defaults metadata: @config.metadata,
408
+ retry_policy: @config.retry_policy
409
+
410
+ @job_service_stub.call_rpc :get_job, request, options: options do |response, operation|
411
+ yield response, operation if block_given?
412
+ return response
413
+ end
414
+ rescue GRPC::BadStatus => e
415
+ raise Google::Cloud::Error.from_error(e)
416
+ end
417
+
418
+ ##
419
+ # Updates specified job.
420
+ #
421
+ # Typically, updated contents become visible in search results within 10
422
+ # seconds, but it may take up to 5 minutes.
423
+ #
424
+ # @overload update_job(request, options = nil)
425
+ # Pass arguments to `update_job` via a request object, either of type
426
+ # {Google::Cloud::Talent::V4beta1::UpdateJobRequest} or an equivalent Hash.
427
+ #
428
+ # @param request [Google::Cloud::Talent::V4beta1::UpdateJobRequest, Hash]
429
+ # A request object representing the call parameters. Required. To specify no
430
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
431
+ # @param options [Gapic::CallOptions, Hash]
432
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
433
+ #
434
+ # @overload update_job(job: nil, update_mask: nil)
435
+ # Pass arguments to `update_job` via keyword arguments. Note that at
436
+ # least one keyword argument is required. To specify no parameters, or to keep all
437
+ # the default parameter values, pass an empty Hash as a request object (see above).
438
+ #
439
+ # @param job [Google::Cloud::Talent::V4beta1::Job, Hash]
440
+ # Required. The Job to be updated.
441
+ # @param update_mask [Google::Protobuf::FieldMask, Hash]
442
+ # Strongly recommended for the best service experience.
443
+ #
444
+ # If {Google::Cloud::Talent::V4beta1::UpdateJobRequest#update_mask update_mask} is provided, only the specified fields in
445
+ # {Google::Cloud::Talent::V4beta1::UpdateJobRequest#job job} are updated. Otherwise all the fields are updated.
446
+ #
447
+ # A field mask to restrict the fields that are updated. Only
448
+ # top level fields of {Google::Cloud::Talent::V4beta1::Job Job} are supported.
449
+ #
450
+ # @yield [response, operation] Access the result along with the RPC operation
451
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::Job]
452
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
453
+ #
454
+ # @return [Google::Cloud::Talent::V4beta1::Job]
455
+ #
456
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
457
+ #
458
+ def update_job request, options = nil
459
+ raise ArgumentError, "request must be provided" if request.nil?
460
+
461
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateJobRequest
462
+
463
+ # Converts hash and nil to an options object
464
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
465
+
466
+ # Customize the options with defaults
467
+ metadata = @config.rpcs.update_job.metadata.to_h
468
+
469
+ # Set x-goog-api-client and x-goog-user-project headers
470
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
471
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
472
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
473
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
474
+
475
+ header_params = {
476
+ "job.name" => request.job.name
477
+ }
478
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
479
+ metadata[:"x-goog-request-params"] ||= request_params_header
480
+
481
+ options.apply_defaults timeout: @config.rpcs.update_job.timeout,
482
+ metadata: metadata,
483
+ retry_policy: @config.rpcs.update_job.retry_policy
484
+ options.apply_defaults metadata: @config.metadata,
485
+ retry_policy: @config.retry_policy
486
+
487
+ @job_service_stub.call_rpc :update_job, request, options: options do |response, operation|
488
+ yield response, operation if block_given?
489
+ return response
490
+ end
491
+ rescue GRPC::BadStatus => e
492
+ raise Google::Cloud::Error.from_error(e)
493
+ end
494
+
495
+ ##
496
+ # Begins executing a batch update jobs operation.
497
+ #
498
+ # @overload batch_update_jobs(request, options = nil)
499
+ # Pass arguments to `batch_update_jobs` via a request object, either of type
500
+ # {Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest} or an equivalent Hash.
501
+ #
502
+ # @param request [Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest, Hash]
503
+ # A request object representing the call parameters. Required. To specify no
504
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
505
+ # @param options [Gapic::CallOptions, Hash]
506
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
507
+ #
508
+ # @overload batch_update_jobs(parent: nil, jobs: nil, update_mask: nil)
509
+ # Pass arguments to `batch_update_jobs` via keyword arguments. Note that at
510
+ # least one keyword argument is required. To specify no parameters, or to keep all
511
+ # the default parameter values, pass an empty Hash as a request object (see above).
512
+ #
513
+ # @param parent [String]
514
+ # Required. The resource name of the tenant under which the job is created.
515
+ #
516
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
517
+ # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
518
+ # is created. For example, "projects/foo".
519
+ # @param jobs [Array<Google::Cloud::Talent::V4beta1::Job, Hash>]
520
+ # Required. The jobs to be updated.
521
+ # @param update_mask [Google::Protobuf::FieldMask, Hash]
522
+ # Strongly recommended for the best service experience. Be aware that it will
523
+ # also increase latency when checking the status of a batch operation.
524
+ #
525
+ # If {Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest#update_mask update_mask} is provided, only the specified fields in
526
+ # {Google::Cloud::Talent::V4beta1::Job Job} are updated. Otherwise all the fields are updated.
527
+ #
528
+ # A field mask to restrict the fields that are updated. Only
529
+ # top level fields of {Google::Cloud::Talent::V4beta1::Job Job} are supported.
530
+ #
531
+ # If {Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest#update_mask update_mask} is provided, The {Google::Cloud::Talent::V4beta1::Job Job} inside
532
+ # {Google::Cloud::Talent::V4beta1::JobOperationResult::JobResult JobResult}
533
+ # will only contains fields that is updated, plus the Id of the Job.
534
+ # Otherwise, {Google::Cloud::Talent::V4beta1::Job Job} will include all fields, which can yield a very
535
+ # large response.
536
+ #
537
+ # @yield [response, operation] Access the result along with the RPC operation
538
+ # @yieldparam response [Gapic::Operation]
539
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
540
+ #
541
+ # @return [Gapic::Operation]
542
+ #
543
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
544
+ #
545
+ def batch_update_jobs request, options = nil
546
+ raise ArgumentError, "request must be provided" if request.nil?
547
+
548
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest
549
+
550
+ # Converts hash and nil to an options object
551
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
552
+
553
+ # Customize the options with defaults
554
+ metadata = @config.rpcs.batch_update_jobs.metadata.to_h
555
+
556
+ # Set x-goog-api-client and x-goog-user-project headers
557
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
558
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
559
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
560
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
561
+
562
+ header_params = {
563
+ "parent" => request.parent
564
+ }
565
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
566
+ metadata[:"x-goog-request-params"] ||= request_params_header
567
+
568
+ options.apply_defaults timeout: @config.rpcs.batch_update_jobs.timeout,
569
+ metadata: metadata,
570
+ retry_policy: @config.rpcs.batch_update_jobs.retry_policy
571
+ options.apply_defaults metadata: @config.metadata,
572
+ retry_policy: @config.retry_policy
573
+
574
+ @job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
575
+ response = Gapic::Operation.new response, @operations_client, options: options
576
+ yield response, operation if block_given?
577
+ return response
578
+ end
579
+ rescue GRPC::BadStatus => e
580
+ raise Google::Cloud::Error.from_error(e)
581
+ end
582
+
583
+ ##
584
+ # Deletes the specified job.
585
+ #
586
+ # Typically, the job becomes unsearchable within 10 seconds, but it may take
587
+ # up to 5 minutes.
588
+ #
589
+ # @overload delete_job(request, options = nil)
590
+ # Pass arguments to `delete_job` via a request object, either of type
591
+ # {Google::Cloud::Talent::V4beta1::DeleteJobRequest} or an equivalent Hash.
592
+ #
593
+ # @param request [Google::Cloud::Talent::V4beta1::DeleteJobRequest, Hash]
594
+ # A request object representing the call parameters. Required. To specify no
595
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
596
+ # @param options [Gapic::CallOptions, Hash]
597
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
598
+ #
599
+ # @overload delete_job(name: nil)
600
+ # Pass arguments to `delete_job` via keyword arguments. Note that at
601
+ # least one keyword argument is required. To specify no parameters, or to keep all
602
+ # the default parameter values, pass an empty Hash as a request object (see above).
603
+ #
604
+ # @param name [String]
605
+ # Required. The resource name of the job to be deleted.
606
+ #
607
+ # The format is
608
+ # "projects/\\{project_id}/tenants/\\{tenant_id}/jobs/\\{job_id}". For
609
+ # example, "projects/foo/tenants/bar/jobs/baz".
610
+ #
611
+ # If tenant id is unspecified, the default tenant is used. For
612
+ # example, "projects/foo/jobs/bar".
613
+ #
614
+ # @yield [response, operation] Access the result along with the RPC operation
615
+ # @yieldparam response [Google::Protobuf::Empty]
616
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
617
+ #
618
+ # @return [Google::Protobuf::Empty]
619
+ #
620
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
621
+ #
622
+ def delete_job request, options = nil
623
+ raise ArgumentError, "request must be provided" if request.nil?
624
+
625
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteJobRequest
626
+
627
+ # Converts hash and nil to an options object
628
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
629
+
630
+ # Customize the options with defaults
631
+ metadata = @config.rpcs.delete_job.metadata.to_h
632
+
633
+ # Set x-goog-api-client and x-goog-user-project headers
634
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
635
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
636
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
637
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
+
639
+ header_params = {
640
+ "name" => request.name
641
+ }
642
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
643
+ metadata[:"x-goog-request-params"] ||= request_params_header
644
+
645
+ options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
646
+ metadata: metadata,
647
+ retry_policy: @config.rpcs.delete_job.retry_policy
648
+ options.apply_defaults metadata: @config.metadata,
649
+ retry_policy: @config.retry_policy
650
+
651
+ @job_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
652
+ yield response, operation if block_given?
653
+ return response
654
+ end
655
+ rescue GRPC::BadStatus => e
656
+ raise Google::Cloud::Error.from_error(e)
657
+ end
658
+
659
+ ##
660
+ # Deletes a list of {Google::Cloud::Talent::V4beta1::Job Job}s by filter.
661
+ #
662
+ # @overload batch_delete_jobs(request, options = nil)
663
+ # Pass arguments to `batch_delete_jobs` via a request object, either of type
664
+ # {Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest} or an equivalent Hash.
665
+ #
666
+ # @param request [Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest, Hash]
667
+ # A request object representing the call parameters. Required. To specify no
668
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
669
+ # @param options [Gapic::CallOptions, Hash]
670
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
671
+ #
672
+ # @overload batch_delete_jobs(parent: nil, filter: nil)
673
+ # Pass arguments to `batch_delete_jobs` via keyword arguments. Note that at
674
+ # least one keyword argument is required. To specify no parameters, or to keep all
675
+ # the default parameter values, pass an empty Hash as a request object (see above).
676
+ #
677
+ # @param parent [String]
678
+ # Required. The resource name of the tenant under which the job is created.
679
+ #
680
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
681
+ # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
682
+ # is created. For example, "projects/foo".
683
+ # @param filter [String]
684
+ # Required. The filter string specifies the jobs to be deleted.
685
+ #
686
+ # Supported operator: =, AND
687
+ #
688
+ # The fields eligible for filtering are:
689
+ #
690
+ # * `companyName` (Required)
691
+ # * `requisitionId` (Required)
692
+ #
693
+ # Sample Query: companyName = "projects/foo/companies/bar" AND
694
+ # requisitionId = "req-1"
695
+ #
696
+ # @yield [response, operation] Access the result along with the RPC operation
697
+ # @yieldparam response [Google::Protobuf::Empty]
698
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
699
+ #
700
+ # @return [Google::Protobuf::Empty]
701
+ #
702
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
703
+ #
704
+ def batch_delete_jobs request, options = nil
705
+ raise ArgumentError, "request must be provided" if request.nil?
706
+
707
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest
708
+
709
+ # Converts hash and nil to an options object
710
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
711
+
712
+ # Customize the options with defaults
713
+ metadata = @config.rpcs.batch_delete_jobs.metadata.to_h
714
+
715
+ # Set x-goog-api-client and x-goog-user-project headers
716
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
717
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
718
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
719
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
720
+
721
+ header_params = {
722
+ "parent" => request.parent
723
+ }
724
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
725
+ metadata[:"x-goog-request-params"] ||= request_params_header
726
+
727
+ options.apply_defaults timeout: @config.rpcs.batch_delete_jobs.timeout,
728
+ metadata: metadata,
729
+ retry_policy: @config.rpcs.batch_delete_jobs.retry_policy
730
+ options.apply_defaults metadata: @config.metadata,
731
+ retry_policy: @config.retry_policy
732
+
733
+ @job_service_stub.call_rpc :batch_delete_jobs, request, options: options do |response, operation|
734
+ yield response, operation if block_given?
735
+ return response
736
+ end
737
+ rescue GRPC::BadStatus => e
738
+ raise Google::Cloud::Error.from_error(e)
739
+ end
740
+
741
+ ##
742
+ # Lists jobs by filter.
743
+ #
744
+ # @overload list_jobs(request, options = nil)
745
+ # Pass arguments to `list_jobs` via a request object, either of type
746
+ # {Google::Cloud::Talent::V4beta1::ListJobsRequest} or an equivalent Hash.
747
+ #
748
+ # @param request [Google::Cloud::Talent::V4beta1::ListJobsRequest, Hash]
749
+ # A request object representing the call parameters. Required. To specify no
750
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
751
+ # @param options [Gapic::CallOptions, Hash]
752
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
753
+ #
754
+ # @overload list_jobs(parent: nil, filter: nil, page_token: nil, page_size: nil, job_view: nil)
755
+ # Pass arguments to `list_jobs` via keyword arguments. Note that at
756
+ # least one keyword argument is required. To specify no parameters, or to keep all
757
+ # the default parameter values, pass an empty Hash as a request object (see above).
758
+ #
759
+ # @param parent [String]
760
+ # Required. The resource name of the tenant under which the job is created.
761
+ #
762
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
763
+ # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
764
+ # is created. For example, "projects/foo".
765
+ # @param filter [String]
766
+ # Required. The filter string specifies the jobs to be enumerated.
767
+ #
768
+ # Supported operator: =, AND
769
+ #
770
+ # The fields eligible for filtering are:
771
+ #
772
+ # * `companyName` (Required)
773
+ # * `requisitionId`
774
+ # * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
775
+ # OPEN if no value is specified.
776
+ #
777
+ # Sample Query:
778
+ #
779
+ # * companyName = "projects/foo/tenants/bar/companies/baz"
780
+ # * companyName = "projects/foo/tenants/bar/companies/baz" AND
781
+ # requisitionId = "req-1"
782
+ # * companyName = "projects/foo/tenants/bar/companies/baz" AND
783
+ # status = "EXPIRED"
784
+ # @param page_token [String]
785
+ # The starting point of a query result.
786
+ # @param page_size [Integer]
787
+ # The maximum number of jobs to be returned per page of results.
788
+ #
789
+ # If {Google::Cloud::Talent::V4beta1::ListJobsRequest#job_view job_view} is set to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_ID_ONLY JobView.JOB_VIEW_ID_ONLY}, the maximum allowed
790
+ # page size is 1000. Otherwise, the maximum allowed page size is 100.
791
+ #
792
+ # Default is 100 if empty or a number < 1 is specified.
793
+ # @param job_view [Google::Cloud::Talent::V4beta1::JobView]
794
+ # The desired job attributes returned for jobs in the
795
+ # search response. Defaults to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_FULL JobView.JOB_VIEW_FULL} if no value is
796
+ # specified.
797
+ #
798
+ # @yield [response, operation] Access the result along with the RPC operation
799
+ # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Job>]
800
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
801
+ #
802
+ # @return [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Job>]
803
+ #
804
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
805
+ #
806
+ def list_jobs request, options = nil
807
+ raise ArgumentError, "request must be provided" if request.nil?
808
+
809
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListJobsRequest
810
+
811
+ # Converts hash and nil to an options object
812
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
813
+
814
+ # Customize the options with defaults
815
+ metadata = @config.rpcs.list_jobs.metadata.to_h
816
+
817
+ # Set x-goog-api-client and x-goog-user-project headers
818
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
819
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
820
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
821
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
822
+
823
+ header_params = {
824
+ "parent" => request.parent
825
+ }
826
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
827
+ metadata[:"x-goog-request-params"] ||= request_params_header
828
+
829
+ options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
830
+ metadata: metadata,
831
+ retry_policy: @config.rpcs.list_jobs.retry_policy
832
+ options.apply_defaults metadata: @config.metadata,
833
+ retry_policy: @config.retry_policy
834
+
835
+ @job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
836
+ response = Gapic::PagedEnumerable.new @job_service_stub, :list_jobs, request, response, operation, options
837
+ yield response, operation if block_given?
838
+ return response
839
+ end
840
+ rescue GRPC::BadStatus => e
841
+ raise Google::Cloud::Error.from_error(e)
842
+ end
843
+
844
+ ##
845
+ # Searches for jobs using the provided {Google::Cloud::Talent::V4beta1::SearchJobsRequest SearchJobsRequest}.
846
+ #
847
+ # This call constrains the {Google::Cloud::Talent::V4beta1::Job#visibility visibility} of jobs
848
+ # present in the database, and only returns jobs that the caller has
849
+ # permission to search against.
850
+ #
851
+ # @overload search_jobs(request, options = nil)
852
+ # Pass arguments to `search_jobs` via a request object, either of type
853
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest} or an equivalent Hash.
854
+ #
855
+ # @param request [Google::Cloud::Talent::V4beta1::SearchJobsRequest, Hash]
856
+ # A request object representing the call parameters. Required. To specify no
857
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
858
+ # @param options [Gapic::CallOptions, Hash]
859
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
860
+ #
861
+ # @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
862
+ # Pass arguments to `search_jobs` via keyword arguments. Note that at
863
+ # least one keyword argument is required. To specify no parameters, or to keep all
864
+ # the default parameter values, pass an empty Hash as a request object (see above).
865
+ #
866
+ # @param parent [String]
867
+ # Required. The resource name of the tenant to search within.
868
+ #
869
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
870
+ # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
871
+ # is created. For example, "projects/foo".
872
+ # @param search_mode [Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode]
873
+ # Mode of a search.
874
+ #
875
+ # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode::JOB_SEARCH SearchMode.JOB_SEARCH}.
876
+ # @param request_metadata [Google::Cloud::Talent::V4beta1::RequestMetadata, Hash]
877
+ # Required. The meta information collected about the job searcher, used to improve the
878
+ # search quality of the service. The identifiers (such as `user_id`) are
879
+ # provided by users, and must be unique and consistent.
880
+ # @param job_query [Google::Cloud::Talent::V4beta1::JobQuery, Hash]
881
+ # Query used to search against jobs, such as keyword, location filters, etc.
882
+ # @param enable_broadening [Boolean]
883
+ # Controls whether to broaden the search when it produces sparse results.
884
+ # Broadened queries append results to the end of the matching results
885
+ # list.
886
+ #
887
+ # Defaults to false.
888
+ # @param require_precise_result_size [Boolean]
889
+ # Controls if the search job request requires the return of a precise
890
+ # count of the first 300 results. Setting this to `true` ensures
891
+ # consistency in the number of results per page. Best practice is to set this
892
+ # value to true if a client allows users to jump directly to a
893
+ # non-sequential search results page.
894
+ #
895
+ # Enabling this flag may adversely impact performance.
896
+ #
897
+ # Defaults to false.
898
+ # @param histogram_queries [Array<Google::Cloud::Talent::V4beta1::HistogramQuery, Hash>]
899
+ # An expression specifies a histogram request against matching jobs.
900
+ #
901
+ # Expression syntax is an aggregation function call with histogram facets and
902
+ # other options.
903
+ #
904
+ # Available aggregation function calls are:
905
+ # * `count(string_histogram_facet)`: Count the number of matching entities,
906
+ # for each distinct attribute value.
907
+ # * `count(numeric_histogram_facet, list of buckets)`: Count the number of
908
+ # matching entities within each bucket.
909
+ #
910
+ # Data types:
911
+ #
912
+ # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
913
+ # * String: string like "any string with backslash escape for quote(\")."
914
+ # * Number: whole number and floating point number like 10, -1 and -0.01.
915
+ # * List: list of elements with comma(,) separator surrounded by square
916
+ # brackets, for example, [1, 2, 3] and ["one", "two", "three"].
917
+ #
918
+ # Built-in constants:
919
+ #
920
+ # * MIN (minimum number similar to java Double.MIN_VALUE)
921
+ # * MAX (maximum number similar to java Double.MAX_VALUE)
922
+ #
923
+ # Built-in functions:
924
+ #
925
+ # * bucket(start, end[, label]): bucket built-in function creates a bucket
926
+ # with range of [start, end). Note that the end is exclusive, for example,
927
+ # bucket(1, MAX, "positive number") or bucket(1, 10).
928
+ #
929
+ # Job histogram facets:
930
+ #
931
+ # * company_display_name: histogram by {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}.
932
+ # * employment_type: histogram by {Google::Cloud::Talent::V4beta1::Job#employment_types Job.employment_types}, for example,
933
+ # "FULL_TIME", "PART_TIME".
934
+ # * company_size: histogram by {Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
935
+ # "MEDIUM", "BIG".
936
+ # * publish_time_in_month: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
937
+ # in months.
938
+ # Must specify list of numeric buckets in spec.
939
+ # * publish_time_in_year: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
940
+ # in years.
941
+ # Must specify list of numeric buckets in spec.
942
+ # * degree_types: histogram by the {Google::Cloud::Talent::V4beta1::Job#degree_types Job.degree_types}, for example,
943
+ # "Bachelors", "Masters".
944
+ # * job_level: histogram by the {Google::Cloud::Talent::V4beta1::Job#job_level Job.job_level}, for example, "Entry
945
+ # Level".
946
+ # * country: histogram by the country code of jobs, for example, "US", "FR".
947
+ # * admin1: histogram by the admin1 code of jobs, which is a global
948
+ # placeholder referring to the state, province, or the particular term a
949
+ # country uses to define the geographic structure below the country level,
950
+ # for example, "CA", "IL".
951
+ # * city: histogram by a combination of the "city name, admin1 code". For
952
+ # example, "Mountain View, CA", "New York, NY".
953
+ # * admin1_country: histogram by a combination of the "admin1 code, country",
954
+ # for example, "CA, US", "IL, US".
955
+ # * city_coordinate: histogram by the city center's GPS coordinates (latitude
956
+ # and longitude), for example, 37.4038522,-122.0987765. Since the
957
+ # coordinates of a city center can change, customers may need to refresh
958
+ # them periodically.
959
+ # * locale: histogram by the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code}, for example, "en-US",
960
+ # "fr-FR".
961
+ # * language: histogram by the language subtag of the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code},
962
+ # for example, "en", "fr".
963
+ # * category: histogram by the {Google::Cloud::Talent::V4beta1::JobCategory JobCategory}, for example,
964
+ # "COMPUTER_AND_IT", "HEALTHCARE".
965
+ # * base_compensation_unit: histogram by the
966
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit CompensationInfo.CompensationUnit} of base
967
+ # salary, for example, "WEEKLY", "MONTHLY".
968
+ # * base_compensation: histogram by the base salary. Must specify list of
969
+ # numeric buckets to group results by.
970
+ # * annualized_base_compensation: histogram by the base annualized salary.
971
+ # Must specify list of numeric buckets to group results by.
972
+ # * annualized_total_compensation: histogram by the total annualized salary.
973
+ # Must specify list of numeric buckets to group results by.
974
+ # * string_custom_attribute: histogram by string {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
975
+ # Values can be accessed via square bracket notations like
976
+ # string_custom_attribute["key1"].
977
+ # * numeric_custom_attribute: histogram by numeric {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
978
+ # Values can be accessed via square bracket notations like
979
+ # numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
980
+ # group results by.
981
+ #
982
+ # Example expressions:
983
+ #
984
+ # * `count(admin1)`
985
+ # * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
986
+ # bucket(100000, MAX)])`
987
+ # * `count(string_custom_attribute["some-string-custom-attribute"])`
988
+ # * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
989
+ # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
990
+ # @param job_view [Google::Cloud::Talent::V4beta1::JobView]
991
+ # The desired job attributes returned for jobs in the search response.
992
+ # Defaults to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
993
+ # @param offset [Integer]
994
+ # An integer that specifies the current offset (that is, starting result
995
+ # location, amongst the jobs deemed by the API as relevant) in search
996
+ # results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchJobsRequest#page_token page_token} is unset.
997
+ #
998
+ # The maximum allowed value is 5000. Otherwise an error is thrown.
999
+ #
1000
+ # For example, 0 means to return results starting from the first matching
1001
+ # job, and 10 means to return from the 11th job. This can be used for
1002
+ # pagination, (for example, pageSize = 10 and offset = 10 means to return
1003
+ # from the second page).
1004
+ # @param page_size [Integer]
1005
+ # A limit on the number of jobs returned in the search results.
1006
+ # Increasing this value above the default value of 10 can increase search
1007
+ # response time. The value can be between 1 and 100.
1008
+ # @param page_token [String]
1009
+ # The token specifying the current offset within
1010
+ # search results. See {Google::Cloud::Talent::V4beta1::SearchJobsResponse#next_page_token SearchJobsResponse.next_page_token} for
1011
+ # an explanation of how to obtain the next set of query results.
1012
+ # @param order_by [String]
1013
+ # The criteria determining how search results are sorted. Default is
1014
+ # `"relevance desc"`.
1015
+ #
1016
+ # Supported options are:
1017
+ #
1018
+ # * `"relevance desc"`: By relevance descending, as determined by the API
1019
+ # algorithms. Relevance thresholding of query results is only available
1020
+ # with this ordering.
1021
+ # * `"posting_publish_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1022
+ # descending.
1023
+ # * `"posting_update_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_update_time Job.posting_update_time}
1024
+ # descending.
1025
+ # * `"title"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} ascending.
1026
+ # * `"title desc"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} descending.
1027
+ # * `"annualized_base_compensation"`: By job's
1028
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} ascending. Jobs
1029
+ # whose annualized base compensation is unspecified are put at the end of
1030
+ # search results.
1031
+ # * `"annualized_base_compensation desc"`: By job's
1032
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} descending. Jobs
1033
+ # whose annualized base compensation is unspecified are put at the end of
1034
+ # search results.
1035
+ # * `"annualized_total_compensation"`: By job's
1036
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} ascending. Jobs
1037
+ # whose annualized base compensation is unspecified are put at the end of
1038
+ # search results.
1039
+ # * `"annualized_total_compensation desc"`: By job's
1040
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} descending. Jobs
1041
+ # whose annualized base compensation is unspecified are put at the end of
1042
+ # search results.
1043
+ # * `"custom_ranking desc"`: By the relevance score adjusted to the
1044
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#ranking_expression SearchJobsRequest.CustomRankingInfo.ranking_expression} with weight
1045
+ # factor assigned by
1046
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#importance_level SearchJobsRequest.CustomRankingInfo.importance_level} in descending
1047
+ # order.
1048
+ # * Location sorting: Use the special syntax to order jobs by distance:<br>
1049
+ # `"distance_from('Hawaii')"`: Order by distance from Hawaii.<br>
1050
+ # `"distance_from(19.89, 155.5)"`: Order by distance from a coordinate.<br>
1051
+ # `"distance_from('Hawaii'), distance_from('Puerto Rico')"`: Order by
1052
+ # multiple locations. See details below.<br>
1053
+ # `"distance_from('Hawaii'), distance_from(19.89, 155.5)"`: Order by
1054
+ # multiple locations. See details below.<br>
1055
+ # The string can have a maximum of 256 characters. When multiple distance
1056
+ # centers are provided, a job that is close to any of the distance centers
1057
+ # would have a high rank. When a job has multiple locations, the job
1058
+ # location closest to one of the distance centers will be used. Jobs that
1059
+ # don't have locations will be ranked at the bottom. Distance is calculated
1060
+ # with a precision of 11.3 meters (37.4 feet). Diversification strategy is
1061
+ # still applied unless explicitly disabled in
1062
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest#diversification_level diversification_level}.
1063
+ # @param diversification_level [Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel]
1064
+ # Controls whether highly similar jobs are returned next to each other in
1065
+ # the search results. Jobs are identified as highly similar based on
1066
+ # their titles, job categories, and locations. Highly similar results are
1067
+ # clustered so that only one representative job of the cluster is
1068
+ # displayed to the job seeker higher up in the results, with the other jobs
1069
+ # being displayed lower down in the results.
1070
+ #
1071
+ # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel::SIMPLE DiversificationLevel.SIMPLE} if no value
1072
+ # is specified.
1073
+ # @param custom_ranking_info [Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo, Hash]
1074
+ # Controls over how job documents get ranked on top of existing relevance
1075
+ # score (determined by API algorithm).
1076
+ # @param disable_keyword_match [Boolean]
1077
+ # Controls whether to disable exact keyword match on {Google::Cloud::Talent::V4beta1::Job#title Job.title},
1078
+ # {Google::Cloud::Talent::V4beta1::Job#description Job.description}, {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1079
+ # {Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
1080
+ # keyword match returns jobs that do not match given category filters when
1081
+ # there are matching keywords. For example, for the query "program manager,"
1082
+ # a result is returned even if the job posting has the title "software
1083
+ # developer," which doesn't fall into "program manager" ontology, but does
1084
+ # have "program manager" appearing in its description.
1085
+ #
1086
+ # For queries like "cloud" that don't contain title or
1087
+ # location specific ontology, jobs with "cloud" keyword matches are returned
1088
+ # regardless of this flag's value.
1089
+ #
1090
+ # Use {Google::Cloud::Talent::V4beta1::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
1091
+ # company-specific globally matched custom field/attribute string values are
1092
+ # needed. Enabling keyword match improves recall of subsequent search
1093
+ # requests.
1094
+ #
1095
+ # Defaults to false.
1096
+ #
1097
+ # @yield [response, operation] Access the result along with the RPC operation
1098
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1099
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
1100
+ #
1101
+ # @return [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1102
+ #
1103
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
1104
+ #
1105
+ def search_jobs request, options = nil
1106
+ raise ArgumentError, "request must be provided" if request.nil?
1107
+
1108
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::SearchJobsRequest
1109
+
1110
+ # Converts hash and nil to an options object
1111
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1112
+
1113
+ # Customize the options with defaults
1114
+ metadata = @config.rpcs.search_jobs.metadata.to_h
1115
+
1116
+ # Set x-goog-api-client and x-goog-user-project headers
1117
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1118
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1119
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
1120
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1121
+
1122
+ header_params = {
1123
+ "parent" => request.parent
1124
+ }
1125
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1126
+ metadata[:"x-goog-request-params"] ||= request_params_header
1127
+
1128
+ options.apply_defaults timeout: @config.rpcs.search_jobs.timeout,
1129
+ metadata: metadata,
1130
+ retry_policy: @config.rpcs.search_jobs.retry_policy
1131
+ options.apply_defaults metadata: @config.metadata,
1132
+ retry_policy: @config.retry_policy
1133
+
1134
+ @job_service_stub.call_rpc :search_jobs, request, options: options do |response, operation|
1135
+ yield response, operation if block_given?
1136
+ return response
1137
+ end
1138
+ rescue GRPC::BadStatus => e
1139
+ raise Google::Cloud::Error.from_error(e)
1140
+ end
1141
+
1142
+ ##
1143
+ # Searches for jobs using the provided {Google::Cloud::Talent::V4beta1::SearchJobsRequest SearchJobsRequest}.
1144
+ #
1145
+ # This API call is intended for the use case of targeting passive job
1146
+ # seekers (for example, job seekers who have signed up to receive email
1147
+ # alerts about potential job opportunities), and has different algorithmic
1148
+ # adjustments that are targeted to passive job seekers.
1149
+ #
1150
+ # This call constrains the {Google::Cloud::Talent::V4beta1::Job#visibility visibility} of jobs
1151
+ # present in the database, and only returns jobs the caller has
1152
+ # permission to search against.
1153
+ #
1154
+ # @overload search_jobs_for_alert(request, options = nil)
1155
+ # Pass arguments to `search_jobs_for_alert` via a request object, either of type
1156
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest} or an equivalent Hash.
1157
+ #
1158
+ # @param request [Google::Cloud::Talent::V4beta1::SearchJobsRequest, Hash]
1159
+ # A request object representing the call parameters. Required. To specify no
1160
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1161
+ # @param options [Gapic::CallOptions, Hash]
1162
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1163
+ #
1164
+ # @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
1165
+ # Pass arguments to `search_jobs_for_alert` via keyword arguments. Note that at
1166
+ # least one keyword argument is required. To specify no parameters, or to keep all
1167
+ # the default parameter values, pass an empty Hash as a request object (see above).
1168
+ #
1169
+ # @param parent [String]
1170
+ # Required. The resource name of the tenant to search within.
1171
+ #
1172
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
1173
+ # "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
1174
+ # is created. For example, "projects/foo".
1175
+ # @param search_mode [Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode]
1176
+ # Mode of a search.
1177
+ #
1178
+ # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::SearchMode::JOB_SEARCH SearchMode.JOB_SEARCH}.
1179
+ # @param request_metadata [Google::Cloud::Talent::V4beta1::RequestMetadata, Hash]
1180
+ # Required. The meta information collected about the job searcher, used to improve the
1181
+ # search quality of the service. The identifiers (such as `user_id`) are
1182
+ # provided by users, and must be unique and consistent.
1183
+ # @param job_query [Google::Cloud::Talent::V4beta1::JobQuery, Hash]
1184
+ # Query used to search against jobs, such as keyword, location filters, etc.
1185
+ # @param enable_broadening [Boolean]
1186
+ # Controls whether to broaden the search when it produces sparse results.
1187
+ # Broadened queries append results to the end of the matching results
1188
+ # list.
1189
+ #
1190
+ # Defaults to false.
1191
+ # @param require_precise_result_size [Boolean]
1192
+ # Controls if the search job request requires the return of a precise
1193
+ # count of the first 300 results. Setting this to `true` ensures
1194
+ # consistency in the number of results per page. Best practice is to set this
1195
+ # value to true if a client allows users to jump directly to a
1196
+ # non-sequential search results page.
1197
+ #
1198
+ # Enabling this flag may adversely impact performance.
1199
+ #
1200
+ # Defaults to false.
1201
+ # @param histogram_queries [Array<Google::Cloud::Talent::V4beta1::HistogramQuery, Hash>]
1202
+ # An expression specifies a histogram request against matching jobs.
1203
+ #
1204
+ # Expression syntax is an aggregation function call with histogram facets and
1205
+ # other options.
1206
+ #
1207
+ # Available aggregation function calls are:
1208
+ # * `count(string_histogram_facet)`: Count the number of matching entities,
1209
+ # for each distinct attribute value.
1210
+ # * `count(numeric_histogram_facet, list of buckets)`: Count the number of
1211
+ # matching entities within each bucket.
1212
+ #
1213
+ # Data types:
1214
+ #
1215
+ # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
1216
+ # * String: string like "any string with backslash escape for quote(\")."
1217
+ # * Number: whole number and floating point number like 10, -1 and -0.01.
1218
+ # * List: list of elements with comma(,) separator surrounded by square
1219
+ # brackets, for example, [1, 2, 3] and ["one", "two", "three"].
1220
+ #
1221
+ # Built-in constants:
1222
+ #
1223
+ # * MIN (minimum number similar to java Double.MIN_VALUE)
1224
+ # * MAX (maximum number similar to java Double.MAX_VALUE)
1225
+ #
1226
+ # Built-in functions:
1227
+ #
1228
+ # * bucket(start, end[, label]): bucket built-in function creates a bucket
1229
+ # with range of [start, end). Note that the end is exclusive, for example,
1230
+ # bucket(1, MAX, "positive number") or bucket(1, 10).
1231
+ #
1232
+ # Job histogram facets:
1233
+ #
1234
+ # * company_display_name: histogram by {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}.
1235
+ # * employment_type: histogram by {Google::Cloud::Talent::V4beta1::Job#employment_types Job.employment_types}, for example,
1236
+ # "FULL_TIME", "PART_TIME".
1237
+ # * company_size: histogram by {Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
1238
+ # "MEDIUM", "BIG".
1239
+ # * publish_time_in_month: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1240
+ # in months.
1241
+ # Must specify list of numeric buckets in spec.
1242
+ # * publish_time_in_year: histogram by the {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1243
+ # in years.
1244
+ # Must specify list of numeric buckets in spec.
1245
+ # * degree_types: histogram by the {Google::Cloud::Talent::V4beta1::Job#degree_types Job.degree_types}, for example,
1246
+ # "Bachelors", "Masters".
1247
+ # * job_level: histogram by the {Google::Cloud::Talent::V4beta1::Job#job_level Job.job_level}, for example, "Entry
1248
+ # Level".
1249
+ # * country: histogram by the country code of jobs, for example, "US", "FR".
1250
+ # * admin1: histogram by the admin1 code of jobs, which is a global
1251
+ # placeholder referring to the state, province, or the particular term a
1252
+ # country uses to define the geographic structure below the country level,
1253
+ # for example, "CA", "IL".
1254
+ # * city: histogram by a combination of the "city name, admin1 code". For
1255
+ # example, "Mountain View, CA", "New York, NY".
1256
+ # * admin1_country: histogram by a combination of the "admin1 code, country",
1257
+ # for example, "CA, US", "IL, US".
1258
+ # * city_coordinate: histogram by the city center's GPS coordinates (latitude
1259
+ # and longitude), for example, 37.4038522,-122.0987765. Since the
1260
+ # coordinates of a city center can change, customers may need to refresh
1261
+ # them periodically.
1262
+ # * locale: histogram by the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code}, for example, "en-US",
1263
+ # "fr-FR".
1264
+ # * language: histogram by the language subtag of the {Google::Cloud::Talent::V4beta1::Job#language_code Job.language_code},
1265
+ # for example, "en", "fr".
1266
+ # * category: histogram by the {Google::Cloud::Talent::V4beta1::JobCategory JobCategory}, for example,
1267
+ # "COMPUTER_AND_IT", "HEALTHCARE".
1268
+ # * base_compensation_unit: histogram by the
1269
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit CompensationInfo.CompensationUnit} of base
1270
+ # salary, for example, "WEEKLY", "MONTHLY".
1271
+ # * base_compensation: histogram by the base salary. Must specify list of
1272
+ # numeric buckets to group results by.
1273
+ # * annualized_base_compensation: histogram by the base annualized salary.
1274
+ # Must specify list of numeric buckets to group results by.
1275
+ # * annualized_total_compensation: histogram by the total annualized salary.
1276
+ # Must specify list of numeric buckets to group results by.
1277
+ # * string_custom_attribute: histogram by string {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
1278
+ # Values can be accessed via square bracket notations like
1279
+ # string_custom_attribute["key1"].
1280
+ # * numeric_custom_attribute: histogram by numeric {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job.custom_attributes}.
1281
+ # Values can be accessed via square bracket notations like
1282
+ # numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
1283
+ # group results by.
1284
+ #
1285
+ # Example expressions:
1286
+ #
1287
+ # * `count(admin1)`
1288
+ # * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
1289
+ # bucket(100000, MAX)])`
1290
+ # * `count(string_custom_attribute["some-string-custom-attribute"])`
1291
+ # * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
1292
+ # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
1293
+ # @param job_view [Google::Cloud::Talent::V4beta1::JobView]
1294
+ # The desired job attributes returned for jobs in the search response.
1295
+ # Defaults to {Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
1296
+ # @param offset [Integer]
1297
+ # An integer that specifies the current offset (that is, starting result
1298
+ # location, amongst the jobs deemed by the API as relevant) in search
1299
+ # results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchJobsRequest#page_token page_token} is unset.
1300
+ #
1301
+ # The maximum allowed value is 5000. Otherwise an error is thrown.
1302
+ #
1303
+ # For example, 0 means to return results starting from the first matching
1304
+ # job, and 10 means to return from the 11th job. This can be used for
1305
+ # pagination, (for example, pageSize = 10 and offset = 10 means to return
1306
+ # from the second page).
1307
+ # @param page_size [Integer]
1308
+ # A limit on the number of jobs returned in the search results.
1309
+ # Increasing this value above the default value of 10 can increase search
1310
+ # response time. The value can be between 1 and 100.
1311
+ # @param page_token [String]
1312
+ # The token specifying the current offset within
1313
+ # search results. See {Google::Cloud::Talent::V4beta1::SearchJobsResponse#next_page_token SearchJobsResponse.next_page_token} for
1314
+ # an explanation of how to obtain the next set of query results.
1315
+ # @param order_by [String]
1316
+ # The criteria determining how search results are sorted. Default is
1317
+ # `"relevance desc"`.
1318
+ #
1319
+ # Supported options are:
1320
+ #
1321
+ # * `"relevance desc"`: By relevance descending, as determined by the API
1322
+ # algorithms. Relevance thresholding of query results is only available
1323
+ # with this ordering.
1324
+ # * `"posting_publish_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1325
+ # descending.
1326
+ # * `"posting_update_time desc"`: By {Google::Cloud::Talent::V4beta1::Job#posting_update_time Job.posting_update_time}
1327
+ # descending.
1328
+ # * `"title"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} ascending.
1329
+ # * `"title desc"`: By {Google::Cloud::Talent::V4beta1::Job#title Job.title} descending.
1330
+ # * `"annualized_base_compensation"`: By job's
1331
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} ascending. Jobs
1332
+ # whose annualized base compensation is unspecified are put at the end of
1333
+ # search results.
1334
+ # * `"annualized_base_compensation desc"`: By job's
1335
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_base_compensation_range CompensationInfo.annualized_base_compensation_range} descending. Jobs
1336
+ # whose annualized base compensation is unspecified are put at the end of
1337
+ # search results.
1338
+ # * `"annualized_total_compensation"`: By job's
1339
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} ascending. Jobs
1340
+ # whose annualized base compensation is unspecified are put at the end of
1341
+ # search results.
1342
+ # * `"annualized_total_compensation desc"`: By job's
1343
+ # {Google::Cloud::Talent::V4beta1::CompensationInfo#annualized_total_compensation_range CompensationInfo.annualized_total_compensation_range} descending. Jobs
1344
+ # whose annualized base compensation is unspecified are put at the end of
1345
+ # search results.
1346
+ # * `"custom_ranking desc"`: By the relevance score adjusted to the
1347
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#ranking_expression SearchJobsRequest.CustomRankingInfo.ranking_expression} with weight
1348
+ # factor assigned by
1349
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo#importance_level SearchJobsRequest.CustomRankingInfo.importance_level} in descending
1350
+ # order.
1351
+ # * Location sorting: Use the special syntax to order jobs by distance:<br>
1352
+ # `"distance_from('Hawaii')"`: Order by distance from Hawaii.<br>
1353
+ # `"distance_from(19.89, 155.5)"`: Order by distance from a coordinate.<br>
1354
+ # `"distance_from('Hawaii'), distance_from('Puerto Rico')"`: Order by
1355
+ # multiple locations. See details below.<br>
1356
+ # `"distance_from('Hawaii'), distance_from(19.89, 155.5)"`: Order by
1357
+ # multiple locations. See details below.<br>
1358
+ # The string can have a maximum of 256 characters. When multiple distance
1359
+ # centers are provided, a job that is close to any of the distance centers
1360
+ # would have a high rank. When a job has multiple locations, the job
1361
+ # location closest to one of the distance centers will be used. Jobs that
1362
+ # don't have locations will be ranked at the bottom. Distance is calculated
1363
+ # with a precision of 11.3 meters (37.4 feet). Diversification strategy is
1364
+ # still applied unless explicitly disabled in
1365
+ # {Google::Cloud::Talent::V4beta1::SearchJobsRequest#diversification_level diversification_level}.
1366
+ # @param diversification_level [Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel]
1367
+ # Controls whether highly similar jobs are returned next to each other in
1368
+ # the search results. Jobs are identified as highly similar based on
1369
+ # their titles, job categories, and locations. Highly similar results are
1370
+ # clustered so that only one representative job of the cluster is
1371
+ # displayed to the job seeker higher up in the results, with the other jobs
1372
+ # being displayed lower down in the results.
1373
+ #
1374
+ # Defaults to {Google::Cloud::Talent::V4beta1::SearchJobsRequest::DiversificationLevel::SIMPLE DiversificationLevel.SIMPLE} if no value
1375
+ # is specified.
1376
+ # @param custom_ranking_info [Google::Cloud::Talent::V4beta1::SearchJobsRequest::CustomRankingInfo, Hash]
1377
+ # Controls over how job documents get ranked on top of existing relevance
1378
+ # score (determined by API algorithm).
1379
+ # @param disable_keyword_match [Boolean]
1380
+ # Controls whether to disable exact keyword match on {Google::Cloud::Talent::V4beta1::Job#title Job.title},
1381
+ # {Google::Cloud::Talent::V4beta1::Job#description Job.description}, {Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1382
+ # {Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
1383
+ # keyword match returns jobs that do not match given category filters when
1384
+ # there are matching keywords. For example, for the query "program manager,"
1385
+ # a result is returned even if the job posting has the title "software
1386
+ # developer," which doesn't fall into "program manager" ontology, but does
1387
+ # have "program manager" appearing in its description.
1388
+ #
1389
+ # For queries like "cloud" that don't contain title or
1390
+ # location specific ontology, jobs with "cloud" keyword matches are returned
1391
+ # regardless of this flag's value.
1392
+ #
1393
+ # Use {Google::Cloud::Talent::V4beta1::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
1394
+ # company-specific globally matched custom field/attribute string values are
1395
+ # needed. Enabling keyword match improves recall of subsequent search
1396
+ # requests.
1397
+ #
1398
+ # Defaults to false.
1399
+ #
1400
+ # @yield [response, operation] Access the result along with the RPC operation
1401
+ # @yieldparam response [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1402
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
1403
+ #
1404
+ # @return [Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1405
+ #
1406
+ # @raise [Google::Cloud::Error] if the RPC is aborted.
1407
+ #
1408
+ def search_jobs_for_alert request, options = nil
1409
+ raise ArgumentError, "request must be provided" if request.nil?
1410
+
1411
+ request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::SearchJobsRequest
1412
+
1413
+ # Converts hash and nil to an options object
1414
+ options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1415
+
1416
+ # Customize the options with defaults
1417
+ metadata = @config.rpcs.search_jobs_for_alert.metadata.to_h
1418
+
1419
+ # Set x-goog-api-client and x-goog-user-project headers
1420
+ metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1421
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1422
+ gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
1423
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1424
+
1425
+ header_params = {
1426
+ "parent" => request.parent
1427
+ }
1428
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1429
+ metadata[:"x-goog-request-params"] ||= request_params_header
1430
+
1431
+ options.apply_defaults timeout: @config.rpcs.search_jobs_for_alert.timeout,
1432
+ metadata: metadata,
1433
+ retry_policy: @config.rpcs.search_jobs_for_alert.retry_policy
1434
+ options.apply_defaults metadata: @config.metadata,
1435
+ retry_policy: @config.retry_policy
1436
+
1437
+ @job_service_stub.call_rpc :search_jobs_for_alert, request, options: options do |response, operation|
1438
+ yield response, operation if block_given?
1439
+ return response
1440
+ end
1441
+ rescue GRPC::BadStatus => e
1442
+ raise Google::Cloud::Error.from_error(e)
1443
+ end
1444
+
1445
+ ##
1446
+ # Configuration class for the JobService API.
1447
+ #
1448
+ # This class represents the configuration for JobService,
1449
+ # providing control over timeouts, retry behavior, logging, transport
1450
+ # parameters, and other low-level controls. Certain parameters can also be
1451
+ # applied individually to specific RPCs. See
1452
+ # {Google::Cloud::Talent::V4beta1::JobService::Client::Configuration::Rpcs}
1453
+ # for a list of RPCs that can be configured independently.
1454
+ #
1455
+ # Configuration can be applied globally to all clients, or to a single client
1456
+ # on construction.
1457
+ #
1458
+ # # Examples
1459
+ #
1460
+ # To modify the global config, setting the timeout for create_job
1461
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
1462
+ #
1463
+ # Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
1464
+ # config.timeout = 10_000
1465
+ # config.rpcs.create_job.timeout = 20_000
1466
+ # end
1467
+ #
1468
+ # To apply the above configuration only to a new client:
1469
+ #
1470
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
1471
+ # config.timeout = 10_000
1472
+ # config.rpcs.create_job.timeout = 20_000
1473
+ # end
1474
+ #
1475
+ # @!attribute [rw] endpoint
1476
+ # The hostname or hostname:port of the service endpoint.
1477
+ # Defaults to `"jobs.googleapis.com"`.
1478
+ # @return [String]
1479
+ # @!attribute [rw] credentials
1480
+ # Credentials to send with calls. You may provide any of the following types:
1481
+ # * (`String`) The path to a service account key file in JSON format
1482
+ # * (`Hash`) A service account key as a Hash
1483
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1484
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1485
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1486
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1487
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1488
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1489
+ # * (`nil`) indicating no credentials
1490
+ # @return [Object]
1491
+ # @!attribute [rw] scope
1492
+ # The OAuth scopes
1493
+ # @return [Array<String>]
1494
+ # @!attribute [rw] lib_name
1495
+ # The library name as recorded in instrumentation and logging
1496
+ # @return [String]
1497
+ # @!attribute [rw] lib_version
1498
+ # The library version as recorded in instrumentation and logging
1499
+ # @return [String]
1500
+ # @!attribute [rw] channel_args
1501
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1502
+ # `GRPC::Core::Channel` object is provided as the credential.
1503
+ # @return [Hash]
1504
+ # @!attribute [rw] interceptors
1505
+ # An array of interceptors that are run before calls are executed.
1506
+ # @return [Array<GRPC::ClientInterceptor>]
1507
+ # @!attribute [rw] timeout
1508
+ # The call timeout in milliseconds.
1509
+ # @return [Numeric]
1510
+ # @!attribute [rw] metadata
1511
+ # Additional gRPC headers to be sent with the call.
1512
+ # @return [Hash{Symbol=>String}]
1513
+ # @!attribute [rw] retry_policy
1514
+ # The retry policy. The value is a hash with the following keys:
1515
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1516
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1517
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1518
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1519
+ # trigger a retry.
1520
+ # @return [Hash]
1521
+ #
1522
+ class Configuration
1523
+ extend Gapic::Config
1524
+
1525
+ config_attr :endpoint, "jobs.googleapis.com", String
1526
+ config_attr :credentials, nil do |value|
1527
+ allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1528
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1529
+ allowed.any? { |klass| klass === value }
1530
+ end
1531
+ config_attr :scope, nil, String, Array, nil
1532
+ config_attr :lib_name, nil, String, nil
1533
+ config_attr :lib_version, nil, String, nil
1534
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1535
+ config_attr :interceptors, nil, Array, nil
1536
+ config_attr :timeout, nil, Numeric, nil
1537
+ config_attr :metadata, nil, Hash, nil
1538
+ config_attr :retry_policy, nil, Hash, Proc, nil
1539
+
1540
+ # @private
1541
+ def initialize parent_config = nil
1542
+ @parent_config = parent_config unless parent_config.nil?
1543
+
1544
+ yield self if block_given?
1545
+ end
1546
+
1547
+ ##
1548
+ # Configurations for individual RPCs
1549
+ # @return [Rpcs]
1550
+ #
1551
+ def rpcs
1552
+ @rpcs ||= begin
1553
+ parent_rpcs = nil
1554
+ parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1555
+ Rpcs.new parent_rpcs
1556
+ end
1557
+ end
1558
+
1559
+ ##
1560
+ # Configuration RPC class for the JobService API.
1561
+ #
1562
+ # Includes fields providing the configuration for each RPC in this service.
1563
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1564
+ # the following configuration fields:
1565
+ #
1566
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1567
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1568
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1569
+ # include the following keys:
1570
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1571
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1572
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1573
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1574
+ # trigger a retry.
1575
+ #
1576
+ class Rpcs
1577
+ ##
1578
+ # RPC-specific configuration for `create_job`
1579
+ # @return [Gapic::Config::Method]
1580
+ #
1581
+ attr_reader :create_job
1582
+ ##
1583
+ # RPC-specific configuration for `batch_create_jobs`
1584
+ # @return [Gapic::Config::Method]
1585
+ #
1586
+ attr_reader :batch_create_jobs
1587
+ ##
1588
+ # RPC-specific configuration for `get_job`
1589
+ # @return [Gapic::Config::Method]
1590
+ #
1591
+ attr_reader :get_job
1592
+ ##
1593
+ # RPC-specific configuration for `update_job`
1594
+ # @return [Gapic::Config::Method]
1595
+ #
1596
+ attr_reader :update_job
1597
+ ##
1598
+ # RPC-specific configuration for `batch_update_jobs`
1599
+ # @return [Gapic::Config::Method]
1600
+ #
1601
+ attr_reader :batch_update_jobs
1602
+ ##
1603
+ # RPC-specific configuration for `delete_job`
1604
+ # @return [Gapic::Config::Method]
1605
+ #
1606
+ attr_reader :delete_job
1607
+ ##
1608
+ # RPC-specific configuration for `batch_delete_jobs`
1609
+ # @return [Gapic::Config::Method]
1610
+ #
1611
+ attr_reader :batch_delete_jobs
1612
+ ##
1613
+ # RPC-specific configuration for `list_jobs`
1614
+ # @return [Gapic::Config::Method]
1615
+ #
1616
+ attr_reader :list_jobs
1617
+ ##
1618
+ # RPC-specific configuration for `search_jobs`
1619
+ # @return [Gapic::Config::Method]
1620
+ #
1621
+ attr_reader :search_jobs
1622
+ ##
1623
+ # RPC-specific configuration for `search_jobs_for_alert`
1624
+ # @return [Gapic::Config::Method]
1625
+ #
1626
+ attr_reader :search_jobs_for_alert
1627
+
1628
+ # @private
1629
+ def initialize parent_rpcs = nil
1630
+ create_job_config = parent_rpcs&.create_job if parent_rpcs&.respond_to? :create_job
1631
+ @create_job = Gapic::Config::Method.new create_job_config
1632
+ batch_create_jobs_config = parent_rpcs&.batch_create_jobs if parent_rpcs&.respond_to? :batch_create_jobs
1633
+ @batch_create_jobs = Gapic::Config::Method.new batch_create_jobs_config
1634
+ get_job_config = parent_rpcs&.get_job if parent_rpcs&.respond_to? :get_job
1635
+ @get_job = Gapic::Config::Method.new get_job_config
1636
+ update_job_config = parent_rpcs&.update_job if parent_rpcs&.respond_to? :update_job
1637
+ @update_job = Gapic::Config::Method.new update_job_config
1638
+ batch_update_jobs_config = parent_rpcs&.batch_update_jobs if parent_rpcs&.respond_to? :batch_update_jobs
1639
+ @batch_update_jobs = Gapic::Config::Method.new batch_update_jobs_config
1640
+ delete_job_config = parent_rpcs&.delete_job if parent_rpcs&.respond_to? :delete_job
1641
+ @delete_job = Gapic::Config::Method.new delete_job_config
1642
+ batch_delete_jobs_config = parent_rpcs&.batch_delete_jobs if parent_rpcs&.respond_to? :batch_delete_jobs
1643
+ @batch_delete_jobs = Gapic::Config::Method.new batch_delete_jobs_config
1644
+ list_jobs_config = parent_rpcs&.list_jobs if parent_rpcs&.respond_to? :list_jobs
1645
+ @list_jobs = Gapic::Config::Method.new list_jobs_config
1646
+ search_jobs_config = parent_rpcs&.search_jobs if parent_rpcs&.respond_to? :search_jobs
1647
+ @search_jobs = Gapic::Config::Method.new search_jobs_config
1648
+ search_jobs_for_alert_config = parent_rpcs&.search_jobs_for_alert if parent_rpcs&.respond_to? :search_jobs_for_alert
1649
+ @search_jobs_for_alert = Gapic::Config::Method.new search_jobs_for_alert_config
1650
+
1651
+ yield self if block_given?
1652
+ end
1653
+ end
1654
+ end
1655
+ end
1656
+ end
1657
+ end
1658
+ end
1659
+ end
1660
+ end