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.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
public Builder ()
Creates a new Builder for an AssistantQueryResponse.
Public methods
build
public AssistantQueryResponse build ()
Builds the AssistantQueryResponse instance.
| Returns | |
|---|---|
AssistantQueryResponse |
The newly built AssistantQueryResponse.
This value cannot be null. |
setMetadata
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
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
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. |