# FieldDescriptor

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/FieldDescriptor.java+class:androidx.test.espresso.remote.FieldDescriptor)

*** ** * ** ***

<br />

```
class FieldDescriptor
```

<br />

*** ** * ** ***

Provides additional meta data about a `https://developer.android.com/reference/java/lang/reflect/Field.html` declared in a class.

The data provided here is used at runtime to reflectively access fields that require proto serialization.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor#hashCode()()` |
| `java-static https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor#of(java.lang.Class<?>,java.lang.String,int)(fieldType: https://developer.android.com/reference/java/lang/Class.html<*>, fieldName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, order: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates a `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor` instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor#fieldName()` |
| `https://developer.android.com/reference/java/lang/Class.html<*>!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor#fieldType()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor#order()` |

## Public functions

### equals

```
fun equals(o: Any!): Boolean
```

### hashCode

```
fun hashCode(): Int
```

### of

```
java-static fun of(fieldType: Class<*>, fieldName: String, order: Int): FieldDescriptor!
```

Creates a `https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/FieldDescriptor` instance.

| Parameters |
|---|---|
| `fieldType: https://developer.android.com/reference/java/lang/Class.html<*>` | the type of the field |
| `fieldName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | the name of the field as declared in the class |
| `order: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the declared order of the field, order values need to start with 0 |

## Public properties

### fieldName

```
val fieldName: String!
```

### fieldType

```
val fieldType: Class<*>!
```

### order

```
val order: Int
```