in jbang/kafka-apicurio-schema-registry/kafka-producer/src/main/java/com/acme/example/kafka/models/Order.java [295:317]
private Builder(com.acme.example.kafka.models.Order.Builder other) {
super(other);
if (isValidValue(fields()[0], other.orderId)) {
this.orderId = data().deepCopy(fields()[0].schema(), other.orderId);
fieldSetFlags()[0] = other.fieldSetFlags()[0];
}
if (isValidValue(fields()[1], other.itemId)) {
this.itemId = data().deepCopy(fields()[1].schema(), other.itemId);
fieldSetFlags()[1] = other.fieldSetFlags()[1];
}
if (isValidValue(fields()[2], other.userId)) {
this.userId = data().deepCopy(fields()[2].schema(), other.userId);
fieldSetFlags()[2] = other.fieldSetFlags()[2];
}
if (isValidValue(fields()[3], other.quantity)) {
this.quantity = data().deepCopy(fields()[3].schema(), other.quantity);
fieldSetFlags()[3] = other.fieldSetFlags()[3];
}
if (isValidValue(fields()[4], other.description)) {
this.description = data().deepCopy(fields()[4].schema(), other.description);
fieldSetFlags()[4] = other.fieldSetFlags()[4];
}
}