Instance Methodswift-protobuf 1.28.1SwiftProtobufPluginLibrary
lookupFileDescriptor(protoName:)
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.
This declaration has been renamed to DescriptorSet.fileDescriptor(named:).
This declaration is deprecated.
func lookupFileDescriptor(protoName name: String) -> FileDescriptor
This is a legacy api since it requires the file to be found or it aborts. Mainly kept for grpc-swift compatibility.
Other members in extension
Type members
init(proto: Google_Protobuf_FileDescriptorSet
) 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>
The range of Editions that the library can support.
Instance members
let files: [FileDescriptor]
The list of
FileDescriptor
s in this set.func descriptor(named: String
) -> Descriptor? Find the
Descriptor
for a named proto message.func enumDescriptor(named: String
) -> EnumDescriptor? Find the
EnumDescriptor
for a named proto enum.func fileDescriptor(named: 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: String
) -> ServiceDescriptor? Find the
ServiceDescriptor
for a named proto service.
Show obsolete interfaces (3)
Hide obsolete interfaces
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 lookupServiceDescriptor(protoName: String
) -> ServiceDescriptor Find the
ServiceDescriptor
for a named proto service.