Skip to content

Commit

Permalink
feat: A new enum RelevanceThreshold is added
Browse files Browse the repository at this point in the history
feat: A new field `relevance_threshold` is added to message `.google.cloud.talent.v4beta1.SearchJobsRequest`

PiperOrigin-RevId: 711468273
  • Loading branch information
Google APIs authored and copybara-github committed Jan 2, 2025
1 parent 477125c commit 528ea46
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions google/cloud/talent/v4beta1/job_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,27 @@ message SearchJobsRequest {
KEYWORD_MATCH_TITLE_ONLY = 3;
}

// The relevance threshold of the search results. The higher relevance
// threshold is, the higher relevant results are shown and the less number of
// results are returned.
enum RelevanceThreshold {
// Default value. In this case, server behavior defaults to Google defined
// threshold.
RELEVANCE_THRESHOLD_UNSPECIFIED = 0;

// Lowest relevance threshold.
LOWEST = 1;

// Low relevance threshold.
LOW = 2;

// Medium relevance threshold.
MEDIUM = 3;

// High relevance threshold.
HIGH = 4;
}

// Custom ranking information for
// [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
message CustomRankingInfo {
Expand Down Expand Up @@ -856,6 +877,14 @@ message SearchJobsRequest {
// [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL]
// if no value is specified.
KeywordMatchMode keyword_match_mode = 18;

// Optional. The relevance threshold of the search results.
//
// Default to Google defined threshold, leveraging a balance of
// precision and recall to deliver both highly accurate results and
// comprehensive coverage of relevant information.
RelevanceThreshold relevance_threshold = 19
[(google.api.field_behavior) = OPTIONAL];
}

// Response for SearchJob method.
Expand Down

0 comments on commit 528ea46

Please sign in to comment.