Skip to content

Commit

Permalink
feat: [google-cloud-talent] A new enum RelevanceThreshold is added (#…
Browse files Browse the repository at this point in the history
…13399)

- [ ] Regenerate this pull request now.

feat: A new field `relevance_threshold` is added to message
`.google.cloud.talent.v4beta1.SearchJobsRequest`

PiperOrigin-RevId: 711468273

Source-Link:
googleapis/googleapis@528ea46

Source-Link:
googleapis/googleapis-gen@7adb146
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRhbGVudC8uT3dsQm90LnlhbWwiLCJoIjoiN2FkYjE0NmY5MzUwNWMwYmEyNTRmNzJhNGY1ZGZjMDI0MzcyNmMwNyJ9

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 2, 2025
1 parent e326602 commit d2a6625
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.15.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.15.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.15.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,13 @@ class SearchJobsRequest(proto.Message):
Defaults to
[KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL]
if no value is specified.
relevance_threshold (google.cloud.talent_v4beta1.types.SearchJobsRequest.RelevanceThreshold):
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.
"""

class SearchMode(proto.Enum):
Expand Down Expand Up @@ -753,6 +760,30 @@ class KeywordMatchMode(proto.Enum):
KEYWORD_MATCH_ALL = 2
KEYWORD_MATCH_TITLE_ONLY = 3

class RelevanceThreshold(proto.Enum):
r"""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.
Values:
RELEVANCE_THRESHOLD_UNSPECIFIED (0):
Default value. In this case, server behavior
defaults to Google defined threshold.
LOWEST (1):
Lowest relevance threshold.
LOW (2):
Low relevance threshold.
MEDIUM (3):
Medium relevance threshold.
HIGH (4):
High relevance threshold.
"""
RELEVANCE_THRESHOLD_UNSPECIFIED = 0
LOWEST = 1
LOW = 2
MEDIUM = 3
HIGH = 4

class CustomRankingInfo(proto.Message):
r"""Custom ranking information for
[SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
Expand Down Expand Up @@ -923,6 +954,11 @@ class ImportanceLevel(proto.Enum):
number=18,
enum=KeywordMatchMode,
)
relevance_threshold: RelevanceThreshold = proto.Field(
proto.ENUM,
number=19,
enum=RelevanceThreshold,
)


class SearchJobsResponse(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-talent",
"version": "2.15.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-talent",
"version": "2.15.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class talentCallTransformer(cst.CSTTransformer):
'list_companies': ('parent', 'page_token', 'page_size', 'require_open_jobs', ),
'list_jobs': ('parent', 'filter', 'page_token', 'page_size', 'job_view', ),
'list_tenants': ('parent', 'page_token', 'page_size', ),
'search_jobs': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', ),
'search_jobs_for_alert': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', ),
'search_jobs': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', 'relevance_threshold', ),
'search_jobs_for_alert': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', 'relevance_threshold', ),
'update_company': ('company', 'update_mask', ),
'update_job': ('job', 'update_mask', ),
'update_tenant': ('tenant', 'update_mask', ),
Expand Down

0 comments on commit d2a6625

Please sign in to comment.