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::JobService::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 JobService clients
|
47
|
+
# ::Google::Cloud::Talent::V4::JobService::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]
|
@@ -71,10 +70,7 @@ module Google
|
|
71
70
|
|
72
71
|
default_config.rpcs.get_job.timeout = 30.0
|
73
72
|
default_config.rpcs.get_job.retry_policy = {
|
74
|
-
initial_delay: 0.1,
|
75
|
-
max_delay: 60.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [4, 14]
|
73
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
74
|
}
|
79
75
|
|
80
76
|
default_config.rpcs.update_job.timeout = 30.0
|
@@ -83,20 +79,14 @@ module Google
|
|
83
79
|
|
84
80
|
default_config.rpcs.delete_job.timeout = 30.0
|
85
81
|
default_config.rpcs.delete_job.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [4, 14]
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
90
83
|
}
|
91
84
|
|
92
85
|
default_config.rpcs.batch_delete_jobs.timeout = 30.0
|
93
86
|
|
94
87
|
default_config.rpcs.list_jobs.timeout = 30.0
|
95
88
|
default_config.rpcs.list_jobs.retry_policy = {
|
96
|
-
initial_delay: 0.1,
|
97
|
-
max_delay: 60.0,
|
98
|
-
multiplier: 1.3,
|
99
|
-
retry_codes: [4, 14]
|
89
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
100
90
|
}
|
101
91
|
|
102
92
|
default_config.rpcs.search_jobs.timeout = 30.0
|
@@ -132,19 +122,15 @@ module Google
|
|
132
122
|
##
|
133
123
|
# Create a new JobService client object.
|
134
124
|
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
# To create a new JobService client with the default
|
138
|
-
# configuration:
|
125
|
+
# @example
|
139
126
|
#
|
140
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Talent::V4::JobService::Client.new
|
141
129
|
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# config.timeout = 10.0
|
147
|
-
# end
|
130
|
+
# # Create a client using a custom configuration
|
131
|
+
# client = ::Google::Cloud::Talent::V4::JobService::Client.new do |config|
|
132
|
+
# config.timeout = 10.0
|
133
|
+
# end
|
148
134
|
#
|
149
135
|
# @yield [config] Configure the JobService client.
|
150
136
|
# @yieldparam config [Client::Configuration]
|
@@ -164,14 +150,13 @@ module Google
|
|
164
150
|
|
165
151
|
# Create credentials
|
166
152
|
credentials = @config.credentials
|
167
|
-
# Use self-signed JWT if the
|
153
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
168
154
|
# but only if the default endpoint does not have a region prefix.
|
169
|
-
enable_self_signed_jwt = @config.
|
170
|
-
@config.endpoint == Client.configure.endpoint &&
|
155
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
171
156
|
!@config.endpoint.split(".").first.include?("-")
|
172
157
|
credentials ||= Credentials.default scope: @config.scope,
|
173
158
|
enable_self_signed_jwt: enable_self_signed_jwt
|
174
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
159
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
175
160
|
credentials = Credentials.new credentials, scope: @config.scope
|
176
161
|
end
|
177
162
|
@quota_project_id = @config.quota_project
|
@@ -263,7 +248,9 @@ module Google
|
|
263
248
|
options.apply_defaults timeout: @config.rpcs.create_job.timeout,
|
264
249
|
metadata: metadata,
|
265
250
|
retry_policy: @config.rpcs.create_job.retry_policy
|
266
|
-
|
251
|
+
|
252
|
+
options.apply_defaults timeout: @config.timeout,
|
253
|
+
metadata: @config.metadata,
|
267
254
|
retry_policy: @config.retry_policy
|
268
255
|
|
269
256
|
@job_service_stub.call_rpc :create_job, request, options: options do |response, operation|
|
@@ -335,7 +322,9 @@ module Google
|
|
335
322
|
options.apply_defaults timeout: @config.rpcs.batch_create_jobs.timeout,
|
336
323
|
metadata: metadata,
|
337
324
|
retry_policy: @config.rpcs.batch_create_jobs.retry_policy
|
338
|
-
|
325
|
+
|
326
|
+
options.apply_defaults timeout: @config.timeout,
|
327
|
+
metadata: @config.metadata,
|
339
328
|
retry_policy: @config.retry_policy
|
340
329
|
|
341
330
|
@job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
|
@@ -407,7 +396,9 @@ module Google
|
|
407
396
|
options.apply_defaults timeout: @config.rpcs.get_job.timeout,
|
408
397
|
metadata: metadata,
|
409
398
|
retry_policy: @config.rpcs.get_job.retry_policy
|
410
|
-
|
399
|
+
|
400
|
+
options.apply_defaults timeout: @config.timeout,
|
401
|
+
metadata: @config.metadata,
|
411
402
|
retry_policy: @config.retry_policy
|
412
403
|
|
413
404
|
@job_service_stub.call_rpc :get_job, request, options: options do |response, operation|
|
@@ -484,7 +475,9 @@ module Google
|
|
484
475
|
options.apply_defaults timeout: @config.rpcs.update_job.timeout,
|
485
476
|
metadata: metadata,
|
486
477
|
retry_policy: @config.rpcs.update_job.retry_policy
|
487
|
-
|
478
|
+
|
479
|
+
options.apply_defaults timeout: @config.timeout,
|
480
|
+
metadata: @config.metadata,
|
488
481
|
retry_policy: @config.retry_policy
|
489
482
|
|
490
483
|
@job_service_stub.call_rpc :update_job, request, options: options do |response, operation|
|
@@ -571,7 +564,9 @@ module Google
|
|
571
564
|
options.apply_defaults timeout: @config.rpcs.batch_update_jobs.timeout,
|
572
565
|
metadata: metadata,
|
573
566
|
retry_policy: @config.rpcs.batch_update_jobs.retry_policy
|
574
|
-
|
567
|
+
|
568
|
+
options.apply_defaults timeout: @config.timeout,
|
569
|
+
metadata: @config.metadata,
|
575
570
|
retry_policy: @config.retry_policy
|
576
571
|
|
577
572
|
@job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
|
@@ -645,7 +640,9 @@ module Google
|
|
645
640
|
options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
|
646
641
|
metadata: metadata,
|
647
642
|
retry_policy: @config.rpcs.delete_job.retry_policy
|
648
|
-
|
643
|
+
|
644
|
+
options.apply_defaults timeout: @config.timeout,
|
645
|
+
metadata: @config.metadata,
|
649
646
|
retry_policy: @config.retry_policy
|
650
647
|
|
651
648
|
@job_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
|
@@ -723,7 +720,9 @@ module Google
|
|
723
720
|
options.apply_defaults timeout: @config.rpcs.batch_delete_jobs.timeout,
|
724
721
|
metadata: metadata,
|
725
722
|
retry_policy: @config.rpcs.batch_delete_jobs.retry_policy
|
726
|
-
|
723
|
+
|
724
|
+
options.apply_defaults timeout: @config.timeout,
|
725
|
+
metadata: @config.metadata,
|
727
726
|
retry_policy: @config.retry_policy
|
728
727
|
|
729
728
|
@job_service_stub.call_rpc :batch_delete_jobs, request, options: options do |response, operation|
|
@@ -765,11 +764,14 @@ module Google
|
|
765
764
|
#
|
766
765
|
# The fields eligible for filtering are:
|
767
766
|
#
|
768
|
-
# * `companyName`
|
767
|
+
# * `companyName`
|
769
768
|
# * `requisitionId`
|
770
769
|
# * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
|
771
770
|
# OPEN if no value is specified.
|
772
771
|
#
|
772
|
+
# At least one of `companyName` and `requisitionId` must present or an
|
773
|
+
# INVALID_ARGUMENT error is thrown.
|
774
|
+
#
|
773
775
|
# Sample Query:
|
774
776
|
#
|
775
777
|
# * companyName = "projects/foo/tenants/bar/companies/baz"
|
@@ -777,6 +779,8 @@ module Google
|
|
777
779
|
# requisitionId = "req-1"
|
778
780
|
# * companyName = "projects/foo/tenants/bar/companies/baz" AND
|
779
781
|
# status = "EXPIRED"
|
782
|
+
# * requisitionId = "req-1"
|
783
|
+
# * requisitionId = "req-1" AND status = "EXPIRED"
|
780
784
|
# @param page_token [::String]
|
781
785
|
# The starting point of a query result.
|
782
786
|
# @param page_size [::Integer]
|
@@ -825,7 +829,9 @@ module Google
|
|
825
829
|
options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
|
826
830
|
metadata: metadata,
|
827
831
|
retry_policy: @config.rpcs.list_jobs.retry_policy
|
828
|
-
|
832
|
+
|
833
|
+
options.apply_defaults timeout: @config.timeout,
|
834
|
+
metadata: @config.metadata,
|
829
835
|
retry_policy: @config.retry_policy
|
830
836
|
|
831
837
|
@job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
|
@@ -854,7 +860,7 @@ module Google
|
|
854
860
|
# @param options [::Gapic::CallOptions, ::Hash]
|
855
861
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
856
862
|
#
|
857
|
-
# @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
|
863
|
+
# @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil, keyword_match_mode: nil)
|
858
864
|
# Pass arguments to `search_jobs` via keyword arguments. Note that at
|
859
865
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
860
866
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -918,6 +924,9 @@ module Google
|
|
918
924
|
# "FULL_TIME", "PART_TIME".
|
919
925
|
# * company_size: histogram by {::Google::Cloud::Talent::V4::CompanySize CompanySize}, for example, "SMALL",
|
920
926
|
# "MEDIUM", "BIG".
|
927
|
+
# * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
928
|
+
# in days.
|
929
|
+
# Must specify list of numeric buckets in spec.
|
921
930
|
# * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
922
931
|
# in months.
|
923
932
|
# Must specify list of numeric buckets in spec.
|
@@ -971,7 +980,7 @@ module Google
|
|
971
980
|
# bucket(100000, MAX)])`
|
972
981
|
# * `count(string_custom_attribute["some-string-custom-attribute"])`
|
973
982
|
# * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
|
974
|
-
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
|
983
|
+
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
|
975
984
|
# @param job_view [::Google::Cloud::Talent::V4::JobView]
|
976
985
|
# The desired job attributes returned for jobs in the search response.
|
977
986
|
# Defaults to {::Google::Cloud::Talent::V4::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
|
@@ -1059,6 +1068,14 @@ module Google
|
|
1059
1068
|
# Controls over how job documents get ranked on top of existing relevance
|
1060
1069
|
# score (determined by API algorithm).
|
1061
1070
|
# @param disable_keyword_match [::Boolean]
|
1071
|
+
# This field is deprecated. Please use
|
1072
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
|
1073
|
+
#
|
1074
|
+
# To migrate, disable_keyword_match set to false maps to
|
1075
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
|
1076
|
+
# true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
|
1077
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
|
1078
|
+
#
|
1062
1079
|
# Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
|
1063
1080
|
# {::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},
|
1064
1081
|
# {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
|
@@ -1078,6 +1095,12 @@ module Google
|
|
1078
1095
|
# requests.
|
1079
1096
|
#
|
1080
1097
|
# Defaults to false.
|
1098
|
+
# @param keyword_match_mode [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
|
1099
|
+
# Controls what keyword match options to use. If both keyword_match_mode and
|
1100
|
+
# disable_keyword_match are set, keyword_match_mode will take precedence.
|
1101
|
+
#
|
1102
|
+
# Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
|
1103
|
+
# is specified.
|
1081
1104
|
#
|
1082
1105
|
# @yield [response, operation] Access the result along with the RPC operation
|
1083
1106
|
# @yieldparam response [::Google::Cloud::Talent::V4::SearchJobsResponse]
|
@@ -1113,7 +1136,9 @@ module Google
|
|
1113
1136
|
options.apply_defaults timeout: @config.rpcs.search_jobs.timeout,
|
1114
1137
|
metadata: metadata,
|
1115
1138
|
retry_policy: @config.rpcs.search_jobs.retry_policy
|
1116
|
-
|
1139
|
+
|
1140
|
+
options.apply_defaults timeout: @config.timeout,
|
1141
|
+
metadata: @config.metadata,
|
1117
1142
|
retry_policy: @config.retry_policy
|
1118
1143
|
|
1119
1144
|
@job_service_stub.call_rpc :search_jobs, request, options: options do |response, operation|
|
@@ -1146,7 +1171,7 @@ module Google
|
|
1146
1171
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1147
1172
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1148
1173
|
#
|
1149
|
-
# @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
|
1174
|
+
# @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil, keyword_match_mode: nil)
|
1150
1175
|
# Pass arguments to `search_jobs_for_alert` via keyword arguments. Note that at
|
1151
1176
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1152
1177
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1210,6 +1235,9 @@ module Google
|
|
1210
1235
|
# "FULL_TIME", "PART_TIME".
|
1211
1236
|
# * company_size: histogram by {::Google::Cloud::Talent::V4::CompanySize CompanySize}, for example, "SMALL",
|
1212
1237
|
# "MEDIUM", "BIG".
|
1238
|
+
# * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
1239
|
+
# in days.
|
1240
|
+
# Must specify list of numeric buckets in spec.
|
1213
1241
|
# * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
1214
1242
|
# in months.
|
1215
1243
|
# Must specify list of numeric buckets in spec.
|
@@ -1263,7 +1291,7 @@ module Google
|
|
1263
1291
|
# bucket(100000, MAX)])`
|
1264
1292
|
# * `count(string_custom_attribute["some-string-custom-attribute"])`
|
1265
1293
|
# * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
|
1266
|
-
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
|
1294
|
+
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
|
1267
1295
|
# @param job_view [::Google::Cloud::Talent::V4::JobView]
|
1268
1296
|
# The desired job attributes returned for jobs in the search response.
|
1269
1297
|
# Defaults to {::Google::Cloud::Talent::V4::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
|
@@ -1351,6 +1379,14 @@ module Google
|
|
1351
1379
|
# Controls over how job documents get ranked on top of existing relevance
|
1352
1380
|
# score (determined by API algorithm).
|
1353
1381
|
# @param disable_keyword_match [::Boolean]
|
1382
|
+
# This field is deprecated. Please use
|
1383
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
|
1384
|
+
#
|
1385
|
+
# To migrate, disable_keyword_match set to false maps to
|
1386
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
|
1387
|
+
# true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
|
1388
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
|
1389
|
+
#
|
1354
1390
|
# Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
|
1355
1391
|
# {::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},
|
1356
1392
|
# {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
|
@@ -1370,6 +1406,12 @@ module Google
|
|
1370
1406
|
# requests.
|
1371
1407
|
#
|
1372
1408
|
# Defaults to false.
|
1409
|
+
# @param keyword_match_mode [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
|
1410
|
+
# Controls what keyword match options to use. If both keyword_match_mode and
|
1411
|
+
# disable_keyword_match are set, keyword_match_mode will take precedence.
|
1412
|
+
#
|
1413
|
+
# Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
|
1414
|
+
# is specified.
|
1373
1415
|
#
|
1374
1416
|
# @yield [response, operation] Access the result along with the RPC operation
|
1375
1417
|
# @yieldparam response [::Google::Cloud::Talent::V4::SearchJobsResponse]
|
@@ -1405,7 +1447,9 @@ module Google
|
|
1405
1447
|
options.apply_defaults timeout: @config.rpcs.search_jobs_for_alert.timeout,
|
1406
1448
|
metadata: metadata,
|
1407
1449
|
retry_policy: @config.rpcs.search_jobs_for_alert.retry_policy
|
1408
|
-
|
1450
|
+
|
1451
|
+
options.apply_defaults timeout: @config.timeout,
|
1452
|
+
metadata: @config.metadata,
|
1409
1453
|
retry_policy: @config.retry_policy
|
1410
1454
|
|
1411
1455
|
@job_service_stub.call_rpc :search_jobs_for_alert, request, options: options do |response, operation|
|
@@ -1429,22 +1473,21 @@ module Google
|
|
1429
1473
|
# Configuration can be applied globally to all clients, or to a single client
|
1430
1474
|
# on construction.
|
1431
1475
|
#
|
1432
|
-
#
|
1433
|
-
#
|
1434
|
-
#
|
1435
|
-
# to 20 seconds,
|
1436
|
-
#
|
1437
|
-
#
|
1438
|
-
#
|
1439
|
-
#
|
1440
|
-
#
|
1441
|
-
#
|
1442
|
-
#
|
1443
|
-
#
|
1444
|
-
#
|
1445
|
-
#
|
1446
|
-
#
|
1447
|
-
# end
|
1476
|
+
# @example
|
1477
|
+
#
|
1478
|
+
# # Modify the global config, setting the timeout for
|
1479
|
+
# # create_job to 20 seconds,
|
1480
|
+
# # and all remaining timeouts to 10 seconds.
|
1481
|
+
# ::Google::Cloud::Talent::V4::JobService::Client.configure do |config|
|
1482
|
+
# config.timeout = 10.0
|
1483
|
+
# config.rpcs.create_job.timeout = 20.0
|
1484
|
+
# end
|
1485
|
+
#
|
1486
|
+
# # Apply the above configuration only to a new client.
|
1487
|
+
# client = ::Google::Cloud::Talent::V4::JobService::Client.new do |config|
|
1488
|
+
# config.timeout = 10.0
|
1489
|
+
# config.rpcs.create_job.timeout = 20.0
|
1490
|
+
# end
|
1448
1491
|
#
|
1449
1492
|
# @!attribute [rw] endpoint
|
1450
1493
|
# The hostname or hostname:port of the service endpoint.
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -396,9 +404,9 @@ module Google
|
|
396
404
|
end
|
397
405
|
|
398
406
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
407
|
+
# Waits until the specified long-running operation is done or reaches at most
|
408
|
+
# a specified timeout, returning the latest state. If the operation is
|
409
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
410
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
411
|
# timeout is used. If the server does not support this method, it returns
|
404
412
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -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
|
30
|
+
include GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|