public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    Amount = input.ReadInt32();
                    break;
                }

                case 16: {
                    Weight = input.ReadInt32();
                    break;
                }

                case 24: {
                    units_ = (global::Wobu.Everything.UnitsMassType)input.ReadEnum();
                    break;
                }
                }
            }
        }
 public void MergeFrom(Rep other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Amount != 0)
     {
         Amount = other.Amount;
     }
     if (other.Weight != 0)
     {
         Weight = other.Weight;
     }
     if (other.Units != 0)
     {
         Units = other.Units;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }