public void MergeFrom(NaviPathDeciderConfig other) { if (other == null) { return; } if (other.MinPathLength != 0D) { MinPathLength = other.MinPathLength; } if (other.MinLookForwardTime != 0) { MinLookForwardTime = other.MinLookForwardTime; } if (other.MaxKeepLaneDistance != 0D) { MaxKeepLaneDistance = other.MaxKeepLaneDistance; } if (other.MaxKeepLaneShiftY != 0D) { MaxKeepLaneShiftY = other.MaxKeepLaneShiftY; } if (other.MinKeepLaneOffset != 0D) { MinKeepLaneOffset = other.MinKeepLaneOffset; } if (other.KeepLaneShiftCompensation != 0D) { KeepLaneShiftCompensation = other.KeepLaneShiftCompensation; } if (other.moveDestLaneConfigTalbe_ != null) { if (moveDestLaneConfigTalbe_ == null) { moveDestLaneConfigTalbe_ = new global::Apollo.Planning.MoveDestLaneConfigTable(); } MoveDestLaneConfigTalbe.MergeFrom(other.MoveDestLaneConfigTalbe); } if (other.MoveDestLaneCompensation != 0D) { MoveDestLaneCompensation = other.MoveDestLaneCompensation; } if (other.MaxKappaThreshold != 0D) { MaxKappaThreshold = other.MaxKappaThreshold; } if (other.KappaMoveDestLaneCompensation != 0D) { KappaMoveDestLaneCompensation = other.KappaMoveDestLaneCompensation; } if (other.StartPlanPointFrom != 0) { StartPlanPointFrom = other.StartPlanPointFrom; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 9: { MinPathLength = input.ReadDouble(); break; } case 16: { MinLookForwardTime = input.ReadUInt32(); break; } case 25: { MaxKeepLaneDistance = input.ReadDouble(); break; } case 33: { MaxKeepLaneShiftY = input.ReadDouble(); break; } case 41: { MinKeepLaneOffset = input.ReadDouble(); break; } case 49: { KeepLaneShiftCompensation = input.ReadDouble(); break; } case 58: { if (moveDestLaneConfigTalbe_ == null) { moveDestLaneConfigTalbe_ = new global::Apollo.Planning.MoveDestLaneConfigTable(); } input.ReadMessage(moveDestLaneConfigTalbe_); break; } case 65: { MoveDestLaneCompensation = input.ReadDouble(); break; } case 73: { MaxKappaThreshold = input.ReadDouble(); break; } case 81: { KappaMoveDestLaneCompensation = input.ReadDouble(); break; } case 88: { StartPlanPointFrom = input.ReadUInt32(); break; } } } }