# RemoteMsgField

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

*** ** * ** ***


```
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.FIELD])
public annotation RemoteMsgField
```

<br />

*** ** * ** ***

Class fields annotated with the `https://developer.android.com/reference/androidx/test/espresso/remote/annotation/RemoteMsgField` annotation are automatically serialised to their proto representation when used in combination with a `https://developer.android.com/reference/androidx/test/espresso/remote/GenericRemoteMessage`.

The order field is mandatory and represents the declared field order in the class this annotation is used in. The order must match the declared constructor param types of the constructor annotated with {`https://developer.android.com/reference/androidx/test/espresso/remote/annotation/RemoteMsgConstructor`}.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/test/espresso/remote/GenericRemoteMessage` |   |

## Summary

| ### Public methods |
|---|---|
| `abstract int` | `https://developer.android.com/reference/androidx/test/espresso/remote/annotation/RemoteMsgField#order()()` Returns the order of this field. |

## Public methods

### order

```
public abstract int order()
```

Returns the order of this field. Order values need to start with 0.