EnumValueDescriptor
Describes an individual enum constant of a particular type. To get the EnumValueDescriptor
for a given enum value, first get the EnumDescriptor
for its type.
final class EnumValueDescriptor
Citizens in SwiftProtobufPluginLibrary
Conformances
protocol ProvidesDeprecationComment
Protocol that all the Descriptors conform to provide deprecation comments
protocol ProvidesLocationPath
Protocol that all the Descriptors conform to for original .proto file location lookup.
protocol ProvidesSourceCodeLocation
Protocol that all the Descriptors conform to for original .proto file location lookup.
protocol SimpleProvidesDeprecationComment
Protocol that a Descriptor can confirm to when only the Type controls depecation.
Instance members
var enumType: EnumDescriptor!
The type of this value.
let features: Google_Protobuf_FeatureSet
The resolved features for this EnumValue.
var file: FileDescriptor!
The .proto file in which this message type was defined.
var fullName: String
The full_name of an enum value is a sibling symbol of the enum type. e.g. the full name of FieldDescriptorProto::TYPE_INT32 is actually “google.protobuf.FieldDescriptorProto.TYPE_INT32”, NOT “google.protobuf.FieldDescriptorProto.Type.TYPE_INT32”. This is to conform with C++ scoping rules for enums.
let index: Int
Index within the enums’s
EnumDescriptor
.var isDeprecated: Bool
let name: String
Name of this enum constant.
let number: Int32
Numeric value of this enum constant.
let options: Google_Protobuf_EnumValueOptions
The
Google_Protobuf_EnumValueOptions
set on this value.var typeName: String
func getLocationPath(path: inout IndexPath
)
Show obsolete interfaces (3)
Hide obsolete interfaces
Instance features
var sourceCodeInfoLocation: Google_Protobuf_SourceCodeInfo.Location?
func deprecationComment(commentPrefix: String
) -> String Default implementation to provide the depectation comment.
func protoSourceComments(commentPrefix: String, leadingDetachedPrefix: String?
) -> String Helper to get a source comments as a string.
func protoSourceCommentsWithDeprecation(commentPrefix: String, leadingDetachedPrefix: String?
) -> String Helper to get the protoSourceComments combined with any depectation comment.