public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { ModifiedTimestampMs = input.ReadInt64(); break; } case 16: { DeletedItemKey = input.ReadInt64(); break; } case 26: { if (inventoryItemData_ == null) { inventoryItemData_ = new global::PokemonGoDesktop.API.Proto.InventoryItemData(); } input.ReadMessage(inventoryItemData_); break; } } } }
public void MergeFrom(InventoryItem other) { if (other == null) { return; } if (other.ModifiedTimestampMs != 0L) { ModifiedTimestampMs = other.ModifiedTimestampMs; } if (other.DeletedItemKey != 0L) { DeletedItemKey = other.DeletedItemKey; } if (other.inventoryItemData_ != null) { if (inventoryItemData_ == null) { inventoryItemData_ = new global::PokemonGoDesktop.API.Proto.InventoryItemData(); } InventoryItemData.MergeFrom(other.InventoryItemData); } }