merge
Declaration
Summary
Parameters
| Name | Type | Summary |
|---|---|---|
| bytes | Bytes | - |
| extensions | (any ExtensionMap)? | An ExtensionMap used to look up and decode anyextensions in this message or messages nested within this message's fields. |
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi after decoding to verify that all requiredfields are present. If any are missing, this method throws BinaryDecodingError/missingRequiredFields. |
| options | BinaryDecodingOptions | The BinaryDecodingOptions to use. |
Overload 1
Summary
Updates the message by decoding the given SwiftProtobufContiguousBytes value
containing a serialized message in Protocol Buffer binary format into the
receiver.
Throws
BinaryDecodingErrorif decoding fails.
Note: If this method throws an error, the message may still have been
Parameters
| Name | Type | Summary |
|---|---|---|
| bytes | Bytes | - |
| extensions | (any ExtensionMap)? | An ExtensionMap used to look up and decode anyextensions in this message or messages nested within this message's fields. |
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi after decoding to verify that all requiredfields are present. If any are missing, this method throws BinaryDecodingError/missingRequiredFields. |
| options | BinaryDecodingOptions | The BinaryDecodingOptions to use. |
Overload 2
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
BinaryDecodingErrorif decoding fails.
Note: If this method throws an error, the message may still have been
Parameters
| Name | Type | Summary |
|---|---|---|
| bytes | Bytes | - |
| extensions | (any ExtensionMap)? | An ExtensionMap used to look up and decode anyextensions in this message or messages nested within this message's fields. |
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi after decoding to verify that all requiredfields are present. If any are missing, this method throws BinaryDecodingError/missingRequiredFields. |
| options | BinaryDecodingOptions | The BinaryDecodingOptions to use. |
Overload 3
Summary
Updates the message by decoding the given Foundation/ContiguousBytes value
containing a serialized message in Protocol Buffer binary format into the
receiver.
Throws
SwiftProtobufErrorif decoding fails.
Note: If this method throws an error, the message may still have been
Parameters
| Name | Type | Summary |
|---|---|---|
| bytes | Bytes | - |
| extensions | (any ExtensionMap)? | An ExtensionMap used to look up and decode anyextensions in this message or messages nested within this message's fields. |
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi after decoding to verify that all requiredfields are present. If any are missing, this method throws BinaryDecodingError/missingRequiredFields. |
| options | BinaryDecodingOptions | The BinaryDecodingOptions to use. |
Overload 4
Summary
Updates the message by decoding the given Foundation/ContiguousBytes value
containing a serialized message in Protocol Buffer binary format into the
receiver.
Throws
SwiftProtobufErrorif decoding fails.
Note: If this method throws an error, the message may still have been
Parameters
| Name | Type | Summary |
|---|---|---|
| bytes | Bytes | - |
| extensions | (any ExtensionMap)? | An ExtensionMap used to look up and decode anyextensions in this message or messages nested within this message's fields. |
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi after decoding to verify that all requiredfields are present. If any are missing, this method throws BinaryDecodingError/missingRequiredFields. |
| options | BinaryDecodingOptions | The BinaryDecodingOptions to use. |
Overload 5
Summary
Updates the message by decoding the given Data value
containing a serialized message in Protocol Buffer binary format into the
receiver.
Throws
BinaryDecodingErrorif decoding fails.
Note: If this method throws an error, the message may still have been
Parameters
| Name | Type | Summary |
|---|---|---|
| bytes | Bytes | - |
| extensions | (any ExtensionMap)? | An ExtensionMap used to look up and decode anyextensions in this message or messages nested within this message's fields. |
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi after decoding to verify that all requiredfields are present. If any are missing, this method throws BinaryDecodingError/missingRequiredFields. |
| options | BinaryDecodingOptions | The BinaryDecodingOptions to use. |
Merges fields specified in a FieldMask into another message.