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.
classAssistantQueryResponse.Builder
Builder for AssistantQueryResponse.
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 | |
|---|---|
public static final Creator<AssistantQueryResponse> CREATOR
Creator for AssistantQueryResponse instance.
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.
int0 or
public byte[] getMetadata ()
Returns the metadata bytes associated with this egress response.
| Returns | |
|---|---|
byte[] |
The metadata bytes, or null if unavailable. |
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. |
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. |
public void writeToParcel (Parcel dest,
int flags)Flatten this object in to a Parcel.
destParcel: This value cannot be null.flagsint: Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
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-28 UTC.