FieldDescriptor

interface FieldDescriptor

Descriptor of a field that belongs to a struct or enum variant

Properties

Link copied to clipboard
abstract val name: String?

Name of the field

Link copied to clipboard
abstract val position: <Error class: unknown class>?

Order or position of the field in the struct or enum variant definition.

Link copied to clipboard

Returns the field-presence view for this FieldDescriptor instance.

Link copied to clipboard
abstract val type: OpenSignatureBody

The type of the field

Functions

Link copied to clipboard
fun FieldDescriptor.copy(body: <Error class: unknown class>.() -> Unit = {}): FieldDescriptor

Copies the original message, including unknown fields.