| java.lang.Object | |
| ↳ | androidx.test.espresso.remote.InteractionResponse.Builder |
Builder for InteractionResponse
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Builds an
InteractionResponse object. | |||||||||||
Set the
InteractionResponse.RemoteError for this InteractionResponse | |||||||||||
Set the result proto as a byte array.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
Builds an InteractionResponse object.
| Returns | |
|---|---|
InteractionResponse |
an InteractionResponse object.
|
| Throws | |
|---|---|
RemoteProtocolException |
when conflicting properties are set. You can either set an
InteractionResponse.Status with an optional InteractionResponse.RemoteError error in case that the status is
Error or set the proto byte array not both. Setting both values would
result in an override, therefore setting both properties will result in an exception. |
RemoteProtocolException |
when the provided proto byte array cannot be parsed into a
protocol buffer of type ERROR(/InteractionResultProto) |
Set the InteractionResponse.RemoteError for this InteractionResponse
| Parameters | |
|---|---|
remoteError |
InteractionResponse.RemoteError: the remote error to set |
| Returns | |
|---|---|
InteractionResponse.Builder |
fluent interface InteractionResponse.Builder
|
Set the result proto as a byte array. This byte array will be parsed into an ERROR(/InteractionResultProto). Providing an invalid byte byte array will result in a RemoteProtocolException when the build() method is called!
| Parameters | |
|---|---|
protoByteArray |
byte: the proto byte array to set |
| Returns | |
|---|---|
InteractionResponse.Builder |
fluent interface InteractionResponse.Builder
|
| Parameters | |
|---|---|
status |
InteractionResponse.Status |
| Returns | |
|---|---|
InteractionResponse.Builder |
|