public
final
class
AssistantQueryRequest
extends EgressRequest<AssistantQueryResponse>
implements
Parcelable
| java.lang.Object | ||
| ↳ | android.app.privatecompute.EgressRequest<android.app.privatecompute.AssistantQueryResponse> | |
| ↳ | android.app.privatecompute.AssistantQueryRequest | |
Request object specifically for Assistant Query Egress operations. Binds this request to the
AssistantQueryResponse type.
These requests are subject to system validations, rate limits, and user consent. If the
non-PCC process does not return the response in a reasonable timeframe, the platform will unbind
from the non-PCC process and return
PccEgressException.ERROR_NO_RESPONSE_FROM_EGRESS_SERVICE via the callback.
A request is considered invalid and will cause PccSandboxManager.egressData to throw
IllegalArgumentException synchronously if:
Query payload is null.
Query.getSessionId() or Query.getQueryString() is null.
A request will cause PccSandboxManager.egressData to throw
IllegalStateException synchronously if:
classAssistantQueryRequest.Builder
Builder for AssistantQueryRequest.
classAssistantQueryRequest.Query
Payload containing the raw query details to be routed to the non-PCC assistant process.
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<AssistantQueryRequest> |
CREATOR
Creator for |
Inherited fields |
|---|
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
AssistantQueryRequest.Query
|
getQuery()
Returns the query payload associated with this request. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
public static final Creator<AssistantQueryRequest> CREATOR
Creator for AssistantQueryRequest 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 AssistantQueryRequest.Query getQuery ()
Returns the query payload associated with this request.
| Returns | |
|---|---|
AssistantQueryRequest.Query |
The Query payload.
This value cannot be null. |
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.