textFormatString
Declaration
func textFormatString() -> String
Summary
Returns
A string containing the text format serialization of the
message.
Overload
func textFormatString(options: TextFormatEncodingOptions) -> String
Summary
Returns a string containing the Protocol Buffer text format serialization
of the message.
Unlike binary encoding, presence of required fields is not enforced when
serializing to text format.
Returns
A string containing the text format serialization of the message.
Parameters
| Name | Type | Summary |
|---|---|---|
| options | TextFormatEncodingOptions | The TextFormatEncodingOptions to use. |
Returns a string containing the Protocol Buffer text format serialization
of the message.
Unlike binary encoding, presence of required fields is not enforced when
serializing to text format.