Initializerswift-protobuf 1.29.0SwiftProtobuf
init(dictionaryLiteral:)
Build the bidirectional maps between numbers and proto/JSON names.
init(dictionaryLiteral elements: (Int, NameDescription)...)
Build the bidirectional maps between numbers and proto/JSON names.
init(dictionaryLiteral elements: (Int, NameDescription)...)
s13SwiftProtobuf8_NameMapV17dictionaryLiteralACSi_AC0C11DescriptionOtd_tcfc
What are these?6GBQY
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.
@frozen struct Int
A signed integer value type.
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.
init()
Creates a new empty field/enum-case name/number mapping.