public void MergeFrom(IntersectionTrafficLightData other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } if (other.currentLaneTrafficlight_ != null) { if (currentLaneTrafficlight_ == null) { currentLaneTrafficlight_ = new global::Apollo.V2X.CurrentLaneTrafficLight(); } CurrentLaneTrafficlight.MergeFrom(other.CurrentLaneTrafficlight); } if (other.IntersectionId != 0) { IntersectionId = other.IntersectionId; } }
public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } if (currentLaneTrafficlight_ != null) { hash ^= CurrentLaneTrafficlight.GetHashCode(); } if (IntersectionId != 0) { hash ^= IntersectionId.GetHashCode(); } return(hash); }