enumDescriptor(named:)
Find the EnumDescriptor
for a named proto enum.
func enumDescriptor(named fullName: String) -> EnumDescriptor?
Find the EnumDescriptor
for a named proto enum.
func enumDescriptor(named fullName: String) -> EnumDescriptor?
s26SwiftProtobufPluginLibrary13DescriptorSetC04enumE05namedAA04EnumE0CSgSS_tF
What are these?64BT
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
final class DescriptorSet
The front interface for building/getting descriptors. The objects vended from the here are different from the raw Google_Protobuf_*Proto
types in that they have all the cross object references resolved or wired up, making for an easier to use object model.
@frozen struct String
A Unicode string value that is a collection of characters.
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.
convenience init(proto: Google_Protobuf_FileDescriptorSet)
convenience init(protos: [Google_Protobuf_FileDescriptorProto])
Construct out of a ordered list of Google_Protobuf_FileDescriptorProto
s likely created by protoc.
init(protos: [Google_Protobuf_FileDescriptorProto], featureSetDefaults: Google_Protobuf_FeatureSetDefaults, featureExtensions: [any AnyMessageExtension] = [])
Construct out of a ordered list of Google_Protobuf_FileDescriptorProto
s likely created by protoc. Since .proto files can import other .proto files, the imports have to be listed before the things that use them so the graph can be reconstructed.
static var bundledEditionsSupport: ClosedRange<Google_Protobuf_Edition> { get }
The range of Editions that the library can support.
let files: [FileDescriptor]
The list of FileDescriptor
s in this set.
func descriptor(named fullName: String) -> Descriptor?
Find the Descriptor
for a named proto message.
func fileDescriptor(named name: String) -> FileDescriptor?
Find a specific file. The names for files are what was captured in the Google_Protobuf_FileDescriptorProto
when it was created, protoc uses the path name for how the file was found.
func serviceDescriptor(named fullName: String) -> ServiceDescriptor?
Find the ServiceDescriptor
for a named proto service.
func lookupDescriptor(protoName: String) -> Descriptor
Find the Descriptor
for a named proto message.
func lookupEnumDescriptor(protoName: String) -> EnumDescriptor
Find the EnumDescriptor
for a named proto enum.
func lookupFileDescriptor(protoName name: String) -> FileDescriptor
Lookup a specific file. The names for files are what was captured in the Google_Protobuf_FileDescriptorProto
when it was created, protoc uses the path name for how the file was found.
func lookupServiceDescriptor(protoName: String) -> ServiceDescriptor
Find the ServiceDescriptor
for a named proto service.