AssistantQueryRequest.Query.Builder


public static final class AssistantQueryRequest.Query.Builder
extends Object

java.lang.Object
   ↳ android.app.privatecompute.AssistantQueryRequest.Query.Builder


Builder for Query.

Summary

Public constructors

Builder(String queryString, String sessionId)

Creates a new Builder for a Query.

Public methods

AssistantQueryRequest.Query build()

Builds the Query instance.

AssistantQueryRequest.Query.Builder setQueryId(String queryId)

Sets the identifier for the query.

Inherited methods

Public constructors

Builder

Added in API level 10000
public Builder (String queryString, 
                String sessionId)

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
public AssistantQueryRequest.Query build ()

Builds the Query instance.

Returns
AssistantQueryRequest.Query This value cannot be null.

setQueryId

Added in API level 10000
public AssistantQueryRequest.Query.Builder setQueryId (String queryId)

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.

Returns
AssistantQueryRequest.Query.Builder This value cannot be null.