Skip to content

Commit d2a6625

Browse files
feat: [google-cloud-talent] A new enum RelevanceThreshold is added (#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>
1 parent e326602 commit d2a6625

File tree

7 files changed

+43
-7
lines changed

7 files changed

+43
-7
lines changed

packages/google-cloud-talent/google/cloud/talent/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.15.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-talent/google/cloud/talent_v4/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.15.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-talent/google/cloud/talent_v4beta1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.15.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-talent/google/cloud/talent_v4beta1/types/job_service.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,13 @@ class SearchJobsRequest(proto.Message):
648648
Defaults to
649649
[KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL]
650650
if no value is specified.
651+
relevance_threshold (google.cloud.talent_v4beta1.types.SearchJobsRequest.RelevanceThreshold):
652+
Optional. The relevance threshold of the
653+
search results.
654+
Default to Google defined threshold, leveraging
655+
a balance of precision and recall to deliver
656+
both highly accurate results and comprehensive
657+
coverage of relevant information.
651658
"""
652659

653660
class SearchMode(proto.Enum):
@@ -753,6 +760,30 @@ class KeywordMatchMode(proto.Enum):
753760
KEYWORD_MATCH_ALL = 2
754761
KEYWORD_MATCH_TITLE_ONLY = 3
755762

763+
class RelevanceThreshold(proto.Enum):
764+
r"""The relevance threshold of the search results. The higher
765+
relevance threshold is, the higher relevant results are shown
766+
and the less number of results are returned.
767+
768+
Values:
769+
RELEVANCE_THRESHOLD_UNSPECIFIED (0):
770+
Default value. In this case, server behavior
771+
defaults to Google defined threshold.
772+
LOWEST (1):
773+
Lowest relevance threshold.
774+
LOW (2):
775+
Low relevance threshold.
776+
MEDIUM (3):
777+
Medium relevance threshold.
778+
HIGH (4):
779+
High relevance threshold.
780+
"""
781+
RELEVANCE_THRESHOLD_UNSPECIFIED = 0
782+
LOWEST = 1
783+
LOW = 2
784+
MEDIUM = 3
785+
HIGH = 4
786+
756787
class CustomRankingInfo(proto.Message):
757788
r"""Custom ranking information for
758789
[SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
@@ -923,6 +954,11 @@ class ImportanceLevel(proto.Enum):
923954
number=18,
924955
enum=KeywordMatchMode,
925956
)
957+
relevance_threshold: RelevanceThreshold = proto.Field(
958+
proto.ENUM,
959+
number=19,
960+
enum=RelevanceThreshold,
961+
)
926962

927963

928964
class SearchJobsResponse(proto.Message):

packages/google-cloud-talent/samples/generated_samples/snippet_metadata_google.cloud.talent.v4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-talent",
11-
"version": "2.15.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-talent/samples/generated_samples/snippet_metadata_google.cloud.talent.v4beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-talent",
11-
"version": "2.15.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-talent/scripts/fixup_talent_v4beta1_keywords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class talentCallTransformer(cst.CSTTransformer):
5656
'list_companies': ('parent', 'page_token', 'page_size', 'require_open_jobs', ),
5757
'list_jobs': ('parent', 'filter', 'page_token', 'page_size', 'job_view', ),
5858
'list_tenants': ('parent', 'page_token', 'page_size', ),
59-
'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', ),
60-
'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', ),
59+
'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', ),
60+
'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', ),
6161
'update_company': ('company', 'update_mask', ),
6262
'update_job': ('job', 'update_mask', ),
6363
'update_tenant': ('tenant', 'update_mask', ),

0 commit comments

Comments
 (0)