Class CompleteQueryRequest (1.0.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 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 `.completion_service.CompleteQueryRequest.CompletionScope`
The scope of the completion. The defaults is CompletionScope.PUBLIC.
type_ `.completion_service.CompleteQueryRequest.CompletionType`
The completion topic. The default is CompletionType.COMBINED.

Inheritance

builtins.object > proto.message.Message > CompleteQueryRequest

Classes

CompletionScope

CompletionScope(value)

Enum to specify the scope of completion.

CompletionType

CompletionType(value)

Enum to specify auto-completion topics.