google-cloud-talent-v4 0.4.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/talent/v4/common_pb.rb +5 -2
- data/lib/google/cloud/talent/v4/company_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/company_service/client.rb +69 -56
- data/lib/google/cloud/talent/v4/company_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/completion/client.rb +37 -40
- data/lib/google/cloud/talent/v4/completion_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/event_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/event_service/client.rb +37 -40
- data/lib/google/cloud/talent/v4/event_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/filters_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/job_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/job_service/client.rb +155 -83
- data/lib/google/cloud/talent/v4/job_service/operations.rb +50 -33
- data/lib/google/cloud/talent/v4/job_service_pb.rb +13 -2
- data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/tenant_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/tenant_service/client.rb +69 -56
- data/lib/google/cloud/talent/v4/tenant_service_pb.rb +2 -2
- 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/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 +10 -1
- data/proto_docs/google/cloud/talent/v4/job_service.rb +82 -8
- metadata +4 -4
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4/job.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/cloud/talent/v4/common_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/talent/v4/job.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.talent.v4.Job" do
|
@@ -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]
|
@@ -123,19 +122,15 @@ module Google
|
|
123
122
|
##
|
124
123
|
# Create a new JobService client object.
|
125
124
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
# To create a new JobService client with the default
|
129
|
-
# configuration:
|
130
|
-
#
|
131
|
-
# client = ::Google::Cloud::Talent::V4::JobService::Client.new
|
125
|
+
# @example
|
132
126
|
#
|
133
|
-
#
|
134
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Talent::V4::JobService::Client.new
|
135
129
|
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
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
|
139
134
|
#
|
140
135
|
# @yield [config] Configure the JobService client.
|
141
136
|
# @yieldparam config [Client::Configuration]
|
@@ -155,10 +150,9 @@ module Google
|
|
155
150
|
|
156
151
|
# Create credentials
|
157
152
|
credentials = @config.credentials
|
158
|
-
# Use self-signed JWT if the
|
153
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
159
154
|
# but only if the default endpoint does not have a region prefix.
|
160
|
-
enable_self_signed_jwt = @config.
|
161
|
-
@config.endpoint == Client.configure.endpoint &&
|
155
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
162
156
|
!@config.endpoint.split(".").first.include?("-")
|
163
157
|
credentials ||= Credentials.default scope: @config.scope,
|
164
158
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -245,16 +239,20 @@ module Google
|
|
245
239
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
246
240
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
247
241
|
|
248
|
-
header_params = {
|
249
|
-
|
250
|
-
|
242
|
+
header_params = {}
|
243
|
+
if request.parent
|
244
|
+
header_params["parent"] = request.parent
|
245
|
+
end
|
246
|
+
|
251
247
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
252
248
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
253
249
|
|
254
250
|
options.apply_defaults timeout: @config.rpcs.create_job.timeout,
|
255
251
|
metadata: metadata,
|
256
252
|
retry_policy: @config.rpcs.create_job.retry_policy
|
257
|
-
|
253
|
+
|
254
|
+
options.apply_defaults timeout: @config.timeout,
|
255
|
+
metadata: @config.metadata,
|
258
256
|
retry_policy: @config.retry_policy
|
259
257
|
|
260
258
|
@job_service_stub.call_rpc :create_job, request, options: options do |response, operation|
|
@@ -317,16 +315,20 @@ module Google
|
|
317
315
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
318
316
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
319
317
|
|
320
|
-
header_params = {
|
321
|
-
|
322
|
-
|
318
|
+
header_params = {}
|
319
|
+
if request.parent
|
320
|
+
header_params["parent"] = request.parent
|
321
|
+
end
|
322
|
+
|
323
323
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
324
324
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
325
325
|
|
326
326
|
options.apply_defaults timeout: @config.rpcs.batch_create_jobs.timeout,
|
327
327
|
metadata: metadata,
|
328
328
|
retry_policy: @config.rpcs.batch_create_jobs.retry_policy
|
329
|
-
|
329
|
+
|
330
|
+
options.apply_defaults timeout: @config.timeout,
|
331
|
+
metadata: @config.metadata,
|
330
332
|
retry_policy: @config.retry_policy
|
331
333
|
|
332
334
|
@job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
|
@@ -389,16 +391,20 @@ module Google
|
|
389
391
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
390
392
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
391
393
|
|
392
|
-
header_params = {
|
393
|
-
|
394
|
-
|
394
|
+
header_params = {}
|
395
|
+
if request.name
|
396
|
+
header_params["name"] = request.name
|
397
|
+
end
|
398
|
+
|
395
399
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
396
400
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
397
401
|
|
398
402
|
options.apply_defaults timeout: @config.rpcs.get_job.timeout,
|
399
403
|
metadata: metadata,
|
400
404
|
retry_policy: @config.rpcs.get_job.retry_policy
|
401
|
-
|
405
|
+
|
406
|
+
options.apply_defaults timeout: @config.timeout,
|
407
|
+
metadata: @config.metadata,
|
402
408
|
retry_policy: @config.retry_policy
|
403
409
|
|
404
410
|
@job_service_stub.call_rpc :get_job, request, options: options do |response, operation|
|
@@ -466,16 +472,20 @@ module Google
|
|
466
472
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
467
473
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
468
474
|
|
469
|
-
header_params = {
|
470
|
-
|
471
|
-
|
475
|
+
header_params = {}
|
476
|
+
if request.job&.name
|
477
|
+
header_params["job.name"] = request.job.name
|
478
|
+
end
|
479
|
+
|
472
480
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
473
481
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
474
482
|
|
475
483
|
options.apply_defaults timeout: @config.rpcs.update_job.timeout,
|
476
484
|
metadata: metadata,
|
477
485
|
retry_policy: @config.rpcs.update_job.retry_policy
|
478
|
-
|
486
|
+
|
487
|
+
options.apply_defaults timeout: @config.timeout,
|
488
|
+
metadata: @config.metadata,
|
479
489
|
retry_policy: @config.retry_policy
|
480
490
|
|
481
491
|
@job_service_stub.call_rpc :update_job, request, options: options do |response, operation|
|
@@ -553,16 +563,20 @@ module Google
|
|
553
563
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
554
564
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
555
565
|
|
556
|
-
header_params = {
|
557
|
-
|
558
|
-
|
566
|
+
header_params = {}
|
567
|
+
if request.parent
|
568
|
+
header_params["parent"] = request.parent
|
569
|
+
end
|
570
|
+
|
559
571
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
560
572
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
561
573
|
|
562
574
|
options.apply_defaults timeout: @config.rpcs.batch_update_jobs.timeout,
|
563
575
|
metadata: metadata,
|
564
576
|
retry_policy: @config.rpcs.batch_update_jobs.retry_policy
|
565
|
-
|
577
|
+
|
578
|
+
options.apply_defaults timeout: @config.timeout,
|
579
|
+
metadata: @config.metadata,
|
566
580
|
retry_policy: @config.retry_policy
|
567
581
|
|
568
582
|
@job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
|
@@ -627,16 +641,20 @@ module Google
|
|
627
641
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
628
642
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
629
643
|
|
630
|
-
header_params = {
|
631
|
-
|
632
|
-
|
644
|
+
header_params = {}
|
645
|
+
if request.name
|
646
|
+
header_params["name"] = request.name
|
647
|
+
end
|
648
|
+
|
633
649
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
634
650
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
635
651
|
|
636
652
|
options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
|
637
653
|
metadata: metadata,
|
638
654
|
retry_policy: @config.rpcs.delete_job.retry_policy
|
639
|
-
|
655
|
+
|
656
|
+
options.apply_defaults timeout: @config.timeout,
|
657
|
+
metadata: @config.metadata,
|
640
658
|
retry_policy: @config.retry_policy
|
641
659
|
|
642
660
|
@job_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
|
@@ -705,16 +723,20 @@ module Google
|
|
705
723
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
706
724
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
707
725
|
|
708
|
-
header_params = {
|
709
|
-
|
710
|
-
|
726
|
+
header_params = {}
|
727
|
+
if request.parent
|
728
|
+
header_params["parent"] = request.parent
|
729
|
+
end
|
730
|
+
|
711
731
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
712
732
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
713
733
|
|
714
734
|
options.apply_defaults timeout: @config.rpcs.batch_delete_jobs.timeout,
|
715
735
|
metadata: metadata,
|
716
736
|
retry_policy: @config.rpcs.batch_delete_jobs.retry_policy
|
717
|
-
|
737
|
+
|
738
|
+
options.apply_defaults timeout: @config.timeout,
|
739
|
+
metadata: @config.metadata,
|
718
740
|
retry_policy: @config.retry_policy
|
719
741
|
|
720
742
|
@job_service_stub.call_rpc :batch_delete_jobs, request, options: options do |response, operation|
|
@@ -756,11 +778,14 @@ module Google
|
|
756
778
|
#
|
757
779
|
# The fields eligible for filtering are:
|
758
780
|
#
|
759
|
-
# * `companyName`
|
781
|
+
# * `companyName`
|
760
782
|
# * `requisitionId`
|
761
783
|
# * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
|
762
784
|
# OPEN if no value is specified.
|
763
785
|
#
|
786
|
+
# At least one of `companyName` and `requisitionId` must present or an
|
787
|
+
# INVALID_ARGUMENT error is thrown.
|
788
|
+
#
|
764
789
|
# Sample Query:
|
765
790
|
#
|
766
791
|
# * companyName = "projects/foo/tenants/bar/companies/baz"
|
@@ -768,6 +793,8 @@ module Google
|
|
768
793
|
# requisitionId = "req-1"
|
769
794
|
# * companyName = "projects/foo/tenants/bar/companies/baz" AND
|
770
795
|
# status = "EXPIRED"
|
796
|
+
# * requisitionId = "req-1"
|
797
|
+
# * requisitionId = "req-1" AND status = "EXPIRED"
|
771
798
|
# @param page_token [::String]
|
772
799
|
# The starting point of a query result.
|
773
800
|
# @param page_size [::Integer]
|
@@ -807,16 +834,20 @@ module Google
|
|
807
834
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
808
835
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
809
836
|
|
810
|
-
header_params = {
|
811
|
-
|
812
|
-
|
837
|
+
header_params = {}
|
838
|
+
if request.parent
|
839
|
+
header_params["parent"] = request.parent
|
840
|
+
end
|
841
|
+
|
813
842
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
814
843
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
815
844
|
|
816
845
|
options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
|
817
846
|
metadata: metadata,
|
818
847
|
retry_policy: @config.rpcs.list_jobs.retry_policy
|
819
|
-
|
848
|
+
|
849
|
+
options.apply_defaults timeout: @config.timeout,
|
850
|
+
metadata: @config.metadata,
|
820
851
|
retry_policy: @config.retry_policy
|
821
852
|
|
822
853
|
@job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
|
@@ -845,7 +876,7 @@ module Google
|
|
845
876
|
# @param options [::Gapic::CallOptions, ::Hash]
|
846
877
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
847
878
|
#
|
848
|
-
# @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)
|
879
|
+
# @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)
|
849
880
|
# Pass arguments to `search_jobs` via keyword arguments. Note that at
|
850
881
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
851
882
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -885,7 +916,7 @@ module Google
|
|
885
916
|
#
|
886
917
|
# Data types:
|
887
918
|
#
|
888
|
-
# * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]
|
919
|
+
# * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
|
889
920
|
# * String: string like "any string with backslash escape for quote(\")."
|
890
921
|
# * Number: whole number and floating point number like 10, -1 and -0.01.
|
891
922
|
# * List: list of elements with comma(,) separator surrounded by square
|
@@ -909,6 +940,9 @@ module Google
|
|
909
940
|
# "FULL_TIME", "PART_TIME".
|
910
941
|
# * company_size: histogram by {::Google::Cloud::Talent::V4::CompanySize CompanySize}, for example, "SMALL",
|
911
942
|
# "MEDIUM", "BIG".
|
943
|
+
# * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
944
|
+
# in days.
|
945
|
+
# Must specify list of numeric buckets in spec.
|
912
946
|
# * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
913
947
|
# in months.
|
914
948
|
# Must specify list of numeric buckets in spec.
|
@@ -962,7 +996,7 @@ module Google
|
|
962
996
|
# bucket(100000, MAX)])`
|
963
997
|
# * `count(string_custom_attribute["some-string-custom-attribute"])`
|
964
998
|
# * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
|
965
|
-
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
|
999
|
+
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
|
966
1000
|
# @param job_view [::Google::Cloud::Talent::V4::JobView]
|
967
1001
|
# The desired job attributes returned for jobs in the search response.
|
968
1002
|
# Defaults to {::Google::Cloud::Talent::V4::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
|
@@ -1050,6 +1084,14 @@ module Google
|
|
1050
1084
|
# Controls over how job documents get ranked on top of existing relevance
|
1051
1085
|
# score (determined by API algorithm).
|
1052
1086
|
# @param disable_keyword_match [::Boolean]
|
1087
|
+
# This field is deprecated. Please use
|
1088
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
|
1089
|
+
#
|
1090
|
+
# To migrate, disable_keyword_match set to false maps to
|
1091
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
|
1092
|
+
# true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
|
1093
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
|
1094
|
+
#
|
1053
1095
|
# Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
|
1054
1096
|
# {::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},
|
1055
1097
|
# {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
|
@@ -1069,6 +1111,12 @@ module Google
|
|
1069
1111
|
# requests.
|
1070
1112
|
#
|
1071
1113
|
# Defaults to false.
|
1114
|
+
# @param keyword_match_mode [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
|
1115
|
+
# Controls what keyword match options to use. If both keyword_match_mode and
|
1116
|
+
# disable_keyword_match are set, keyword_match_mode will take precedence.
|
1117
|
+
#
|
1118
|
+
# Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
|
1119
|
+
# is specified.
|
1072
1120
|
#
|
1073
1121
|
# @yield [response, operation] Access the result along with the RPC operation
|
1074
1122
|
# @yieldparam response [::Google::Cloud::Talent::V4::SearchJobsResponse]
|
@@ -1095,16 +1143,20 @@ module Google
|
|
1095
1143
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
1096
1144
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1097
1145
|
|
1098
|
-
header_params = {
|
1099
|
-
|
1100
|
-
|
1146
|
+
header_params = {}
|
1147
|
+
if request.parent
|
1148
|
+
header_params["parent"] = request.parent
|
1149
|
+
end
|
1150
|
+
|
1101
1151
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1102
1152
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1103
1153
|
|
1104
1154
|
options.apply_defaults timeout: @config.rpcs.search_jobs.timeout,
|
1105
1155
|
metadata: metadata,
|
1106
1156
|
retry_policy: @config.rpcs.search_jobs.retry_policy
|
1107
|
-
|
1157
|
+
|
1158
|
+
options.apply_defaults timeout: @config.timeout,
|
1159
|
+
metadata: @config.metadata,
|
1108
1160
|
retry_policy: @config.retry_policy
|
1109
1161
|
|
1110
1162
|
@job_service_stub.call_rpc :search_jobs, request, options: options do |response, operation|
|
@@ -1137,7 +1189,7 @@ module Google
|
|
1137
1189
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1138
1190
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1139
1191
|
#
|
1140
|
-
# @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)
|
1192
|
+
# @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)
|
1141
1193
|
# Pass arguments to `search_jobs_for_alert` via keyword arguments. Note that at
|
1142
1194
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1143
1195
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1177,7 +1229,7 @@ module Google
|
|
1177
1229
|
#
|
1178
1230
|
# Data types:
|
1179
1231
|
#
|
1180
|
-
# * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]
|
1232
|
+
# * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
|
1181
1233
|
# * String: string like "any string with backslash escape for quote(\")."
|
1182
1234
|
# * Number: whole number and floating point number like 10, -1 and -0.01.
|
1183
1235
|
# * List: list of elements with comma(,) separator surrounded by square
|
@@ -1201,6 +1253,9 @@ module Google
|
|
1201
1253
|
# "FULL_TIME", "PART_TIME".
|
1202
1254
|
# * company_size: histogram by {::Google::Cloud::Talent::V4::CompanySize CompanySize}, for example, "SMALL",
|
1203
1255
|
# "MEDIUM", "BIG".
|
1256
|
+
# * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
1257
|
+
# in days.
|
1258
|
+
# Must specify list of numeric buckets in spec.
|
1204
1259
|
# * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
|
1205
1260
|
# in months.
|
1206
1261
|
# Must specify list of numeric buckets in spec.
|
@@ -1254,7 +1309,7 @@ module Google
|
|
1254
1309
|
# bucket(100000, MAX)])`
|
1255
1310
|
# * `count(string_custom_attribute["some-string-custom-attribute"])`
|
1256
1311
|
# * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
|
1257
|
-
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
|
1312
|
+
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
|
1258
1313
|
# @param job_view [::Google::Cloud::Talent::V4::JobView]
|
1259
1314
|
# The desired job attributes returned for jobs in the search response.
|
1260
1315
|
# Defaults to {::Google::Cloud::Talent::V4::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
|
@@ -1342,6 +1397,14 @@ module Google
|
|
1342
1397
|
# Controls over how job documents get ranked on top of existing relevance
|
1343
1398
|
# score (determined by API algorithm).
|
1344
1399
|
# @param disable_keyword_match [::Boolean]
|
1400
|
+
# This field is deprecated. Please use
|
1401
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
|
1402
|
+
#
|
1403
|
+
# To migrate, disable_keyword_match set to false maps to
|
1404
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
|
1405
|
+
# true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
|
1406
|
+
# {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
|
1407
|
+
#
|
1345
1408
|
# Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
|
1346
1409
|
# {::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},
|
1347
1410
|
# {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
|
@@ -1361,6 +1424,12 @@ module Google
|
|
1361
1424
|
# requests.
|
1362
1425
|
#
|
1363
1426
|
# Defaults to false.
|
1427
|
+
# @param keyword_match_mode [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
|
1428
|
+
# Controls what keyword match options to use. If both keyword_match_mode and
|
1429
|
+
# disable_keyword_match are set, keyword_match_mode will take precedence.
|
1430
|
+
#
|
1431
|
+
# Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
|
1432
|
+
# is specified.
|
1364
1433
|
#
|
1365
1434
|
# @yield [response, operation] Access the result along with the RPC operation
|
1366
1435
|
# @yieldparam response [::Google::Cloud::Talent::V4::SearchJobsResponse]
|
@@ -1387,16 +1456,20 @@ module Google
|
|
1387
1456
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
1388
1457
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1389
1458
|
|
1390
|
-
header_params = {
|
1391
|
-
|
1392
|
-
|
1459
|
+
header_params = {}
|
1460
|
+
if request.parent
|
1461
|
+
header_params["parent"] = request.parent
|
1462
|
+
end
|
1463
|
+
|
1393
1464
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1394
1465
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1395
1466
|
|
1396
1467
|
options.apply_defaults timeout: @config.rpcs.search_jobs_for_alert.timeout,
|
1397
1468
|
metadata: metadata,
|
1398
1469
|
retry_policy: @config.rpcs.search_jobs_for_alert.retry_policy
|
1399
|
-
|
1470
|
+
|
1471
|
+
options.apply_defaults timeout: @config.timeout,
|
1472
|
+
metadata: @config.metadata,
|
1400
1473
|
retry_policy: @config.retry_policy
|
1401
1474
|
|
1402
1475
|
@job_service_stub.call_rpc :search_jobs_for_alert, request, options: options do |response, operation|
|
@@ -1420,22 +1493,21 @@ module Google
|
|
1420
1493
|
# Configuration can be applied globally to all clients, or to a single client
|
1421
1494
|
# on construction.
|
1422
1495
|
#
|
1423
|
-
#
|
1424
|
-
#
|
1425
|
-
#
|
1426
|
-
# to 20 seconds,
|
1427
|
-
#
|
1428
|
-
#
|
1429
|
-
#
|
1430
|
-
#
|
1431
|
-
#
|
1432
|
-
#
|
1433
|
-
#
|
1434
|
-
#
|
1435
|
-
#
|
1436
|
-
#
|
1437
|
-
#
|
1438
|
-
# end
|
1496
|
+
# @example
|
1497
|
+
#
|
1498
|
+
# # Modify the global config, setting the timeout for
|
1499
|
+
# # create_job to 20 seconds,
|
1500
|
+
# # and all remaining timeouts to 10 seconds.
|
1501
|
+
# ::Google::Cloud::Talent::V4::JobService::Client.configure do |config|
|
1502
|
+
# config.timeout = 10.0
|
1503
|
+
# config.rpcs.create_job.timeout = 20.0
|
1504
|
+
# end
|
1505
|
+
#
|
1506
|
+
# # Apply the above configuration only to a new client.
|
1507
|
+
# client = ::Google::Cloud::Talent::V4::JobService::Client.new do |config|
|
1508
|
+
# config.timeout = 10.0
|
1509
|
+
# config.rpcs.create_job.timeout = 20.0
|
1510
|
+
# end
|
1439
1511
|
#
|
1440
1512
|
# @!attribute [rw] endpoint
|
1441
1513
|
# The hostname or hostname:port of the service endpoint.
|