public void MergeFrom(Road other) { if (other == null) { return; } if (other.id_ != null) { if (id_ == null) { id_ = new global::Apollo.Hdmap.Id(); } Id.MergeFrom(other.Id); } section_.Add(other.section_); if (other.junctionId_ != null) { if (junctionId_ == null) { junctionId_ = new global::Apollo.Hdmap.Id(); } JunctionId.MergeFrom(other.JunctionId); } if (other.Type != 0) { Type = other.Type; } }
public override int GetHashCode() { int hash = 1; if (id_ != null) { hash ^= Id.GetHashCode(); } hash ^= section_.GetHashCode(); if (junctionId_ != null) { hash ^= JunctionId.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } return(hash); }