Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

feat: Add three per company option to diversification levels #339

Merged
merged 2 commits into from May 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions google/cloud/talent_v4/types/job_service.py
Expand Up @@ -665,6 +665,10 @@ class DiversificationLevel(proto.Enum):
in the same company to be shown at once, the other jobs
under same company are pushed to the end of the last page of
search result.
MAX_THREE_PER_COMPANY (6):
Similar to ONE_PER_COMPANY, but it allows at most three jobs
in the same company to be shown at once, the other jobs
under same company are dropped.
DIVERSIFY_BY_LOOSER_SIMILARITY (5):
The result list is ordered such that somewhat
similar results are pushed to the end of the
Expand All @@ -677,6 +681,7 @@ class DiversificationLevel(proto.Enum):
SIMPLE = 2
ONE_PER_COMPANY = 3
TWO_PER_COMPANY = 4
MAX_THREE_PER_COMPANY = 6
DIVERSIFY_BY_LOOSER_SIMILARITY = 5

class KeywordMatchMode(proto.Enum):
Expand Down