class FieldDescriptor


Provides additional meta data about a Field declared in a class.

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

Summary

Public functions

Boolean
equals(o: Any!)
Int
java-static FieldDescriptor!
of(fieldType: Class<Any!>, fieldName: String, order: Int)

Creates a FieldDescriptor instance.

Public properties

String!
Class<Any!>!
Int

Public functions

equals

fun equals(o: Any!): Boolean

hashCode

fun hashCode(): Int

of

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

Creates a FieldDescriptor instance.

Parameters
fieldType: Class<Any!>

the type of the field

fieldName: String

the name of the field as declared in the class

order: Int

the declared order of the field, order values need to start with 0

Public properties

fieldName

val fieldNameString!

fieldType

val fieldTypeClass<Any!>!

order

val orderInt