VariantDescriptor

Descriptor of an enum variant

Properties

Link copied to clipboard
abstract val fields: List<FieldDescriptor>

Set of fields defined by this variant.

Link copied to clipboard
abstract val name: String?

Name of the variant

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

Order or position of the variant in the enum definition.

Link copied to clipboard

Returns the field-presence view for this VariantDescriptor instance.

Functions

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

Copies the original message, including unknown fields.