textFormatString(options:)

Returns a string containing the Protocol Buffer text format serialization of the message.

Message+TextFormatAdditions.swift:42
func textFormatString(options: TextFormatEncodingOptions) -> String

Parameters

options

The TextFormatEncodingOptions to use.

Returns

A string containing the text format serialization of the message.

Unlike binary encoding, presence of required fields is not enforced when serializing to text format.