public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (curve_ == null) { curve_ = new global::Apollo.Hdmap.Curve(); } input.ReadMessage(curve_); break; } case 16: { type_ = (global::Apollo.Hdmap.BoundaryEdge.Types.Type)input.ReadEnum(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { LaneId = input.ReadString(); break; } case 17: { Length = input.ReadDouble(); break; } case 26: { leftOut_.AddEntriesFrom(input, _repeated_leftOut_codec); break; } case 34: { rightOut_.AddEntriesFrom(input, _repeated_rightOut_codec); break; } case 41: { Cost = input.ReadDouble(); break; } case 50: { if (centralCurve_ == null) { centralCurve_ = new global::Apollo.Hdmap.Curve(); } input.ReadMessage(centralCurve_); break; } case 56: { IsVirtual = input.ReadBool(); break; } case 66: { RoadId = input.ReadString(); break; } } } }
public void MergeFrom(BoundaryEdge other) { if (other == null) { return; } if (other.curve_ != null) { if (curve_ == null) { curve_ = new global::Apollo.Hdmap.Curve(); } Curve.MergeFrom(other.Curve); } if (other.Type != 0) { Type = other.Type; } }
public void MergeFrom(Node other) { if (other == null) { return; } if (other.LaneId.Length != 0) { LaneId = other.LaneId; } if (other.Length != 0D) { Length = other.Length; } leftOut_.Add(other.leftOut_); rightOut_.Add(other.rightOut_); if (other.Cost != 0D) { Cost = other.Cost; } if (other.centralCurve_ != null) { if (centralCurve_ == null) { centralCurve_ = new global::Apollo.Hdmap.Curve(); } CentralCurve.MergeFrom(other.CentralCurve); } if (other.IsVirtual != false) { IsVirtual = other.IsVirtual; } if (other.RoadId.Length != 0) { RoadId = other.RoadId; } }