google-cloud-talent-v4 0.4.2 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/talent/v4/common_pb.rb +5 -2
  3. data/lib/google/cloud/talent/v4/company_pb.rb +2 -2
  4. data/lib/google/cloud/talent/v4/company_service/client.rb +69 -56
  5. data/lib/google/cloud/talent/v4/company_service_pb.rb +2 -2
  6. data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
  7. data/lib/google/cloud/talent/v4/completion/client.rb +37 -40
  8. data/lib/google/cloud/talent/v4/completion_service_pb.rb +2 -2
  9. data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
  10. data/lib/google/cloud/talent/v4/event_pb.rb +2 -2
  11. data/lib/google/cloud/talent/v4/event_service/client.rb +37 -40
  12. data/lib/google/cloud/talent/v4/event_service_pb.rb +2 -2
  13. data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
  14. data/lib/google/cloud/talent/v4/filters_pb.rb +2 -2
  15. data/lib/google/cloud/talent/v4/histogram_pb.rb +1 -1
  16. data/lib/google/cloud/talent/v4/job_pb.rb +2 -2
  17. data/lib/google/cloud/talent/v4/job_service/client.rb +155 -83
  18. data/lib/google/cloud/talent/v4/job_service/operations.rb +50 -33
  19. data/lib/google/cloud/talent/v4/job_service_pb.rb +13 -2
  20. data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
  21. data/lib/google/cloud/talent/v4/tenant_pb.rb +2 -2
  22. data/lib/google/cloud/talent/v4/tenant_service/client.rb +69 -56
  23. data/lib/google/cloud/talent/v4/tenant_service_pb.rb +2 -2
  24. data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
  25. data/lib/google/cloud/talent/v4/version.rb +1 -1
  26. data/proto_docs/google/cloud/talent/v4/common.rb +12 -1
  27. data/proto_docs/google/cloud/talent/v4/filters.rb +12 -8
  28. data/proto_docs/google/cloud/talent/v4/job.rb +10 -1
  29. data/proto_docs/google/cloud/talent/v4/job_service.rb +82 -8
  30. metadata +4 -4
@@ -160,16 +160,20 @@ module Google
160
160
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
161
161
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
162
 
163
- header_params = {
164
- "name" => request.name
165
- }
163
+ header_params = {}
164
+ if request.name
165
+ header_params["name"] = request.name
166
+ end
167
+
166
168
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
169
  metadata[:"x-goog-request-params"] ||= request_params_header
168
170
 
169
171
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
172
  metadata: metadata,
171
173
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
174
+
175
+ options.apply_defaults timeout: @config.timeout,
176
+ metadata: @config.metadata,
173
177
  retry_policy: @config.retry_policy
174
178
 
175
179
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -230,16 +234,20 @@ module Google
230
234
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
231
235
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
236
 
233
- header_params = {
234
- "name" => request.name
235
- }
237
+ header_params = {}
238
+ if request.name
239
+ header_params["name"] = request.name
240
+ end
241
+
236
242
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
237
243
  metadata[:"x-goog-request-params"] ||= request_params_header
238
244
 
239
245
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
246
  metadata: metadata,
241
247
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
248
+
249
+ options.apply_defaults timeout: @config.timeout,
250
+ metadata: @config.metadata,
243
251
  retry_policy: @config.retry_policy
244
252
 
245
253
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -300,16 +308,20 @@ module Google
300
308
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
301
309
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
302
310
 
303
- header_params = {
304
- "name" => request.name
305
- }
311
+ header_params = {}
312
+ if request.name
313
+ header_params["name"] = request.name
314
+ end
315
+
306
316
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
307
317
  metadata[:"x-goog-request-params"] ||= request_params_header
308
318
 
309
319
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
320
  metadata: metadata,
311
321
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
322
+
323
+ options.apply_defaults timeout: @config.timeout,
324
+ metadata: @config.metadata,
313
325
  retry_policy: @config.retry_policy
314
326
 
315
327
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -375,16 +387,20 @@ module Google
375
387
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
376
388
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
377
389
 
378
- header_params = {
379
- "name" => request.name
380
- }
390
+ header_params = {}
391
+ if request.name
392
+ header_params["name"] = request.name
393
+ end
394
+
381
395
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
382
396
  metadata[:"x-goog-request-params"] ||= request_params_header
383
397
 
384
398
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
399
  metadata: metadata,
386
400
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
401
+
402
+ options.apply_defaults timeout: @config.timeout,
403
+ metadata: @config.metadata,
388
404
  retry_policy: @config.retry_policy
389
405
 
390
406
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +472,9 @@ module Google
456
472
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
473
  metadata: metadata,
458
474
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
475
+
476
+ options.apply_defaults timeout: @config.timeout,
477
+ metadata: @config.metadata,
460
478
  retry_policy: @config.retry_policy
461
479
 
462
480
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +499,21 @@ module Google
481
499
  # Configuration can be applied globally to all clients, or to a single client
482
500
  # on construction.
483
501
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
502
+ # @example
503
+ #
504
+ # # Modify the global config, setting the timeout for
505
+ # # list_operations to 20 seconds,
506
+ # # and all remaining timeouts to 10 seconds.
507
+ # ::Google::Longrunning::Operations::Client.configure do |config|
508
+ # config.timeout = 10.0
509
+ # config.rpcs.list_operations.timeout = 20.0
510
+ # end
511
+ #
512
+ # # Apply the above configuration only to a new client.
513
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
514
+ # config.timeout = 10.0
515
+ # config.rpcs.list_operations.timeout = 20.0
516
+ # end
500
517
  #
501
518
  # @!attribute [rw] endpoint
502
519
  # The hostname or hostname:port of the service endpoint.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/job_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -17,6 +15,8 @@ require 'google/protobuf/duration_pb'
17
15
  require 'google/protobuf/empty_pb'
18
16
  require 'google/protobuf/field_mask_pb'
19
17
  require 'google/rpc/status_pb'
18
+ require 'google/protobuf'
19
+
20
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
21
21
  add_file("google/cloud/talent/v4/job_service.proto", :syntax => :proto3) do
22
22
  add_message "google.cloud.talent.v4.CreateJobRequest" do
@@ -60,6 +60,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
60
60
  optional :diversification_level, :enum, 13, "google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel"
61
61
  optional :custom_ranking_info, :message, 14, "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo"
62
62
  optional :disable_keyword_match, :bool, 16
63
+ optional :keyword_match_mode, :enum, 18, "google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode"
63
64
  end
64
65
  add_message "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo" do
65
66
  optional :importance_level, :enum, 1, "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel"
@@ -83,6 +84,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
83
84
  value :DIVERSIFICATION_LEVEL_UNSPECIFIED, 0
84
85
  value :DISABLED, 1
85
86
  value :SIMPLE, 2
87
+ value :ONE_PER_COMPANY, 3
88
+ value :TWO_PER_COMPANY, 4
89
+ value :DIVERSIFY_BY_LOOSER_SIMILARITY, 5
90
+ end
91
+ add_enum "google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode" do
92
+ value :KEYWORD_MATCH_MODE_UNSPECIFIED, 0
93
+ value :KEYWORD_MATCH_DISABLED, 1
94
+ value :KEYWORD_MATCH_ALL, 2
95
+ value :KEYWORD_MATCH_TITLE_ONLY, 3
86
96
  end
87
97
  add_message "google.cloud.talent.v4.SearchJobsResponse" do
88
98
  repeated :matching_jobs, :message, 1, "google.cloud.talent.v4.SearchJobsResponse.MatchingJob"
@@ -156,6 +166,7 @@ module Google
156
166
  SearchJobsRequest::CustomRankingInfo::ImportanceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel").enummodule
157
167
  SearchJobsRequest::SearchMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.SearchMode").enummodule
158
168
  SearchJobsRequest::DiversificationLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel").enummodule
169
+ SearchJobsRequest::KeywordMatchMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode").enummodule
159
170
  SearchJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsResponse").msgclass
160
171
  SearchJobsResponse::MatchingJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsResponse.MatchingJob").msgclass
161
172
  SearchJobsResponse::CommuteInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsResponse.CommuteInfo").msgclass
@@ -27,7 +27,7 @@ module Google
27
27
  # A service handles job management, including job CRUD, enumeration and search.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/tenant.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/talent/v4/tenant.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.talent.v4.Tenant" do
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Talent::V4::TenantService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all TenantService clients:
47
- #
48
- # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all TenantService clients
47
+ # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -113,19 +112,15 @@ module Google
113
112
  ##
114
113
  # Create a new TenantService client object.
115
114
  #
116
- # ## Examples
117
- #
118
- # To create a new TenantService client with the default
119
- # configuration:
120
- #
121
- # client = ::Google::Cloud::Talent::V4::TenantService::Client.new
115
+ # @example
122
116
  #
123
- # To create a new TenantService client with a custom
124
- # configuration:
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::Talent::V4::TenantService::Client.new
125
119
  #
126
- # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
127
- # config.timeout = 10.0
128
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
129
124
  #
130
125
  # @yield [config] Configure the TenantService client.
131
126
  # @yieldparam config [Client::Configuration]
@@ -145,10 +140,9 @@ module Google
145
140
 
146
141
  # Create credentials
147
142
  credentials = @config.credentials
148
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
144
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
151
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
146
  !@config.endpoint.split(".").first.include?("-")
153
147
  credentials ||= Credentials.default scope: @config.scope,
154
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -220,16 +214,20 @@ module Google
220
214
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
221
215
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
222
216
 
223
- header_params = {
224
- "parent" => request.parent
225
- }
217
+ header_params = {}
218
+ if request.parent
219
+ header_params["parent"] = request.parent
220
+ end
221
+
226
222
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
227
223
  metadata[:"x-goog-request-params"] ||= request_params_header
228
224
 
229
225
  options.apply_defaults timeout: @config.rpcs.create_tenant.timeout,
230
226
  metadata: metadata,
231
227
  retry_policy: @config.rpcs.create_tenant.retry_policy
232
- options.apply_defaults metadata: @config.metadata,
228
+
229
+ options.apply_defaults timeout: @config.timeout,
230
+ metadata: @config.metadata,
233
231
  retry_policy: @config.retry_policy
234
232
 
235
233
  @tenant_service_stub.call_rpc :create_tenant, request, options: options do |response, operation|
@@ -289,16 +287,20 @@ module Google
289
287
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
290
288
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
291
289
 
292
- header_params = {
293
- "name" => request.name
294
- }
290
+ header_params = {}
291
+ if request.name
292
+ header_params["name"] = request.name
293
+ end
294
+
295
295
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
296
296
  metadata[:"x-goog-request-params"] ||= request_params_header
297
297
 
298
298
  options.apply_defaults timeout: @config.rpcs.get_tenant.timeout,
299
299
  metadata: metadata,
300
300
  retry_policy: @config.rpcs.get_tenant.retry_policy
301
- options.apply_defaults metadata: @config.metadata,
301
+
302
+ options.apply_defaults timeout: @config.timeout,
303
+ metadata: @config.metadata,
302
304
  retry_policy: @config.retry_policy
303
305
 
304
306
  @tenant_service_stub.call_rpc :get_tenant, request, options: options do |response, operation|
@@ -363,16 +365,20 @@ module Google
363
365
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
364
366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
365
367
 
366
- header_params = {
367
- "tenant.name" => request.tenant.name
368
- }
368
+ header_params = {}
369
+ if request.tenant&.name
370
+ header_params["tenant.name"] = request.tenant.name
371
+ end
372
+
369
373
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
370
374
  metadata[:"x-goog-request-params"] ||= request_params_header
371
375
 
372
376
  options.apply_defaults timeout: @config.rpcs.update_tenant.timeout,
373
377
  metadata: metadata,
374
378
  retry_policy: @config.rpcs.update_tenant.retry_policy
375
- options.apply_defaults metadata: @config.metadata,
379
+
380
+ options.apply_defaults timeout: @config.timeout,
381
+ metadata: @config.metadata,
376
382
  retry_policy: @config.retry_policy
377
383
 
378
384
  @tenant_service_stub.call_rpc :update_tenant, request, options: options do |response, operation|
@@ -432,16 +438,20 @@ module Google
432
438
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
433
439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
434
440
 
435
- header_params = {
436
- "name" => request.name
437
- }
441
+ header_params = {}
442
+ if request.name
443
+ header_params["name"] = request.name
444
+ end
445
+
438
446
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
439
447
  metadata[:"x-goog-request-params"] ||= request_params_header
440
448
 
441
449
  options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout,
442
450
  metadata: metadata,
443
451
  retry_policy: @config.rpcs.delete_tenant.retry_policy
444
- options.apply_defaults metadata: @config.metadata,
452
+
453
+ options.apply_defaults timeout: @config.timeout,
454
+ metadata: @config.metadata,
445
455
  retry_policy: @config.retry_policy
446
456
 
447
457
  @tenant_service_stub.call_rpc :delete_tenant, request, options: options do |response, operation|
@@ -506,16 +516,20 @@ module Google
506
516
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
507
517
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
508
518
 
509
- header_params = {
510
- "parent" => request.parent
511
- }
519
+ header_params = {}
520
+ if request.parent
521
+ header_params["parent"] = request.parent
522
+ end
523
+
512
524
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
513
525
  metadata[:"x-goog-request-params"] ||= request_params_header
514
526
 
515
527
  options.apply_defaults timeout: @config.rpcs.list_tenants.timeout,
516
528
  metadata: metadata,
517
529
  retry_policy: @config.rpcs.list_tenants.retry_policy
518
- options.apply_defaults metadata: @config.metadata,
530
+
531
+ options.apply_defaults timeout: @config.timeout,
532
+ metadata: @config.metadata,
519
533
  retry_policy: @config.retry_policy
520
534
 
521
535
  @tenant_service_stub.call_rpc :list_tenants, request, options: options do |response, operation|
@@ -540,22 +554,21 @@ module Google
540
554
  # Configuration can be applied globally to all clients, or to a single client
541
555
  # on construction.
542
556
  #
543
- # # Examples
544
- #
545
- # To modify the global config, setting the timeout for create_tenant
546
- # to 20 seconds, and all remaining timeouts to 10 seconds:
547
- #
548
- # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
549
- # config.timeout = 10.0
550
- # config.rpcs.create_tenant.timeout = 20.0
551
- # end
552
- #
553
- # To apply the above configuration only to a new client:
554
- #
555
- # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
556
- # config.timeout = 10.0
557
- # config.rpcs.create_tenant.timeout = 20.0
558
- # end
557
+ # @example
558
+ #
559
+ # # Modify the global config, setting the timeout for
560
+ # # create_tenant to 20 seconds,
561
+ # # and all remaining timeouts to 10 seconds.
562
+ # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
563
+ # config.timeout = 10.0
564
+ # config.rpcs.create_tenant.timeout = 20.0
565
+ # end
566
+ #
567
+ # # Apply the above configuration only to a new client.
568
+ # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
569
+ # config.timeout = 10.0
570
+ # config.rpcs.create_tenant.timeout = 20.0
571
+ # end
559
572
  #
560
573
  # @!attribute [rw] endpoint
561
574
  # The hostname or hostname:port of the service endpoint.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/tenant_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -11,6 +9,8 @@ require 'google/cloud/talent/v4/common_pb'
11
9
  require 'google/cloud/talent/v4/tenant_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/talent/v4/tenant_service.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.talent.v4.CreateTenantRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # A service that handles tenant management, including CRUD and enumeration.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4
24
- VERSION = "0.4.2"
24
+ VERSION = "0.6.1"
25
25
  end
26
26
  end
27
27
  end
@@ -865,7 +865,8 @@ module Google
865
865
  SIMPLE_FORMATTING_ONLY = 2
866
866
  end
867
867
 
868
- # Method for commute.
868
+ # Method for commute. Walking, biking and wheelchair accessible transit is
869
+ # still in the Preview stage.
869
870
  module CommuteMethod
870
871
  # Commute method isn't specified.
871
872
  COMMUTE_METHOD_UNSPECIFIED = 0
@@ -876,6 +877,16 @@ module Google
876
877
  # Commute time is calculated based on public transit including bus, metro,
877
878
  # subway, and so on.
878
879
  TRANSIT = 2
880
+
881
+ # Commute time is calculated based on walking time.
882
+ WALKING = 3
883
+
884
+ # Commute time is calculated based on biking time.
885
+ CYCLING = 4
886
+
887
+ # Commute time is calculated based on public transit that is wheelchair
888
+ # accessible.
889
+ TRANSIT_ACCESSIBLE = 5
879
890
  end
880
891
  end
881
892
  end
@@ -124,7 +124,7 @@ module Google
124
124
  # Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
125
125
  # nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
126
126
  # comparisons or functions are allowed in the expression. The expression
127
- # must be < 6000 bytes in length.
127
+ # must be < 10000 bytes in length.
128
128
  #
129
129
  # Sample Query:
130
130
  # `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
@@ -180,16 +180,20 @@ module Google
180
180
  # The address name, such as "Mountain View" or "Bay Area".
181
181
  # @!attribute [rw] region_code
182
182
  # @return [::String]
183
- # CLDR region code of the country/region of the address. This is used
184
- # to address ambiguity of the user-input location, for example, "Liverpool"
185
- # against "Liverpool, NY, US" or "Liverpool, UK".
183
+ # CLDR region code of the country/region. This field may be used in two ways:
186
184
  #
187
- # Set this field to bias location resolution toward a specific country
188
- # or territory. If this field is not set, application behavior is biased
189
- # toward the United States by default.
185
+ # 1) If telecommute preference is not set, this field is used address
186
+ # ambiguity of the user-input address. For example, "Liverpool" may refer to
187
+ # "Liverpool, NY, US" or "Liverpool, UK". This region code biases the
188
+ # address resolution toward a specific country or territory. If this field is
189
+ # not set, address resolution is biased toward the United States by default.
190
+ #
191
+ # 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the
192
+ # telecommute location filter will be limited to the region specified in this
193
+ # field. If this field is not set, the telecommute job locations will not be
190
194
  #
191
195
  # See
192
- # https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
196
+ # https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html
193
197
  # for details. Example: "CH" for Switzerland.
194
198
  # @!attribute [rw] lat_lng
195
199
  # @return [::Google::Type::LatLng]
@@ -88,6 +88,15 @@ module Google
88
88
  # suggested to group the locations that close to each other in the same job
89
89
  # for better search experience.
90
90
  #
91
+ # Jobs with multiple addresses must have their addresses with the same
92
+ # [LocationType][] to allow location filtering to work properly. (For
93
+ # example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View,
94
+ # CA, USA" and "London, UK" may not have location filters applied correctly
95
+ # at search time since the first is a [LocationType.STREET_ADDRESS][] and the
96
+ # second is a [LocationType.LOCALITY][].) If a job needs to have multiple
97
+ # addresses, it is suggested to split it into multiple jobs with same
98
+ # LocationTypes.
99
+ #
91
100
  # The maximum number of allowed characters is 500.
92
101
  # @!attribute [rw] application_info
93
102
  # @return [::Google::Cloud::Talent::V4::Job::ApplicationInfo]
@@ -105,7 +114,7 @@ module Google
105
114
  # attributes that are not covered by the provided structured fields.
106
115
  #
107
116
  # The keys of the map are strings up to 64 bytes and must match the
108
- # pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
117
+ # pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example, key0LikeThis or
109
118
  # KEY_1_LIKE_THIS.
110
119
  #
111
120
  # At most 100 filterable and at most 100 unfilterable keys are supported.