fields
Unordered map of dynamically typed values.
var fields: Dictionary<String, Google_Protobuf_Value>
Unordered map of dynamically typed values.
var fields: Dictionary<String, Google_Protobuf_Value>
s13SwiftProtobuf07Google_B7_StructV6fieldsSDySSAA0c1_B6_ValueVGvp
What are these?2ZD5
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.
@frozen struct Dictionary<Key, Value> where Key : Hashable
A collection whose elements are key-value pairs.
@frozen struct String
A Unicode string value that is a collection of characters.
struct Google_Protobuf_Value
Value
represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.
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 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