MergeOptions
Defines available options for merging two messages.
struct MergeOptions
Defines available options for merging two messages.
struct MergeOptions
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:
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 _protobuf_nameMap: _NameMap
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.
init()
var replaceRepeatedFields: Bool
The default merging behavior will append entries from the source repeated field to the destination repeated field. If you only want to keep the entries from the source repeated field, set this flag to true.