public class

InteractionResponse.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.test.espresso.remote.InteractionResponse.Builder

Overview

Builder for InteractionResponse

Summary

Constructors
publicBuilder()

Methods
public InteractionResponsebuild()

Builds an InteractionResponse object.

public InteractionResponse.BuildersetRemoteError(InteractionResponse.RemoteError remoteError)

Set the InteractionResponse.RemoteError for this InteractionResponse

public InteractionResponse.BuildersetResultProto(byte[] protoByteArray[])

Set the result proto as a byte array.

public InteractionResponse.BuildersetStatus(InteractionResponse.Status status)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

Set the InteractionResponse.RemoteError for this InteractionResponse

Parameters:

remoteError: the remote error to set

Returns:

fluent interface InteractionResponse.Builder

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 InteractionResponse.Builder.build() method is called!

Parameters:

protoByteArray: the proto byte array to set

Returns:

fluent interface InteractionResponse.Builder

public InteractionResponse build()

Builds an InteractionResponse object.

Returns:

an InteractionResponse object.