typeName
Descriptor+Extensions.swift:55var typeName: String { get }
var typeName: String { get }
s26SwiftProtobufPluginLibrary14EnumDescriptorC8typeNameSSvp
What are these?8V6JI
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
final class EnumDescriptor
Describes a type of protocol enum. EnumDescriptor
s are not directly created, instead they are constructed/fetched via the DescriptorSet
or they are directly accessed via a EnumType
property on FieldDescriptor
s, etc.
@frozen struct String
A Unicode string value that is a collection of characters.
unowned var containingType: Descriptor? { get }
If this Descriptor describes a nested type, this returns the type in which it is nested.
let features: Google_Protobuf_FeatureSet
The resolved features for this Enum.
var file: FileDescriptor! { get }
The .proto file in which this message type was defined.
let fullName: String
The fully-qualified name of the enum type, scope delimited by periods.
let index: Int
Index of this enum within the file or containing message’s enums.
var isClosed: Bool { get }
Returns true whether this is a “closed” enum, meaning that it:
var isDeprecated: Bool { get }
let name: String
The name of this enum type in the containing scope.
let options: Google_Protobuf_EnumOptions
The Google_Protobuf_MessageOptions
set on this enum.
let reservedNames: [String]
The reserved value names for this enum. These are returned in the order they are defined in the .proto file.
let reservedRanges: [ClosedRange<Int32>]
The reserved value ranges for this enum. These are returned in the order they are defined in the .proto file.
let values: [EnumValueDescriptor]
The values defined for this enum. Guaranteed (by protoc) to be atleast one item. These are returned in the order they were defined in the .proto file.
func getLocationPath(path: inout IndexPath)
var defaultValue: EnumValueDescriptor { get }
var proto: Google_Protobuf_EnumDescriptorProto { get }