Class CompleteQueryRequest (2.12.0)

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

Auto-complete parameters.

Attributes

NameDescription
tenant str
Required. Resource name of tenant the completion is performed within. The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".
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".
scope google.cloud.talent_v4.types.CompleteQueryRequest.CompletionScope
The scope of the completion. The defaults is CompletionScope.PUBLIC.
type_ google.cloud.talent_v4.types.CompleteQueryRequest.CompletionType
The completion topic. The default is CompletionType.COMBINED.

Classes

CompletionScope

CompletionScope(value)

Enum to specify the scope of completion.

Values: COMPLETION_SCOPE_UNSPECIFIED (0): Default value. TENANT (1): Suggestions are based only on the data provided by the client. PUBLIC (2): Suggestions are based on all jobs data in the system that's visible to the client

CompletionType

CompletionType(value)

Enum to specify auto-completion topics.

Values: COMPLETION_TYPE_UNSPECIFIED (0): Default value. JOB_TITLE (1): Suggest job titles for jobs autocomplete.

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

    For
    <xref uid="google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME">CompletionType.COMPANY_NAME</xref>
    type, only companies having open jobs with the same
    <xref uid="google.cloud.talent.v4.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.v4.CompleteQueryRequest.CompletionType.COMBINED">CompletionType.COMBINED</xref>
    type, only open jobs with the same
    <xref uid="google.cloud.talent.v4.CompleteQueryRequest.language_codes">language_codes</xref>
    or companies having open jobs with the same
    <xref uid="google.cloud.talent.v4.CompleteQueryRequest.language_codes">language_codes</xref>
    are returned.