google-cloud-talent-v4 0.4.2 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/talent/v4/common_pb.rb +5 -2
  3. data/lib/google/cloud/talent/v4/company_pb.rb +2 -2
  4. data/lib/google/cloud/talent/v4/company_service/client.rb +69 -56
  5. data/lib/google/cloud/talent/v4/company_service_pb.rb +2 -2
  6. data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
  7. data/lib/google/cloud/talent/v4/completion/client.rb +37 -40
  8. data/lib/google/cloud/talent/v4/completion_service_pb.rb +2 -2
  9. data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
  10. data/lib/google/cloud/talent/v4/event_pb.rb +2 -2
  11. data/lib/google/cloud/talent/v4/event_service/client.rb +37 -40
  12. data/lib/google/cloud/talent/v4/event_service_pb.rb +2 -2
  13. data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
  14. data/lib/google/cloud/talent/v4/filters_pb.rb +2 -2
  15. data/lib/google/cloud/talent/v4/histogram_pb.rb +1 -1
  16. data/lib/google/cloud/talent/v4/job_pb.rb +2 -2
  17. data/lib/google/cloud/talent/v4/job_service/client.rb +155 -83
  18. data/lib/google/cloud/talent/v4/job_service/operations.rb +50 -33
  19. data/lib/google/cloud/talent/v4/job_service_pb.rb +13 -2
  20. data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
  21. data/lib/google/cloud/talent/v4/tenant_pb.rb +2 -2
  22. data/lib/google/cloud/talent/v4/tenant_service/client.rb +69 -56
  23. data/lib/google/cloud/talent/v4/tenant_service_pb.rb +2 -2
  24. data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
  25. data/lib/google/cloud/talent/v4/version.rb +1 -1
  26. data/proto_docs/google/cloud/talent/v4/common.rb +12 -1
  27. data/proto_docs/google/cloud/talent/v4/filters.rb +12 -8
  28. data/proto_docs/google/cloud/talent/v4/job.rb +10 -1
  29. data/proto_docs/google/cloud/talent/v4/job_service.rb +82 -8
  30. metadata +4 -4
@@ -95,11 +95,14 @@ module Google
95
95
  #
96
96
  # The fields eligible for filtering are:
97
97
  #
98
- # * `companyName` (Required)
98
+ # * `companyName`
99
99
  # * `requisitionId`
100
100
  # * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
101
101
  # OPEN if no value is specified.
102
102
  #
103
+ # At least one of `companyName` and `requisitionId` must present or an
104
+ # INVALID_ARGUMENT error is thrown.
105
+ #
103
106
  # Sample Query:
104
107
  #
105
108
  # * companyName = "projects/foo/tenants/bar/companies/baz"
@@ -107,6 +110,8 @@ module Google
107
110
  # requisitionId = "req-1"
108
111
  # * companyName = "projects/foo/tenants/bar/companies/baz" AND
109
112
  # status = "EXPIRED"
113
+ # * requisitionId = "req-1"
114
+ # * requisitionId = "req-1" AND status = "EXPIRED"
110
115
  # @!attribute [rw] page_token
111
116
  # @return [::String]
112
117
  # The starting point of a query result.
@@ -189,7 +194,7 @@ module Google
189
194
  #
190
195
  # Data types:
191
196
  #
192
- # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
197
+ # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
193
198
  # * String: string like "any string with backslash escape for quote(\")."
194
199
  # * Number: whole number and floating point number like 10, -1 and -0.01.
195
200
  # * List: list of elements with comma(,) separator surrounded by square
@@ -213,6 +218,9 @@ module Google
213
218
  # "FULL_TIME", "PART_TIME".
214
219
  # * company_size: histogram by {::Google::Cloud::Talent::V4::CompanySize CompanySize}, for example, "SMALL",
215
220
  # "MEDIUM", "BIG".
221
+ # * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
222
+ # in days.
223
+ # Must specify list of numeric buckets in spec.
216
224
  # * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4::Job#posting_publish_time Job.posting_publish_time}
217
225
  # in months.
218
226
  # Must specify list of numeric buckets in spec.
@@ -266,7 +274,7 @@ module Google
266
274
  # bucket(100000, MAX)])`
267
275
  # * `count(string_custom_attribute["some-string-custom-attribute"])`
268
276
  # * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
269
- # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
277
+ # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
270
278
  # @!attribute [rw] job_view
271
279
  # @return [::Google::Cloud::Talent::V4::JobView]
272
280
  # The desired job attributes returned for jobs in the search response.
@@ -362,6 +370,14 @@ module Google
362
370
  # score (determined by API algorithm).
363
371
  # @!attribute [rw] disable_keyword_match
364
372
  # @return [::Boolean]
373
+ # This field is deprecated. Please use
374
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
375
+ #
376
+ # To migrate, disable_keyword_match set to false maps to
377
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
378
+ # true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
379
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
380
+ #
365
381
  # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
366
382
  # {::Google::Cloud::Talent::V4::Job#description Job.description}, {::Google::Cloud::Talent::V4::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4::Job#addresses Job.addresses},
367
383
  # {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
@@ -381,6 +397,13 @@ module Google
381
397
  # requests.
382
398
  #
383
399
  # Defaults to false.
400
+ # @!attribute [rw] keyword_match_mode
401
+ # @return [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
402
+ # Controls what keyword match options to use. If both keyword_match_mode and
403
+ # disable_keyword_match are set, keyword_match_mode will take precedence.
404
+ #
405
+ # Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
406
+ # is specified.
384
407
  class SearchJobsRequest
385
408
  include ::Google::Protobuf::MessageExts
386
409
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -407,7 +430,7 @@ module Google
407
430
  # integer/double value or an expression that can be evaluated to a number.
408
431
  #
409
432
  # Parenthesis are supported to adjust calculation precedence. The
410
- # expression must be < 100 characters in length.
433
+ # expression must be < 200 characters in length.
411
434
  #
412
435
  # The expression is considered invalid for a job if the expression
413
436
  # references custom attributes that are not populated on the job or if the
@@ -482,6 +505,11 @@ module Google
482
505
  # clustered so that only one representative job of the cluster is
483
506
  # displayed to the job seeker higher up in the results, with the other jobs
484
507
  # being displayed lower down in the results.
508
+ #
509
+ # If you are using pageToken to page through the result set,
510
+ # latency might be lower but we can't guarantee that all results are
511
+ # returned. If you are using page offset, latency might be higher but all
512
+ # results are returned.
485
513
  module DiversificationLevel
486
514
  # The diversification level isn't specified.
487
515
  DIVERSIFICATION_LEVEL_UNSPECIFIED = 0
@@ -493,11 +521,57 @@ module Google
493
521
 
494
522
  # Default diversifying behavior. The result list is ordered so that
495
523
  # highly similar results are pushed to the end of the last page of search
496
- # results. If you are using pageToken to page through the result set,
497
- # latency might be lower but we can't guarantee that all results are
498
- # returned. If you are using page offset, latency might be higher but all
499
- # results are returned.
524
+ # results.
500
525
  SIMPLE = 2
526
+
527
+ # Only one job from the same company will be shown at once, other jobs
528
+ # under same company are pushed to the end of the last page of search
529
+ # result.
530
+ ONE_PER_COMPANY = 3
531
+
532
+ # Similar to ONE_PER_COMPANY, but it allows at most two jobs in the
533
+ # same company to be shown at once, the other jobs under same company are
534
+ # pushed to the end of the last page of search result.
535
+ TWO_PER_COMPANY = 4
536
+
537
+ # The result list is ordered such that somewhat similar results are pushed
538
+ # to the end of the last page of the search results. This option is
539
+ # recommended if SIMPLE diversification does not diversify enough.
540
+ DIVERSIFY_BY_LOOSER_SIMILARITY = 5
541
+ end
542
+
543
+ # Controls what keyword matching behavior the search has. When keyword
544
+ # matching is enabled, a keyword match returns jobs that may not match given
545
+ # category filters when there are matching keywords. For example, for the
546
+ # query "program manager" with KeywordMatchMode set to KEYWORD_MATCH_ALL, a
547
+ # job posting with the title "software developer," which doesn't fall into
548
+ # "program manager" ontology, and "program manager" appearing in its
549
+ # description will be surfaced.
550
+ #
551
+ # For queries like "cloud" that don't contain title or
552
+ # location specific ontology, jobs with "cloud" keyword matches are returned
553
+ # regardless of this enum's value.
554
+ #
555
+ # Use {::Google::Cloud::Talent::V4::Company#keyword_searchable_job_custom_attributes Company.keyword_searchable_job_custom_attributes} if
556
+ # company-specific globally matched custom field/attribute string values are
557
+ # needed. Enabling keyword match improves recall of subsequent search
558
+ # requests.
559
+ module KeywordMatchMode
560
+ # The keyword match option isn't specified. Defaults to
561
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} behavior.
562
+ KEYWORD_MATCH_MODE_UNSPECIFIED = 0
563
+
564
+ # Disables keyword matching.
565
+ KEYWORD_MATCH_DISABLED = 1
566
+
567
+ # Enable keyword matching over {::Google::Cloud::Talent::V4::Job#title Job.title},
568
+ # {::Google::Cloud::Talent::V4::Job#description Job.description}, {::Google::Cloud::Talent::V4::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4::Job#addresses Job.addresses},
569
+ # {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}, and keyword searchable {::Google::Cloud::Talent::V4::Job#custom_attributes Job.custom_attributes}
570
+ # fields.
571
+ KEYWORD_MATCH_ALL = 2
572
+
573
+ # Only enable keyword matching over {::Google::Cloud::Talent::V4::Job#title Job.title}.
574
+ KEYWORD_MATCH_TITLE_ONLY = 3
501
575
  end
502
576
  end
503
577
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-talent-v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a