OneofDescriptor
Describes a oneof defined in a message type.
Descriptor.swift:922final class OneofDescriptor
Citizens in SwiftProtobufPluginLibrary
Conformances
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.
Instance members
var containingType: Descriptor!
The Descriptor of the message that defines this oneof.
let features: Google_Protobuf_FeatureSet
The resolved features for this Oneof.
var fields: [FieldDescriptor]
The members of this oneof, in the order in which they were declared in the .proto file.
var file: FileDescriptor!
The .proto file in which this oneof type was defined.
var fullName: String
Fully-qualified name of the oneof.
let index: Int
Index of this oneof within the message’s oneofs.
let name: String
Name of this oneof.
let options: Google_Protobuf_OneofOptions
The
Google_Protobuf_OneofOptions
set on this oneof.func getLocationPath(path: inout IndexPath
)
Show obsolete interfaces (2)
Hide obsolete interfaces
Instance features
var sourceCodeInfoLocation: Google_Protobuf_SourceCodeInfo.Location?
func protoSourceComments(commentPrefix: String, leadingDetachedPrefix: String?
) -> String Helper to get a source comments as a string.