google-cloud-talent 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/lib/google/cloud/talent.rb +2 -2
  4. data/lib/google/cloud/talent/v4beta1.rb +2 -2
  5. data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +5 -5
  6. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +32 -0
  7. data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +5 -5
  8. data/lib/google/cloud/talent/v4beta1/completion_client.rb +32 -0
  9. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +3 -1
  10. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +1 -1
  11. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +14 -68
  12. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +89 -10
  13. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +3 -1
  14. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +4 -3
  15. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +61 -11
  16. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +46 -8
  17. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +15 -0
  18. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +5 -3
  19. data/lib/google/cloud/talent/v4beta1/helpers.rb +38 -0
  20. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -1
  21. data/lib/google/cloud/talent/v4beta1/job_pb.rb +0 -1
  22. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +53 -3
  23. data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +8 -8
  24. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +1 -0
  25. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +2 -2
  26. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +48 -9
  27. data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +6 -6
  28. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +1 -0
  29. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +1 -1
  30. data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +5 -5
  31. data/lib/google/cloud/talent/version.rb +1 -1
  32. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4240a9b4a6731603514cb9f8f2a34e0f6481f41fd7482db81adea356e002039
4
- data.tar.gz: 785e8fa1983f0ff3aba1bdaa89ed0f6a93b82b3b0a6a78bf5e2a0c509fe2edca
3
+ metadata.gz: 67e8fdd557ba658880dff6da7b8256c04f1756cacc3b09ae1e10212c746a3544
4
+ data.tar.gz: 3163e6199676c0da144b31bd4c63fadc368c8672623b4124542fadff6a4bee2f
5
5
  SHA512:
6
- metadata.gz: 1dcb7f63d1ef2af26b3f3988197ab9297c3205957a861d6df125cf615f0a00bbd05bed42cd3cc84dde79019689afee2a371b4f90d453653e59eb13bc29949255
7
- data.tar.gz: 65269a50cd272863dc22ffd153ca27b8695b4d7dbfa41f38a600fb14f9aa191b870d1cd8fa533ddbcfaa6285822bb90f55b6abf8873ae93d52abc0a29923690e
6
+ metadata.gz: c595609ef157a40bb4664cf306edd24efefcc846be9779f4a0f521326ede8bbd002c0c6ce16a759a61e7b0651d35f343dbd018b35be0a1f449c5e4165ddc2099
7
+ data.tar.gz: 412f771c9b5e8a0345242838c5175eadde38845ad3dffe175d73649e84c491f69ecd470809ca5eae2483eee0c21df942e87fe09818be6e811623e257aeb01528
data/README.md CHANGED
@@ -13,7 +13,7 @@ steps:
13
13
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
14
14
  2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
15
15
  3. [Enable the Cloud Talent Solution API.](https://console.cloud.google.com/apis/library/talent.googleapis.com)
16
- 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
16
+ 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-talent/latest/file.AUTHENTICATION.html)
17
17
 
18
18
  ### Installation
19
19
  ```
@@ -28,14 +28,14 @@ $ gem install google-cloud-talent
28
28
  - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
29
29
  to see the full list of Cloud APIs that we cover.
30
30
 
31
- [Client Library Documentation]: https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-talent/latest/google/cloud/talent/v4beta1
31
+ [Client Library Documentation]: https://googleapis.dev/ruby/google-cloud-talent/latest
32
32
  [Product Documentation]: https://cloud.google.com/talent-solution
33
33
 
34
34
  ## Enabling Logging
35
35
 
36
36
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
37
37
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
38
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
38
+ or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
39
39
  that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
40
40
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
41
41
 
@@ -35,7 +35,7 @@ module Google
35
35
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
36
36
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
37
37
  # 3. [Enable the Cloud Talent Solution API.](https://console.cloud.google.com/apis/library/talent.googleapis.com)
38
- # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
+ # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-talent/latest/file.AUTHENTICATION.html)
39
39
  #
40
40
  # ### Installation
41
41
  # ```
@@ -54,7 +54,7 @@ module Google
54
54
  #
55
55
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
56
56
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
57
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
57
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
58
58
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
59
59
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
60
60
  #
@@ -43,7 +43,7 @@ module Google
43
43
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
44
44
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
45
45
  # 3. [Enable the Cloud Talent Solution API.](https://console.cloud.google.com/apis/library/talent.googleapis.com)
46
- # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
46
+ # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-talent/latest/file.AUTHENTICATION.html)
47
47
  #
48
48
  # ### Installation
49
49
  # ```
@@ -62,7 +62,7 @@ module Google
62
62
  #
63
63
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
64
64
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
65
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
65
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
66
66
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
67
67
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
68
68
  #
@@ -21,27 +21,27 @@
21
21
  },
22
22
  "methods": {
23
23
  "CreateApplication": {
24
- "timeout_millis": 30000,
24
+ "timeout_millis": 60000,
25
25
  "retry_codes_name": "non_idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
28
  "GetApplication": {
29
- "timeout_millis": 30000,
29
+ "timeout_millis": 60000,
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  },
33
33
  "UpdateApplication": {
34
- "timeout_millis": 30000,
34
+ "timeout_millis": 60000,
35
35
  "retry_codes_name": "non_idempotent",
36
36
  "retry_params_name": "default"
37
37
  },
38
38
  "DeleteApplication": {
39
- "timeout_millis": 30000,
39
+ "timeout_millis": 60000,
40
40
  "retry_codes_name": "idempotent",
41
41
  "retry_params_name": "default"
42
42
  },
43
43
  "ListApplications": {
44
- "timeout_millis": 30000,
44
+ "timeout_millis": 60000,
45
45
  "retry_codes_name": "idempotent",
46
46
  "retry_params_name": "default"
47
47
  }
@@ -75,6 +75,18 @@ module Google
75
75
 
76
76
  private_constant :COMPANY_PATH_TEMPLATE
77
77
 
78
+ COMPANY_WITHOUT_TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
79
+ "projects/{project}/companies/{company}"
80
+ )
81
+
82
+ private_constant :COMPANY_WITHOUT_TENANT_PATH_TEMPLATE
83
+
84
+ PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
85
+ "projects/{project}"
86
+ )
87
+
88
+ private_constant :PROJECT_PATH_TEMPLATE
89
+
78
90
  TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
79
91
  "projects/{project}/tenants/{tenant}"
80
92
  )
@@ -94,6 +106,26 @@ module Google
94
106
  )
95
107
  end
96
108
 
109
+ # Returns a fully-qualified company_without_tenant resource name string.
110
+ # @param project [String]
111
+ # @param company [String]
112
+ # @return [String]
113
+ def self.company_without_tenant_path project, company
114
+ COMPANY_WITHOUT_TENANT_PATH_TEMPLATE.render(
115
+ :"project" => project,
116
+ :"company" => company
117
+ )
118
+ end
119
+
120
+ # Returns a fully-qualified project resource name string.
121
+ # @param project [String]
122
+ # @return [String]
123
+ def self.project_path project
124
+ PROJECT_PATH_TEMPLATE.render(
125
+ :"project" => project
126
+ )
127
+ end
128
+
97
129
  # Returns a fully-qualified tenant resource name string.
98
130
  # @param project [String]
99
131
  # @param tenant [String]
@@ -21,27 +21,27 @@
21
21
  },
22
22
  "methods": {
23
23
  "CreateCompany": {
24
- "timeout_millis": 30000,
24
+ "timeout_millis": 60000,
25
25
  "retry_codes_name": "non_idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
28
  "GetCompany": {
29
- "timeout_millis": 30000,
29
+ "timeout_millis": 60000,
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  },
33
33
  "UpdateCompany": {
34
- "timeout_millis": 30000,
34
+ "timeout_millis": 60000,
35
35
  "retry_codes_name": "non_idempotent",
36
36
  "retry_params_name": "default"
37
37
  },
38
38
  "DeleteCompany": {
39
- "timeout_millis": 30000,
39
+ "timeout_millis": 60000,
40
40
  "retry_codes_name": "idempotent",
41
41
  "retry_params_name": "default"
42
42
  },
43
43
  "ListCompanies": {
44
- "timeout_millis": 30000,
44
+ "timeout_millis": 60000,
45
45
  "retry_codes_name": "idempotent",
46
46
  "retry_params_name": "default"
47
47
  }
@@ -66,6 +66,18 @@ module Google
66
66
 
67
67
  private_constant :COMPANY_PATH_TEMPLATE
68
68
 
69
+ COMPANY_WITHOUT_TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
70
+ "projects/{project}/companies/{company}"
71
+ )
72
+
73
+ private_constant :COMPANY_WITHOUT_TENANT_PATH_TEMPLATE
74
+
75
+ PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
76
+ "projects/{project}"
77
+ )
78
+
79
+ private_constant :PROJECT_PATH_TEMPLATE
80
+
69
81
  TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
70
82
  "projects/{project}/tenants/{tenant}"
71
83
  )
@@ -85,6 +97,26 @@ module Google
85
97
  )
86
98
  end
87
99
 
100
+ # Returns a fully-qualified company_without_tenant resource name string.
101
+ # @param project [String]
102
+ # @param company [String]
103
+ # @return [String]
104
+ def self.company_without_tenant_path project, company
105
+ COMPANY_WITHOUT_TENANT_PATH_TEMPLATE.render(
106
+ :"project" => project,
107
+ :"company" => company
108
+ )
109
+ end
110
+
111
+ # Returns a fully-qualified project resource name string.
112
+ # @param project [String]
113
+ # @return [String]
114
+ def self.project_path project
115
+ PROJECT_PATH_TEMPLATE.render(
116
+ :"project" => project
117
+ )
118
+ end
119
+
88
120
  # Returns a fully-qualified tenant resource name string.
89
121
  # @param project [String]
90
122
  # @param tenant [String]
@@ -227,7 +227,7 @@ module Google
227
227
  # `CASE_INSENSITIVE_MATCH`) search.
228
228
  # For filterable `string_value`s, a maximum total number of 200 values
229
229
  # is allowed, with each `string_value` has a byte size of no more than
230
- # 255B. For unfilterable `string_values`, the maximum total byte size of
230
+ # 500B. For unfilterable `string_values`, the maximum total byte size of
231
231
  # unfilterable `string_values` is 50KB.
232
232
  #
233
233
  # Empty string isn't allowed.
@@ -968,6 +968,8 @@ module Google
968
968
  EXPERT = 5
969
969
  end
970
970
 
971
+ # Deprecated. All resources are only visible to the owner.
972
+ #
971
973
  # An enum that represents who has view access to the resource.
972
974
  module Visibility
973
975
  # Default value.
@@ -35,7 +35,7 @@ module Google
35
35
  # example, "projects/api-test-project/companies/bar".
36
36
  # @!attribute [rw] display_name
37
37
  # @return [String]
38
- # Required. The display name of the company, for example, "Google, LLC".
38
+ # Required. The display name of the company, for example, "Google LLC".
39
39
  # @!attribute [rw] external_id
40
40
  # @return [String]
41
41
  # Required. Client side company identifier, used to uniquely identify the
@@ -207,80 +207,26 @@ module Google
207
207
 
208
208
  # Send this event when a
209
209
  # {Google::Cloud::Talent::V4beta1::ProfileEvent#profiles ProfileEvent#profiles}
210
- # meets all of the following criteria:
211
- # * Was sent as a part of a result set for a CTS API call.
212
- # * Was rendered in the end user's UI (that is, the
213
- # {Google::Cloud::Talent::V4beta1::ProfileEvent#recruiter ProfileEvent#recruiter}).
214
- # * That UI rendering was displayed in the end user's viewport for >=3
215
- # seconds.
216
- #
217
- # In other words, send this event when the end user of the CTS service
218
- # actually saw a resulting profile in their viewport.
219
- #
220
- # To understand how to use this event, consider an example:
221
- #
222
- # * The customer's UI for interacting with CTS
223
- # result sets is accessed by the end user through a web browser.
224
- # * The UI calls for a page size of 15 candidates (that is, 15 candidates
225
- # are rendered on each page of results).
226
- # * However, the UI design calls for only 5 candidates to be shown at any
227
- # given time in the viewport (that is, the end user can only see 5 results
228
- # at any given time and needs to scroll up or down to view all 15 results).
229
- #
230
- # To render each page of results, the customer will send a
231
- # request to CTS with a page size = 15.
232
- #
233
- # * User loads page #1 of results.
234
- # * User scrolls down to expose results #1 - #5 and dwells on this view for
235
- # 30 seconds.
236
- # * Send an IMPRESSION event for result 1, 2, 3, 4, 5.
237
- # * User scrolls down a bit, exposing results #2 - #6 in the viewport and
238
- # dwells on this view for 5 minutes.
239
- # * Send an IMPRESSION event for result 6.
240
- # * User scrolls to the bottom of the page, with results #7 - #15 shown in
241
- # the viewport for ~5 seconds each.
242
- # * Specifically, NO IMPRESSION events are sent for result 7, 8, 9, 10, 11,
243
- # 12, 13, 14, 15.
244
- # * User clicks to the next page and loads page #2 of results.
245
- # * Within 2 seconds, user scrolls to expose results #20 - #24 in the
246
- # viewport and dwells on this view for 20 mins.
247
- # * Send an IMPRESSION event for result 20, 21, 22, 23, 24
248
- # * User closes their browser window.
210
+ # was sent as a part of a result set for a CTS API call and was rendered in
211
+ # the end user's UI (that is, the
212
+ # {Google::Cloud::Talent::V4beta1::ProfileEvent#recruiter ProfileEvent#recruiter}).
249
213
  IMPRESSION = 1
250
214
 
251
- # The VIEW event allows CTS to understand if a candidate's profile was
252
- # viewed by an end user (that is, recruiter) of the system for >=3 seconds.
253
- # This is critical to tracking product metrics and should be sent for every
254
- # profile VIEW that happens in the customer's system.
255
- #
256
- # VIEW events should be sent whether an end user views a candidate's
257
- # profile as a result of seeing that profile in the result set of a
258
- # CTS API request or whether the end user
259
- # views the profile for some other reason (that is, clicks to the
260
- # candidate's profile in the ATS, and so on).
215
+ # The VIEW event records the action of a candidate's profile being
216
+ # viewed by an end user. This is critical to tracking product metrics and
217
+ # should be sent for every profile VIEW that happens in your system,
218
+ # whether the event is associated with an API call (for example, a
219
+ # recruiter making a request for a result set and clicking on a profile)
220
+ # or not (a recruiter using the system to view profile details without
221
+ # making a request).
261
222
  #
262
- # For a VIEW that happens as a result of seeing the profile in
263
- # a CTS API request's result set, the
223
+ # For a VIEW events associated with API calls, the
264
224
  # {Google::Cloud::Talent::V4beta1::ClientEvent#request_id ClientEvent#request_id}
265
- # should be populated. If the VIEW happens for some other reason, the
266
- # [requestId] should not be populated.
225
+ # should be populated. If the VIEW is not associated with an API call,
226
+ # {Google::Cloud::Talent::V4beta1::ClientEvent#request_id request_id} should
227
+ # not be populated.
267
228
  #
268
229
  # This event requires a valid recruiter and one valid ID in profiles.
269
- #
270
- # To understand how to use this event, consider 2 examples in which a VIEW
271
- # event should be sent:
272
- # * End user makes a request to the CTS API for a result set.
273
- # * Results for the request are shown to the end user.
274
- # * End user clicks on one of the candidates that are shown as part of the
275
- # results.
276
- # * A VIEW event with the
277
- # {Google::Cloud::Talent::V4beta1::ClientEvent#request_id ClientEvent#request_id}
278
- # of the API call in the first step of this example is sent.
279
- #
280
- # * End user browses to a candidate's profile in the ATS.
281
- # * A VIEW event without a
282
- # {Google::Cloud::Talent::V4beta1::ClientEvent#request_id ClientEvent#request_id}
283
- # is sent.
284
230
  VIEW = 2
285
231
 
286
232
  # The profile is bookmarked.
@@ -122,7 +122,7 @@ module Google
122
122
  # Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
123
123
  # nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
124
124
  # comparisons or functions are allowed in the expression. The expression
125
- # must be < 3000 bytes in length.
125
+ # must be < 6000 bytes in length.
126
126
  #
127
127
  # Sample Query:
128
128
  # `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
@@ -180,7 +180,26 @@ module Google
180
180
  # @!attribute [rw] location_filters
181
181
  # @return [Array<Google::Cloud::Talent::V4beta1::LocationFilter>]
182
182
  # Optional. The location filter specifies geo-regions containing the profiles
183
- # to search against.
183
+ # to search against. It filters against all of a profile's
184
+ # {Google::Cloud::Talent::V4beta1::Profile#addresses Profile#addresses} where
185
+ # {Google::Cloud::Talent::V4beta1::Address#usage Address#usage} is PERSONAL and
186
+ # {Google::Cloud::Talent::V4beta1::Address#current Address#current} is true. If
187
+ # no such address exists, a fallback logic is applied in an attempt to
188
+ # determine the profile's primary address.
189
+ #
190
+ # The fallback logic selects an address from a profile's
191
+ # {Google::Cloud::Talent::V4beta1::Profile#addresses Profile#addresses} in the
192
+ # following order of priority:
193
+ # 1. {Google::Cloud::Talent::V4beta1::Address#usage Address#usage} is PERSONAL
194
+ # and {Google::Cloud::Talent::V4beta1::Address#current Address#current} is false
195
+ # or not set.
196
+ # 2. {Google::Cloud::Talent::V4beta1::Address#usage Address#usage} is
197
+ # CONTACT_INFO_USAGE_UNSPECIFIED and
198
+ # {Google::Cloud::Talent::V4beta1::Address#current Address#current} is true.
199
+ # 3. {Google::Cloud::Talent::V4beta1::Address#usage Address#usage} is
200
+ # CONTACT_INFO_USAGE_UNSPECIFIED and
201
+ # {Google::Cloud::Talent::V4beta1::Address#current Address#current} is false or
202
+ # not set.
184
203
  #
185
204
  # If a location filter isn't specified, profiles fitting the other search
186
205
  # criteria are retrieved regardless of where they're located.
@@ -189,7 +208,43 @@ module Google
189
208
  # {Google::Cloud::Talent::V4beta1::LocationFilter#negated LocationFilter#negated}
190
209
  # is specified, the result doesn't contain profiles from that location.
191
210
  #
192
- # For example, search for profiles with addresses in "New York City".
211
+ # If
212
+ # {Google::Cloud::Talent::V4beta1::LocationFilter#address LocationFilter#address}
213
+ # is provided, the
214
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType LocationType}, center
215
+ # point (latitude and longitude), and radius are automatically detected by
216
+ # the Google Maps Geocoding API and included as well. If
217
+ # {Google::Cloud::Talent::V4beta1::LocationFilter#address LocationFilter#address}
218
+ # is not recognized as a location, the filter falls back to keyword search.
219
+ #
220
+ # If the detected
221
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType LocationType} is
222
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::SUB_ADMINISTRATIVE_AREA LocationType::SUB_ADMINISTRATIVE_AREA},
223
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::ADMINISTRATIVE_AREA LocationType::ADMINISTRATIVE_AREA},
224
+ # or
225
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::COUNTRY LocationType::COUNTRY},
226
+ # or location is recognized but a radius can not be determined by the
227
+ # geo-coder, the filter is performed against the detected location name
228
+ # (using exact text matching). Otherwise, the filter is performed against the
229
+ # detected center point and a radius. The largest value from among the
230
+ # following options is automatically set as the radius value:
231
+ # 1. 10 miles.
232
+ # 2. Detected location radius +
233
+ # {Google::Cloud::Talent::V4beta1::LocationFilter#distance_in_miles LocationFilter#distance_in_miles}.
234
+ # 3. If the detected
235
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType LocationType} is one of
236
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::SUB_LOCALITY LocationType::SUB_LOCALITY},
237
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::SUB_LOCALITY_2 LocationType::SUB_LOCALITY_2},
238
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::NEIGHBORHOOD LocationType::NEIGHBORHOOD},
239
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::POSTAL_CODE LocationType::POSTAL_CODE},
240
+ # or
241
+ # {Google::Cloud::Talent::V4beta1::Location::LocationType::STREET_ADDRESS LocationType::STREET_ADDRESS},
242
+ # the following two values are calculated and the larger of the two is
243
+ # compared to #1 and #2, above:
244
+ # * Calculated radius of the city (from the city center) that contains the
245
+ # geo-coded location.
246
+ # * Distance from the city center (of the city containing the geo-coded
247
+ # location) to the detected location center + 0.5 miles.
193
248
  # @!attribute [rw] job_title_filters
194
249
  # @return [Array<Google::Cloud::Talent::V4beta1::JobTitleFilter>]
195
250
  # Optional. Job title filter specifies job titles of profiles to match on.
@@ -328,6 +383,14 @@ module Google
328
383
  # based on an aggregated set of signals. Specifically, the intent is NOT to
329
384
  # indicate the candidate's potential qualification / interest / close ability
330
385
  # for a specific job.
386
+ # @!attribute [rw] person_name_filters
387
+ # @return [Array<Google::Cloud::Talent::V4beta1::PersonNameFilter>]
388
+ # Optional. Person name filter specifies person name of profiles to match on.
389
+ #
390
+ # If multiple person name filters are specified, profiles that match any
391
+ # person name filters are retrieved.
392
+ #
393
+ # For example, search for profiles of candidates with name "John Smith".
331
394
  class ProfileQuery; end
332
395
 
333
396
  # Input only.
@@ -342,8 +405,9 @@ module Google
342
405
  # used to address ambiguity of the user-input location, for example,
343
406
  # "Liverpool" against "Liverpool, NY, US" or "Liverpool, UK".
344
407
  #
345
- # Set this field if all the jobs to search against are from a same region,
346
- # or jobs are world-wide, but the job seeker is from a specific region.
408
+ # Set this field to bias location resolution toward a specific country
409
+ # or territory. If this field is not set, application behavior is biased
410
+ # toward the United States by default.
347
411
  #
348
412
  # See http://cldr.unicode.org/ and
349
413
  # http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
@@ -351,13 +415,13 @@ module Google
351
415
  # Note that this filter is not applicable for Profile Search related queries.
352
416
  # @!attribute [rw] lat_lng
353
417
  # @return [Google::Type::LatLng]
354
- # Optional. The latitude and longitude of the geographic center from which to
355
- # search. This field's ignored if `address` is provided.
418
+ # Optional. The latitude and longitude of the geographic center to search
419
+ # from. This field is ignored if `address` is provided.
356
420
  # @!attribute [rw] distance_in_miles
357
421
  # @return [Float]
358
422
  # Optional. The distance_in_miles is applied when the location being searched
359
- # for is identified as a city or smaller. When the location being searched
360
- # for is a state or larger, this field is ignored.
423
+ # for is identified as a city or smaller. This field is ignored if the
424
+ # location being searched for is a state or larger.
361
425
  # @!attribute [rw] telecommute_preference
362
426
  # @return [Google::Cloud::Talent::V4beta1::LocationFilter::TelecommutePreference]
363
427
  # Optional. Allows the client to return jobs without a
@@ -379,6 +443,8 @@ module Google
379
443
  # such as "Mountain View" or "telecommuting" jobs. However, when used in
380
444
  # combination with other location filters, telecommuting jobs can be
381
445
  # treated as less relevant than other jobs in the search response.
446
+ #
447
+ # This field is only used for job search requests.
382
448
  # @!attribute [rw] negated
383
449
  # @return [true, false]
384
450
  # Optional. Whether to apply negation to the filter so profiles matching the
@@ -386,7 +452,7 @@ module Google
386
452
  #
387
453
  # Currently only supported in profile search.
388
454
  class LocationFilter
389
- # Specify whether including telecommute jobs.
455
+ # Specify whether to include telecommute jobs.
390
456
  module TelecommutePreference
391
457
  # Default value if the telecommute preference isn't specified.
392
458
  TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0
@@ -715,6 +781,19 @@ module Google
715
781
  # Optional. It is false by default. If true, API excludes all the potential
716
782
  # available profiles.
717
783
  class CandidateAvailabilityFilter; end
784
+
785
+ # Input only.
786
+ #
787
+ # Filter on person name.
788
+ # @!attribute [rw] person_name
789
+ # @return [String]
790
+ # Required. The person name. For example, "John Smith".
791
+ #
792
+ # Can be any combination of {PersonName#structured_name#given_name},
793
+ # {PersonName#structured_name#middle_initial},
794
+ # {PersonName#structured_name#family_name}, and
795
+ # {Google::Cloud::Talent::V4beta1::PersonName#formatted_name PersonName#formatted_name}.
796
+ class PersonNameFilter; end
718
797
  end
719
798
  end
720
799
  end