toOneLiner
Get a compact single-line string representation for JSON/API serialization.
Converts the proto message to a single-line format by replacing newlines. Useful for compact logging and API payloads.
Return
Single-line string representation
Parameters
message
The message to format