public void MergeFrom(GymGetInfoResponse other) { if (other == null) { return; } if (other.gymStatusAndDefenders_ != null) { if (gymStatusAndDefenders_ == null) { gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders(); } GymStatusAndDefenders.MergeFrom(other.GymStatusAndDefenders); } if (other.Name.Length != 0) { Name = other.Name; } if (other.Url.Length != 0) { Url = other.Url; } if (other.Result != 0) { Result = other.Result; } if (other.Description.Length != 0) { Description = other.Description; } if (other.SecondaryUrl.Length != 0) { SecondaryUrl = other.SecondaryUrl; } if (other.awardedGymBadge_ != null) { if (awardedGymBadge_ == null) { awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge(); } AwardedGymBadge.MergeFrom(other.AwardedGymBadge); } if (other.CheckinImageUrl.Length != 0) { CheckinImageUrl = other.CheckinImageUrl; } if (other.eventInfo_ != null) { if (eventInfo_ == null) { eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo(); } EventInfo.MergeFrom(other.EventInfo); } }
public void MergeFrom(GetGymDetailsResponse other) { if (other == null) { return; } if (other.gymState_ != null) { if (gymState_ == null) { gymState_ = new global::POGOProtos.Data.Gym.GymState(); } GymState.MergeFrom(other.GymState); } if (other.Name.Length != 0) { Name = other.Name; } urls_.Add(other.urls_); if (other.Result != 0) { Result = other.Result; } if (other.Description.Length != 0) { Description = other.Description; } secondaryUrl_.Add(other.secondaryUrl_); if (other.CheckinImageUrl.Length != 0) { CheckinImageUrl = other.CheckinImageUrl; } if (other.eventInfo_ != null) { if (eventInfo_ == null) { eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo(); } EventInfo.MergeFrom(other.EventInfo); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (gymStatusAndDefenders_ == null) { gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders(); } input.ReadMessage(gymStatusAndDefenders_); break; } case 18: { Name = input.ReadString(); break; } case 26: { Url = input.ReadString(); break; } case 32: { result_ = (global::POGOProtos.Networking.Responses.GymGetInfoResponse.Types.Result)input.ReadEnum(); break; } case 42: { Description = input.ReadString(); break; } case 50: { SecondaryUrl = input.ReadString(); break; } case 58: { if (awardedGymBadge_ == null) { awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge(); } input.ReadMessage(awardedGymBadge_); break; } case 66: { CheckinImageUrl = input.ReadString(); break; } case 74: { if (eventInfo_ == null) { eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo(); } input.ReadMessage(eventInfo_); break; } case 82: { if (displayWeather_ == null) { displayWeather_ = new global::POGOProtos.Map.Weather.DisplayWeather(); } input.ReadMessage(displayWeather_); break; } } } }
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::POGOProtos.Enums.TeamColor)input.ReadEnum(); break; } case 26: { if (pokemonData_ == null) { pokemonData_ = new global::POGOProtos.Data.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::POGOProtos.Map.Fort.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; } case 112: { CloseSoon = input.ReadBool(); break; } case 122: { CheckinImageUrl = input.ReadString(); break; } case 130: { if (eventInfo_ == null) { eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo(); } input.ReadMessage(eventInfo_); break; } } } }
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::POGOProtos.Data.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_); if (other.CloseSoon != false) { CloseSoon = other.CloseSoon; } if (other.CheckinImageUrl.Length != 0) { CheckinImageUrl = other.CheckinImageUrl; } if (other.eventInfo_ != null) { if (eventInfo_ == null) { eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo(); } EventInfo.MergeFrom(other.EventInfo); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (gymState_ == null) { gymState_ = new global::POGOProtos.Data.Gym.GymState(); } input.ReadMessage(gymState_); break; } case 18: { Name = input.ReadString(); break; } case 26: { urls_.AddEntriesFrom(input, _repeated_urls_codec); break; } case 32: { result_ = (global::POGOProtos.Networking.Responses.GetGymDetailsResponse.Types.Result)input.ReadEnum(); break; } case 42: { Description = input.ReadString(); break; } case 50: { secondaryUrl_.AddEntriesFrom(input, _repeated_secondaryUrl_codec); break; } case 58: { CheckinImageUrl = input.ReadString(); break; } case 66: { if (eventInfo_ == null) { eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo(); } input.ReadMessage(eventInfo_); break; } } } }