Skip to content

Commit 528ea46

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new enum RelevanceThreshold is added
feat: A new field `relevance_threshold` is added to message `.google.cloud.talent.v4beta1.SearchJobsRequest` PiperOrigin-RevId: 711468273
1 parent 477125c commit 528ea46

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

google/cloud/talent/v4beta1/job_service.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,27 @@ message SearchJobsRequest {
486486
KEYWORD_MATCH_TITLE_ONLY = 3;
487487
}
488488

489+
// The relevance threshold of the search results. The higher relevance
490+
// threshold is, the higher relevant results are shown and the less number of
491+
// results are returned.
492+
enum RelevanceThreshold {
493+
// Default value. In this case, server behavior defaults to Google defined
494+
// threshold.
495+
RELEVANCE_THRESHOLD_UNSPECIFIED = 0;
496+
497+
// Lowest relevance threshold.
498+
LOWEST = 1;
499+
500+
// Low relevance threshold.
501+
LOW = 2;
502+
503+
// Medium relevance threshold.
504+
MEDIUM = 3;
505+
506+
// High relevance threshold.
507+
HIGH = 4;
508+
}
509+
489510
// Custom ranking information for
490511
// [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
491512
message CustomRankingInfo {
@@ -856,6 +877,14 @@ message SearchJobsRequest {
856877
// [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL]
857878
// if no value is specified.
858879
KeywordMatchMode keyword_match_mode = 18;
880+
881+
// Optional. The relevance threshold of the search results.
882+
//
883+
// Default to Google defined threshold, leveraging a balance of
884+
// precision and recall to deliver both highly accurate results and
885+
// comprehensive coverage of relevant information.
886+
RelevanceThreshold relevance_threshold = 19
887+
[(google.api.field_behavior) = OPTIONAL];
859888
}
860889

861890
// Response for SearchJob method.

0 commit comments

Comments
 (0)