public virtual void WriteToStreamDelta(Stream stream, PlantEntity previous)
 {
     if (previous == null)
     {
         PlantEntity.Serialize(stream, this);
         return;
     }
     PlantEntity.SerializeDelta(stream, this, previous);
 }
 public static byte[] SerializeToBytes(PlantEntity instance)
 {
     byte[] array;
     using (MemoryStream memoryStream = new MemoryStream())
     {
         PlantEntity.Serialize(memoryStream, instance);
         array = memoryStream.ToArray();
     }
     return(array);
 }
 public virtual void WriteToStream(Stream stream)
 {
     PlantEntity.Serialize(stream, this);
 }
 public void ToProto(Stream stream)
 {
     PlantEntity.Serialize(stream, this);
 }