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 |
Sequence[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 |
The scope of the completion. The defaults is CompletionScope.PUBLIC. |
type_ |
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.