google-cloud-talent-v4 0.4.1 → 0.6.0
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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/talent/v4/common_pb.rb +3 -0
- data/lib/google/cloud/talent/v4/company_service/client.rb +48 -54
- data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/completion/client.rb +34 -42
- data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/event_service/client.rb +33 -38
- data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/job_service/client.rb +107 -64
- data/lib/google/cloud/talent/v4/job_service/operations.rb +34 -25
- data/lib/google/cloud/talent/v4/job_service_pb.rb +11 -0
- data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/tenant_service/client.rb +48 -54
- data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/talent/v4/common.rb +12 -1
- data/proto_docs/google/cloud/talent/v4/filters.rb +12 -8
- data/proto_docs/google/cloud/talent/v4/job.rb +9 -0
- data/proto_docs/google/cloud/talent/v4/job_service.rb +81 -7
- data/proto_docs/google/type/money.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +4 -4
@@ -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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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]
|
@@ -69,28 +68,19 @@ module Google
|
|
69
68
|
|
70
69
|
default_config.rpcs.get_tenant.timeout = 30.0
|
71
70
|
default_config.rpcs.get_tenant.retry_policy = {
|
72
|
-
initial_delay: 0.1,
|
73
|
-
max_delay: 60.0,
|
74
|
-
multiplier: 1.3,
|
75
|
-
retry_codes: [4, 14]
|
71
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
76
72
|
}
|
77
73
|
|
78
74
|
default_config.rpcs.update_tenant.timeout = 30.0
|
79
75
|
|
80
76
|
default_config.rpcs.delete_tenant.timeout = 30.0
|
81
77
|
default_config.rpcs.delete_tenant.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [4, 14]
|
78
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
86
79
|
}
|
87
80
|
|
88
81
|
default_config.rpcs.list_tenants.timeout = 30.0
|
89
82
|
default_config.rpcs.list_tenants.retry_policy = {
|
90
|
-
initial_delay: 0.1,
|
91
|
-
max_delay: 60.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [4, 14]
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
94
84
|
}
|
95
85
|
|
96
86
|
default_config
|
@@ -122,19 +112,15 @@ module Google
|
|
122
112
|
##
|
123
113
|
# Create a new TenantService client object.
|
124
114
|
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
# To create a new TenantService client with the default
|
128
|
-
# configuration:
|
129
|
-
#
|
130
|
-
# client = ::Google::Cloud::Talent::V4::TenantService::Client.new
|
115
|
+
# @example
|
131
116
|
#
|
132
|
-
#
|
133
|
-
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::Talent::V4::TenantService::Client.new
|
134
119
|
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
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
|
138
124
|
#
|
139
125
|
# @yield [config] Configure the TenantService client.
|
140
126
|
# @yieldparam config [Client::Configuration]
|
@@ -154,14 +140,13 @@ module Google
|
|
154
140
|
|
155
141
|
# Create credentials
|
156
142
|
credentials = @config.credentials
|
157
|
-
# Use self-signed JWT if the
|
143
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
158
144
|
# but only if the default endpoint does not have a region prefix.
|
159
|
-
enable_self_signed_jwt = @config.
|
160
|
-
@config.endpoint == Client.configure.endpoint &&
|
145
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
161
146
|
!@config.endpoint.split(".").first.include?("-")
|
162
147
|
credentials ||= Credentials.default scope: @config.scope,
|
163
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
164
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
149
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
165
150
|
credentials = Credentials.new credentials, scope: @config.scope
|
166
151
|
end
|
167
152
|
@quota_project_id = @config.quota_project
|
@@ -238,7 +223,9 @@ module Google
|
|
238
223
|
options.apply_defaults timeout: @config.rpcs.create_tenant.timeout,
|
239
224
|
metadata: metadata,
|
240
225
|
retry_policy: @config.rpcs.create_tenant.retry_policy
|
241
|
-
|
226
|
+
|
227
|
+
options.apply_defaults timeout: @config.timeout,
|
228
|
+
metadata: @config.metadata,
|
242
229
|
retry_policy: @config.retry_policy
|
243
230
|
|
244
231
|
@tenant_service_stub.call_rpc :create_tenant, request, options: options do |response, operation|
|
@@ -307,7 +294,9 @@ module Google
|
|
307
294
|
options.apply_defaults timeout: @config.rpcs.get_tenant.timeout,
|
308
295
|
metadata: metadata,
|
309
296
|
retry_policy: @config.rpcs.get_tenant.retry_policy
|
310
|
-
|
297
|
+
|
298
|
+
options.apply_defaults timeout: @config.timeout,
|
299
|
+
metadata: @config.metadata,
|
311
300
|
retry_policy: @config.retry_policy
|
312
301
|
|
313
302
|
@tenant_service_stub.call_rpc :get_tenant, request, options: options do |response, operation|
|
@@ -381,7 +370,9 @@ module Google
|
|
381
370
|
options.apply_defaults timeout: @config.rpcs.update_tenant.timeout,
|
382
371
|
metadata: metadata,
|
383
372
|
retry_policy: @config.rpcs.update_tenant.retry_policy
|
384
|
-
|
373
|
+
|
374
|
+
options.apply_defaults timeout: @config.timeout,
|
375
|
+
metadata: @config.metadata,
|
385
376
|
retry_policy: @config.retry_policy
|
386
377
|
|
387
378
|
@tenant_service_stub.call_rpc :update_tenant, request, options: options do |response, operation|
|
@@ -450,7 +441,9 @@ module Google
|
|
450
441
|
options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout,
|
451
442
|
metadata: metadata,
|
452
443
|
retry_policy: @config.rpcs.delete_tenant.retry_policy
|
453
|
-
|
444
|
+
|
445
|
+
options.apply_defaults timeout: @config.timeout,
|
446
|
+
metadata: @config.metadata,
|
454
447
|
retry_policy: @config.retry_policy
|
455
448
|
|
456
449
|
@tenant_service_stub.call_rpc :delete_tenant, request, options: options do |response, operation|
|
@@ -524,7 +517,9 @@ module Google
|
|
524
517
|
options.apply_defaults timeout: @config.rpcs.list_tenants.timeout,
|
525
518
|
metadata: metadata,
|
526
519
|
retry_policy: @config.rpcs.list_tenants.retry_policy
|
527
|
-
|
520
|
+
|
521
|
+
options.apply_defaults timeout: @config.timeout,
|
522
|
+
metadata: @config.metadata,
|
528
523
|
retry_policy: @config.retry_policy
|
529
524
|
|
530
525
|
@tenant_service_stub.call_rpc :list_tenants, request, options: options do |response, operation|
|
@@ -549,22 +544,21 @@ module Google
|
|
549
544
|
# Configuration can be applied globally to all clients, or to a single client
|
550
545
|
# on construction.
|
551
546
|
#
|
552
|
-
#
|
553
|
-
#
|
554
|
-
#
|
555
|
-
# to 20 seconds,
|
556
|
-
#
|
557
|
-
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
# end
|
547
|
+
# @example
|
548
|
+
#
|
549
|
+
# # Modify the global config, setting the timeout for
|
550
|
+
# # create_tenant to 20 seconds,
|
551
|
+
# # and all remaining timeouts to 10 seconds.
|
552
|
+
# ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
|
553
|
+
# config.timeout = 10.0
|
554
|
+
# config.rpcs.create_tenant.timeout = 20.0
|
555
|
+
# end
|
556
|
+
#
|
557
|
+
# # Apply the above configuration only to a new client.
|
558
|
+
# client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
|
559
|
+
# config.timeout = 10.0
|
560
|
+
# config.rpcs.create_tenant.timeout = 20.0
|
561
|
+
# end
|
568
562
|
#
|
569
563
|
# @!attribute [rw] endpoint
|
570
564
|
# The hostname or hostname:port of the service endpoint.
|
@@ -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
|
30
|
+
include GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
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 <
|
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
|
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
|
-
#
|
188
|
-
#
|
189
|
-
#
|
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://
|
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]
|
@@ -95,11 +95,14 @@ module Google
|
|
95
95
|
#
|
96
96
|
# The fields eligible for filtering are:
|
97
97
|
#
|
98
|
-
# * `companyName`
|
98
|
+
# * `companyName`
|
99
99
|
# * `requisitionId`
|
100
100
|
# * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
|
101
101
|
# OPEN if no value is specified.
|
102
102
|
#
|
103
|
+
# At least one of `companyName` and `requisitionId` must present or an
|
104
|
+
# INVALID_ARGUMENT error is thrown.
|
105
|
+
#
|
103
106
|
# Sample Query:
|
104
107
|
#
|
105
108
|
# * companyName = "projects/foo/tenants/bar/companies/baz"
|
@@ -107,6 +110,8 @@ module Google
|
|
107
110
|
# requisitionId = "req-1"
|
108
111
|
# * companyName = "projects/foo/tenants/bar/companies/baz" AND
|
109
112
|
# status = "EXPIRED"
|
113
|
+
# * requisitionId = "req-1"
|
114
|
+
# * requisitionId = "req-1" AND status = "EXPIRED"
|
110
115
|
# @!attribute [rw] page_token
|
111
116
|
# @return [::String]
|
112
117
|
# The starting point of a query result.
|
@@ -213,6 +218,9 @@ module Google
|
|
213
218
|
# "FULL_TIME", "PART_TIME".
|
214
219
|
# * company_size: histogram by {::Google::Cloud::Talent::V4::CompanySize CompanySize}, for example, "SMALL",
|
215
220
|
# "MEDIUM", "BIG".
|
221
|
+
# * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
222
|
+
# in days.
|
223
|
+
# Must specify list of numeric buckets in spec.
|
216
224
|
# * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
217
225
|
# in months.
|
218
226
|
# Must specify list of numeric buckets in spec.
|
@@ -266,7 +274,7 @@ module Google
|
|
266
274
|
# bucket(100000, MAX)])`
|
267
275
|
# * `count(string_custom_attribute["some-string-custom-attribute"])`
|
268
276
|
# * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
|
269
|
-
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
|
277
|
+
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
|
270
278
|
# @!attribute [rw] job_view
|
271
279
|
# @return [::Google::Cloud::Talent::V4::JobView]
|
272
280
|
# The desired job attributes returned for jobs in the search response.
|
@@ -362,6 +370,14 @@ module Google
|
|
362
370
|
# score (determined by API algorithm).
|
363
371
|
# @!attribute [rw] disable_keyword_match
|
364
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
|
+
#
|
365
381
|
# Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
|
366
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},
|
367
383
|
# {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
|
@@ -381,6 +397,13 @@ module Google
|
|
381
397
|
# requests.
|
382
398
|
#
|
383
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.
|
384
407
|
class SearchJobsRequest
|
385
408
|
include ::Google::Protobuf::MessageExts
|
386
409
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -407,7 +430,7 @@ module Google
|
|
407
430
|
# integer/double value or an expression that can be evaluated to a number.
|
408
431
|
#
|
409
432
|
# Parenthesis are supported to adjust calculation precedence. The
|
410
|
-
# expression must be <
|
433
|
+
# expression must be < 200 characters in length.
|
411
434
|
#
|
412
435
|
# The expression is considered invalid for a job if the expression
|
413
436
|
# references custom attributes that are not populated on the job or if the
|
@@ -482,6 +505,11 @@ module Google
|
|
482
505
|
# clustered so that only one representative job of the cluster is
|
483
506
|
# displayed to the job seeker higher up in the results, with the other jobs
|
484
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.
|
485
513
|
module DiversificationLevel
|
486
514
|
# The diversification level isn't specified.
|
487
515
|
DIVERSIFICATION_LEVEL_UNSPECIFIED = 0
|
@@ -493,11 +521,57 @@ module Google
|
|
493
521
|
|
494
522
|
# Default diversifying behavior. The result list is ordered so that
|
495
523
|
# highly similar results are pushed to the end of the last page of search
|
496
|
-
# results.
|
497
|
-
# latency might be lower but we can't guarantee that all results are
|
498
|
-
# returned. If you are using page offset, latency might be higher but all
|
499
|
-
# results are returned.
|
524
|
+
# results.
|
500
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
|
501
575
|
end
|
502
576
|
end
|
503
577
|
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# Represents an amount of money with its currency type.
|
23
23
|
# @!attribute [rw] currency_code
|
24
24
|
# @return [::String]
|
25
|
-
# The
|
25
|
+
# The three-letter currency code defined in ISO 4217.
|
26
26
|
# @!attribute [rw] units
|
27
27
|
# @return [::Integer]
|
28
28
|
# The whole units of the amount.
|
@@ -21,7 +21,8 @@ module Google
|
|
21
21
|
module Type
|
22
22
|
# Represents a time of day. The date and time zone are either not significant
|
23
23
|
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
-
# types are [google.type.Date][google.type.Date] and
|
24
|
+
# types are [google.type.Date][google.type.Date] and
|
25
|
+
# `google.protobuf.Timestamp`.
|
25
26
|
# @!attribute [rw] hours
|
26
27
|
# @return [::Integer]
|
27
28
|
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
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.
|
4
|
+
version: 0.6.0
|
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-
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|