Skip to content

Commit

Permalink
feat: add v4 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored and dandhlee committed Nov 14, 2022
1 parent 933827e commit 4931a88
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion talent/job_search_autocomplete_job_title.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def complete_query(project_id, tenant_id, query):
print(f"Suggested title: {result.suggestion}")
# Suggestion type is JOB_TITLE or COMPANY_TITLE
print(
f"Suggestion type: {talent_v4beta1.CompleteQueryRequest.CompletionType(result.type).name}"
f"Suggestion type: {talent_v4beta1.CompleteQueryRequest.CompletionType(result.type_).name}"
)


Expand Down
2 changes: 1 addition & 1 deletion talent/job_search_commute_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def search_jobs(project_id, tenant_id):
request_metadata=request_metadata,
job_query=job_query,
)
for response_item in client.search_jobs(request=request):
for response_item in client.search_jobs(request=request).matching_jobs:
print(f"Job summary: {response_item.job_summary}")
print(f"Job title snippet: {response_item.job_title_snippet}")
job = response_item.job
Expand Down
2 changes: 1 addition & 1 deletion talent/job_search_custom_ranking_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def search_jobs(project_id, tenant_id):
custom_ranking_info=custom_ranking_info,
order_by=order_by
)
for response_item in client.search_jobs(request=request):
for response_item in client.search_jobs(request=request).matching_jobs:
print(f"Job summary: {response_item.job_summary}")
print(f"Job title snippet: {response_item.job_title_snippet}")
job = response_item.job
Expand Down
2 changes: 1 addition & 1 deletion talent/job_search_histogram_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def search_jobs(project_id, tenant_id, query):
request_metadata=request_metadata,
histogram_queries=histogram_queries,
)
for response_item in client.search_jobs(request=request):
for response_item in client.search_jobs(request=request).matching_jobs:
print("Job summary: {response_item.job_summary}")
print("Job title snippet: {response_item.job_title_snippet}")
job = response_item.job
Expand Down

0 comments on commit 4931a88

Please sign in to comment.