{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public class InteractionResponse.Builder
Builder for InteractionResponse
Public constructors |
|
|---|---|
Builder() |
|
Public methods |
|
|---|---|
InteractionResponse |
build()Builds an |
InteractionResponse.Builder |
setRemoteError(InteractionResponse.RemoteError remoteError)Set the |
InteractionResponse.Builder |
setResultProto(byte[] protoByteArray)Set the result proto as a byte array. |
InteractionResponse.Builder |
setStatus(InteractionResponse.Status status) |
public InteractionResponse build()
Builds an InteractionResponse object.
| Returns | |
|---|---|
InteractionResponse |
an |
| Throws | |
|---|---|
androidx.test.espresso.remote.RemoteProtocolException androidx.test.espresso.remote.RemoteProtocolException |
when conflicting properties are set. You can either set an |
androidx.test.espresso.remote.RemoteProtocolException androidx.test.espresso.remote.RemoteProtocolException |
when the provided proto byte array cannot be parsed into a protocol buffer of type InteractionResultProto |
public InteractionResponse.Builder setRemoteError(InteractionResponse.RemoteError remoteError)
Set the RemoteError for this InteractionResponse
| Parameters | |
|---|---|
InteractionResponse.RemoteError remoteError |
the remote error to set |
| Returns | |
|---|---|
InteractionResponse.Builder |
fluent interface |
public InteractionResponse.Builder setResultProto(byte[] protoByteArray)
Set the result proto as a byte array. This byte array will be parsed into an . Providing an invalid byte byte array will result in a RemoteProtocolException when the build method is called!
| Parameters | |
|---|---|
byte[] protoByteArray |
the proto byte array to set |
| Returns | |
|---|---|
InteractionResponse.Builder |
fluent interface |