google-cloud-talent-v4beta1 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +25 -2
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +29 -230
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +25 -19
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +18 -14
- data/lib/google/cloud/talent/v4beta1/company_service/rest/client.rb +693 -0
- data/lib/google/cloud/talent/v4beta1/company_service/rest/service_stub.rb +382 -0
- data/lib/google/cloud/talent/v4beta1/company_service/rest.rb +52 -0
- data/lib/google/cloud/talent/v4beta1/company_service.rb +7 -1
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +27 -26
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +6 -4
- data/lib/google/cloud/talent/v4beta1/completion/rest/client.rb +386 -0
- data/lib/google/cloud/talent/v4beta1/completion/rest/service_stub.rb +114 -0
- data/lib/google/cloud/talent/v4beta1/completion/rest.rb +52 -0
- data/lib/google/cloud/talent/v4beta1/completion.rb +7 -1
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +25 -30
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +25 -33
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +4 -4
- data/lib/google/cloud/talent/v4beta1/event_service/rest/client.rb +359 -0
- data/lib/google/cloud/talent/v4beta1/event_service/rest/service_stub.rb +116 -0
- data/lib/google/cloud/talent/v4beta1/event_service/rest.rb +52 -0
- data/lib/google/cloud/talent/v4beta1/event_service.rb +7 -1
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +25 -5
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +28 -59
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +24 -8
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +26 -46
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +250 -161
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +14 -16
- data/lib/google/cloud/talent/v4beta1/job_service/rest/client.rb +1712 -0
- data/lib/google/cloud/talent/v4beta1/job_service/rest/operations.rb +793 -0
- data/lib/google/cloud/talent/v4beta1/job_service/rest/service_stub.rb +721 -0
- data/lib/google/cloud/talent/v4beta1/job_service/rest.rb +53 -0
- data/lib/google/cloud/talent/v4beta1/job_service.rb +7 -1
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +31 -123
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +12 -8
- data/lib/google/cloud/talent/v4beta1/rest.rb +41 -0
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +24 -12
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +15 -12
- data/lib/google/cloud/talent/v4beta1/tenant_service/rest/client.rb +672 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service/rest/service_stub.rb +345 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service/rest.rb +52 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service.rb +7 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +27 -25
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/lib/google/cloud/talent/v4beta1.rb +7 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/talent/v4beta1/common.rb +117 -56
- data/proto_docs/google/cloud/talent/v4beta1/company.rb +10 -5
- data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +12 -6
- data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +21 -10
- data/proto_docs/google/cloud/talent/v4beta1/event.rb +20 -10
- data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +2 -2
- data/proto_docs/google/cloud/talent/v4beta1/filters.rb +62 -38
- data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +8 -3
- data/proto_docs/google/cloud/talent/v4beta1/job.rb +86 -54
- data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +211 -120
- data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +9 -5
- data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +9 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +28 -8
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/talent/v4beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/talent/v4beta1/job_service/credentials"
|
26
|
+
require "google/cloud/talent/v4beta1/job_service/paths"
|
27
|
+
require "google/cloud/talent/v4beta1/job_service/rest/operations"
|
28
|
+
require "google/cloud/talent/v4beta1/job_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Talent
|
33
|
+
module V4beta1
|
34
|
+
##
|
35
|
+
# A service handles job management, including job CRUD, enumeration and search.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/talent/v4beta1/job_service/rest"
|
40
|
+
# client = ::Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
|
41
|
+
#
|
42
|
+
module JobService
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/talent/v4beta1/job_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/talent/v4beta1/job_service/credentials"
|
|
26
26
|
require "google/cloud/talent/v4beta1/job_service/paths"
|
27
27
|
require "google/cloud/talent/v4beta1/job_service/operations"
|
28
28
|
require "google/cloud/talent/v4beta1/job_service/client"
|
29
|
+
require "google/cloud/talent/v4beta1/job_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
##
|
35
36
|
# A service handles job management, including job CRUD, enumeration and search.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/talent/v4beta1/job_service"
|
40
41
|
# client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/talent/v4beta1/job_service/rest"
|
46
|
+
# client = ::Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module JobService
|
43
49
|
end
|
44
50
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/talent/v4beta1/job_service.proto
|
3
4
|
|
@@ -17,131 +18,38 @@ require 'google/protobuf/empty_pb'
|
|
17
18
|
require 'google/protobuf/field_mask_pb'
|
18
19
|
require 'google/rpc/status_pb'
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
repeated :jobs, :message, 1, "google.cloud.talent.v4beta1.Job"
|
49
|
-
optional :next_page_token, :string, 2
|
50
|
-
optional :metadata, :message, 3, "google.cloud.talent.v4beta1.ResponseMetadata"
|
51
|
-
end
|
52
|
-
add_message "google.cloud.talent.v4beta1.SearchJobsRequest" do
|
53
|
-
optional :parent, :string, 1
|
54
|
-
optional :search_mode, :enum, 2, "google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode"
|
55
|
-
optional :request_metadata, :message, 3, "google.cloud.talent.v4beta1.RequestMetadata"
|
56
|
-
optional :job_query, :message, 4, "google.cloud.talent.v4beta1.JobQuery"
|
57
|
-
optional :enable_broadening, :bool, 5
|
58
|
-
optional :require_precise_result_size, :bool, 6
|
59
|
-
repeated :histogram_queries, :message, 7, "google.cloud.talent.v4beta1.HistogramQuery"
|
60
|
-
optional :job_view, :enum, 8, "google.cloud.talent.v4beta1.JobView"
|
61
|
-
optional :offset, :int32, 9
|
62
|
-
optional :page_size, :int32, 10
|
63
|
-
optional :page_token, :string, 11
|
64
|
-
optional :order_by, :string, 12
|
65
|
-
optional :diversification_level, :enum, 13, "google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel"
|
66
|
-
optional :custom_ranking_info, :message, 14, "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo"
|
67
|
-
optional :disable_keyword_match, :bool, 16
|
68
|
-
optional :keyword_match_mode, :enum, 18, "google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode"
|
69
|
-
end
|
70
|
-
add_message "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo" do
|
71
|
-
optional :importance_level, :enum, 1, "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel"
|
72
|
-
optional :ranking_expression, :string, 2
|
73
|
-
end
|
74
|
-
add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel" do
|
75
|
-
value :IMPORTANCE_LEVEL_UNSPECIFIED, 0
|
76
|
-
value :NONE, 1
|
77
|
-
value :LOW, 2
|
78
|
-
value :MILD, 3
|
79
|
-
value :MEDIUM, 4
|
80
|
-
value :HIGH, 5
|
81
|
-
value :EXTREME, 6
|
82
|
-
end
|
83
|
-
add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode" do
|
84
|
-
value :SEARCH_MODE_UNSPECIFIED, 0
|
85
|
-
value :JOB_SEARCH, 1
|
86
|
-
value :FEATURED_JOB_SEARCH, 2
|
87
|
-
end
|
88
|
-
add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel" do
|
89
|
-
value :DIVERSIFICATION_LEVEL_UNSPECIFIED, 0
|
90
|
-
value :DISABLED, 1
|
91
|
-
value :SIMPLE, 2
|
92
|
-
end
|
93
|
-
add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode" do
|
94
|
-
value :KEYWORD_MATCH_MODE_UNSPECIFIED, 0
|
95
|
-
value :KEYWORD_MATCH_DISABLED, 1
|
96
|
-
value :KEYWORD_MATCH_ALL, 2
|
97
|
-
value :KEYWORD_MATCH_TITLE_ONLY, 3
|
98
|
-
end
|
99
|
-
add_message "google.cloud.talent.v4beta1.SearchJobsResponse" do
|
100
|
-
repeated :matching_jobs, :message, 1, "google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob"
|
101
|
-
repeated :histogram_query_results, :message, 2, "google.cloud.talent.v4beta1.HistogramQueryResult"
|
102
|
-
optional :next_page_token, :string, 3
|
103
|
-
repeated :location_filters, :message, 4, "google.cloud.talent.v4beta1.Location"
|
104
|
-
optional :estimated_total_size, :int32, 5
|
105
|
-
optional :total_size, :int32, 6
|
106
|
-
optional :metadata, :message, 7, "google.cloud.talent.v4beta1.ResponseMetadata"
|
107
|
-
optional :broadened_query_jobs_count, :int32, 8
|
108
|
-
optional :spell_correction, :message, 9, "google.cloud.talent.v4beta1.SpellingCorrection"
|
109
|
-
end
|
110
|
-
add_message "google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob" do
|
111
|
-
optional :job, :message, 1, "google.cloud.talent.v4beta1.Job"
|
112
|
-
optional :job_summary, :string, 2
|
113
|
-
optional :job_title_snippet, :string, 3
|
114
|
-
optional :search_text_snippet, :string, 4
|
115
|
-
optional :commute_info, :message, 5, "google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo"
|
116
|
-
end
|
117
|
-
add_message "google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo" do
|
118
|
-
optional :job_location, :message, 1, "google.cloud.talent.v4beta1.Location"
|
119
|
-
optional :travel_duration, :message, 2, "google.protobuf.Duration"
|
120
|
-
end
|
121
|
-
add_message "google.cloud.talent.v4beta1.BatchCreateJobsRequest" do
|
122
|
-
optional :parent, :string, 1
|
123
|
-
repeated :jobs, :message, 2, "google.cloud.talent.v4beta1.Job"
|
124
|
-
end
|
125
|
-
add_message "google.cloud.talent.v4beta1.BatchUpdateJobsRequest" do
|
126
|
-
optional :parent, :string, 1
|
127
|
-
repeated :jobs, :message, 2, "google.cloud.talent.v4beta1.Job"
|
128
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
129
|
-
end
|
130
|
-
add_message "google.cloud.talent.v4beta1.JobOperationResult" do
|
131
|
-
repeated :job_results, :message, 1, "google.cloud.talent.v4beta1.JobOperationResult.JobResult"
|
132
|
-
end
|
133
|
-
add_message "google.cloud.talent.v4beta1.JobOperationResult.JobResult" do
|
134
|
-
optional :job, :message, 1, "google.cloud.talent.v4beta1.Job"
|
135
|
-
optional :status, :message, 2, "google.rpc.Status"
|
136
|
-
end
|
137
|
-
add_enum "google.cloud.talent.v4beta1.JobView" do
|
138
|
-
value :JOB_VIEW_UNSPECIFIED, 0
|
139
|
-
value :JOB_VIEW_ID_ONLY, 1
|
140
|
-
value :JOB_VIEW_MINIMAL, 2
|
141
|
-
value :JOB_VIEW_SMALL, 3
|
142
|
-
value :JOB_VIEW_FULL, 4
|
21
|
+
|
22
|
+
descriptor_data = "\n-google/cloud/talent/v4beta1/job_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/talent/v4beta1/common.proto\x1a)google/cloud/talent/v4beta1/filters.proto\x1a+google/cloud/talent/v4beta1/histogram.proto\x1a%google/cloud/talent/v4beta1/job.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"w\n\x10\x43reateJobRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x32\n\x03job\x18\x02 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\">\n\rGetJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job\"w\n\x10UpdateJobRequest\x12\x32\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"A\n\x10\x44\x65leteJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job\"^\n\x16\x42\x61tchDeleteJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xb6\x01\n\x0fListJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x36\n\x08job_view\x18\x05 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView\"\x9c\x01\n\x10ListJobsResponse\x12.\n\x04jobs\x18\x01 \x03(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\"\xbb\x0b\n\x11SearchJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12N\n\x0bsearch_mode\x18\x02 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode\x12K\n\x10request_metadata\x18\x03 \x01(\x0b\x32,.google.cloud.talent.v4beta1.RequestMetadataB\x03\xe0\x41\x02\x12\x38\n\tjob_query\x18\x04 \x01(\x0b\x32%.google.cloud.talent.v4beta1.JobQuery\x12\x19\n\x11\x65nable_broadening\x18\x05 \x01(\x08\x12\'\n\x1brequire_precise_result_size\x18\x06 \x01(\x08\x42\x02\x18\x01\x12\x46\n\x11histogram_queries\x18\x07 \x03(\x0b\x32+.google.cloud.talent.v4beta1.HistogramQuery\x12\x36\n\x08job_view\x18\x08 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView\x12\x0e\n\x06offset\x18\t \x01(\x05\x12\x11\n\tpage_size\x18\n \x01(\x05\x12\x12\n\npage_token\x18\x0b \x01(\t\x12\x10\n\x08order_by\x18\x0c \x01(\t\x12\x62\n\x15\x64iversification_level\x18\r \x01(\x0e\x32\x43.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel\x12]\n\x13\x63ustom_ranking_info\x18\x0e \x01(\x0b\x32@.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo\x12\x1d\n\x15\x64isable_keyword_match\x18\x10 \x01(\x08\x12[\n\x12keyword_match_mode\x18\x12 \x01(\x0e\x32?.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode\x1a\x9a\x02\n\x11\x43ustomRankingInfo\x12o\n\x10importance_level\x18\x01 \x01(\x0e\x32P.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevelB\x03\xe0\x41\x02\x12\x1f\n\x12ranking_expression\x18\x02 \x01(\tB\x03\xe0\x41\x02\"s\n\x0fImportanceLevel\x12 \n\x1cIMPORTANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\x08\n\x04MILD\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\x0b\n\x07\x45XTREME\x10\x06\"R\n\nSearchMode\x12\x1b\n\x17SEARCH_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nJOB_SEARCH\x10\x01\x12\x17\n\x13\x46\x45\x41TURED_JOB_SEARCH\x10\x02\"W\n\x14\x44iversificationLevel\x12%\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\n\n\x06SIMPLE\x10\x02\"\x87\x01\n\x10KeywordMatchMode\x12\"\n\x1eKEYWORD_MATCH_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16KEYWORD_MATCH_DISABLED\x10\x01\x12\x15\n\x11KEYWORD_MATCH_ALL\x10\x02\x12\x1c\n\x18KEYWORD_MATCH_TITLE_ONLY\x10\x03\"\xd7\x06\n\x12SearchJobsResponse\x12R\n\rmatching_jobs\x18\x01 \x03(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob\x12R\n\x17histogram_query_results\x18\x02 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.HistogramQueryResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12?\n\x10location_filters\x18\x04 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x1c\n\x14\x65stimated_total_size\x18\x05 \x01(\x05\x12\x12\n\ntotal_size\x18\x06 \x01(\x05\x12?\n\x08metadata\x18\x07 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x12\"\n\x1a\x62roadened_query_jobs_count\x18\x08 \x01(\x05\x12I\n\x10spell_correction\x18\t \x01(\x0b\x32/.google.cloud.talent.v4beta1.SpellingCorrection\x1a\xdc\x01\n\x0bMatchingJob\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x13\n\x0bjob_summary\x18\x02 \x01(\t\x12\x19\n\x11job_title_snippet\x18\x03 \x01(\t\x12\x1b\n\x13search_text_snippet\x18\x04 \x01(\t\x12Q\n\x0c\x63ommute_info\x18\x05 \x01(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo\x1a~\n\x0b\x43ommuteInfo\x12;\n\x0cjob_location\x18\x01 \x01(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x32\n\x0ftravel_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"~\n\x16\x42\x61tchCreateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\"\xaf\x01\n\x16\x42\x61tchUpdateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xc4\x01\n\x12JobOperationResult\x12N\n\x0bjob_results\x18\x01 \x03(\x0b\x32\x39.google.cloud.talent.v4beta1.JobOperationResult.JobResult\x1a^\n\tJobResult\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status*v\n\x07JobView\x12\x18\n\x14JOB_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10JOB_VIEW_ID_ONLY\x10\x01\x12\x14\n\x10JOB_VIEW_MINIMAL\x10\x02\x12\x12\n\x0eJOB_VIEW_SMALL\x10\x03\x12\x11\n\rJOB_VIEW_FULL\x10\x04\x32\xce\x12\n\nJobService\x12\xc9\x01\n\tCreateJob\x12-.google.cloud.talent.v4beta1.CreateJobRequest\x1a .google.cloud.talent.v4beta1.Job\"k\x82\xd3\xe4\x93\x02X\"+/v4beta1/{parent=projects/*/tenants/*}/jobs:\x01*Z&\"!/v4beta1/{parent=projects/*}/jobs:\x01*\xda\x41\nparent,job\x12\x9b\x02\n\x0f\x42\x61tchCreateJobs\x12\x33.google.cloud.talent.v4beta1.BatchCreateJobsRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\x82\xd3\xe4\x93\x02p\"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate:\x01*Z2\"-/v4beta1/{parent=projects/*}/jobs:batchCreate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb7\x01\n\x06GetJob\x12*.google.cloud.talent.v4beta1.GetJobRequest\x1a .google.cloud.talent.v4beta1.Job\"_\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#\x12!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xca\x01\n\tUpdateJob\x12-.google.cloud.talent.v4beta1.UpdateJobRequest\x1a .google.cloud.talent.v4beta1.Job\"l\x82\xd3\xe4\x93\x02`2//v4beta1/{job.name=projects/*/tenants/*/jobs/*}:\x01*Z*2%/v4beta1/{job.name=projects/*/jobs/*}:\x01*\xda\x41\x03job\x12\x9b\x02\n\x0f\x42\x61tchUpdateJobs\x12\x33.google.cloud.talent.v4beta1.BatchUpdateJobsRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\x82\xd3\xe4\x93\x02p\"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate:\x01*Z2\"-/v4beta1/{parent=projects/*}/jobs:batchUpdate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb3\x01\n\tDeleteJob\x12-.google.cloud.talent.v4beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"_\x82\xd3\xe4\x93\x02R*+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#*!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xe4\x01\n\x0f\x42\x61tchDeleteJobs\x12\x33.google.cloud.talent.v4beta1.BatchDeleteJobsRequest\x1a\x16.google.protobuf.Empty\"\x83\x01\x82\xd3\xe4\x93\x02m\"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete:\x01*Z/\"-/v4beta1/{parent=projects/*}/jobs:batchDelete\xda\x41\rparent,filter\x12\xd1\x01\n\x08ListJobs\x12,.google.cloud.talent.v4beta1.ListJobsRequest\x1a-.google.cloud.talent.v4beta1.ListJobsResponse\"h\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{parent=projects/*/tenants/*}/jobsZ#\x12!/v4beta1/{parent=projects/*}/jobs\xda\x41\rparent,filter\x12\xdb\x01\n\nSearchJobs\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse\"l\x82\xd3\xe4\x93\x02\x66\"2/v4beta1/{parent=projects/*/tenants/*}/jobs:search:\x01*Z-\"(/v4beta1/{parent=projects/*}/jobs:search:\x01*\x12\xf3\x01\n\x12SearchJobsForAlert\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse\"|\x82\xd3\xe4\x93\x02v\":/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert:\x01*Z5\"0/v4beta1/{parent=projects/*}/jobs:searchForAlert:\x01*\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBs\n\x1f\x63om.google.cloud.talent.v4beta1B\x0fJobServiceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
|
23
|
+
|
24
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
25
|
+
|
26
|
+
begin
|
27
|
+
pool.add_serialized_file(descriptor_data)
|
28
|
+
rescue TypeError => e
|
29
|
+
# Compatibility code: will be removed in the next major version.
|
30
|
+
require 'google/protobuf/descriptor_pb'
|
31
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
32
|
+
parsed.clear_dependency
|
33
|
+
serialized = parsed.class.encode(parsed)
|
34
|
+
file = pool.add_serialized_file(serialized)
|
35
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
36
|
+
imports = [
|
37
|
+
["google.cloud.talent.v4beta1.Job", "google/cloud/talent/v4beta1/job.proto"],
|
38
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
39
|
+
["google.cloud.talent.v4beta1.ResponseMetadata", "google/cloud/talent/v4beta1/common.proto"],
|
40
|
+
["google.cloud.talent.v4beta1.JobQuery", "google/cloud/talent/v4beta1/filters.proto"],
|
41
|
+
["google.cloud.talent.v4beta1.HistogramQuery", "google/cloud/talent/v4beta1/histogram.proto"],
|
42
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
43
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
44
|
+
]
|
45
|
+
imports.each do |type_name, expected_filename|
|
46
|
+
import_file = pool.lookup(type_name).file_descriptor
|
47
|
+
if import_file.name != expected_filename
|
48
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
143
49
|
end
|
144
50
|
end
|
51
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
52
|
+
warn "This will become an error in the next major version."
|
145
53
|
end
|
146
54
|
|
147
55
|
module Google
|
@@ -59,22 +59,26 @@ module Google
|
|
59
59
|
rpc :BatchDeleteJobs, ::Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest, ::Google::Protobuf::Empty
|
60
60
|
# Lists jobs by filter.
|
61
61
|
rpc :ListJobs, ::Google::Cloud::Talent::V4beta1::ListJobsRequest, ::Google::Cloud::Talent::V4beta1::ListJobsResponse
|
62
|
-
# Searches for jobs using the provided
|
62
|
+
# Searches for jobs using the provided
|
63
|
+
# [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
|
63
64
|
#
|
64
|
-
# This call constrains the
|
65
|
-
#
|
66
|
-
# permission to
|
65
|
+
# This call constrains the
|
66
|
+
# [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
|
67
|
+
# the database, and only returns jobs that the caller has permission to
|
68
|
+
# search against.
|
67
69
|
rpc :SearchJobs, ::Google::Cloud::Talent::V4beta1::SearchJobsRequest, ::Google::Cloud::Talent::V4beta1::SearchJobsResponse
|
68
|
-
# Searches for jobs using the provided
|
70
|
+
# Searches for jobs using the provided
|
71
|
+
# [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
|
69
72
|
#
|
70
73
|
# This API call is intended for the use case of targeting passive job
|
71
74
|
# seekers (for example, job seekers who have signed up to receive email
|
72
75
|
# alerts about potential job opportunities), and has different algorithmic
|
73
76
|
# adjustments that are targeted to passive job seekers.
|
74
77
|
#
|
75
|
-
# This call constrains the
|
76
|
-
#
|
77
|
-
# permission to search
|
78
|
+
# This call constrains the
|
79
|
+
# [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
|
80
|
+
# the database, and only returns jobs the caller has permission to search
|
81
|
+
# against.
|
78
82
|
rpc :SearchJobsForAlert, ::Google::Cloud::Talent::V4beta1::SearchJobsRequest, ::Google::Cloud::Talent::V4beta1::SearchJobsResponse
|
79
83
|
end
|
80
84
|
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/talent/v4beta1/company_service/rest"
|
20
|
+
require "google/cloud/talent/v4beta1/completion/rest"
|
21
|
+
require "google/cloud/talent/v4beta1/event_service/rest"
|
22
|
+
require "google/cloud/talent/v4beta1/job_service/rest"
|
23
|
+
require "google/cloud/talent/v4beta1/tenant_service/rest"
|
24
|
+
require "google/cloud/talent/v4beta1/version"
|
25
|
+
|
26
|
+
module Google
|
27
|
+
module Cloud
|
28
|
+
module Talent
|
29
|
+
##
|
30
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
31
|
+
#
|
32
|
+
# @example
|
33
|
+
#
|
34
|
+
# require "google/cloud/talent/v4beta1/rest"
|
35
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Rest::Client.new
|
36
|
+
#
|
37
|
+
module V4beta1
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/talent/v4beta1/tenant.proto
|
3
4
|
|
@@ -6,20 +7,31 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n(google/cloud/talent/v4beta1/tenant.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc3\x02\n\x06Tenant\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x65xternal_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nusage_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.talent.v4beta1.Tenant.DataUsageType\x12\x34\n,keyword_searchable_profile_custom_attributes\x18\x04 \x03(\t\"N\n\rDataUsageType\x12\x1f\n\x1b\x44\x41TA_USAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nAGGREGATED\x10\x01\x12\x0c\n\x08ISOLATED\x10\x02:D\xea\x41\x41\n\x1ajobs.googleapis.com/Tenant\x12#projects/{project}/tenants/{tenant}Bw\n\x1f\x63om.google.cloud.talent.v4beta1B\x13TenantResourceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
21
31
|
end
|
22
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
23
35
|
end
|
24
36
|
|
25
37
|
module Google
|
@@ -360,15 +360,20 @@ module Google
|
|
360
360
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
361
361
|
#
|
362
362
|
# @param tenant [::Google::Cloud::Talent::V4beta1::Tenant, ::Hash]
|
363
|
-
# Required. The tenant resource to replace the current resource in the
|
363
|
+
# Required. The tenant resource to replace the current resource in the
|
364
|
+
# system.
|
364
365
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
365
366
|
# Strongly recommended for the best service experience.
|
366
367
|
#
|
367
|
-
# If
|
368
|
-
# {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest#
|
368
|
+
# If
|
369
|
+
# {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest#update_mask update_mask}
|
370
|
+
# is provided, only the specified fields in
|
371
|
+
# {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are
|
372
|
+
# updated. Otherwise all the fields are updated.
|
369
373
|
#
|
370
374
|
# A field mask to specify the tenant fields to be updated. Only
|
371
|
-
# top level fields of {::Google::Cloud::Talent::V4beta1::Tenant Tenant} are
|
375
|
+
# top level fields of {::Google::Cloud::Talent::V4beta1::Tenant Tenant} are
|
376
|
+
# supported.
|
372
377
|
#
|
373
378
|
# @yield [response, operation] Access the result along with the RPC operation
|
374
379
|
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Tenant]
|
@@ -571,13 +576,11 @@ module Google
|
|
571
576
|
# # Call the list_tenants method.
|
572
577
|
# result = client.list_tenants request
|
573
578
|
#
|
574
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
575
|
-
# #
|
576
|
-
#
|
577
|
-
# # methods are also available for managing paging directly.
|
578
|
-
# result.each do |response|
|
579
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
580
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
581
|
+
# result.each do |item|
|
579
582
|
# # Each element is of type ::Google::Cloud::Talent::V4beta1::Tenant.
|
580
|
-
# p
|
583
|
+
# p item
|
581
584
|
# end
|
582
585
|
#
|
583
586
|
def list_tenants request, options = nil
|
@@ -660,9 +663,9 @@ module Google
|
|
660
663
|
# * (`String`) The path to a service account key file in JSON format
|
661
664
|
# * (`Hash`) A service account key as a Hash
|
662
665
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
663
|
-
# (see the [googleauth docs](https://
|
666
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
664
667
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
665
|
-
# (see the [signet docs](https://
|
668
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
666
669
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
667
670
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
668
671
|
# * (`nil`) indicating no credentials
|