Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading