Class CompleteQueryRequest (2.14.1)

CompleteQueryRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Auto-complete parameters.

Attributes

Name Description
parent str
Required. Resource name of tenant the completion is performed within. The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenant/bar". If tenant id is unspecified, the default tenant is used, for example, "projects/foo".
query str
Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
language_codes MutableSequence[str]
The list of languages of the query. This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see `Tags for Identifying Languages
page_size int
Required. Completion result count. The maximum allowed page size is 10.
company str
If provided, restricts completion to specified company. The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for example, "projects/foo/tenants/bar/companies/baz". If tenant id is unspecified, the default tenant is used, for example, "projects/foo".
scope google.cloud.talent_v4beta1.types.CompleteQueryRequest.CompletionScope
The scope of the completion. The defaults is CompletionScope.PUBLIC.
type_ google.cloud.talent_v4beta1.types.CompleteQueryRequest.CompletionType
The completion topic. The default is CompletionType.COMBINED.

Classes

CompletionScope

CompletionScope(value)

Enum to specify the scope of completion.

CompletionType

CompletionType(value)

Enum to specify auto-completion topics.

    For
    <xref uid="google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE">CompletionType.JOB_TITLE</xref>
    type, only open jobs with the same
    <xref uid="google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes">language_codes</xref>
    are returned.
COMPANY_NAME (2):
    Suggest company names for jobs autocomplete.

    For
    <xref uid="google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME">CompletionType.COMPANY_NAME</xref>
    type, only companies having open jobs with the same
    <xref uid="google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes">language_codes</xref>
    are returned.
COMBINED (3):
    Suggest both job titles and company names for jobs
    autocomplete.

    For
    <xref uid="google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED">CompletionType.COMBINED</xref>
    type, only open jobs with the same
    <xref uid="google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes">language_codes</xref>
    or companies having open jobs with the same
    <xref uid="google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes">language_codes</xref>
    are returned.