google-cloud-talent-v4 0.5.0 → 0.6.3

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/lib/google/cloud/talent/v4/common_pb.rb +2 -2
  5. data/lib/google/cloud/talent/v4/company_pb.rb +2 -2
  6. data/lib/google/cloud/talent/v4/company_service/client.rb +106 -15
  7. data/lib/google/cloud/talent/v4/company_service_pb.rb +2 -2
  8. data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
  9. data/lib/google/cloud/talent/v4/completion/client.rb +20 -3
  10. data/lib/google/cloud/talent/v4/completion_service_pb.rb +2 -2
  11. data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
  12. data/lib/google/cloud/talent/v4/event_pb.rb +2 -2
  13. data/lib/google/cloud/talent/v4/event_service/client.rb +20 -3
  14. data/lib/google/cloud/talent/v4/event_service_pb.rb +2 -2
  15. data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
  16. data/lib/google/cloud/talent/v4/filters_pb.rb +2 -2
  17. data/lib/google/cloud/talent/v4/histogram_pb.rb +1 -1
  18. data/lib/google/cloud/talent/v4/job_pb.rb +2 -2
  19. data/lib/google/cloud/talent/v4/job_service/client.rb +260 -34
  20. data/lib/google/cloud/talent/v4/job_service/operations.rb +115 -12
  21. data/lib/google/cloud/talent/v4/job_service_pb.rb +13 -2
  22. data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
  23. data/lib/google/cloud/talent/v4/tenant_pb.rb +2 -2
  24. data/lib/google/cloud/talent/v4/tenant_service/client.rb +106 -15
  25. data/lib/google/cloud/talent/v4/tenant_service_pb.rb +2 -2
  26. data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
  27. data/lib/google/cloud/talent/v4/version.rb +1 -1
  28. data/proto_docs/google/api/resource.rb +10 -71
  29. data/proto_docs/google/cloud/talent/v4/job.rb +1 -1
  30. data/proto_docs/google/cloud/talent/v4/job_service.rb +72 -6
  31. metadata +3 -3
@@ -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
@@ -197,6 +197,21 @@ module Google
197
197
  #
198
198
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
199
199
  #
200
+ # @example Basic example
201
+ # require "google/cloud/talent/v4"
202
+ #
203
+ # # Create a client object. The client can be reused for multiple calls.
204
+ # client = Google::Cloud::Talent::V4::TenantService::Client.new
205
+ #
206
+ # # Create a request. To set request fields, pass in keyword arguments.
207
+ # request = Google::Cloud::Talent::V4::CreateTenantRequest.new
208
+ #
209
+ # # Call the create_tenant method.
210
+ # result = client.create_tenant request
211
+ #
212
+ # # The returned object is of type Google::Cloud::Talent::V4::Tenant.
213
+ # p result
214
+ #
200
215
  def create_tenant request, options = nil
201
216
  raise ::ArgumentError, "request must be provided" if request.nil?
202
217
 
@@ -214,9 +229,11 @@ module Google
214
229
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
215
230
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
216
231
 
217
- header_params = {
218
- "parent" => request.parent
219
- }
232
+ header_params = {}
233
+ if request.parent
234
+ header_params["parent"] = request.parent
235
+ end
236
+
220
237
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
221
238
  metadata[:"x-goog-request-params"] ||= request_params_header
222
239
 
@@ -268,6 +285,21 @@ module Google
268
285
  #
269
286
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
270
287
  #
288
+ # @example Basic example
289
+ # require "google/cloud/talent/v4"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Cloud::Talent::V4::TenantService::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Cloud::Talent::V4::GetTenantRequest.new
296
+ #
297
+ # # Call the get_tenant method.
298
+ # result = client.get_tenant request
299
+ #
300
+ # # The returned object is of type Google::Cloud::Talent::V4::Tenant.
301
+ # p result
302
+ #
271
303
  def get_tenant request, options = nil
272
304
  raise ::ArgumentError, "request must be provided" if request.nil?
273
305
 
@@ -285,9 +317,11 @@ module Google
285
317
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
286
318
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
287
319
 
288
- header_params = {
289
- "name" => request.name
290
- }
320
+ header_params = {}
321
+ if request.name
322
+ header_params["name"] = request.name
323
+ end
324
+
291
325
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
292
326
  metadata[:"x-goog-request-params"] ||= request_params_header
293
327
 
@@ -344,6 +378,21 @@ module Google
344
378
  #
345
379
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
346
380
  #
381
+ # @example Basic example
382
+ # require "google/cloud/talent/v4"
383
+ #
384
+ # # Create a client object. The client can be reused for multiple calls.
385
+ # client = Google::Cloud::Talent::V4::TenantService::Client.new
386
+ #
387
+ # # Create a request. To set request fields, pass in keyword arguments.
388
+ # request = Google::Cloud::Talent::V4::UpdateTenantRequest.new
389
+ #
390
+ # # Call the update_tenant method.
391
+ # result = client.update_tenant request
392
+ #
393
+ # # The returned object is of type Google::Cloud::Talent::V4::Tenant.
394
+ # p result
395
+ #
347
396
  def update_tenant request, options = nil
348
397
  raise ::ArgumentError, "request must be provided" if request.nil?
349
398
 
@@ -361,9 +410,11 @@ module Google
361
410
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
362
411
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
412
 
364
- header_params = {
365
- "tenant.name" => request.tenant.name
366
- }
413
+ header_params = {}
414
+ if request.tenant&.name
415
+ header_params["tenant.name"] = request.tenant.name
416
+ end
417
+
367
418
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
368
419
  metadata[:"x-goog-request-params"] ||= request_params_header
369
420
 
@@ -415,6 +466,21 @@ module Google
415
466
  #
416
467
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
417
468
  #
469
+ # @example Basic example
470
+ # require "google/cloud/talent/v4"
471
+ #
472
+ # # Create a client object. The client can be reused for multiple calls.
473
+ # client = Google::Cloud::Talent::V4::TenantService::Client.new
474
+ #
475
+ # # Create a request. To set request fields, pass in keyword arguments.
476
+ # request = Google::Cloud::Talent::V4::DeleteTenantRequest.new
477
+ #
478
+ # # Call the delete_tenant method.
479
+ # result = client.delete_tenant request
480
+ #
481
+ # # The returned object is of type Google::Protobuf::Empty.
482
+ # p result
483
+ #
418
484
  def delete_tenant request, options = nil
419
485
  raise ::ArgumentError, "request must be provided" if request.nil?
420
486
 
@@ -432,9 +498,11 @@ module Google
432
498
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
433
499
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
434
500
 
435
- header_params = {
436
- "name" => request.name
437
- }
501
+ header_params = {}
502
+ if request.name
503
+ header_params["name"] = request.name
504
+ end
505
+
438
506
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
439
507
  metadata[:"x-goog-request-params"] ||= request_params_header
440
508
 
@@ -491,6 +559,27 @@ module Google
491
559
  #
492
560
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
493
561
  #
562
+ # @example Basic example
563
+ # require "google/cloud/talent/v4"
564
+ #
565
+ # # Create a client object. The client can be reused for multiple calls.
566
+ # client = Google::Cloud::Talent::V4::TenantService::Client.new
567
+ #
568
+ # # Create a request. To set request fields, pass in keyword arguments.
569
+ # request = Google::Cloud::Talent::V4::ListTenantsRequest.new
570
+ #
571
+ # # Call the list_tenants method.
572
+ # result = client.list_tenants request
573
+ #
574
+ # # The returned object is of type Gapic::PagedEnumerable. You can
575
+ # # iterate over all elements by calling #each, and the enumerable
576
+ # # will lazily make API calls to fetch subsequent pages. Other
577
+ # # methods are also available for managing paging directly.
578
+ # result.each do |response|
579
+ # # Each element is of type ::Google::Cloud::Talent::V4::Tenant.
580
+ # p response
581
+ # end
582
+ #
494
583
  def list_tenants request, options = nil
495
584
  raise ::ArgumentError, "request must be provided" if request.nil?
496
585
 
@@ -508,9 +597,11 @@ module Google
508
597
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
509
598
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
510
599
 
511
- header_params = {
512
- "parent" => request.parent
513
- }
600
+ header_params = {}
601
+ if request.parent
602
+ header_params["parent"] = request.parent
603
+ end
604
+
514
605
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
515
606
  metadata[:"x-goog-request-params"] ||= request_params_header
516
607
 
@@ -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.5.0"
24
+ VERSION = "0.6.3"
25
25
  end
26
26
  end
27
27
  end
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -114,7 +114,7 @@ module Google
114
114
  # attributes that are not covered by the provided structured fields.
115
115
  #
116
116
  # The keys of the map are strings up to 64 bytes and must match the
117
- # 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
118
118
  # KEY_1_LIKE_THIS.
119
119
  #
120
120
  # At most 100 filterable and at most 100 unfilterable keys are supported.
@@ -194,7 +194,7 @@ module Google
194
194
  #
195
195
  # Data types:
196
196
  #
197
- # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
197
+ # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
198
198
  # * String: string like "any string with backslash escape for quote(\")."
199
199
  # * Number: whole number and floating point number like 10, -1 and -0.01.
200
200
  # * List: list of elements with comma(,) separator surrounded by square
@@ -370,6 +370,14 @@ module Google
370
370
  # score (determined by API algorithm).
371
371
  # @!attribute [rw] disable_keyword_match
372
372
  # @return [::Boolean]
373
+ # This field is deprecated. Please use
374
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
375
+ #
376
+ # To migrate, disable_keyword_match set to false maps to
377
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
378
+ # true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
379
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
380
+ #
373
381
  # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
374
382
  # {::Google::Cloud::Talent::V4::Job#description Job.description}, {::Google::Cloud::Talent::V4::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4::Job#addresses Job.addresses},
375
383
  # {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
@@ -389,6 +397,13 @@ module Google
389
397
  # requests.
390
398
  #
391
399
  # Defaults to false.
400
+ # @!attribute [rw] keyword_match_mode
401
+ # @return [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
402
+ # Controls what keyword match options to use. If both keyword_match_mode and
403
+ # disable_keyword_match are set, keyword_match_mode will take precedence.
404
+ #
405
+ # Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
406
+ # is specified.
392
407
  class SearchJobsRequest
393
408
  include ::Google::Protobuf::MessageExts
394
409
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -415,7 +430,7 @@ module Google
415
430
  # integer/double value or an expression that can be evaluated to a number.
416
431
  #
417
432
  # Parenthesis are supported to adjust calculation precedence. The
418
- # expression must be < 100 characters in length.
433
+ # expression must be < 200 characters in length.
419
434
  #
420
435
  # The expression is considered invalid for a job if the expression
421
436
  # references custom attributes that are not populated on the job or if the
@@ -490,6 +505,11 @@ module Google
490
505
  # clustered so that only one representative job of the cluster is
491
506
  # displayed to the job seeker higher up in the results, with the other jobs
492
507
  # being displayed lower down in the results.
508
+ #
509
+ # If you are using pageToken to page through the result set,
510
+ # latency might be lower but we can't guarantee that all results are
511
+ # returned. If you are using page offset, latency might be higher but all
512
+ # results are returned.
493
513
  module DiversificationLevel
494
514
  # The diversification level isn't specified.
495
515
  DIVERSIFICATION_LEVEL_UNSPECIFIED = 0
@@ -501,11 +521,57 @@ module Google
501
521
 
502
522
  # Default diversifying behavior. The result list is ordered so that
503
523
  # highly similar results are pushed to the end of the last page of search
504
- # results. If you are using pageToken to page through the result set,
505
- # latency might be lower but we can't guarantee that all results are
506
- # returned. If you are using page offset, latency might be higher but all
507
- # results are returned.
524
+ # results.
508
525
  SIMPLE = 2
526
+
527
+ # Only one job from the same company will be shown at once, other jobs
528
+ # under same company are pushed to the end of the last page of search
529
+ # result.
530
+ ONE_PER_COMPANY = 3
531
+
532
+ # Similar to ONE_PER_COMPANY, but it allows at most two jobs in the
533
+ # same company to be shown at once, the other jobs under same company are
534
+ # pushed to the end of the last page of search result.
535
+ TWO_PER_COMPANY = 4
536
+
537
+ # The result list is ordered such that somewhat similar results are pushed
538
+ # to the end of the last page of the search results. This option is
539
+ # recommended if SIMPLE diversification does not diversify enough.
540
+ DIVERSIFY_BY_LOOSER_SIMILARITY = 5
541
+ end
542
+
543
+ # Controls what keyword matching behavior the search has. When keyword
544
+ # matching is enabled, a keyword match returns jobs that may not match given
545
+ # category filters when there are matching keywords. For example, for the
546
+ # query "program manager" with KeywordMatchMode set to KEYWORD_MATCH_ALL, a
547
+ # job posting with the title "software developer," which doesn't fall into
548
+ # "program manager" ontology, and "program manager" appearing in its
549
+ # description will be surfaced.
550
+ #
551
+ # For queries like "cloud" that don't contain title or
552
+ # location specific ontology, jobs with "cloud" keyword matches are returned
553
+ # regardless of this enum's value.
554
+ #
555
+ # Use {::Google::Cloud::Talent::V4::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
556
+ # company-specific globally matched custom field/attribute string values are
557
+ # needed. Enabling keyword match improves recall of subsequent search
558
+ # requests.
559
+ module KeywordMatchMode
560
+ # The keyword match option isn't specified. Defaults to
561
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} behavior.
562
+ KEYWORD_MATCH_MODE_UNSPECIFIED = 0
563
+
564
+ # Disables keyword matching.
565
+ KEYWORD_MATCH_DISABLED = 1
566
+
567
+ # Enable keyword matching over {::Google::Cloud::Talent::V4::Job#title Job.title},
568
+ # {::Google::Cloud::Talent::V4::Job#description Job.description}, {::Google::Cloud::Talent::V4::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4::Job#addresses Job.addresses},
569
+ # {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}, and keyword searchable {::Google::Cloud::Talent::V4::Job#custom_attributes Job.custom_attributes}
570
+ # fields.
571
+ KEYWORD_MATCH_ALL = 2
572
+
573
+ # Only enable keyword matching over {::Google::Cloud::Talent::V4::Job#title Job.title}.
574
+ KEYWORD_MATCH_TITLE_ONLY = 3
509
575
  end
510
576
  end
511
577
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-talent-v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-19 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  - !ruby/object:Gem::Version
260
260
  version: '0'
261
261
  requirements: []
262
- rubygems_version: 3.2.17
262
+ rubygems_version: 3.3.4
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: API Client library for the Cloud Talent Solution V4 API