public byte[] ToProtoBytes()
 {
     return(PlantEntity.SerializeToBytes(this));
 }
 public static void SerializeLengthDelimited(Stream stream, PlantEntity instance)
 {
     byte[] bytes = PlantEntity.SerializeToBytes(instance);
     ProtocolParser.WriteUInt32(stream, (uint)bytes.Length);
     stream.Write(bytes, 0, (int)bytes.Length);
 }