Added in API level 10000
Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.privatecompute.AssistantQueryRequest.Query.Builder |
Builder for Query.
Summary
| Public constructors | |
|---|---|
|
Creates a new Builder for a Query. |
|
| Public methods | |
|---|---|
| AssistantQueryRequest.Query |
build()Builds the |
| AssistantQueryRequest.Query.Builder |
setQueryId(queryId: String?)Sets the identifier for the query. |
Public constructors
Builder
Added in API level 10000
Builder(
queryString: String,
sessionId: String)
Creates a new Builder for a Query.
| Parameters | |
|---|---|
queryString |
String: The raw string of the query. This value cannot be null. |
sessionId |
String: The session identifier of the hint. This value cannot be null. |
Public methods
build
Added in API level 10000
fun build(): AssistantQueryRequest.Query
Builds the Query instance.
| Return | |
|---|---|
AssistantQueryRequest.Query |
This value cannot be null. |
setQueryId
Added in API level 10000
fun setQueryId(queryId: String?): AssistantQueryRequest.Query.Builder
Sets the identifier for the query. This is meant for developer use to link the request to the response.
| Parameters | |
|---|---|
queryId |
String?: The identifier for the query. This value may be null. |
| Return | |
|---|---|
AssistantQueryRequest.Query.Builder |
This value cannot be null. |