Set `SetSingleLineMode` to `true` to embed `Method` textprotos in a single line.
Set `SetSingleLineMode` to `true` to embed `Method` textprotos in a single line.

Previous implementation manually removed `\n` symbols, which resulted in some verbosity where extra whitespaces are included.
Use `SetSingleLineMode` API to achieve the same, but resulting in a more compact string representation.
