google-cloud-talent-v4beta1 0.7.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- 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 +6 -4
- data/lib/google/cloud/talent/v4beta1/company_service/rest/client.rb +6 -4
- data/lib/google/cloud/talent/v4beta1/company_service/rest/service_stub.rb +5 -5
- 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 +6 -4
- data/lib/google/cloud/talent/v4beta1/completion/rest/service_stub.rb +1 -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 +6 -4
- data/lib/google/cloud/talent/v4beta1/event_service/rest/client.rb +6 -4
- data/lib/google/cloud/talent/v4beta1/event_service/rest/service_stub.rb +1 -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 +6 -4
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +5 -3
- data/lib/google/cloud/talent/v4beta1/job_service/rest/client.rb +6 -4
- data/lib/google/cloud/talent/v4beta1/job_service/rest/operations.rb +9 -7
- data/lib/google/cloud/talent/v4beta1/job_service/rest/service_stub.rb +10 -10
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +31 -123
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +24 -12
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +6 -4
- data/lib/google/cloud/talent/v4beta1/tenant_service/rest/client.rb +6 -4
- data/lib/google/cloud/talent/v4beta1/tenant_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +27 -25
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b87a5a2101287c50027258d1c1e27402e48beb18733fc5da82cd49f7ba1783e7
|
4
|
+
data.tar.gz: fb044de0aeeaba674c3eaccaea748fc0f737f9fbd77988ac90e2391668464a55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64bc85f5e071c2193a16e767b028358e62ce07886251e89846a4cd0a4b1f4db1756d7e523657f2c8974ee6c97c498812d7a58af55d0693b522ed30aa2e9e1adb
|
7
|
+
data.tar.gz: 495d95557d8181473eb5d683fa37b4be608e62c21e9d6a2537cae5e834e67161b531d7a13949cc882b0526c540002d10940a4e91a9b909f4677379540e91ab23
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -1,11 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/talent/v4beta1/batch.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n\'google/cloud/talent/v4beta1/batch.proto\x12\x1bgoogle.cloud.talent.v4beta1Bn\n\x1f\x63om.google.cloud.talent.v4beta1B\nBatchProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
8
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
9
32
|
end
|
10
33
|
|
11
34
|
module Google
|
@@ -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/common.proto
|
3
4
|
|
@@ -10,238 +11,36 @@ require 'google/type/latlng_pb'
|
|
10
11
|
require 'google/type/money_pb'
|
11
12
|
require 'google/type/postal_address_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
optional :domain, :string, 1
|
40
|
-
optional :session_id, :string, 2
|
41
|
-
optional :user_id, :string, 3
|
42
|
-
optional :allow_missing_ids, :bool, 4
|
43
|
-
optional :device_info, :message, 5, "google.cloud.talent.v4beta1.DeviceInfo"
|
44
|
-
end
|
45
|
-
add_message "google.cloud.talent.v4beta1.ResponseMetadata" do
|
46
|
-
optional :request_id, :string, 1
|
47
|
-
end
|
48
|
-
add_message "google.cloud.talent.v4beta1.DeviceInfo" do
|
49
|
-
optional :device_type, :enum, 1, "google.cloud.talent.v4beta1.DeviceInfo.DeviceType"
|
50
|
-
optional :id, :string, 2
|
51
|
-
end
|
52
|
-
add_enum "google.cloud.talent.v4beta1.DeviceInfo.DeviceType" do
|
53
|
-
value :DEVICE_TYPE_UNSPECIFIED, 0
|
54
|
-
value :WEB, 1
|
55
|
-
value :MOBILE_WEB, 2
|
56
|
-
value :ANDROID, 3
|
57
|
-
value :IOS, 4
|
58
|
-
value :BOT, 5
|
59
|
-
value :OTHER, 6
|
60
|
-
end
|
61
|
-
add_message "google.cloud.talent.v4beta1.CustomAttribute" do
|
62
|
-
repeated :string_values, :string, 1
|
63
|
-
repeated :long_values, :int64, 2
|
64
|
-
optional :filterable, :bool, 3
|
65
|
-
optional :keyword_searchable, :bool, 4
|
66
|
-
end
|
67
|
-
add_message "google.cloud.talent.v4beta1.SpellingCorrection" do
|
68
|
-
optional :corrected, :bool, 1
|
69
|
-
optional :corrected_text, :string, 2
|
70
|
-
optional :corrected_html, :string, 3
|
71
|
-
end
|
72
|
-
add_message "google.cloud.talent.v4beta1.CompensationInfo" do
|
73
|
-
repeated :entries, :message, 1, "google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry"
|
74
|
-
optional :annualized_base_compensation_range, :message, 2, "google.cloud.talent.v4beta1.CompensationInfo.CompensationRange"
|
75
|
-
optional :annualized_total_compensation_range, :message, 3, "google.cloud.talent.v4beta1.CompensationInfo.CompensationRange"
|
76
|
-
end
|
77
|
-
add_message "google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry" do
|
78
|
-
optional :type, :enum, 1, "google.cloud.talent.v4beta1.CompensationInfo.CompensationType"
|
79
|
-
optional :unit, :enum, 2, "google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit"
|
80
|
-
optional :description, :string, 5
|
81
|
-
optional :expected_units_per_year, :message, 6, "google.protobuf.DoubleValue"
|
82
|
-
oneof :compensation_amount do
|
83
|
-
optional :amount, :message, 3, "google.type.Money"
|
84
|
-
optional :range, :message, 4, "google.cloud.talent.v4beta1.CompensationInfo.CompensationRange"
|
85
|
-
end
|
86
|
-
end
|
87
|
-
add_message "google.cloud.talent.v4beta1.CompensationInfo.CompensationRange" do
|
88
|
-
optional :max_compensation, :message, 2, "google.type.Money"
|
89
|
-
optional :min_compensation, :message, 1, "google.type.Money"
|
90
|
-
end
|
91
|
-
add_enum "google.cloud.talent.v4beta1.CompensationInfo.CompensationType" do
|
92
|
-
value :COMPENSATION_TYPE_UNSPECIFIED, 0
|
93
|
-
value :BASE, 1
|
94
|
-
value :BONUS, 2
|
95
|
-
value :SIGNING_BONUS, 3
|
96
|
-
value :EQUITY, 4
|
97
|
-
value :PROFIT_SHARING, 5
|
98
|
-
value :COMMISSIONS, 6
|
99
|
-
value :TIPS, 7
|
100
|
-
value :OTHER_COMPENSATION_TYPE, 8
|
101
|
-
end
|
102
|
-
add_enum "google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit" do
|
103
|
-
value :COMPENSATION_UNIT_UNSPECIFIED, 0
|
104
|
-
value :HOURLY, 1
|
105
|
-
value :DAILY, 2
|
106
|
-
value :WEEKLY, 3
|
107
|
-
value :MONTHLY, 4
|
108
|
-
value :YEARLY, 5
|
109
|
-
value :ONE_TIME, 6
|
110
|
-
value :OTHER_COMPENSATION_UNIT, 7
|
111
|
-
end
|
112
|
-
add_message "google.cloud.talent.v4beta1.BatchOperationMetadata" do
|
113
|
-
optional :state, :enum, 1, "google.cloud.talent.v4beta1.BatchOperationMetadata.State"
|
114
|
-
optional :state_description, :string, 2
|
115
|
-
optional :success_count, :int32, 3
|
116
|
-
optional :failure_count, :int32, 4
|
117
|
-
optional :total_count, :int32, 5
|
118
|
-
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
119
|
-
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
120
|
-
optional :end_time, :message, 8, "google.protobuf.Timestamp"
|
121
|
-
end
|
122
|
-
add_enum "google.cloud.talent.v4beta1.BatchOperationMetadata.State" do
|
123
|
-
value :STATE_UNSPECIFIED, 0
|
124
|
-
value :INITIALIZING, 1
|
125
|
-
value :PROCESSING, 2
|
126
|
-
value :SUCCEEDED, 3
|
127
|
-
value :FAILED, 4
|
128
|
-
value :CANCELLING, 5
|
129
|
-
value :CANCELLED, 6
|
130
|
-
end
|
131
|
-
add_enum "google.cloud.talent.v4beta1.CompanySize" do
|
132
|
-
value :COMPANY_SIZE_UNSPECIFIED, 0
|
133
|
-
value :MINI, 1
|
134
|
-
value :SMALL, 2
|
135
|
-
value :SMEDIUM, 3
|
136
|
-
value :MEDIUM, 4
|
137
|
-
value :BIG, 5
|
138
|
-
value :BIGGER, 6
|
139
|
-
value :GIANT, 7
|
140
|
-
end
|
141
|
-
add_enum "google.cloud.talent.v4beta1.JobBenefit" do
|
142
|
-
value :JOB_BENEFIT_UNSPECIFIED, 0
|
143
|
-
value :CHILD_CARE, 1
|
144
|
-
value :DENTAL, 2
|
145
|
-
value :DOMESTIC_PARTNER, 3
|
146
|
-
value :FLEXIBLE_HOURS, 4
|
147
|
-
value :MEDICAL, 5
|
148
|
-
value :LIFE_INSURANCE, 6
|
149
|
-
value :PARENTAL_LEAVE, 7
|
150
|
-
value :RETIREMENT_PLAN, 8
|
151
|
-
value :SICK_DAYS, 9
|
152
|
-
value :VACATION, 10
|
153
|
-
value :VISION, 11
|
154
|
-
end
|
155
|
-
add_enum "google.cloud.talent.v4beta1.DegreeType" do
|
156
|
-
value :DEGREE_TYPE_UNSPECIFIED, 0
|
157
|
-
value :PRIMARY_EDUCATION, 1
|
158
|
-
value :LOWER_SECONDARY_EDUCATION, 2
|
159
|
-
value :UPPER_SECONDARY_EDUCATION, 3
|
160
|
-
value :ADULT_REMEDIAL_EDUCATION, 4
|
161
|
-
value :ASSOCIATES_OR_EQUIVALENT, 5
|
162
|
-
value :BACHELORS_OR_EQUIVALENT, 6
|
163
|
-
value :MASTERS_OR_EQUIVALENT, 7
|
164
|
-
value :DOCTORAL_OR_EQUIVALENT, 8
|
165
|
-
end
|
166
|
-
add_enum "google.cloud.talent.v4beta1.EmploymentType" do
|
167
|
-
value :EMPLOYMENT_TYPE_UNSPECIFIED, 0
|
168
|
-
value :FULL_TIME, 1
|
169
|
-
value :PART_TIME, 2
|
170
|
-
value :CONTRACTOR, 3
|
171
|
-
value :CONTRACT_TO_HIRE, 4
|
172
|
-
value :TEMPORARY, 5
|
173
|
-
value :INTERN, 6
|
174
|
-
value :VOLUNTEER, 7
|
175
|
-
value :PER_DIEM, 8
|
176
|
-
value :FLY_IN_FLY_OUT, 9
|
177
|
-
value :OTHER_EMPLOYMENT_TYPE, 10
|
178
|
-
end
|
179
|
-
add_enum "google.cloud.talent.v4beta1.JobLevel" do
|
180
|
-
value :JOB_LEVEL_UNSPECIFIED, 0
|
181
|
-
value :ENTRY_LEVEL, 1
|
182
|
-
value :EXPERIENCED, 2
|
183
|
-
value :MANAGER, 3
|
184
|
-
value :DIRECTOR, 4
|
185
|
-
value :EXECUTIVE, 5
|
186
|
-
end
|
187
|
-
add_enum "google.cloud.talent.v4beta1.JobCategory" do
|
188
|
-
value :JOB_CATEGORY_UNSPECIFIED, 0
|
189
|
-
value :ACCOUNTING_AND_FINANCE, 1
|
190
|
-
value :ADMINISTRATIVE_AND_OFFICE, 2
|
191
|
-
value :ADVERTISING_AND_MARKETING, 3
|
192
|
-
value :ANIMAL_CARE, 4
|
193
|
-
value :ART_FASHION_AND_DESIGN, 5
|
194
|
-
value :BUSINESS_OPERATIONS, 6
|
195
|
-
value :CLEANING_AND_FACILITIES, 7
|
196
|
-
value :COMPUTER_AND_IT, 8
|
197
|
-
value :CONSTRUCTION, 9
|
198
|
-
value :CUSTOMER_SERVICE, 10
|
199
|
-
value :EDUCATION, 11
|
200
|
-
value :ENTERTAINMENT_AND_TRAVEL, 12
|
201
|
-
value :FARMING_AND_OUTDOORS, 13
|
202
|
-
value :HEALTHCARE, 14
|
203
|
-
value :HUMAN_RESOURCES, 15
|
204
|
-
value :INSTALLATION_MAINTENANCE_AND_REPAIR, 16
|
205
|
-
value :LEGAL, 17
|
206
|
-
value :MANAGEMENT, 18
|
207
|
-
value :MANUFACTURING_AND_WAREHOUSE, 19
|
208
|
-
value :MEDIA_COMMUNICATIONS_AND_WRITING, 20
|
209
|
-
value :OIL_GAS_AND_MINING, 21
|
210
|
-
value :PERSONAL_CARE_AND_SERVICES, 22
|
211
|
-
value :PROTECTIVE_SERVICES, 23
|
212
|
-
value :REAL_ESTATE, 24
|
213
|
-
value :RESTAURANT_AND_HOSPITALITY, 25
|
214
|
-
value :SALES_AND_RETAIL, 26
|
215
|
-
value :SCIENCE_AND_ENGINEERING, 27
|
216
|
-
value :SOCIAL_SERVICES_AND_NON_PROFIT, 28
|
217
|
-
value :SPORTS_FITNESS_AND_RECREATION, 29
|
218
|
-
value :TRANSPORTATION_AND_LOGISTICS, 30
|
219
|
-
end
|
220
|
-
add_enum "google.cloud.talent.v4beta1.PostingRegion" do
|
221
|
-
value :POSTING_REGION_UNSPECIFIED, 0
|
222
|
-
value :ADMINISTRATIVE_AREA, 1
|
223
|
-
value :NATION, 2
|
224
|
-
value :TELECOMMUTE, 3
|
225
|
-
end
|
226
|
-
add_enum "google.cloud.talent.v4beta1.Visibility" do
|
227
|
-
value :VISIBILITY_UNSPECIFIED, 0
|
228
|
-
value :ACCOUNT_ONLY, 1
|
229
|
-
value :SHARED_WITH_GOOGLE, 2
|
230
|
-
value :SHARED_WITH_PUBLIC, 3
|
231
|
-
end
|
232
|
-
add_enum "google.cloud.talent.v4beta1.HtmlSanitization" do
|
233
|
-
value :HTML_SANITIZATION_UNSPECIFIED, 0
|
234
|
-
value :HTML_SANITIZATION_DISABLED, 1
|
235
|
-
value :SIMPLE_FORMATTING_ONLY, 2
|
236
|
-
end
|
237
|
-
add_enum "google.cloud.talent.v4beta1.CommuteMethod" do
|
238
|
-
value :COMMUTE_METHOD_UNSPECIFIED, 0
|
239
|
-
value :DRIVING, 1
|
240
|
-
value :TRANSIT, 2
|
241
|
-
value :WALKING, 3
|
242
|
-
value :CYCLING, 4
|
14
|
+
|
15
|
+
descriptor_data = "\n(google/cloud/talent/v4beta1/common.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\"n\n\x0eTimestampRange\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb7\x03\n\x08Location\x12I\n\rlocation_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.Location.LocationType\x12\x32\n\x0epostal_address\x18\x02 \x01(\x0b\x32\x1a.google.type.PostalAddress\x12$\n\x07lat_lng\x18\x03 \x01(\x0b\x32\x13.google.type.LatLng\x12\x14\n\x0cradius_miles\x18\x04 \x01(\x01\"\xef\x01\n\x0cLocationType\x12\x1d\n\x19LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43OUNTRY\x10\x01\x12\x17\n\x13\x41\x44MINISTRATIVE_AREA\x10\x02\x12\x1b\n\x17SUB_ADMINISTRATIVE_AREA\x10\x03\x12\x0c\n\x08LOCALITY\x10\x04\x12\x0f\n\x0bPOSTAL_CODE\x10\x05\x12\x10\n\x0cSUB_LOCALITY\x10\x06\x12\x12\n\x0eSUB_LOCALITY_1\x10\x07\x12\x12\n\x0eSUB_LOCALITY_2\x10\x08\x12\x10\n\x0cNEIGHBORHOOD\x10\t\x12\x12\n\x0eSTREET_ADDRESS\x10\n\"\x9f\x01\n\x0fRequestMetadata\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\t\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x12\x19\n\x11\x61llow_missing_ids\x18\x04 \x01(\x08\x12<\n\x0b\x64\x65vice_info\x18\x05 \x01(\x0b\x32\'.google.cloud.talent.v4beta1.DeviceInfo\"&\n\x10ResponseMetadata\x12\x12\n\nrequest_id\x18\x01 \x01(\t\"\xcf\x01\n\nDeviceInfo\x12G\n\x0b\x64\x65vice_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.DeviceInfo.DeviceType\x12\n\n\x02id\x18\x02 \x01(\t\"l\n\nDeviceType\x12\x1b\n\x17\x44\x45VICE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\x0e\n\nMOBILE_WEB\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x07\n\x03IOS\x10\x04\x12\x07\n\x03\x42OT\x10\x05\x12\t\n\x05OTHER\x10\x06\"m\n\x0f\x43ustomAttribute\x12\x15\n\rstring_values\x18\x01 \x03(\t\x12\x13\n\x0blong_values\x18\x02 \x03(\x03\x12\x12\n\nfilterable\x18\x03 \x01(\x08\x12\x1a\n\x12keyword_searchable\x18\x04 \x01(\x08\"W\n\x12SpellingCorrection\x12\x11\n\tcorrected\x18\x01 \x01(\x08\x12\x16\n\x0e\x63orrected_text\x18\x02 \x01(\t\x12\x16\n\x0e\x63orrected_html\x18\x03 \x01(\t\"\xa6\t\n\x10\x43ompensationInfo\x12P\n\x07\x65ntries\x18\x01 \x03(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry\x12p\n\"annualized_base_compensation_range\x18\x02 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x12q\n#annualized_total_compensation_range\x18\x03 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x1a\x92\x03\n\x11\x43ompensationEntry\x12L\n\x04type\x18\x01 \x01(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType\x12L\n\x04unit\x18\x02 \x01(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit\x12$\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12P\n\x05range\x18\x04 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeH\x00\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12=\n\x17\x65xpected_units_per_year\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x15\n\x13\x63ompensation_amount\x1ao\n\x11\x43ompensationRange\x12,\n\x10max_compensation\x18\x02 \x01(\x0b\x32\x12.google.type.Money\x12,\n\x10min_compensation\x18\x01 \x01(\x0b\x32\x12.google.type.Money\"\xb5\x01\n\x10\x43ompensationType\x12!\n\x1d\x43OMPENSATION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42\x41SE\x10\x01\x12\t\n\x05\x42ONUS\x10\x02\x12\x11\n\rSIGNING_BONUS\x10\x03\x12\n\n\x06\x45QUITY\x10\x04\x12\x12\n\x0ePROFIT_SHARING\x10\x05\x12\x0f\n\x0b\x43OMMISSIONS\x10\x06\x12\x08\n\x04TIPS\x10\x07\x12\x1b\n\x17OTHER_COMPENSATION_TYPE\x10\x08\"\x9c\x01\n\x10\x43ompensationUnit\x12!\n\x1d\x43OMPENSATION_UNIT_UNSPECIFIED\x10\x00\x12\n\n\x06HOURLY\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\n\n\x06WEEKLY\x10\x03\x12\x0b\n\x07MONTHLY\x10\x04\x12\n\n\x06YEARLY\x10\x05\x12\x0c\n\x08ONE_TIME\x10\x06\x12\x1b\n\x17OTHER_COMPENSATION_UNIT\x10\x07\"\xcc\x03\n\x16\x42\x61tchOperationMetadata\x12H\n\x05state\x18\x01 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.BatchOperationMetadata.State\x12\x19\n\x11state_description\x18\x02 \x01(\t\x12\x15\n\rsuccess_count\x18\x03 \x01(\x05\x12\x15\n\rfailure_count\x18\x04 \x01(\x05\x12\x13\n\x0btotal_count\x18\x05 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\r\n\tCANCELLED\x10\x06*y\n\x0b\x43ompanySize\x12\x1c\n\x18\x43OMPANY_SIZE_UNSPECIFIED\x10\x00\x12\x08\n\x04MINI\x10\x01\x12\t\n\x05SMALL\x10\x02\x12\x0b\n\x07SMEDIUM\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x07\n\x03\x42IG\x10\x05\x12\n\n\x06\x42IGGER\x10\x06\x12\t\n\x05GIANT\x10\x07*\xe2\x01\n\nJobBenefit\x12\x1b\n\x17JOB_BENEFIT_UNSPECIFIED\x10\x00\x12\x0e\n\nCHILD_CARE\x10\x01\x12\n\n\x06\x44\x45NTAL\x10\x02\x12\x14\n\x10\x44OMESTIC_PARTNER\x10\x03\x12\x12\n\x0e\x46LEXIBLE_HOURS\x10\x04\x12\x0b\n\x07MEDICAL\x10\x05\x12\x12\n\x0eLIFE_INSURANCE\x10\x06\x12\x12\n\x0ePARENTAL_LEAVE\x10\x07\x12\x13\n\x0fRETIREMENT_PLAN\x10\x08\x12\r\n\tSICK_DAYS\x10\t\x12\x0c\n\x08VACATION\x10\n\x12\n\n\x06VISION\x10\x0b*\x8e\x02\n\nDegreeType\x12\x1b\n\x17\x44\x45GREE_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11PRIMARY_EDUCATION\x10\x01\x12\x1d\n\x19LOWER_SECONDARY_EDUCATION\x10\x02\x12\x1d\n\x19UPPER_SECONDARY_EDUCATION\x10\x03\x12\x1c\n\x18\x41\x44ULT_REMEDIAL_EDUCATION\x10\x04\x12\x1c\n\x18\x41SSOCIATES_OR_EQUIVALENT\x10\x05\x12\x1b\n\x17\x42\x41\x43HELORS_OR_EQUIVALENT\x10\x06\x12\x19\n\x15MASTERS_OR_EQUIVALENT\x10\x07\x12\x1a\n\x16\x44OCTORAL_OR_EQUIVALENT\x10\x08*\xdc\x01\n\x0e\x45mploymentType\x12\x1f\n\x1b\x45MPLOYMENT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tFULL_TIME\x10\x01\x12\r\n\tPART_TIME\x10\x02\x12\x0e\n\nCONTRACTOR\x10\x03\x12\x14\n\x10\x43ONTRACT_TO_HIRE\x10\x04\x12\r\n\tTEMPORARY\x10\x05\x12\n\n\x06INTERN\x10\x06\x12\r\n\tVOLUNTEER\x10\x07\x12\x0c\n\x08PER_DIEM\x10\x08\x12\x12\n\x0e\x46LY_IN_FLY_OUT\x10\t\x12\x19\n\x15OTHER_EMPLOYMENT_TYPE\x10\n*q\n\x08JobLevel\x12\x19\n\x15JOB_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45NTRY_LEVEL\x10\x01\x12\x0f\n\x0b\x45XPERIENCED\x10\x02\x12\x0b\n\x07MANAGER\x10\x03\x12\x0c\n\x08\x44IRECTOR\x10\x04\x12\r\n\tEXECUTIVE\x10\x05*\xba\x06\n\x0bJobCategory\x12\x1c\n\x18JOB_CATEGORY_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41\x43\x43OUNTING_AND_FINANCE\x10\x01\x12\x1d\n\x19\x41\x44MINISTRATIVE_AND_OFFICE\x10\x02\x12\x1d\n\x19\x41\x44VERTISING_AND_MARKETING\x10\x03\x12\x0f\n\x0b\x41NIMAL_CARE\x10\x04\x12\x1a\n\x16\x41RT_FASHION_AND_DESIGN\x10\x05\x12\x17\n\x13\x42USINESS_OPERATIONS\x10\x06\x12\x1b\n\x17\x43LEANING_AND_FACILITIES\x10\x07\x12\x13\n\x0f\x43OMPUTER_AND_IT\x10\x08\x12\x10\n\x0c\x43ONSTRUCTION\x10\t\x12\x14\n\x10\x43USTOMER_SERVICE\x10\n\x12\r\n\tEDUCATION\x10\x0b\x12\x1c\n\x18\x45NTERTAINMENT_AND_TRAVEL\x10\x0c\x12\x18\n\x14\x46\x41RMING_AND_OUTDOORS\x10\r\x12\x0e\n\nHEALTHCARE\x10\x0e\x12\x13\n\x0fHUMAN_RESOURCES\x10\x0f\x12\'\n#INSTALLATION_MAINTENANCE_AND_REPAIR\x10\x10\x12\t\n\x05LEGAL\x10\x11\x12\x0e\n\nMANAGEMENT\x10\x12\x12\x1f\n\x1bMANUFACTURING_AND_WAREHOUSE\x10\x13\x12$\n MEDIA_COMMUNICATIONS_AND_WRITING\x10\x14\x12\x16\n\x12OIL_GAS_AND_MINING\x10\x15\x12\x1e\n\x1aPERSONAL_CARE_AND_SERVICES\x10\x16\x12\x17\n\x13PROTECTIVE_SERVICES\x10\x17\x12\x0f\n\x0bREAL_ESTATE\x10\x18\x12\x1e\n\x1aRESTAURANT_AND_HOSPITALITY\x10\x19\x12\x14\n\x10SALES_AND_RETAIL\x10\x1a\x12\x1b\n\x17SCIENCE_AND_ENGINEERING\x10\x1b\x12\"\n\x1eSOCIAL_SERVICES_AND_NON_PROFIT\x10\x1c\x12!\n\x1dSPORTS_FITNESS_AND_RECREATION\x10\x1d\x12 \n\x1cTRANSPORTATION_AND_LOGISTICS\x10\x1e*e\n\rPostingRegion\x12\x1e\n\x1aPOSTING_REGION_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41\x44MINISTRATIVE_AREA\x10\x01\x12\n\n\x06NATION\x10\x02\x12\x0f\n\x0bTELECOMMUTE\x10\x03*n\n\nVisibility\x12\x1a\n\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41\x43\x43OUNT_ONLY\x10\x01\x12\x16\n\x12SHARED_WITH_GOOGLE\x10\x02\x12\x16\n\x12SHARED_WITH_PUBLIC\x10\x03\x1a\x02\x18\x01*q\n\x10HtmlSanitization\x12!\n\x1dHTML_SANITIZATION_UNSPECIFIED\x10\x00\x12\x1e\n\x1aHTML_SANITIZATION_DISABLED\x10\x01\x12\x1a\n\x16SIMPLE_FORMATTING_ONLY\x10\x02*c\n\rCommuteMethod\x12\x1e\n\x1a\x43OMMUTE_METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44RIVING\x10\x01\x12\x0b\n\x07TRANSIT\x10\x02\x12\x0b\n\x07WALKING\x10\x03\x12\x0b\n\x07\x43YCLING\x10\x04\x42o\n\x1f\x63om.google.cloud.talent.v4beta1B\x0b\x43ommonProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.type.PostalAddress", "google/type/postal_address.proto"],
|
32
|
+
["google.type.LatLng", "google/type/latlng.proto"],
|
33
|
+
["google.type.Money", "google/type/money.proto"],
|
34
|
+
["google.protobuf.DoubleValue", "google/protobuf/wrappers.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
243
40
|
end
|
244
41
|
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
245
44
|
end
|
246
45
|
|
247
46
|
module Google
|
@@ -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/company.proto
|
3
4
|
|
@@ -7,27 +8,32 @@ require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/cloud/talent/v4beta1/common_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
11
|
+
|
12
|
+
descriptor_data = "\n)google/cloud/talent/v4beta1/company.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/talent/v4beta1/common.proto\"\x80\x05\n\x07\x43ompany\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x65xternal_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x04size\x18\x04 \x01(\x0e\x32(.google.cloud.talent.v4beta1.CompanySize\x12\x1c\n\x14headquarters_address\x18\x05 \x01(\t\x12\x15\n\rhiring_agency\x18\x06 \x01(\x08\x12\x10\n\x08\x65\x65o_text\x18\x07 \x01(\t\x12\x13\n\x0bwebsite_uri\x18\x08 \x01(\t\x12\x17\n\x0f\x63\x61reer_site_uri\x18\t \x01(\t\x12\x11\n\timage_uri\x18\n \x01(\t\x12\x34\n(keyword_searchable_job_custom_attributes\x18\x0b \x03(\tB\x02\x18\x01\x12K\n\x0c\x64\x65rived_info\x18\x0c \x01(\x0b\x32\x30.google.cloud.talent.v4beta1.Company.DerivedInfoB\x03\xe0\x41\x03\x12\x16\n\tsuspended\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x1aS\n\x0b\x44\x65rivedInfo\x12\x44\n\x15headquarters_location\x18\x01 \x01(\x0b\x32%.google.cloud.talent.v4beta1.Location:\x81\x01\xea\x41~\n\x1bjobs.googleapis.com/Company\x12\x37projects/{project}/tenants/{tenant}/companies/{company}\x12&projects/{project}/companies/{company}Bx\n\x1f\x63om.google.cloud.talent.v4beta1B\x14\x43ompanyResourceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.cloud.talent.v4beta1.Location", "google/cloud/talent/v4beta1/common.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
29
33
|
end
|
30
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
31
37
|
end
|
32
38
|
|
33
39
|
module Google
|
@@ -142,7 +142,7 @@ module Google
|
|
142
142
|
credentials = @config.credentials
|
143
143
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
144
144
|
# but only if the default endpoint does not have a region prefix.
|
145
|
-
enable_self_signed_jwt = @config.endpoint ==
|
145
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
146
146
|
!@config.endpoint.split(".").first.include?("-")
|
147
147
|
credentials ||= Credentials.default scope: @config.scope,
|
148
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -684,9 +684,9 @@ module Google
|
|
684
684
|
# * (`String`) The path to a service account key file in JSON format
|
685
685
|
# * (`Hash`) A service account key as a Hash
|
686
686
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
687
|
-
# (see the [googleauth docs](https://
|
687
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
688
688
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
689
|
-
# (see the [signet docs](https://
|
689
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
690
690
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
691
691
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
692
692
|
# * (`nil`) indicating no credentials
|
@@ -728,7 +728,9 @@ module Google
|
|
728
728
|
class Configuration
|
729
729
|
extend ::Gapic::Config
|
730
730
|
|
731
|
-
|
731
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
732
|
+
|
733
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
732
734
|
config_attr :credentials, nil do |value|
|
733
735
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
734
736
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -138,7 +138,7 @@ module Google
|
|
138
138
|
credentials = @config.credentials
|
139
139
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
140
140
|
# but only if the default endpoint does not have a region prefix.
|
141
|
-
enable_self_signed_jwt = @config.endpoint ==
|
141
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
142
142
|
!@config.endpoint.split(".").first.include?("-")
|
143
143
|
credentials ||= Credentials.default scope: @config.scope,
|
144
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -556,9 +556,9 @@ module Google
|
|
556
556
|
# * (`String`) The path to a service account key file in JSON format
|
557
557
|
# * (`Hash`) A service account key as a Hash
|
558
558
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
559
|
-
# (see the [googleauth docs](https://
|
559
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
560
560
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
561
|
-
# (see the [signet docs](https://
|
561
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
562
562
|
# * (`nil`) indicating no credentials
|
563
563
|
# @return [::Object]
|
564
564
|
# @!attribute [rw] scope
|
@@ -591,7 +591,9 @@ module Google
|
|
591
591
|
class Configuration
|
592
592
|
extend ::Gapic::Config
|
593
593
|
|
594
|
-
|
594
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
595
|
+
|
596
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
595
597
|
config_attr :credentials, nil do |value|
|
596
598
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
597
599
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_company_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_company_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_company_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_company_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_companies_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
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/company_service.proto
|
3
4
|
|
@@ -12,34 +13,34 @@ require 'google/cloud/talent/v4beta1/company_pb'
|
|
12
13
|
require 'google/protobuf/empty_pb'
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
optional :next_page_token, :string, 2
|
40
|
-
optional :metadata, :message, 3, "google.cloud.talent.v4beta1.ResponseMetadata"
|
16
|
+
|
17
|
+
descriptor_data = "\n1google/cloud/talent/v4beta1/company_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/company.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x87\x01\n\x14\x43reateCompanyRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12:\n\x07\x63ompany\x18\x02 \x01(\x0b\x32$.google.cloud.talent.v4beta1.CompanyB\x03\xe0\x41\x02\"F\n\x11GetCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\"\x83\x01\n\x14UpdateCompanyRequest\x12:\n\x07\x63ompany\x18\x01 \x01(\x0b\x32$.google.cloud.talent.v4beta1.CompanyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"I\n\x14\x44\x65leteCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\"\x8d\x01\n\x14ListCompaniesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x19\n\x11require_open_jobs\x18\x04 \x01(\x08\"\xaa\x01\n\x15ListCompaniesResponse\x12\x37\n\tcompanies\x18\x01 \x03(\x0b\x32$.google.cloud.talent.v4beta1.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xd2\t\n\x0e\x43ompanyService\x12\xe3\x01\n\rCreateCompany\x12\x31.google.cloud.talent.v4beta1.CreateCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company\"y\x82\xd3\xe4\x93\x02\x62\"0/v4beta1/{parent=projects/*/tenants/*}/companies:\x01*Z+\"&/v4beta1/{parent=projects/*}/companies:\x01*\xda\x41\x0eparent,company\x12\xcd\x01\n\nGetCompany\x12..google.cloud.talent.v4beta1.GetCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company\"i\x82\xd3\xe4\x93\x02\\\x12\x30/v4beta1/{name=projects/*/tenants/*/companies/*}Z(\x12&/v4beta1/{name=projects/*/companies/*}\xda\x41\x04name\x12\xed\x01\n\rUpdateCompany\x12\x31.google.cloud.talent.v4beta1.UpdateCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company\"\x82\x01\x82\xd3\xe4\x93\x02r28/v4beta1/{company.name=projects/*/tenants/*/companies/*}:\x01*Z32./v4beta1/{company.name=projects/*/companies/*}:\x01*\xda\x41\x07\x63ompany\x12\xc5\x01\n\rDeleteCompany\x12\x31.google.cloud.talent.v4beta1.DeleteCompanyRequest\x1a\x16.google.protobuf.Empty\"i\x82\xd3\xe4\x93\x02\\*0/v4beta1/{name=projects/*/tenants/*/companies/*}Z(*&/v4beta1/{name=projects/*/companies/*}\xda\x41\x04name\x12\xe3\x01\n\rListCompanies\x12\x31.google.cloud.talent.v4beta1.ListCompaniesRequest\x1a\x32.google.cloud.talent.v4beta1.ListCompaniesResponse\"k\x82\xd3\xe4\x93\x02\\\x12\x30/v4beta1/{parent=projects/*/tenants/*}/companiesZ(\x12&/v4beta1/{parent=projects/*}/companies\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBw\n\x1f\x63om.google.cloud.talent.v4beta1B\x13\x43ompanyServiceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
|
18
|
+
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
|
+
|
21
|
+
begin
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
23
|
+
rescue TypeError => e
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
27
|
+
parsed.clear_dependency
|
28
|
+
serialized = parsed.class.encode(parsed)
|
29
|
+
file = pool.add_serialized_file(serialized)
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
31
|
+
imports = [
|
32
|
+
["google.cloud.talent.v4beta1.Company", "google/cloud/talent/v4beta1/company.proto"],
|
33
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
34
|
+
["google.cloud.talent.v4beta1.ResponseMetadata", "google/cloud/talent/v4beta1/common.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
41
40
|
end
|
42
41
|
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
43
44
|
end
|
44
45
|
|
45
46
|
module Google
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
credentials = @config.credentials
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -309,9 +309,9 @@ module Google
|
|
309
309
|
# * (`String`) The path to a service account key file in JSON format
|
310
310
|
# * (`Hash`) A service account key as a Hash
|
311
311
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
312
|
-
# (see the [googleauth docs](https://
|
312
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
313
313
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
314
|
-
# (see the [signet docs](https://
|
314
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
315
315
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
316
316
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
317
317
|
# * (`nil`) indicating no credentials
|
@@ -353,7 +353,9 @@ module Google
|
|
353
353
|
class Configuration
|
354
354
|
extend ::Gapic::Config
|
355
355
|
|
356
|
-
|
356
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
357
|
+
|
358
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
357
359
|
config_attr :credentials, nil do |value|
|
358
360
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
359
361
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|