AssistantQueryResponse
public
final
class
AssistantQueryResponse
extends EgressResponse
implements
Parcelable
| java.lang.Object | ||
| ↳ | android.app.privatecompute.EgressResponse | |
| ↳ | android.app.privatecompute.AssistantQueryResponse | |
Specialized response for Assistant Query use-cases. Includes the specific query ID and the generated response payload.
Summary
Nested classes | |
|---|---|
class |
AssistantQueryResponse.Builder
Builder for |
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<AssistantQueryResponse> |
CREATOR
Creator for |
Inherited fields |
|---|
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
byte[]
|
getMetadata()
Returns the metadata bytes associated with this egress response. |
String
|
getQueryId()
Returns the unique identifier of the query associated with this egress response. |
String
|
getQueryResponse()
Returns the raw query response payload generated for the query. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
Fields
CREATOR
public static final Creator<AssistantQueryResponse> CREATOR
Creator for AssistantQueryResponse instance.
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(Parcel,int),
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR bit.
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or
|
getMetadata
public byte[] getMetadata ()
Returns the metadata bytes associated with this egress response.
| Returns | |
|---|---|
byte[] |
The metadata bytes, or null if unavailable. |
getQueryId
public String getQueryId ()
Returns the unique identifier of the query associated with this egress response.
| Returns | |
|---|---|
String |
A string representing the unique query ID, or null if unavailable. |
getQueryResponse
public String getQueryResponse ()
Returns the raw query response payload generated for the query.
May be null if the response is empty.
| Returns | |
|---|---|
String |
The raw query response string, or null if unavailable. |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
int: Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-14 UTC.