traverse(visitor:)
struct.pb.swift:244func traverse<V>(visitor: inout V) throws where V : Visitor
func traverse<V>(visitor: inout V) throws where V : Visitor
s13SwiftProtobuf07Google_B7_StructV8traverse7visitoryxz_tKAA7VisitorRzlF
What are these?6SJOK
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.
protocol Visitor
This is the key interface used by the generated traverse()
methods used for serialization. It is implemented by each serialization protocol: Protobuf Binary, Protobuf Text, JSON, and the Hash encoder.
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 _protobuf_nameMap: _NameMap
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
typealias Key = String
typealias Value = Google_Protobuf_Value