google-cloud-talent-v4 0.9.1 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/talent/v4/common_pb.rb +29 -231
  3. data/lib/google/cloud/talent/v4/company_pb.rb +25 -19
  4. data/lib/google/cloud/talent/v4/company_service/client.rb +4 -2
  5. data/lib/google/cloud/talent/v4/company_service/rest/client.rb +4 -2
  6. data/lib/google/cloud/talent/v4/company_service/rest/service_stub.rb +5 -5
  7. data/lib/google/cloud/talent/v4/company_service_pb.rb +27 -26
  8. data/lib/google/cloud/talent/v4/completion/client.rb +4 -2
  9. data/lib/google/cloud/talent/v4/completion/rest/client.rb +4 -2
  10. data/lib/google/cloud/talent/v4/completion/rest/service_stub.rb +1 -1
  11. data/lib/google/cloud/talent/v4/completion_service_pb.rb +25 -30
  12. data/lib/google/cloud/talent/v4/event_pb.rb +25 -32
  13. data/lib/google/cloud/talent/v4/event_service/client.rb +4 -2
  14. data/lib/google/cloud/talent/v4/event_service/rest/client.rb +4 -2
  15. data/lib/google/cloud/talent/v4/event_service/rest/service_stub.rb +1 -1
  16. data/lib/google/cloud/talent/v4/event_service_pb.rb +25 -5
  17. data/lib/google/cloud/talent/v4/filters_pb.rb +28 -58
  18. data/lib/google/cloud/talent/v4/histogram_pb.rb +24 -8
  19. data/lib/google/cloud/talent/v4/job_pb.rb +26 -46
  20. data/lib/google/cloud/talent/v4/job_service/client.rb +4 -2
  21. data/lib/google/cloud/talent/v4/job_service/operations.rb +3 -1
  22. data/lib/google/cloud/talent/v4/job_service/rest/client.rb +4 -2
  23. data/lib/google/cloud/talent/v4/job_service/rest/operations.rb +7 -5
  24. data/lib/google/cloud/talent/v4/job_service/rest/service_stub.rb +10 -10
  25. data/lib/google/cloud/talent/v4/job_service_pb.rb +31 -130
  26. data/lib/google/cloud/talent/v4/tenant_pb.rb +24 -5
  27. data/lib/google/cloud/talent/v4/tenant_service/client.rb +4 -2
  28. data/lib/google/cloud/talent/v4/tenant_service/rest/client.rb +4 -2
  29. data/lib/google/cloud/talent/v4/tenant_service/rest/service_stub.rb +5 -5
  30. data/lib/google/cloud/talent/v4/tenant_service_pb.rb +27 -25
  31. data/lib/google/cloud/talent/v4/version.rb +1 -1
  32. data/proto_docs/google/cloud/talent/v4/job_service.rb +5 -0
  33. data/proto_docs/google/protobuf/any.rb +7 -4
  34. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  35. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '091e91ca39ba011a9216e5ec958e65b11830178bcf68afff7b94116bb151a8cf'
4
- data.tar.gz: 6b12eb87b5f0958bb3463608bcee5065a8db7241608a7d28ede570326d926d17
3
+ metadata.gz: ec4604ca906e8b374982b6e803dc4d3ebd0e7f82b69f17b3f6e6166d08fa1c0b
4
+ data.tar.gz: a1ac5ae514886859a80856b8c73573467fde773908fb8c4d7c351a3c3a6a29b8
5
5
  SHA512:
6
- metadata.gz: 30056ed7513563b2855b4c3a1bc147892c22924eebe9ebc1ed395dd189b298f61f030d7725bbef48f90310642330174e0c55554a006117f19ba724a18336fcda
7
- data.tar.gz: 1b6617b84b29bec2223bdfdaf2dd8029ad4df368958b5944ba0277bd28eaa491b85e04d3201ebf8bcca47a55a8e9d40514d7a99170755ac52dda655982c3db10
6
+ metadata.gz: b24210eec60149cbb0e88bf6e03b87878cf675fd3f4b2adcbac2fce690ec4300c74dc3f428f17b4b798f615145293bce7f87f5f511f536b3bf26a1ce725ec31c
7
+ data.tar.gz: 7f08ecbbe0ea9a489d4aca8f70c7f73fa520351c66c0f66148ca59b19d0eb1a039b7edb293903d4c2fe374dd09da5fa0c0db6b663b9b1c28a765757bbabbfa5f
@@ -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/v4/common.proto
3
4
 
@@ -10,239 +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
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/cloud/talent/v4/common.proto", :syntax => :proto3) do
15
- add_message "google.cloud.talent.v4.TimestampRange" do
16
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
17
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
18
- end
19
- add_message "google.cloud.talent.v4.Location" do
20
- optional :location_type, :enum, 1, "google.cloud.talent.v4.Location.LocationType"
21
- optional :postal_address, :message, 2, "google.type.PostalAddress"
22
- optional :lat_lng, :message, 3, "google.type.LatLng"
23
- optional :radius_miles, :double, 4
24
- end
25
- add_enum "google.cloud.talent.v4.Location.LocationType" do
26
- value :LOCATION_TYPE_UNSPECIFIED, 0
27
- value :COUNTRY, 1
28
- value :ADMINISTRATIVE_AREA, 2
29
- value :SUB_ADMINISTRATIVE_AREA, 3
30
- value :LOCALITY, 4
31
- value :POSTAL_CODE, 5
32
- value :SUB_LOCALITY, 6
33
- value :SUB_LOCALITY_1, 7
34
- value :SUB_LOCALITY_2, 8
35
- value :NEIGHBORHOOD, 9
36
- value :STREET_ADDRESS, 10
37
- end
38
- add_message "google.cloud.talent.v4.RequestMetadata" do
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.v4.DeviceInfo"
44
- end
45
- add_message "google.cloud.talent.v4.ResponseMetadata" do
46
- optional :request_id, :string, 1
47
- end
48
- add_message "google.cloud.talent.v4.DeviceInfo" do
49
- optional :device_type, :enum, 1, "google.cloud.talent.v4.DeviceInfo.DeviceType"
50
- optional :id, :string, 2
51
- end
52
- add_enum "google.cloud.talent.v4.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.v4.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.v4.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.v4.CompensationInfo" do
73
- repeated :entries, :message, 1, "google.cloud.talent.v4.CompensationInfo.CompensationEntry"
74
- optional :annualized_base_compensation_range, :message, 2, "google.cloud.talent.v4.CompensationInfo.CompensationRange"
75
- optional :annualized_total_compensation_range, :message, 3, "google.cloud.talent.v4.CompensationInfo.CompensationRange"
76
- end
77
- add_message "google.cloud.talent.v4.CompensationInfo.CompensationEntry" do
78
- optional :type, :enum, 1, "google.cloud.talent.v4.CompensationInfo.CompensationType"
79
- optional :unit, :enum, 2, "google.cloud.talent.v4.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.v4.CompensationInfo.CompensationRange"
85
- end
86
- end
87
- add_message "google.cloud.talent.v4.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.v4.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.v4.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.v4.BatchOperationMetadata" do
113
- optional :state, :enum, 1, "google.cloud.talent.v4.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.v4.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.v4.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.v4.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.v4.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.v4.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.v4.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.v4.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.v4.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.v4.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.v4.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.v4.CommuteMethod" do
238
- value :COMMUTE_METHOD_UNSPECIFIED, 0
239
- value :DRIVING, 1
240
- value :TRANSIT, 2
241
- value :WALKING, 3
242
- value :CYCLING, 4
243
- value :TRANSIT_ACCESSIBLE, 5
14
+
15
+ descriptor_data = "\n#google/cloud/talent/v4/common.proto\x12\x16google.cloud.talent.v4\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\"\xb2\x03\n\x08Location\x12\x44\n\rlocation_type\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4.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\"\x9a\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\x37\n\x0b\x64\x65vice_info\x18\x05 \x01(\x0b\x32\".google.cloud.talent.v4.DeviceInfo\"&\n\x10ResponseMetadata\x12\x12\n\nrequest_id\x18\x01 \x01(\t\"\xca\x01\n\nDeviceInfo\x12\x42\n\x0b\x64\x65vice_type\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4.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\"\x88\t\n\x10\x43ompensationInfo\x12K\n\x07\x65ntries\x18\x01 \x03(\x0b\x32:.google.cloud.talent.v4.CompensationInfo.CompensationEntry\x12k\n\"annualized_base_compensation_range\x18\x02 \x01(\x0b\x32:.google.cloud.talent.v4.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x12l\n#annualized_total_compensation_range\x18\x03 \x01(\x0b\x32:.google.cloud.talent.v4.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x1a\x83\x03\n\x11\x43ompensationEntry\x12G\n\x04type\x18\x01 \x01(\x0e\x32\x39.google.cloud.talent.v4.CompensationInfo.CompensationType\x12G\n\x04unit\x18\x02 \x01(\x0e\x32\x39.google.cloud.talent.v4.CompensationInfo.CompensationUnit\x12$\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12K\n\x05range\x18\x04 \x01(\x0b\x32:.google.cloud.talent.v4.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\"\xc7\x03\n\x16\x42\x61tchOperationMetadata\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.talent.v4.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*{\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\x12\x16\n\x12TRANSIT_ACCESSIBLE\x10\x05\x42\x65\n\x1a\x63om.google.cloud.talent.v4B\x0b\x43ommonProtoP\x01Z2cloud.google.com/go/talent/apiv4/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}"
244
40
  end
245
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."
246
44
  end
247
45
 
248
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/v4/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/v4/common_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/talent/v4/company.proto", :syntax => :proto3) do
12
- add_message "google.cloud.talent.v4.Company" do
13
- optional :name, :string, 1
14
- optional :display_name, :string, 2
15
- optional :external_id, :string, 3
16
- optional :size, :enum, 4, "google.cloud.talent.v4.CompanySize"
17
- optional :headquarters_address, :string, 5
18
- optional :hiring_agency, :bool, 6
19
- optional :eeo_text, :string, 7
20
- optional :website_uri, :string, 8
21
- optional :career_site_uri, :string, 9
22
- optional :image_uri, :string, 10
23
- repeated :keyword_searchable_job_custom_attributes, :string, 11
24
- optional :derived_info, :message, 12, "google.cloud.talent.v4.Company.DerivedInfo"
25
- optional :suspended, :bool, 13
26
- end
27
- add_message "google.cloud.talent.v4.Company.DerivedInfo" do
28
- optional :headquarters_location, :message, 1, "google.cloud.talent.v4.Location"
11
+
12
+ descriptor_data = "\n$google/cloud/talent/v4/company.proto\x12\x16google.cloud.talent.v4\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/talent/v4/common.proto\"\xc8\x04\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\x31\n\x04size\x18\x04 \x01(\x0e\x32#.google.cloud.talent.v4.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\x12\x46\n\x0c\x64\x65rived_info\x18\x0c \x01(\x0b\x32+.google.cloud.talent.v4.Company.DerivedInfoB\x03\xe0\x41\x03\x12\x16\n\tsuspended\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x1aN\n\x0b\x44\x65rivedInfo\x12?\n\x15headquarters_location\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4.Location:Y\xea\x41V\n\x1bjobs.googleapis.com/Company\x12\x37projects/{project}/tenants/{tenant}/companies/{company}Bf\n\x1a\x63om.google.cloud.talent.v4B\x0c\x43ompanyProtoP\x01Z2cloud.google.com/go/talent/apiv4/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.v4.Location", "google/cloud/talent/v4/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 == Client.configure.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
@@ -717,7 +717,9 @@ module Google
717
717
  class Configuration
718
718
  extend ::Gapic::Config
719
719
 
720
- config_attr :endpoint, "jobs.googleapis.com", ::String
720
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
721
+
722
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
721
723
  config_attr :credentials, nil do |value|
722
724
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
723
725
  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 == Client.configure.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
@@ -580,7 +580,9 @@ module Google
580
580
  class Configuration
581
581
  extend ::Gapic::Config
582
582
 
583
- config_attr :endpoint, "jobs.googleapis.com", ::String
583
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
584
+
585
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
584
586
  config_attr :credentials, nil do |value|
585
587
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
586
588
  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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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/v4/company_service.proto
3
4
 
@@ -12,34 +13,34 @@ require 'google/cloud/talent/v4/company_pb'
12
13
  require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/talent/v4/company_service.proto", :syntax => :proto3) do
17
- add_message "google.cloud.talent.v4.CreateCompanyRequest" do
18
- optional :parent, :string, 1
19
- optional :company, :message, 2, "google.cloud.talent.v4.Company"
20
- end
21
- add_message "google.cloud.talent.v4.GetCompanyRequest" do
22
- optional :name, :string, 1
23
- end
24
- add_message "google.cloud.talent.v4.UpdateCompanyRequest" do
25
- optional :company, :message, 1, "google.cloud.talent.v4.Company"
26
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
27
- end
28
- add_message "google.cloud.talent.v4.DeleteCompanyRequest" do
29
- optional :name, :string, 1
30
- end
31
- add_message "google.cloud.talent.v4.ListCompaniesRequest" do
32
- optional :parent, :string, 1
33
- optional :page_token, :string, 2
34
- optional :page_size, :int32, 3
35
- optional :require_open_jobs, :bool, 4
36
- end
37
- add_message "google.cloud.talent.v4.ListCompaniesResponse" do
38
- repeated :companies, :message, 1, "google.cloud.talent.v4.Company"
39
- optional :next_page_token, :string, 2
40
- optional :metadata, :message, 3, "google.cloud.talent.v4.ResponseMetadata"
16
+
17
+ descriptor_data = "\n,google/cloud/talent/v4/company_service.proto\x12\x16google.cloud.talent.v4\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/v4/common.proto\x1a$google/cloud/talent/v4/company.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x81\x01\n\x14\x43reateCompanyRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12\x35\n\x07\x63ompany\x18\x02 \x01(\x0b\x32\x1f.google.cloud.talent.v4.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\"~\n\x14UpdateCompanyRequest\x12\x35\n\x07\x63ompany\x18\x01 \x01(\x0b\x32\x1f.google.cloud.talent.v4.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\"\x8c\x01\n\x14ListCompaniesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\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\"\xa0\x01\n\x15ListCompaniesResponse\x12\x32\n\tcompanies\x18\x01 \x03(\x0b\x32\x1f.google.cloud.talent.v4.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12:\n\x08metadata\x18\x03 \x01(\x0b\x32(.google.cloud.talent.v4.ResponseMetadata2\xc3\x07\n\x0e\x43ompanyService\x12\xad\x01\n\rCreateCompany\x12,.google.cloud.talent.v4.CreateCompanyRequest\x1a\x1f.google.cloud.talent.v4.Company\"M\x82\xd3\xe4\x93\x02\x36\"+/v4/{parent=projects/*/tenants/*}/companies:\x07\x63ompany\xda\x41\x0eparent,company\x12\x94\x01\n\nGetCompany\x12).google.cloud.talent.v4.GetCompanyRequest\x1a\x1f.google.cloud.talent.v4.Company\":\x82\xd3\xe4\x93\x02-\x12+/v4/{name=projects/*/tenants/*/companies/*}\xda\x41\x04name\x12\xba\x01\n\rUpdateCompany\x12,.google.cloud.talent.v4.UpdateCompanyRequest\x1a\x1f.google.cloud.talent.v4.Company\"Z\x82\xd3\xe4\x93\x02>23/v4/{company.name=projects/*/tenants/*/companies/*}:\x07\x63ompany\xda\x41\x13\x63ompany,update_mask\x12\x91\x01\n\rDeleteCompany\x12,.google.cloud.talent.v4.DeleteCompanyRequest\x1a\x16.google.protobuf.Empty\":\x82\xd3\xe4\x93\x02-*+/v4/{name=projects/*/tenants/*/companies/*}\xda\x41\x04name\x12\xaa\x01\n\rListCompanies\x12,.google.cloud.talent.v4.ListCompaniesRequest\x1a-.google.cloud.talent.v4.ListCompaniesResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v4/{parent=projects/*/tenants/*}/companies\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBm\n\x1a\x63om.google.cloud.talent.v4B\x13\x43ompanyServiceProtoP\x01Z2cloud.google.com/go/talent/apiv4/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.v4.Company", "google/cloud/talent/v4/company.proto"],
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ["google.cloud.talent.v4.ResponseMetadata", "google/cloud/talent/v4/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 == Client.configure.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
@@ -347,7 +347,9 @@ module Google
347
347
  class Configuration
348
348
  extend ::Gapic::Config
349
349
 
350
- config_attr :endpoint, "jobs.googleapis.com", ::String
350
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
351
+
352
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
351
353
  config_attr :credentials, nil do |value|
352
354
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
353
355
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -306,7 +306,9 @@ module Google
306
306
  class Configuration
307
307
  extend ::Gapic::Config
308
308
 
309
- config_attr :endpoint, "jobs.googleapis.com", ::String
309
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
310
+
311
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
310
312
  config_attr :credentials, nil do |value|
311
313
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
312
314
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_complete_query_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end