public void MergeFrom(ClientWeather other) { if (other == null) { return; } if (other.S2CellId != 0L) { S2CellId = other.S2CellId; } if (other.displayWeather_ != null) { if (displayWeather_ == null) { displayWeather_ = new global::POGOProtos.Map.Weather.DisplayWeather(); } DisplayWeather.MergeFrom(other.DisplayWeather); } if (other.gameplayWeather_ != null) { if (gameplayWeather_ == null) { gameplayWeather_ = new global::POGOProtos.Map.Weather.GameplayWeather(); } GameplayWeather.MergeFrom(other.GameplayWeather); } alerts_.Add(other.alerts_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (S2CellId != 0L) { hash ^= S2CellId.GetHashCode(); } if (displayWeather_ != null) { hash ^= DisplayWeather.GetHashCode(); } if (gameplayWeather_ != null) { hash ^= GameplayWeather.GetHashCode(); } hash ^= alerts_.GetHashCode(); return(hash); }