Skip to main content
←API Reference ←NSDK ←Nsdk_Vps_BevLocalizationUpdate

serializedData


Declaration​

func serializedData(partial: Bool = false) throws -> Data

Summary​

Returns a Data instance containing the Protocol Buffer binary
format serialization of the message.

Returns​

A Data instance containing the binary serialization of the message.

Throws​

  • BinaryEncodingError if encoding fails.

Parameters​

NameTypeSummary
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi before encoding to verify that all required
fields are present. If any are missing, this method throws
BinaryEncodingError/missingRequiredFields.

Overload​

func serializedData(partial: Bool = false, options: BinaryEncodingOptions = BinaryEncodingOptions()) throws -> Data

Summary​

Returns a Data instance containing the Protocol Buffer binary
format serialization of the message.

Returns​

A Data instance containing the binary serialization of the message.

Throws​

  • BinaryEncodingError if encoding fails.

Parameters​

NameTypeSummary
partialBool
If false (the default), this method will check
Message/isInitialized-6abgi before encoding to verify that all required
fields are present. If any are missing, this method throws
BinaryEncodingError/missingRequiredFields.