writeToBuffer method
Serialize the message as the protobuf binary format.
Unknown field data, data for which there is no metadata for the associated field, will only be included if this message was deserialized from the same wire format.
Implementation
Uint8List writeToBuffer() {
final out = CodedBufferWriter();
writeToCodedBufferWriter(out);
return out.toBuffer();
}