google-cloud-talent 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +9 -0
  3. data/LICENSE +201 -0
  4. data/README.md +69 -0
  5. data/lib/google/cloud/talent.rb +456 -0
  6. data/lib/google/cloud/talent/v4beta1.rb +484 -0
  7. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +21 -0
  8. data/lib/google/cloud/talent/v4beta1/common_pb.rb +264 -0
  9. data/lib/google/cloud/talent/v4beta1/company_pb.rb +39 -0
  10. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +479 -0
  11. data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +51 -0
  12. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +53 -0
  13. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +56 -0
  14. data/lib/google/cloud/talent/v4beta1/completion_client.rb +303 -0
  15. data/lib/google/cloud/talent/v4beta1/completion_client_config.json +31 -0
  16. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +53 -0
  17. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +48 -0
  18. data/lib/google/cloud/talent/v4beta1/credentials.rb +42 -0
  19. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +890 -0
  20. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +125 -0
  21. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +130 -0
  22. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +153 -0
  23. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +252 -0
  24. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +34 -0
  25. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +853 -0
  26. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +56 -0
  27. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +409 -0
  28. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +732 -0
  29. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +1125 -0
  30. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +392 -0
  31. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/resume_service.rb +98 -0
  32. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +68 -0
  33. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +119 -0
  34. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +91 -0
  35. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb +29 -0
  36. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +230 -0
  37. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +109 -0
  38. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +34 -0
  39. data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +39 -0
  40. data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +65 -0
  41. data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +36 -0
  42. data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +126 -0
  43. data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +38 -0
  44. data/lib/google/cloud/talent/v4beta1/event_pb.rb +75 -0
  45. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +239 -0
  46. data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +31 -0
  47. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +24 -0
  48. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +53 -0
  49. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +182 -0
  50. data/lib/google/cloud/talent/v4beta1/helpers.rb +90 -0
  51. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +28 -0
  52. data/lib/google/cloud/talent/v4beta1/job_pb.rb +69 -0
  53. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +1295 -0
  54. data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +66 -0
  55. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +142 -0
  56. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +88 -0
  57. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +249 -0
  58. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +757 -0
  59. data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +56 -0
  60. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +81 -0
  61. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +65 -0
  62. data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +296 -0
  63. data/lib/google/cloud/talent/v4beta1/resume_service_client_config.json +31 -0
  64. data/lib/google/cloud/talent/v4beta1/resume_service_pb.rb +37 -0
  65. data/lib/google/cloud/talent/v4beta1/resume_service_services_pb.rb +75 -0
  66. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +31 -0
  67. data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +466 -0
  68. data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +51 -0
  69. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +52 -0
  70. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +55 -0
  71. metadata +197 -0
@@ -0,0 +1,392 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Cloud
18
+ module Talent
19
+ module V4beta1
20
+ # List profiles request.
21
+ # @!attribute [rw] parent
22
+ # @return [String]
23
+ # Required.
24
+ #
25
+ # The resource name of the tenant under which the job is created.
26
+ #
27
+ # The format is "projects/{project_id}/tenants/{tenant_id}", for example,
28
+ # "projects/api-test-project/tenants/foo".
29
+ # @!attribute [rw] page_token
30
+ # @return [String]
31
+ # Optional.
32
+ #
33
+ # The token that specifies the current offset (that is, starting result).
34
+ #
35
+ # Please set the value to
36
+ # {Google::Cloud::Talent::V4beta1::ListProfilesResponse#next_page_token ListProfilesResponse#next_page_token}
37
+ # to continue the list.
38
+ # @!attribute [rw] page_size
39
+ # @return [Integer]
40
+ # Optional.
41
+ #
42
+ # The maximum number of profiles to be returned, at most 100.
43
+ #
44
+ # Default is 100 unless a positive number smaller than 100 is specified.
45
+ # @!attribute [rw] field_mask
46
+ # @return [Google::Protobuf::FieldMask]
47
+ # Optional.
48
+ #
49
+ # A field mask to specify the profile fields to be listed in response.
50
+ # All fields are listed if it is unset.
51
+ #
52
+ # Valid values are:
53
+ #
54
+ # * name
55
+ class ListProfilesRequest; end
56
+
57
+ # The List profiles response object.
58
+ # @!attribute [rw] profiles
59
+ # @return [Array<Google::Cloud::Talent::V4beta1::Profile>]
60
+ # Profiles for the specific tenant.
61
+ # @!attribute [rw] next_page_token
62
+ # @return [String]
63
+ # A token to retrieve the next page of results. This is empty if there are no
64
+ # more results.
65
+ class ListProfilesResponse; end
66
+
67
+ # Create profile request.
68
+ # @!attribute [rw] parent
69
+ # @return [String]
70
+ # Required.
71
+ #
72
+ # The name of the tenant this profile belongs to.
73
+ #
74
+ # The format is "projects/{project_id}/tenants/{tenant_id}", for example,
75
+ # "projects/api-test-project/tenants/foo".
76
+ # @!attribute [rw] profile
77
+ # @return [Google::Cloud::Talent::V4beta1::Profile]
78
+ # Required.
79
+ #
80
+ # The profile to be created.
81
+ class CreateProfileRequest; end
82
+
83
+ # Get profile request.
84
+ # @!attribute [rw] name
85
+ # @return [String]
86
+ # Required.
87
+ #
88
+ # Resource name of the profile to get.
89
+ #
90
+ # The format is
91
+ # "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
92
+ # for example, "projects/api-test-project/tenants/foo/profiles/bar".
93
+ class GetProfileRequest; end
94
+
95
+ # Update profile request
96
+ # @!attribute [rw] profile
97
+ # @return [Google::Cloud::Talent::V4beta1::Profile]
98
+ # Required.
99
+ #
100
+ # Profile to be updated.
101
+ # @!attribute [rw] update_mask
102
+ # @return [Google::Protobuf::FieldMask]
103
+ # Optional.
104
+ #
105
+ # A field mask to specify the profile fields to update.
106
+ #
107
+ # A full update is performed if it is unset.
108
+ #
109
+ # Valid values are:
110
+ #
111
+ # * externalId
112
+ # * source
113
+ # * uri
114
+ # * isHirable
115
+ # * createTime
116
+ # * updateTime
117
+ # * resumeHrxml
118
+ # * personNames
119
+ # * addresses
120
+ # * emailAddresses
121
+ # * phoneNumbers
122
+ # * personalUris
123
+ # * additionalContactInfo
124
+ # * employmentRecords
125
+ # * educationRecords
126
+ # * skills
127
+ # * projects
128
+ # * publications
129
+ # * patents
130
+ # * certifications
131
+ # * jobApplications
132
+ # * recruitingNotes
133
+ # * customAttributes
134
+ class UpdateProfileRequest; end
135
+
136
+ # Delete profile request.
137
+ # @!attribute [rw] name
138
+ # @return [String]
139
+ # Required.
140
+ #
141
+ # Resource name of the profile to be deleted.
142
+ #
143
+ # The format is
144
+ # "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
145
+ # for example, "projects/api-test-project/tenants/foo/profiles/bar".
146
+ class DeleteProfileRequest; end
147
+
148
+ # The request body of the `SearchProfiles` call.
149
+ # @!attribute [rw] parent
150
+ # @return [String]
151
+ # Required.
152
+ #
153
+ # The resource name of the tenant to search within.
154
+ #
155
+ # The format is "projects/{project_id}/tenants/{tenant_id}", for example,
156
+ # "projects/api-test-project/tenants/foo".
157
+ # @!attribute [rw] request_metadata
158
+ # @return [Google::Cloud::Talent::V4beta1::RequestMetadata]
159
+ # Required.
160
+ #
161
+ # The meta information collected about the profile search user. This is used
162
+ # to improve the search quality of the service. These values are provided by
163
+ # users, and must be precise and consistent.
164
+ # @!attribute [rw] profile_query
165
+ # @return [Google::Cloud::Talent::V4beta1::ProfileQuery]
166
+ # Optional.
167
+ #
168
+ # Search query to execute. See
169
+ # {Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
170
+ # @!attribute [rw] page_size
171
+ # @return [Integer]
172
+ # Optional.
173
+ #
174
+ # A limit on the number of profiles returned in the search results.
175
+ # A value above the default value 10 can increase search response time.
176
+ #
177
+ # The maximum value allowed is 100. Otherwise an error is thrown.
178
+ # @!attribute [rw] page_token
179
+ # @return [String]
180
+ # Optional.
181
+ #
182
+ # The pageToken, similar to offset enables users of the API to paginate
183
+ # through the search results. To retrieve the first page of results, set the
184
+ # pageToken to empty. The search response includes a
185
+ # {Google::Cloud::Talent::V4beta1::SearchProfilesResponse#next_page_token nextPageToken}
186
+ # field that can be used to populate the pageToken field for the next page of
187
+ # results. Using pageToken instead of offset increases the performance of the
188
+ # API, especially compared to larger offset values.
189
+ # @!attribute [rw] offset
190
+ # @return [Integer]
191
+ # Optional.
192
+ #
193
+ # An integer that specifies the current offset (that is, starting result) in
194
+ # search results. This field is only considered if
195
+ # {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token}
196
+ # is unset.
197
+ #
198
+ # The maximum allowed value is 5000. Otherwise an error is thrown.
199
+ #
200
+ # For example, 0 means to search from the first profile, and 10 means to
201
+ # search from the 11th profile. This can be used for pagination, for example
202
+ # pageSize = 10 and offset = 10 means to search from the second page.
203
+ # @!attribute [rw] disable_spell_check
204
+ # @return [true, false]
205
+ # Optional.
206
+ #
207
+ # This flag controls the spell-check feature. If `false`, the
208
+ # service attempts to correct a misspelled query.
209
+ #
210
+ # For example, "enginee" is corrected to "engineer".
211
+ # @!attribute [rw] order_by
212
+ # @return [String]
213
+ # Optional.
214
+ #
215
+ # The criteria that determines how search results are sorted.
216
+ # Defaults is "relevance desc" if no value is specified.
217
+ #
218
+ # Supported options are:
219
+ #
220
+ # * "relevance desc": By descending relevance, as determined by the API
221
+ # algorithms.
222
+ # * "update_date desc": Sort by {Profile#update_date} in descending order
223
+ # (recently updated profiles first).
224
+ # * "create_date desc": Sort by {Profile#create_date} in descending order
225
+ # (recently created profiles first).
226
+ # * "first_name": Sort by {PersonStrcuturedName#given_name} in ascending
227
+ # order.
228
+ # * "first_name desc": Sort by {PersonStrcuturedName#given_name} in
229
+ # descending order.
230
+ # * "last_name": Sort by {PersonStrcuturedName#family_name} in ascending
231
+ # order.
232
+ # * "last_name desc": Sort by {PersonStrcuturedName#family_name} in
233
+ # ascending order.
234
+ # @!attribute [rw] case_sensitive_sort
235
+ # @return [true, false]
236
+ # Optional.
237
+ #
238
+ # When sort by field is based on alphabetical order, sort values case
239
+ # sensitively (based on ASCII) when the value is set to true. Default value
240
+ # is case in-sensitive sort (false).
241
+ # @!attribute [rw] histogram_queries
242
+ # @return [Array<Google::Cloud::Talent::V4beta1::HistogramQuery>]
243
+ # Optional.
244
+ #
245
+ # A list of expressions specifies histogram requests against matching
246
+ # profiles for
247
+ # {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
248
+ #
249
+ # The expression syntax looks like a function definition with optional
250
+ # parameters.
251
+ #
252
+ # Function syntax: function_name(histogram_facet[, list of buckets])
253
+ #
254
+ # Data types:
255
+ #
256
+ # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
257
+ # * String: string like "any string with backslash escape for quote(\")."
258
+ # * Number: whole number and floating point number like 10, -1 and -0.01.
259
+ # * List: list of elements with comma(,) separator surrounded by square
260
+ # brackets. For example, [1, 2, 3] and ["one", "two", "three"].
261
+ #
262
+ # Built-in constants:
263
+ #
264
+ # * MIN (minimum number similar to java Double.MIN_VALUE)
265
+ # * MAX (maximum number similar to java Double.MAX_VALUE)
266
+ #
267
+ # Built-in functions:
268
+ #
269
+ # * bucket(start, end[, label])
270
+ # Bucket build-in function creates a bucket with range of [start, end). Note
271
+ # that the end is exclusive.
272
+ # For example, bucket(1, MAX, "positive number") or bucket(1, 10).
273
+ #
274
+ # Histogram Facets:
275
+ #
276
+ # * admin1: Admin1 is a global placeholder for referring to state, province,
277
+ # or the particular term a country uses to define the geographic structure
278
+ # below the country level. Examples include states codes such as "CA", "IL",
279
+ # "NY", and provinces, such as "BC".
280
+ # * locality: Locality is a global placeholder for referring to city, town,
281
+ # or the particular term a country uses to define the geographic structure
282
+ # below the admin1 level. Examples include city names such as
283
+ # "Mountain View" and "New York".
284
+ # * extended_locality: Extended locality is concatenated version of admin1
285
+ # and locality with comma separator. For example, "Mountain View, CA" and
286
+ # "New York, NY".
287
+ # * postal_code: Postal code of profile which follows locale code.
288
+ # * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
289
+ # JP, GB.
290
+ # * job_title: Normalized job titles specified in EmploymentHistory.
291
+ # * company_name: Normalized company name of profiles to match on.
292
+ # * institution: The school name. For example, "MIT",
293
+ # "University of California, Berkeley"
294
+ # * degree: Highest education degree in ISCED code. Each value in degree
295
+ # covers specific level of education, without any expansion to upper nor
296
+ # lower levels of education degree.
297
+ # * experience_in_months: experience in months. 0 means 0 month to 1 month
298
+ # (exclusive).
299
+ # * application_date: The application date specifies application start dates.
300
+ # See
301
+ # {Google::Cloud::Talent::V4beta1::ApplicationDateFilter ApplicationDateFilter}
302
+ # for more details.
303
+ # * application_outcome_reason: The application outcome reason specifies the
304
+ # outcome reasons of job application.
305
+ # See
306
+ # {Google::Cloud::Talent::V4beta1::ApplicationOutcomeReasonFilter ApplicationOutcomeReasonFilter}
307
+ # for more details.
308
+ # * application_last_stage: The application last stage specifies the last
309
+ # stage of job application.
310
+ # See
311
+ # {Google::Cloud::Talent::V4beta1::ApplicationLastStageFilter ApplicationLastStageFilter}
312
+ # for more details.
313
+ # * application_job_title: The application job title specifies the job
314
+ # applied for in the application.
315
+ # See
316
+ # {Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter}
317
+ # for more details.
318
+ # * application_status: The application status specifies the status of job
319
+ # application.
320
+ # See
321
+ # {Google::Cloud::Talent::V4beta1::ApplicationStatusFilter ApplicationStatusFilter}
322
+ # for more details.
323
+ # * hirable_status: Hirable status specifies the profile's hirable status.
324
+ # * string_custom_attribute: String custom attributes. Values can be accessed
325
+ # via square bracket notation like string_custom_attribute["key1"].
326
+ # * numeric_custom_attribute: Numeric custom attributes. Values can be
327
+ # accessed via square bracket notation like numeric_custom_attribute["key1"].
328
+ #
329
+ # Example expressions:
330
+ #
331
+ # * count(admin1)
332
+ # * count(experience_in_months, [bucket(0, 12, "1 year"),
333
+ # bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
334
+ # * count(string_custom_attribute["assigned_recruiter"])
335
+ # * count(numeric_custom_attribute["favorite_number"],
336
+ # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
337
+ class SearchProfilesRequest; end
338
+
339
+ # Response of SearchProfiles method.
340
+ # @!attribute [rw] estimated_total_size
341
+ # @return [Integer]
342
+ # An estimation of the number of profiles that match the specified query.
343
+ #
344
+ # This number isn't guaranteed to be accurate.
345
+ # @!attribute [rw] spell_correction
346
+ # @return [Google::Cloud::Talent::V4beta1::SpellingCorrection]
347
+ # The spell checking result, and correction.
348
+ # @!attribute [rw] metadata
349
+ # @return [Google::Cloud::Talent::V4beta1::ResponseMetadata]
350
+ # Additional information for the API invocation, such as the request
351
+ # tracking id.
352
+ # @!attribute [rw] next_page_token
353
+ # @return [String]
354
+ # A token to retrieve the next page of results. This is empty if there are no
355
+ # more results.
356
+ # @!attribute [rw] histogram_query_results
357
+ # @return [Array<Google::Cloud::Talent::V4beta1::HistogramQueryResult>]
358
+ # The histogram results that match with specified
359
+ # {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#histogram_queries SearchProfilesRequest#histogram_queries}.
360
+ # @!attribute [rw] summarized_profiles
361
+ # @return [Array<Google::Cloud::Talent::V4beta1::SummarizedProfile>]
362
+ # The profile entities that match the specified
363
+ # {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
364
+ class SearchProfilesResponse; end
365
+
366
+ # Output only.
367
+ #
368
+ # Profile entry with metadata inside
369
+ # {Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse}.
370
+ # @!attribute [rw] profiles
371
+ # @return [Array<Google::Cloud::Talent::V4beta1::Profile>]
372
+ # A list of profiles that are linked by {Profile#cluster_id}.
373
+ # @!attribute [rw] summary
374
+ # @return [Google::Cloud::Talent::V4beta1::Profile]
375
+ # A profile summary shows the profile summary and how the profile matches the
376
+ # search query.
377
+ #
378
+ # In profile summary, the profiles with the same {Profile#cluster_id} are
379
+ # merged together. Among profiles, same education/employment records may be
380
+ # slightly different but they are merged into one with best efforts.
381
+ #
382
+ # For example, in one profile the school name is "UC Berkeley" and the field
383
+ # study is "Computer Science" and in another one the school name is
384
+ # "University of California at Berkeley" and the field study is "CS". The API
385
+ # merges these two inputs into one and selects one value for each field. For
386
+ # example, the school name in summary is set to "University of California at
387
+ # Berkeley" and the field of study is set to "Computer Science".
388
+ class SummarizedProfile; end
389
+ end
390
+ end
391
+ end
392
+ end
@@ -0,0 +1,98 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Cloud
18
+ module Talent
19
+ module V4beta1
20
+ # Parse resume request.
21
+ # @!attribute [rw] parent
22
+ # @return [String]
23
+ # Required.
24
+ #
25
+ # The resource name of the project.
26
+ #
27
+ # The format is "projects/{project_id}", for example,
28
+ # "projects/api-test-project".
29
+ # @!attribute [rw] resume
30
+ # @return [String]
31
+ # Required.
32
+ #
33
+ # The bytes of the resume file in common format, for example, PDF, TXT.
34
+ # UTF-8 encoding is required if the resume is text-based, otherwise an error
35
+ # is thrown.
36
+ # @!attribute [rw] region_code
37
+ # @return [String]
38
+ # Optional.
39
+ #
40
+ # The region code indicating where the resume is from. Values
41
+ # are as per the ISO-3166-2 format. For example, US, FR, DE.
42
+ #
43
+ # This value is optional, but providing this value improves the resume
44
+ # parsing quality and performance.
45
+ #
46
+ # An error is thrown if the regionCode is invalid.
47
+ # @!attribute [rw] language_code
48
+ # @return [String]
49
+ # Optional.
50
+ #
51
+ # The language code of contents in the resume.
52
+ #
53
+ # Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
54
+ # For more information, see
55
+ # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
56
+ # class="external" target="_blank" }.
57
+ # @!attribute [rw] options
58
+ # @return [Google::Cloud::Talent::V4beta1::ParseResumeOptions]
59
+ # Optional.
60
+ #
61
+ # Options that change how the resume parse is performed.
62
+ class ParseResumeRequest; end
63
+
64
+ # Options that change how the resume parse is performed.
65
+ # @!attribute [rw] enable_ocr
66
+ # @return [true, false]
67
+ # Optional.
68
+ #
69
+ # Controls whether Optical Character Recognition (OCR) is enabled.
70
+ #
71
+ # OCR is used to decipher pictorial resumes, or resumes that have some
72
+ # element of pictorial detail (for example, contact information placed within
73
+ # an image in a pdf). Note that the API call has a higher latency if OCR is
74
+ # enabled.
75
+ # @!attribute [rw] enable_full_skill_detection
76
+ # @return [true, false]
77
+ # Optional.
78
+ #
79
+ # Controls whether detected skills are included in the parsed profile from
80
+ # sections of the resume other than just skills sections.
81
+ #
82
+ # Normally, returned skills are limited to those taken from a resume section
83
+ # intended to list skills. When enabled, this feature causes detected
84
+ # skills in other sections to also be included in the returned profile.
85
+ class ParseResumeOptions; end
86
+
87
+ # Parse resume response.
88
+ # @!attribute [rw] profile
89
+ # @return [Google::Cloud::Talent::V4beta1::Profile]
90
+ # The profile parsed from resume.
91
+ # @!attribute [rw] raw_text
92
+ # @return [String]
93
+ # Raw text from resume.
94
+ class ParseResumeResponse; end
95
+ end
96
+ end
97
+ end
98
+ end