public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { FromLaneId = input.ReadString(); break; } case 18: { ToLaneId = input.ReadString(); break; } case 25: { Cost = input.ReadDouble(); break; } case 32: { directionType_ = (global::Apollo.Routing.Edge.Types.DirectionType)input.ReadEnum(); break; } } } }
public void MergeFrom(Edge other) { if (other == null) { return; } if (other.FromLaneId.Length != 0) { FromLaneId = other.FromLaneId; } if (other.ToLaneId.Length != 0) { ToLaneId = other.ToLaneId; } if (other.Cost != 0D) { Cost = other.Cost; } if (other.DirectionType != 0) { DirectionType = other.DirectionType; } }