Skip to main content
←API Reference ←NSDK ←Nsdk_Vps_MapPoint2D

merge


Declaration​

mutating func merge(from source: Self, fieldMask: Google_Protobuf_FieldMask, mergeOption: Google_Protobuf_FieldMask.MergeOptions = .init()) throws

Summary​

Merges fields specified in a FieldMask into another message.

Parameters​

NameTypeSummary
bytesBytes
-
extensions (any ExtensionMap)?
An ExtensionMap used to look up and decode any
extensions in this message or messages nested within this message's
fields.
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi after decoding to verify that all required
fields are present. If any are missing, this method throws
BinaryDecodingError/missingRequiredFields.
optionsBinaryDecodingOptions
The BinaryDecodingOptions to use.

Overload 1​

mutating func merge<Bytes>(serializedBytes bytes: Bytes, extensions: (any ExtensionMap)? = nil, partial: Bool = false, options: BinaryDecodingOptions = BinaryDecodingOptions()) throws where Bytes : SwiftProtobufContiguousBytes

Summary​

Updates the message by decoding the given SwiftProtobufContiguousBytes value
containing a serialized message in Protocol Buffer binary format into the
receiver.

Throws​

  • BinaryDecodingError if decoding fails.
Notice

Note: If this method throws an error, the message may still have been

Parameters​

NameTypeSummary
bytesBytes
-
extensions (any ExtensionMap)?
An ExtensionMap used to look up and decode any
extensions in this message or messages nested within this message's
fields.
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi after decoding to verify that all required
fields are present. If any are missing, this method throws
BinaryDecodingError/missingRequiredFields.
optionsBinaryDecodingOptions
The BinaryDecodingOptions to use.

Overload 2​

mutating func merge(serializedBytes bytes: RawSpan, extensions: (any ExtensionMap)? = nil, partial: Bool = false, options: BinaryDecodingOptions = BinaryDecodingOptions()) throws

Summary​

Updates the message by decoding the bytes provided by a RawSpan containing
a serialized message in Protocol Buffer binary format into the receiver.

Throws​

  • BinaryDecodingError if decoding fails.
Notice

Note: If this method throws an error, the message may still have been

Parameters​

NameTypeSummary
bytesBytes
-
extensions (any ExtensionMap)?
An ExtensionMap used to look up and decode any
extensions in this message or messages nested within this message's
fields.
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi after decoding to verify that all required
fields are present. If any are missing, this method throws
BinaryDecodingError/missingRequiredFields.
optionsBinaryDecodingOptions
The BinaryDecodingOptions to use.

Overload 3​

mutating func merge<Bytes>(contiguousBytes bytes: Bytes, extensions: (any ExtensionMap)? = nil, partial: Bool = false, options: BinaryDecodingOptions = BinaryDecodingOptions()) throws where Bytes : ContiguousBytes

Summary​

Updates the message by decoding the given Foundation/ContiguousBytes value
containing a serialized message in Protocol Buffer binary format into the
receiver.

Throws​

  • SwiftProtobufError if decoding fails.
Notice

Note: If this method throws an error, the message may still have been

Parameters​

NameTypeSummary
bytesBytes
-
extensions (any ExtensionMap)?
An ExtensionMap used to look up and decode any
extensions in this message or messages nested within this message's
fields.
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi after decoding to verify that all required
fields are present. If any are missing, this method throws
BinaryDecodingError/missingRequiredFields.
optionsBinaryDecodingOptions
The BinaryDecodingOptions to use.

Overload 4​

mutating func merge<Bytes>(serializedBytes bytes: Bytes, extensions: (any ExtensionMap)? = nil, partial: Bool = false, options: BinaryDecodingOptions = BinaryDecodingOptions()) throws where Bytes : ContiguousBytes

Summary​

Updates the message by decoding the given Foundation/ContiguousBytes value
containing a serialized message in Protocol Buffer binary format into the
receiver.

Throws​

  • SwiftProtobufError if decoding fails.
Notice

Note: If this method throws an error, the message may still have been

Parameters​

NameTypeSummary
bytesBytes
-
extensions (any ExtensionMap)?
An ExtensionMap used to look up and decode any
extensions in this message or messages nested within this message's
fields.
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi after decoding to verify that all required
fields are present. If any are missing, this method throws
BinaryDecodingError/missingRequiredFields.
optionsBinaryDecodingOptions
The BinaryDecodingOptions to use.

Overload 5​

mutating func merge(serializedData data: Data, extensions: (any ExtensionMap)? = nil, partial: Bool = false, options: BinaryDecodingOptions = BinaryDecodingOptions()) throws

Summary​

Updates the message by decoding the given Data value
containing a serialized message in Protocol Buffer binary format into the
receiver.

Throws​

  • BinaryDecodingError if decoding fails.
Notice

Note: If this method throws an error, the message may still have been

Parameters​

NameTypeSummary
bytesBytes
-
extensions (any ExtensionMap)?
An ExtensionMap used to look up and decode any
extensions in this message or messages nested within this message's
fields.
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi after decoding to verify that all required
fields are present. If any are missing, this method throws
BinaryDecodingError/missingRequiredFields.
optionsBinaryDecodingOptions
The BinaryDecodingOptions to use.