Instance Methodswift-protobuf 1.31.0SwiftProtobuf
fieldNumberForProto(messageType:protoFieldName:)
SimpleExtensionMap.swift:47func fieldNumberForProto(messageType: any Message.Type, protoFieldName: String) -> Int? func fieldNumberForProto(messageType: any Message.Type, protoFieldName: String) -> Int? s13SwiftProtobuf18SimpleExtensionMapV19fieldNumberForProto11messageType14protoFieldNameSiSgAA7Message_pXp_SStF What are these?3VYOAimport SwiftProtobufSupport library for Swift code generated by protoc-gen-swift.
struct SimpleExtensionMapA default implementation of ExtensionMap.
@preconcurrency protocol Message : CustomDebugStringConvertible, SendableThe protocol which all generated protobuf messages implement. Message is the protocol type you should use whenever you need an argument or variable which holds “some message”.
@frozen struct StringA Unicode string value that is a collection of characters.
@frozen struct IntA signed integer value type.
init() init(_ others: SimpleExtensionMap...) init(arrayLiteral: any SimpleExtensionMap.Element...) var debugDescription: String { get }var fields: [Int : [any AnyMessageExtension]]subscript(messageType: any Message.Type, fieldNumber: Int) -> (any AnyMessageExtension)? { get } mutating func formUnion(_ other: SimpleExtensionMap) mutating func insert(_ newValue: any SimpleExtensionMap.Element) mutating func insert(contentsOf: [any SimpleExtensionMap.Element]) func union(_ other: SimpleExtensionMap) -> SimpleExtensionMap typealias Element = AnyMessageExtension