public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (items_ != null)
            {
                hash ^= Items.GetHashCode();
            }
            if (eggPokemon_ != null)
            {
                hash ^= EggPokemon.GetHashCode();
            }
            if (updatedFriendshipData_ != null)
            {
                hash ^= UpdatedFriendshipData.GetHashCode();
            }
            if (friendProfile_ != null)
            {
                hash ^= FriendProfile.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(OpenGiftResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.items_ != null)
     {
         if (items_ == null)
         {
             items_ = new global::POGOProtos.Inventory.Loot();
         }
         Items.MergeFrom(other.Items);
     }
     if (other.eggPokemon_ != null)
     {
         if (eggPokemon_ == null)
         {
             eggPokemon_ = new global::POGOProtos.Data.PokemonData();
         }
         EggPokemon.MergeFrom(other.EggPokemon);
     }
     if (other.updatedFriendshipData_ != null)
     {
         if (updatedFriendshipData_ == null)
         {
             updatedFriendshipData_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
         }
         UpdatedFriendshipData.MergeFrom(other.UpdatedFriendshipData);
     }
     if (other.friendProfile_ != null)
     {
         if (friendProfile_ == null)
         {
             friendProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
         }
         FriendProfile.MergeFrom(other.FriendProfile);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }