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 void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } input.ReadMessage(header_); break; } case 18: { if (currentLaneTrafficlight_ == null) { currentLaneTrafficlight_ = new global::Apollo.V2X.CurrentLaneTrafficLight(); } input.ReadMessage(currentLaneTrafficlight_); break; } case 24: { IntersectionId = input.ReadInt32(); break; } } } }