diff --git a/talent/job_search_autocomplete_job_title.py b/talent/job_search_autocomplete_job_title.py index e9f5286873ad..782517c15746 100644 --- a/talent/job_search_autocomplete_job_title.py +++ b/talent/job_search_autocomplete_job_title.py @@ -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}" ) diff --git a/talent/job_search_commute_search.py b/talent/job_search_commute_search.py index 0b7684416c9c..d38a0ae4be8d 100644 --- a/talent/job_search_commute_search.py +++ b/talent/job_search_commute_search.py @@ -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 diff --git a/talent/job_search_custom_ranking_search.py b/talent/job_search_custom_ranking_search.py index 015291e48372..6f1addc97a5f 100644 --- a/talent/job_search_custom_ranking_search.py +++ b/talent/job_search_custom_ranking_search.py @@ -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 diff --git a/talent/job_search_histogram_search.py b/talent/job_search_histogram_search.py index 73bbc974f18d..5a6a91454244 100644 --- a/talent/job_search_histogram_search.py +++ b/talent/job_search_histogram_search.py @@ -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