# InteractionRequest

Artifact: [androidx.test.espresso:espresso-remote](https://developer.android.com/jetpack/androidx/releases/test-espresso) [View Source](https://cs.android.com/search?q=file:androidx/test/espresso/remote/InteractionRequest.java+class:androidx.test.espresso.remote.InteractionRequest)

*** ** * ** ***


```
class InteractionRequest : EspressoRemoteMessage.To<MessageLite!>
```

<br />

*** ** * ** ***

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

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/InteractionRequest.Builder` Creates an instance of `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/InteractionRequest` from a View matcher and action. |

| ### Public functions |
|---|---|
| `https://protobuf.dev/reference/java/api-docs/com/google/protobuf/MessageLite.html!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/InteractionRequest#toProto()()` |

| ### Public properties |
|---|---|
| `https://junit.org/junit4/javadoc/latest/org/hamcrest/Matcher.html<https://developer.android.com/reference/kotlin/androidx/test/espresso/Root!>?` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/InteractionRequest#rootMatcher()` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/ViewAction?` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/InteractionRequest#viewAction()` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/ViewAssertion?` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/InteractionRequest#viewAssertion()` |
| `https://junit.org/junit4/javadoc/latest/org/hamcrest/Matcher.html<https://developer.android.com/reference/android/view/View.html!>?` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/InteractionRequest#viewMatcher()` |

## Public functions

### toProto

```
fun toProto(): MessageLite!
```

## Public properties

### rootMatcher

```
val rootMatcher: Matcher<Root!>?
```

### viewAction

```
val viewAction: ViewAction?
```

### viewAssertion

```
val viewAssertion: ViewAssertion?
```

### viewMatcher

```
val viewMatcher: Matcher<View!>?
```