# Class CompleteQueryRequest (2.21.0)

2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.2 2.16.0 2.15.0 2.14.1 2.13.5 2.12.0 2.11.1 2.10.1 2.9.1 2.8.0 2.7.3 2.6.0 2.5.2 2.4.0 2.3.0 2.2.1 2.1.0 2.0.0 1.0.2 0.6.3 0.5.0 0.4.0 0.3.0

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

Auto-complete parameters.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `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` | `https://docs.cloud.google.com/python/docs/reference/talent/latest/google.cloud.talent_v4.types.CompleteQueryRequest.CompletionScope` The scope of the completion. The defaults is CompletionScope.PUBLIC. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/talent/latest/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.

### CompletionType

    CompletionType(value)

Enum to specify auto-completion topics.

        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.