Builder


class Builder
kotlin.Any
   ↳ android.app.privatecompute.AssistantQueryRequest.Query.Builder

Builder for Query.

Summary

Public constructors
Builder(queryString: String, sessionId: String)

Creates a new Builder for a Query.

Public methods
AssistantQueryRequest.Query

Builds the Query instance.

AssistantQueryRequest.Query.Builder
setQueryId(queryId: String?)

Sets the identifier for the query.

Public constructors

Builder

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

fun build(): AssistantQueryRequest.Query

Builds the Query instance.

Return
AssistantQueryRequest.Query This value cannot be null.

setQueryId

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.