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: {
                    itemId_ = (global::POGOProtos.Inventory.Item.ItemId)input.ReadEnum();
                    break;
                }

                case 16: {
                    itemType_ = (global::POGOProtos.Inventory.Item.ItemType)input.ReadEnum();
                    break;
                }

                case 24: {
                    category_ = (global::POGOProtos.Enums.ItemCategory)input.ReadEnum();
                    break;
                }

                case 37: {
                    DropFreq = input.ReadFloat();
                    break;
                }

                case 40: {
                    DropTrainerLevel = input.ReadInt32();
                    break;
                }

                case 50: {
                    if (pokeball_ == null)
                    {
                        pokeball_ = new global::POGOProtos.Settings.Master.Item.PokeballAttributes();
                    }
                    input.ReadMessage(pokeball_);
                    break;
                }

                case 58: {
                    if (potion_ == null)
                    {
                        potion_ = new global::POGOProtos.Settings.Master.Item.PotionAttributes();
                    }
                    input.ReadMessage(potion_);
                    break;
                }

                case 66: {
                    if (revive_ == null)
                    {
                        revive_ = new global::POGOProtos.Settings.Master.Item.ReviveAttributes();
                    }
                    input.ReadMessage(revive_);
                    break;
                }

                case 74: {
                    if (battle_ == null)
                    {
                        battle_ = new global::POGOProtos.Settings.Master.Item.BattleAttributes();
                    }
                    input.ReadMessage(battle_);
                    break;
                }

                case 82: {
                    if (food_ == null)
                    {
                        food_ = new global::POGOProtos.Settings.Master.Item.FoodAttributes();
                    }
                    input.ReadMessage(food_);
                    break;
                }

                case 90: {
                    if (inventoryUpgrade_ == null)
                    {
                        inventoryUpgrade_ = new global::POGOProtos.Settings.Master.Item.InventoryUpgradeAttributes();
                    }
                    input.ReadMessage(inventoryUpgrade_);
                    break;
                }

                case 98: {
                    if (xpBoost_ == null)
                    {
                        xpBoost_ = new global::POGOProtos.Settings.Master.Item.ExperienceBoostAttributes();
                    }
                    input.ReadMessage(xpBoost_);
                    break;
                }

                case 106: {
                    if (incense_ == null)
                    {
                        incense_ = new global::POGOProtos.Settings.Master.Item.IncenseAttributes();
                    }
                    input.ReadMessage(incense_);
                    break;
                }

                case 114: {
                    if (eggIncubator_ == null)
                    {
                        eggIncubator_ = new global::POGOProtos.Settings.Master.Item.EggIncubatorAttributes();
                    }
                    input.ReadMessage(eggIncubator_);
                    break;
                }

                case 122: {
                    if (fortModifier_ == null)
                    {
                        fortModifier_ = new global::POGOProtos.Settings.Master.Item.FortModifierAttributes();
                    }
                    input.ReadMessage(fortModifier_);
                    break;
                }

                case 130: {
                    if (stardustBoost_ == null)
                    {
                        stardustBoost_ = new global::POGOProtos.Settings.Master.Item.StardustBoostAttributes();
                    }
                    input.ReadMessage(stardustBoost_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(ItemSettings other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ItemId != 0)
     {
         ItemId = other.ItemId;
     }
     if (other.ItemType != 0)
     {
         ItemType = other.ItemType;
     }
     if (other.Category != 0)
     {
         Category = other.Category;
     }
     if (other.DropFreq != 0F)
     {
         DropFreq = other.DropFreq;
     }
     if (other.DropTrainerLevel != 0)
     {
         DropTrainerLevel = other.DropTrainerLevel;
     }
     if (other.pokeball_ != null)
     {
         if (pokeball_ == null)
         {
             pokeball_ = new global::POGOProtos.Settings.Master.Item.PokeballAttributes();
         }
         Pokeball.MergeFrom(other.Pokeball);
     }
     if (other.potion_ != null)
     {
         if (potion_ == null)
         {
             potion_ = new global::POGOProtos.Settings.Master.Item.PotionAttributes();
         }
         Potion.MergeFrom(other.Potion);
     }
     if (other.revive_ != null)
     {
         if (revive_ == null)
         {
             revive_ = new global::POGOProtos.Settings.Master.Item.ReviveAttributes();
         }
         Revive.MergeFrom(other.Revive);
     }
     if (other.battle_ != null)
     {
         if (battle_ == null)
         {
             battle_ = new global::POGOProtos.Settings.Master.Item.BattleAttributes();
         }
         Battle.MergeFrom(other.Battle);
     }
     if (other.food_ != null)
     {
         if (food_ == null)
         {
             food_ = new global::POGOProtos.Settings.Master.Item.FoodAttributes();
         }
         Food.MergeFrom(other.Food);
     }
     if (other.inventoryUpgrade_ != null)
     {
         if (inventoryUpgrade_ == null)
         {
             inventoryUpgrade_ = new global::POGOProtos.Settings.Master.Item.InventoryUpgradeAttributes();
         }
         InventoryUpgrade.MergeFrom(other.InventoryUpgrade);
     }
     if (other.xpBoost_ != null)
     {
         if (xpBoost_ == null)
         {
             xpBoost_ = new global::POGOProtos.Settings.Master.Item.ExperienceBoostAttributes();
         }
         XpBoost.MergeFrom(other.XpBoost);
     }
     if (other.incense_ != null)
     {
         if (incense_ == null)
         {
             incense_ = new global::POGOProtos.Settings.Master.Item.IncenseAttributes();
         }
         Incense.MergeFrom(other.Incense);
     }
     if (other.eggIncubator_ != null)
     {
         if (eggIncubator_ == null)
         {
             eggIncubator_ = new global::POGOProtos.Settings.Master.Item.EggIncubatorAttributes();
         }
         EggIncubator.MergeFrom(other.EggIncubator);
     }
     if (other.fortModifier_ != null)
     {
         if (fortModifier_ == null)
         {
             fortModifier_ = new global::POGOProtos.Settings.Master.Item.FortModifierAttributes();
         }
         FortModifier.MergeFrom(other.FortModifier);
     }
     if (other.stardustBoost_ != null)
     {
         if (stardustBoost_ == null)
         {
             stardustBoost_ = new global::POGOProtos.Settings.Master.Item.StardustBoostAttributes();
         }
         StardustBoost.MergeFrom(other.StardustBoost);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }