public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { questType_ = (global::POGOProtos.Enums.QuestType)input.ReadEnum(); break; } case 18: { if (dailyQuest_ == null) { dailyQuest_ = new global::POGOProtos.Data.Quests.DailyQuest(); } input.ReadMessage(dailyQuest_); break; } } } }
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); } }
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: { questType_ = (global::POGOProtos.Enums.QuestType)input.ReadEnum(); break; } case 18: { if (dailyQuest_ == null) { dailyQuest_ = new global::POGOProtos.Data.Quests.DailyQuest(); } input.ReadMessage(dailyQuest_); break; } case 26: { if (multiPart_ == null) { multiPart_ = new global::POGOProtos.Data.Quests.Quest.Types.MultiPartQuest(); } input.ReadMessage(multiPart_); break; } case 34: { if (catchPokemon_ == null) { catchPokemon_ = new global::POGOProtos.Data.Quests.CatchPokemonQuest(); } input.ReadMessage(catchPokemon_); break; } case 42: { if (addFriend_ == null) { addFriend_ = new global::POGOProtos.Data.Quests.AddFriendQuest(); } input.ReadMessage(addFriend_); break; } case 50: { if (tradePokemon_ == null) { tradePokemon_ = new global::POGOProtos.Data.Quests.TradePokemonQuest(); } input.ReadMessage(tradePokemon_); break; } case 802: { QuestId = input.ReadString(); break; } case 808: { QuestSeed = input.ReadInt64(); break; } case 816: { questContext_ = (global::POGOProtos.Data.Quests.Quest.Types.Context)input.ReadEnum(); break; } case 826: { TemplateId = input.ReadString(); break; } case 832: { Progress = input.ReadInt32(); break; } case 842: { if (goal_ == null) { goal_ = new global::POGOProtos.Data.Quests.QuestGoal(); } input.ReadMessage(goal_); break; } case 848: { status_ = (global::POGOProtos.Data.Quests.Quest.Types.Status)input.ReadEnum(); break; } case 858: { questRewards_.AddEntriesFrom(input, _repeated_questRewards_codec); break; } case 864: { CreationTimestampMs = input.ReadInt64(); break; } case 872: { LastUpdateTimestampMs = input.ReadInt64(); break; } case 880: { CompeletionTimestampMs = input.ReadInt64(); break; } case 890: { FortId = input.ReadString(); break; } case 896: { AdminGenerated = input.ReadBool(); break; } case 904: { StampCountOverrideEnabled = input.ReadBool(); break; } case 912: { StampCountOverride = input.ReadInt32(); break; } case 920: { S2CellId = input.ReadInt64(); break; } case 928: { StoryQuestTemplateVersion = input.ReadInt32(); break; } } } }
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); }