Initializerswift-protobuf 1.29.0SwiftProtobuf
init
Creates a new empty field/enum-case name/number mapping.
init()
Creates a new empty field/enum-case name/number mapping.
init()
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct _NameMap
An immutable bidirectional mapping between field/enum-case names and numbers, used to record field names for text-based serialization (JSON and text). These maps are lazily instantiated for each message as needed, so there is no run-time overhead for users who do not use text-based serialization formats.
init(dictionaryLiteral elements: (Int, NameDescription)...)
Build the bidirectional maps between numbers and proto/JSON names.
enum NameDescription
A description of the names for a particular field or enum case. The different forms here let us minimize the amount of string data that we store in the binary.