Enum

interface Enum(source)

Enum type definition.

New usages of this message as an alternative to EnumDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.

Properties

Link copied to clipboard
abstract val edition: String

The source edition string, only valid when syntax is SYNTAX_EDITIONS.

Link copied to clipboard
abstract val enumvalue: List<EnumValue>

Enum value definitions.

Link copied to clipboard
abstract val name: String

Enum type name.

Link copied to clipboard
abstract val options: List<Option>

Protocol buffer options.

Link copied to clipboard

Returns the field-presence view for this Enum instance.

Link copied to clipboard

The source context.

Link copied to clipboard

Returns the value of the sourceContext field if present, otherwise null.

Link copied to clipboard
abstract val syntax: Syntax

The source syntax.

Functions

Link copied to clipboard
fun Enum.copy(body: ERROR CLASS: Symbol not found for Enum.Builder.() -> Unit = {}): Enum

Copies the original message, including unknown fields.