_protobuf_nameMap
struct.pb.swift:228static let _protobuf_nameMap: _NameMap
static let _protobuf_nameMap: _NameMap
s13SwiftProtobuf07Google_B7_StructV17_protobuf_nameMapAA05_NameG0VvpZ
What are these?2O03H
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_Struct
Struct
represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, Struct
might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language.
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()
init(dictionaryLiteral: (String, Google_Protobuf_Value)...)
Creates a new Google_Protobuf_Struct
from a dictionary of string keys to values of type Google_Protobuf_Value
.
init(fields: [String : Google_Protobuf_Value])
Creates a new Google_Protobuf_Struct
from a dictionary of string keys to values of type Google_Protobuf_Value
.
static let protoMessageName: String
var fields: Dictionary<String, Google_Protobuf_Value>
Unordered map of dynamically typed values.
var unknownFields: UnknownStorage
subscript(key: String) -> Google_Protobuf_Value? { get set }
Accesses the Google_Protobuf_Value
with the given key for reading and writing.
static func == (lhs: Google_Protobuf_Struct, rhs: Google_Protobuf_Struct) -> Bool
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
func traverse<V>(visitor: inout V) throws where V : Visitor
typealias Key = String
typealias Value = Google_Protobuf_Value