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 AssistantQueryResponse

Inherited constants

Fields

public static final Creator<AssistantQueryResponse> CREATOR

Creator for AssistantQueryResponse instance.

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

Added in API level 10000
public static final Creator<AssistantQueryResponse> CREATOR

Creator for AssistantQueryResponse instance.

Public methods

describeContents

Added in API level 10000
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

Added in API level 10000
public byte[] getMetadata ()

Returns the metadata bytes associated with this egress response.

Returns
byte[] The metadata bytes, or null if unavailable.

getQueryId

Added in API level 10000
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

Added in API level 10000
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

Added in API level 10000
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: