public void MergeFrom(EvolvePokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.evolvedPokemonData_ != null)
     {
         if (evolvedPokemonData_ == null)
         {
             evolvedPokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         EvolvedPokemonData.MergeFrom(other.EvolvedPokemonData);
     }
     if (other.ExperienceAwarded != 0)
     {
         ExperienceAwarded = other.ExperienceAwarded;
     }
     if (other.CandyAwarded != 0)
     {
         CandyAwarded = other.CandyAwarded;
     }
 }
Exemple #2
0
 public void MergeFrom(DiskEncounterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.captureProbability_ != null)
     {
         if (captureProbability_ == null)
         {
             captureProbability_ = new global::PokemonGoDesktop.API.Proto.CaptureProbability();
         }
         CaptureProbability.MergeFrom(other.CaptureProbability);
     }
 }
Exemple #3
0
 public void MergeFrom(EncounterTutorialCompleteResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.captureAward_ != null)
     {
         if (captureAward_ == null)
         {
             captureAward_ = new global::PokemonGoDesktop.API.Proto.CaptureAward();
         }
         CaptureAward.MergeFrom(other.CaptureAward);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

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

                case 24: {
                    CurrentEnergy = input.ReadInt32();
                    break;
                }
                }
            }
        }
 public void MergeFrom(FortDeployPokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.fortDetails_ != null)
     {
         if (fortDetails_ == null)
         {
             fortDetails_ = new global::PokemonGoDesktop.API.Proto.FortDetailsResponse();
         }
         FortDetails.MergeFrom(other.FortDetails);
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.gymState_ != null)
     {
         if (gymState_ == null)
         {
             gymState_ = new global::PokemonGoDesktop.API.Proto.GymState();
         }
         GymState.MergeFrom(other.GymState);
     }
 }
Exemple #6
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::PokemonGoDesktop.API.Proto.UpgradePokemonResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (upgradedPokemon_ == null)
                    {
                        upgradedPokemon_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(upgradedPokemon_);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 18: {
                    if (trainerPublicProfile_ == null)
                    {
                        trainerPublicProfile_ = new global::PokemonGoDesktop.API.Proto.PlayerPublicProfile();
                    }
                    input.ReadMessage(trainerPublicProfile_);
                    break;
                }
                }
            }
        }
Exemple #8
0
 public void MergeFrom(FortDetailsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.FortId.Length != 0)
     {
         FortId = other.FortId;
     }
     if (other.TeamColor != 0)
     {
         TeamColor = other.TeamColor;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     imageUrls_.Add(other.imageUrls_);
     if (other.Fp != 0)
     {
         Fp = other.Fp;
     }
     if (other.Stamina != 0)
     {
         Stamina = other.Stamina;
     }
     if (other.MaxStamina != 0)
     {
         MaxStamina = other.MaxStamina;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     modifiers_.Add(other.modifiers_);
 }
Exemple #9
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 9: {
                    EncounterId = input.ReadFixed64();
                    break;
                }

                case 16: {
                    LastModifiedTimestampMs = input.ReadInt64();
                    break;
                }

                case 25: {
                    Latitude = input.ReadDouble();
                    break;
                }

                case 33: {
                    Longitude = input.ReadDouble();
                    break;
                }

                case 42: {
                    SpawnPointId = input.ReadString();
                    break;
                }

                case 58: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 88: {
                    TimeTillHiddenMs = input.ReadInt32();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::PokemonGoDesktop.API.Proto.FortSearchResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    itemsAwarded_.AddEntriesFrom(input, _repeated_itemsAwarded_codec);
                    break;
                }

                case 24: {
                    GemsAwarded = input.ReadInt32();
                    break;
                }

                case 34: {
                    if (pokemonDataEgg_ == null)
                    {
                        pokemonDataEgg_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonDataEgg_);
                    break;
                }

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

                case 48: {
                    CooldownCompleteTimestampMs = input.ReadInt64();
                    break;
                }

                case 56: {
                    ChainHackSequenceNumber = input.ReadInt32();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::PokemonGoDesktop.API.Proto.FortDeployPokemonResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (fortDetails_ == null)
                    {
                        fortDetails_ = new global::PokemonGoDesktop.API.Proto.FortDetailsResponse();
                    }
                    input.ReadMessage(fortDetails_);
                    break;
                }

                case 26: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 34: {
                    if (gymState_ == null)
                    {
                        gymState_ = new global::PokemonGoDesktop.API.Proto.GymState();
                    }
                    input.ReadMessage(gymState_);
                    break;
                }
                }
            }
        }
Exemple #12
0
 public void MergeFrom(UpgradePokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.upgradedPokemon_ != null)
     {
         if (upgradedPokemon_ == null)
         {
             upgradedPokemon_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         UpgradedPokemon.MergeFrom(other.UpgradedPokemon);
     }
 }
Exemple #13
0
 public void MergeFrom(WildPokemon other)
 {
     if (other == null)
     {
         return;
     }
     if (other.EncounterId != 0UL)
     {
         EncounterId = other.EncounterId;
     }
     if (other.LastModifiedTimestampMs != 0L)
     {
         LastModifiedTimestampMs = other.LastModifiedTimestampMs;
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.SpawnPointId.Length != 0)
     {
         SpawnPointId = other.SpawnPointId;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.TimeTillHiddenMs != 0)
     {
         TimeTillHiddenMs = other.TimeTillHiddenMs;
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::PokemonGoDesktop.API.Proto.EvolvePokemonResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (evolvedPokemonData_ == null)
                    {
                        evolvedPokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(evolvedPokemonData_);
                    break;
                }

                case 24: {
                    ExperienceAwarded = input.ReadInt32();
                    break;
                }

                case 32: {
                    CandyAwarded = input.ReadInt32();
                    break;
                }
                }
            }
        }
 public void MergeFrom(GymMembership other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.trainerPublicProfile_ != null)
     {
         if (trainerPublicProfile_ == null)
         {
             trainerPublicProfile_ = new global::PokemonGoDesktop.API.Proto.PlayerPublicProfile();
         }
         TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile);
     }
 }
 public void MergeFrom(BattlePokemonInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.CurrentHealth != 0)
     {
         CurrentHealth = other.CurrentHealth;
     }
     if (other.CurrentEnergy != 0)
     {
         CurrentEnergy = other.CurrentEnergy;
     }
 }
Exemple #17
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::PokemonGoDesktop.API.Proto.DiskEncounterResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 26: {
                    if (captureProbability_ == null)
                    {
                        captureProbability_ = new global::PokemonGoDesktop.API.Proto.CaptureProbability();
                    }
                    input.ReadMessage(captureProbability_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(FortSearchResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     itemsAwarded_.Add(other.itemsAwarded_);
     if (other.GemsAwarded != 0)
     {
         GemsAwarded = other.GemsAwarded;
     }
     if (other.pokemonDataEgg_ != null)
     {
         if (pokemonDataEgg_ == null)
         {
             pokemonDataEgg_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonDataEgg.MergeFrom(other.PokemonDataEgg);
     }
     if (other.ExperienceAwarded != 0)
     {
         ExperienceAwarded = other.ExperienceAwarded;
     }
     if (other.CooldownCompleteTimestampMs != 0L)
     {
         CooldownCompleteTimestampMs = other.CooldownCompleteTimestampMs;
     }
     if (other.ChainHackSequenceNumber != 0)
     {
         ChainHackSequenceNumber = other.ChainHackSequenceNumber;
     }
 }
 public void MergeFrom(InventoryItemData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.item_ != null)
     {
         if (item_ == null)
         {
             item_ = new global::PokemonGoDesktop.API.Proto.ItemData();
         }
         Item.MergeFrom(other.Item);
     }
     if (other.pokedexEntry_ != null)
     {
         if (pokedexEntry_ == null)
         {
             pokedexEntry_ = new global::PokemonGoDesktop.API.Proto.PokedexEntry();
         }
         PokedexEntry.MergeFrom(other.PokedexEntry);
     }
     if (other.playerStats_ != null)
     {
         if (playerStats_ == null)
         {
             playerStats_ = new global::PokemonGoDesktop.API.Proto.PlayerStats();
         }
         PlayerStats.MergeFrom(other.PlayerStats);
     }
     if (other.playerCurrency_ != null)
     {
         if (playerCurrency_ == null)
         {
             playerCurrency_ = new global::PokemonGoDesktop.API.Proto.PlayerCurrency();
         }
         PlayerCurrency.MergeFrom(other.PlayerCurrency);
     }
     if (other.playerCamera_ != null)
     {
         if (playerCamera_ == null)
         {
             playerCamera_ = new global::PokemonGoDesktop.API.Proto.PlayerCamera();
         }
         PlayerCamera.MergeFrom(other.PlayerCamera);
     }
     if (other.inventoryUpgrades_ != null)
     {
         if (inventoryUpgrades_ == null)
         {
             inventoryUpgrades_ = new global::PokemonGoDesktop.API.Proto.InventoryUpgrades();
         }
         InventoryUpgrades.MergeFrom(other.InventoryUpgrades);
     }
     if (other.appliedItems_ != null)
     {
         if (appliedItems_ == null)
         {
             appliedItems_ = new global::PokemonGoDesktop.API.Proto.AppliedItems();
         }
         AppliedItems.MergeFrom(other.AppliedItems);
     }
     if (other.eggIncubators_ != null)
     {
         if (eggIncubators_ == null)
         {
             eggIncubators_ = new global::PokemonGoDesktop.API.Proto.EggIncubators();
         }
         EggIncubators.MergeFrom(other.EggIncubators);
     }
     if (other.pokemonFamily_ != null)
     {
         if (pokemonFamily_ == null)
         {
             pokemonFamily_ = new global::PokemonGoDesktop.API.Proto.PokemonFamily();
         }
         PokemonFamily.MergeFrom(other.PokemonFamily);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 18: {
                    if (item_ == null)
                    {
                        item_ = new global::PokemonGoDesktop.API.Proto.ItemData();
                    }
                    input.ReadMessage(item_);
                    break;
                }

                case 26: {
                    if (pokedexEntry_ == null)
                    {
                        pokedexEntry_ = new global::PokemonGoDesktop.API.Proto.PokedexEntry();
                    }
                    input.ReadMessage(pokedexEntry_);
                    break;
                }

                case 34: {
                    if (playerStats_ == null)
                    {
                        playerStats_ = new global::PokemonGoDesktop.API.Proto.PlayerStats();
                    }
                    input.ReadMessage(playerStats_);
                    break;
                }

                case 42: {
                    if (playerCurrency_ == null)
                    {
                        playerCurrency_ = new global::PokemonGoDesktop.API.Proto.PlayerCurrency();
                    }
                    input.ReadMessage(playerCurrency_);
                    break;
                }

                case 50: {
                    if (playerCamera_ == null)
                    {
                        playerCamera_ = new global::PokemonGoDesktop.API.Proto.PlayerCamera();
                    }
                    input.ReadMessage(playerCamera_);
                    break;
                }

                case 58: {
                    if (inventoryUpgrades_ == null)
                    {
                        inventoryUpgrades_ = new global::PokemonGoDesktop.API.Proto.InventoryUpgrades();
                    }
                    input.ReadMessage(inventoryUpgrades_);
                    break;
                }

                case 66: {
                    if (appliedItems_ == null)
                    {
                        appliedItems_ = new global::PokemonGoDesktop.API.Proto.AppliedItems();
                    }
                    input.ReadMessage(appliedItems_);
                    break;
                }

                case 74: {
                    if (eggIncubators_ == null)
                    {
                        eggIncubators_ = new global::PokemonGoDesktop.API.Proto.EggIncubators();
                    }
                    input.ReadMessage(eggIncubators_);
                    break;
                }

                case 82: {
                    if (pokemonFamily_ == null)
                    {
                        pokemonFamily_ = new global::PokemonGoDesktop.API.Proto.PokemonFamily();
                    }
                    input.ReadMessage(pokemonFamily_);
                    break;
                }
                }
            }
        }
Exemple #21
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    FortId = input.ReadString();
                    break;
                }

                case 16: {
                    teamColor_ = (global::PokemonGoDesktop.API.Proto.TeamColor)input.ReadEnum();
                    break;
                }

                case 26: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 34: {
                    Name = input.ReadString();
                    break;
                }

                case 42: {
                    imageUrls_.AddEntriesFrom(input, _repeated_imageUrls_codec);
                    break;
                }

                case 48: {
                    Fp = input.ReadInt32();
                    break;
                }

                case 56: {
                    Stamina = input.ReadInt32();
                    break;
                }

                case 64: {
                    MaxStamina = input.ReadInt32();
                    break;
                }

                case 72: {
                    type_ = (global::PokemonGoDesktop.API.Proto.FortType)input.ReadEnum();
                    break;
                }

                case 81: {
                    Latitude = input.ReadDouble();
                    break;
                }

                case 89: {
                    Longitude = input.ReadDouble();
                    break;
                }

                case 98: {
                    Description = input.ReadString();
                    break;
                }

                case 106: {
                    modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
                    break;
                }
                }
            }
        }