EnumType

data class EnumType(val type: ProtoType, val location: Location, val documentation: String, val name: String, val constants: List<EnumConstant>, reserveds: List<Reserved>, val options: Options, val syntax: Syntax) : Type

Constructors

Link copied to clipboard
constructor(type: ProtoType, location: Location, documentation: String, name: String, constants: List<EnumConstant>, reserveds: List<Reserved>, options: Options, syntax: Syntax)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val documentation: String
Link copied to clipboard
Link copied to clipboard
open override val location: Location
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val nestedExtendList: List<Extend>
Link copied to clipboard
open override val nestedTypes: List<Type>
Link copied to clipboard
open override val options: Options
Link copied to clipboard
open override val syntax: Syntax
Link copied to clipboard
open override val type: ProtoType

Functions

Link copied to clipboard
Link copied to clipboard

Returns the constant tagged tag, or null if this enum has no such constant.

Returns the constant named name, or null if this enum has no such constant.

Link copied to clipboard
open override fun linkMembers(linker: Linker)
Link copied to clipboard
open override fun linkOptions(linker: Linker, syntaxRules: SyntaxRules, validate: Boolean)
Link copied to clipboard
open override fun retainAll(schema: Schema, markSet: MarkSet): Type?
Link copied to clipboard
open override fun retainLinked(linkedTypes: Set<ProtoType>, linkedFields: Set<Field>): Type?

Returns a copy of this containing only the types in linkedTypes and extensions in linkedFields, or null if that set is empty. This will return an EnclosingType if it is itself not linked, but its nested types are linked.

Link copied to clipboard
fun toElement(): EnumElement
Link copied to clipboard

Returns all types and subtypes which are linked to the type.

Link copied to clipboard
open override fun validate(linker: Linker, syntaxRules: SyntaxRules)