# FieldDescriptor

Summary:[Fields](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#lfields)\|[Methods](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#)  

# FieldDescriptor

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public

final

class
FieldDescriptor
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.test.espresso.remote.FieldDescriptor |

<br />

*** ** * ** ***

Provides additional meta data about a[Field](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

|                                                                                                       ### Fields                                                                                                       ||
|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
| ` public final `[String](https://developer.android.com/reference/java/lang/String.html)    | [fieldName](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#fieldName) <br /> |
| ` public final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | [fieldType](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#fieldType) <br /> |
| ` public final int`                                                                        | [order](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#order) <br />         |

|                                                                                                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                                                                                | ` `[equals](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object.html)` o) `                                                                                                                                                                                                                                                             |
| ` int`                                                                                                                    | ` `[hashCode](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#hashCode())`() `                                                                                                                                                                                                                                                                                                                                                    |
| ` static `[FieldDescriptor](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor) | ` `[of](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#of(java.lang.Class<?>, java.lang.String, int))`(`[Class](https://developer.android.com/reference/java/lang/Class.html)`<?> fieldType, `[String](https://developer.android.com/reference/java/lang/String.html)` fieldName, int order) ` Creates a[FieldDescriptor](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor)instance. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor#)From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                                | | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                             | ` finalize() `                                                                             | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Fields

### fieldName

```
String fieldName
```

<br />

<br />

### fieldType

```
Class<?> fieldType
```

<br />

<br />

### order

```
int order
```

<br />

<br />

## Public methods

### equals

```
boolean equals (Object o)
```

<br />

<br />

|      Parameters      ||
|-----|-----------------|
| `o` | `Object` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### hashCode

```
int hashCode ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### of

```
FieldDescriptor of (Class<?> fieldType, 
                String fieldName, 
                int order)
```

Creates a[FieldDescriptor](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor)instance.

<br />

|                                          Parameters                                           ||
|-------------|----------------------------------------------------------------------------------|
| `fieldType` | `Class`: the type of the field <br />                                            |
| `fieldName` | `String`: the name of the field as declared in the class <br />                  |
| `order`     | `int`: the declared order of the field, order values need to start with 0 <br /> |

|                                                         Returns                                                         ||
|-----------------------------------------------------------------------------------------------------------------|--------|
| [FieldDescriptor](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor) | <br /> |

-

  ## Interfaces

  - [Bindable](https://developer.android.com/reference/android/support/test/espresso/remote/Bindable)
  - [Converter](https://developer.android.com/reference/android/support/test/espresso/remote/Converter)
  - [EspressoRemoteMessage](https://developer.android.com/reference/android/support/test/espresso/remote/EspressoRemoteMessage)
  - [EspressoRemoteMessage.From](https://developer.android.com/reference/android/support/test/espresso/remote/EspressoRemoteMessage.From)
  - [EspressoRemoteMessage.To](https://developer.android.com/reference/android/support/test/espresso/remote/EspressoRemoteMessage.To)
  - [RemoteInteraction](https://developer.android.com/reference/android/support/test/espresso/remote/RemoteInteraction)
-

  ## Classes

  - [ConstructorInvocation](https://developer.android.com/reference/android/support/test/espresso/remote/ConstructorInvocation)
  - [EspressoRemote](https://developer.android.com/reference/android/support/test/espresso/remote/EspressoRemote)
  - [FieldDescriptor](https://developer.android.com/reference/android/support/test/espresso/remote/FieldDescriptor)
  - [GenericRemoteMessage](https://developer.android.com/reference/android/support/test/espresso/remote/GenericRemoteMessage)
  - [InteractionRequest](https://developer.android.com/reference/android/support/test/espresso/remote/InteractionRequest)
  - [InteractionRequest.Builder](https://developer.android.com/reference/android/support/test/espresso/remote/InteractionRequest.Builder)
  - [InteractionResponse](https://developer.android.com/reference/android/support/test/espresso/remote/InteractionResponse)
  - [InteractionResponse.Builder](https://developer.android.com/reference/android/support/test/espresso/remote/InteractionResponse.Builder)
  - [InteractionResponse.RemoteError](https://developer.android.com/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError)
  - [NoopRemoteInteraction](https://developer.android.com/reference/android/support/test/espresso/remote/NoopRemoteInteraction)
  - [ProtoUtils](https://developer.android.com/reference/android/support/test/espresso/remote/ProtoUtils)
  - [RemoteDescriptor](https://developer.android.com/reference/android/support/test/espresso/remote/RemoteDescriptor)
  - [RemoteDescriptor.Builder](https://developer.android.com/reference/android/support/test/espresso/remote/RemoteDescriptor.Builder)
  - [RemoteDescriptorRegistry](https://developer.android.com/reference/android/support/test/espresso/remote/RemoteDescriptorRegistry)
  - [RemoteInteractionRegistry](https://developer.android.com/reference/android/support/test/espresso/remote/RemoteInteractionRegistry)
  - [TypeProtoConverters](https://developer.android.com/reference/android/support/test/espresso/remote/TypeProtoConverters)
-

  ## Enums

  - [InteractionResponse.Status](https://developer.android.com/reference/android/support/test/espresso/remote/InteractionResponse.Status)
-

  ## Exceptions

  - [NoRemoteEspressoInstanceException](https://developer.android.com/reference/android/support/test/espresso/remote/NoRemoteEspressoInstanceException)
  - [RemoteEspressoException](https://developer.android.com/reference/android/support/test/espresso/remote/RemoteEspressoException)
  - [RemoteProtocolException](https://developer.android.com/reference/android/support/test/espresso/remote/RemoteProtocolException)