public final class InteractionRequest implements EspressoRemoteMessage.To


Encapsulates an InteractionRequestProto request. Takes care of all the proto packing and unpacking.

Summary

Nested types

Creates an instance of InteractionRequest from a View matcher and action.

Public methods

Matcher<Root>

Returns the < associated with this InteractionRequest or null if no < was set.

ViewAction

Returns the ViewAction associated with this InteractionRequest or null if no ViewAction was set.

ViewAssertion

Returns the ViewAssertion associated with this InteractionRequest or null if no ViewAssertion was set.

Matcher<View>

Returns the < associated with this InteractionRequest or null if no view matcher was set.

MessageLite

Public fields

rootMatcher

public final @Nullable Matcher<RootrootMatcher

viewAction

public final @Nullable ViewAction viewAction

viewAssertion

public final @Nullable ViewAssertion viewAssertion

viewMatcher

public final @Nullable Matcher<ViewviewMatcher

Public methods

getRootMatcher

public Matcher<RootgetRootMatcher()

Returns the < associated with this InteractionRequest or null if no < was set.

getViewAction

public ViewAction getViewAction()

Returns the ViewAction associated with this InteractionRequest or null if no ViewAction was set.

getViewAssertion

public ViewAssertion getViewAssertion()

Returns the ViewAssertion associated with this InteractionRequest or null if no ViewAssertion was set.

getViewMatcher

public Matcher<ViewgetViewMatcher()

Returns the < associated with this InteractionRequest or null if no view matcher was set.

toProto

public MessageLite toProto()