AssistantQueryResponse.Builder


public static final class AssistantQueryResponse.Builder
extends Object

java.lang.Object
   ↳ android.app.privatecompute.AssistantQueryResponse.Builder


Builder for AssistantQueryResponse.

Summary

Public constructors

Builder()

Creates a new Builder for an AssistantQueryResponse.

Public methods

AssistantQueryResponse build()

Builds the AssistantQueryResponse instance.

AssistantQueryResponse.Builder setMetadata(byte[] metadata)

Sets the optional metadata byte array generated for the query.

AssistantQueryResponse.Builder setQueryId(String queryId)

Sets the optional unique identifier for the query.

AssistantQueryResponse.Builder setQueryResponse(String queryResponse)

Sets the optional string response generated for the query.

Inherited methods

Public constructors

Builder

Added in API level 10000
public Builder ()

Creates a new Builder for an AssistantQueryResponse.

Public methods

build

Added in API level 10000
public AssistantQueryResponse build ()

Builds the AssistantQueryResponse instance.

Returns
AssistantQueryResponse The newly built AssistantQueryResponse.
This value cannot be null.

setMetadata

Added in API level 10000
public AssistantQueryResponse.Builder setMetadata (byte[] metadata)

Sets the optional metadata byte array generated for the query.

Parameters
metadata byte: The metadata bytes.
This value may be null.

Returns
AssistantQueryResponse.Builder This Builder instance.
This value cannot be null.

setQueryId

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

Sets the optional unique identifier for the query.

Parameters
queryId String: The unique identifier.
This value may be null.

Returns
AssistantQueryResponse.Builder This Builder instance.
This value cannot be null.

setQueryResponse

Added in API level 10000
public AssistantQueryResponse.Builder setQueryResponse (String queryResponse)

Sets the optional string response generated for the query.

Parameters
queryResponse String: The response string generated.
This value may be null.

Returns
AssistantQueryResponse.Builder This Builder instance.
This value cannot be null.