public void MergeFrom(AttackGymMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GymId.Length != 0)
     {
         GymId = other.GymId;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     attackActions_.Add(other.attackActions_);
     if (other.lastRetrievedActions_ != null)
     {
         if (lastRetrievedActions_ == null)
         {
             lastRetrievedActions_ = new global::PokemonGoDesktop.API.Proto.BattleAction();
         }
         LastRetrievedActions.MergeFrom(other.LastRetrievedActions);
     }
     if (other.PlayerLatitude != 0D)
     {
         PlayerLatitude = other.PlayerLatitude;
     }
     if (other.PlayerLongitude != 0D)
     {
         PlayerLongitude = other.PlayerLongitude;
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    BattleId = input.ReadString();
                    break;
                }

                case 26: {
                    attackActions_.AddEntriesFrom(input, _repeated_attackActions_codec);
                    break;
                }

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

                case 41: {
                    PlayerLatitude = input.ReadDouble();
                    break;
                }

                case 49: {
                    PlayerLongitude = input.ReadDouble();
                    break;
                }
                }
            }
        }