AssistantQueryResponse
class AssistantQueryResponse : EgressResponse, Parcelable
| kotlin.Any | ||
| ↳ | 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 | |
|---|---|
|
Builder for |
|
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ByteArray? |
Returns the metadata bytes associated with this egress response. |
| String? |
Returns the unique identifier of the query associated with this egress response. |
| String? |
Returns the raw query response payload generated for the query. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<AssistantQueryResponse!> |
Creator for |
Public methods
describeContents
fun describeContents(): Int
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.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
getMetadata
fun getMetadata(): ByteArray?
Returns the metadata bytes associated with this egress response.
| Return | |
|---|---|
ByteArray? |
The metadata bytes, or null if unavailable. |
getQueryId
fun getQueryId(): String?
Returns the unique identifier of the query associated with this egress response.
| Return | |
|---|---|
String? |
A string representing the unique query ID, or null if unavailable. |
getQueryResponse
fun getQueryResponse(): String?
Returns the raw query response payload generated for the query.
May be null if the response is empty.
| Return | |
|---|---|
String? |
The raw query response string, or null if unavailable. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
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_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following:
|
Properties
CREATOR
static val CREATOR: Parcelable.Creator<AssistantQueryResponse!>
Creator for AssistantQueryResponse instance.