_protobuf_nameMap
field_mask.pb.swift:271static let _protobuf_nameMap: _NameMap
static let _protobuf_nameMap: _NameMap
s13SwiftProtobuf07Google_B10_FieldMaskV17_protobuf_nameMapAA05_NameH0VvpZ
What are these?6FFN5
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_FieldMask
FieldMask
represents a set of symbolic field paths, for example:
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<M>(allFieldsOf messageType: M.Type) where M : Message, M : _ProtoNameProviding
Initiates a field mask with all fields of the message type.
init<M>(fieldNumbers: [Int], of messageType: M.Type) throws where M : Message, M : _ProtoNameProviding
Initiates a field mask from some particular field numbers of a message
init?(jsonPaths: String...)
Creates a new Google_Protobuf_FieldMask
from the given paths.
init(protoPaths: String...)
Creates a new Google_Protobuf_FieldMask
from the given paths.
init(protoPaths: [String])
Creates a new Google_Protobuf_FieldMask
from the given array of paths.
static let protoMessageName: String
var canonical: Google_Protobuf_FieldMask { get }
Converts a FieldMask to the canonical form. It will:
var paths: [String]
The set of field mask paths.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_FieldMask, rhs: Google_Protobuf_FieldMask) -> Bool
mutating func addPath<M>(_ path: String, of messageType: M.Type) throws where M : Message
Adds a path to FieldMask after checking whether the given path is valid. This method check-fails if the path is not a valid path for Message type.
func contains(_ path: String) -> Bool
Returns true if path is covered by the given FieldMask. Note that path “foo.bar” covers all paths like “foo.bar.baz”, “foo.bar.quz.x”, etc. Also note that parent paths are not covered by explicit child path, i.e. “foo.bar” does NOT cover “foo”, even if “bar” is the only child.
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
func intersect(_ mask: Google_Protobuf_FieldMask) -> Google_Protobuf_FieldMask
Creates an intersection of two FieldMasks.
func isValid<M>(for messageType: M.Type) -> Bool where M : Message, M : _ProtoNameProviding
Checks whether the given FieldMask is valid for type M.
func subtract(_ mask: Google_Protobuf_FieldMask) -> Google_Protobuf_FieldMask
Creates a FieldMasks with paths of the original FieldMask that does not included in mask.
func traverse<V>(visitor: inout V) throws where V : Visitor
func union(_ mask: Google_Protobuf_FieldMask) -> Google_Protobuf_FieldMask
Creates an union of two FieldMasks.
struct MergeOptions
Defines available options for merging two messages.