public void MergeFrom(Quest other) { if (other == null) { return; } if (other.QuestType != 0) { QuestType = other.QuestType; } if (other.dailyQuest_ != null) { if (dailyQuest_ == null) { dailyQuest_ = new global::POGOProtos.Data.Quests.DailyQuest(); } DailyQuest.MergeFrom(other.DailyQuest); } if (other.multiPart_ != null) { if (multiPart_ == null) { multiPart_ = new global::POGOProtos.Data.Quests.Quest.Types.MultiPartQuest(); } MultiPart.MergeFrom(other.MultiPart); } if (other.catchPokemon_ != null) { if (catchPokemon_ == null) { catchPokemon_ = new global::POGOProtos.Data.Quests.CatchPokemonQuest(); } CatchPokemon.MergeFrom(other.CatchPokemon); } if (other.addFriend_ != null) { if (addFriend_ == null) { addFriend_ = new global::POGOProtos.Data.Quests.AddFriendQuest(); } AddFriend.MergeFrom(other.AddFriend); } if (other.tradePokemon_ != null) { if (tradePokemon_ == null) { tradePokemon_ = new global::POGOProtos.Data.Quests.TradePokemonQuest(); } TradePokemon.MergeFrom(other.TradePokemon); } if (other.QuestId.Length != 0) { QuestId = other.QuestId; } if (other.QuestSeed != 0L) { QuestSeed = other.QuestSeed; } if (other.QuestContext != 0) { QuestContext = other.QuestContext; } if (other.TemplateId.Length != 0) { TemplateId = other.TemplateId; } if (other.Progress != 0) { Progress = other.Progress; } if (other.goal_ != null) { if (goal_ == null) { goal_ = new global::POGOProtos.Data.Quests.QuestGoal(); } Goal.MergeFrom(other.Goal); } if (other.Status != 0) { Status = other.Status; } questRewards_.Add(other.questRewards_); if (other.CreationTimestampMs != 0L) { CreationTimestampMs = other.CreationTimestampMs; } if (other.LastUpdateTimestampMs != 0L) { LastUpdateTimestampMs = other.LastUpdateTimestampMs; } if (other.CompeletionTimestampMs != 0L) { CompeletionTimestampMs = other.CompeletionTimestampMs; } if (other.FortId.Length != 0) { FortId = other.FortId; } if (other.AdminGenerated != false) { AdminGenerated = other.AdminGenerated; } if (other.StampCountOverrideEnabled != false) { StampCountOverrideEnabled = other.StampCountOverrideEnabled; } if (other.StampCountOverride != 0) { StampCountOverride = other.StampCountOverride; } if (other.S2CellId != 0L) { S2CellId = other.S2CellId; } if (other.StoryQuestTemplateVersion != 0) { StoryQuestTemplateVersion = other.StoryQuestTemplateVersion; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (QuestType != 0) { hash ^= QuestType.GetHashCode(); } if (dailyQuest_ != null) { hash ^= DailyQuest.GetHashCode(); } if (multiPart_ != null) { hash ^= MultiPart.GetHashCode(); } if (catchPokemon_ != null) { hash ^= CatchPokemon.GetHashCode(); } if (addFriend_ != null) { hash ^= AddFriend.GetHashCode(); } if (tradePokemon_ != null) { hash ^= TradePokemon.GetHashCode(); } if (QuestId.Length != 0) { hash ^= QuestId.GetHashCode(); } if (QuestSeed != 0L) { hash ^= QuestSeed.GetHashCode(); } if (QuestContext != 0) { hash ^= QuestContext.GetHashCode(); } if (TemplateId.Length != 0) { hash ^= TemplateId.GetHashCode(); } if (Progress != 0) { hash ^= Progress.GetHashCode(); } if (goal_ != null) { hash ^= Goal.GetHashCode(); } if (Status != 0) { hash ^= Status.GetHashCode(); } hash ^= questRewards_.GetHashCode(); if (CreationTimestampMs != 0L) { hash ^= CreationTimestampMs.GetHashCode(); } if (LastUpdateTimestampMs != 0L) { hash ^= LastUpdateTimestampMs.GetHashCode(); } if (CompeletionTimestampMs != 0L) { hash ^= CompeletionTimestampMs.GetHashCode(); } if (FortId.Length != 0) { hash ^= FortId.GetHashCode(); } if (AdminGenerated != false) { hash ^= AdminGenerated.GetHashCode(); } if (StampCountOverrideEnabled != false) { hash ^= StampCountOverrideEnabled.GetHashCode(); } if (StampCountOverride != 0) { hash ^= StampCountOverride.GetHashCode(); } if (S2CellId != 0L) { hash ^= S2CellId.GetHashCode(); } if (StoryQuestTemplateVersion != 0) { hash ^= StoryQuestTemplateVersion.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }