in src/main/java/com/aliyun/dts/subscribe/clients/formats/avro/DateTime.java [271:301]
private Builder(DateTime.Builder other) {
super(other);
if (isValidValue(fields()[0], other.year)) {
this.year = data().deepCopy(fields()[0].schema(), other.year);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.month)) {
this.month = data().deepCopy(fields()[1].schema(), other.month);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.day)) {
this.day = data().deepCopy(fields()[2].schema(), other.day);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.hour)) {
this.hour = data().deepCopy(fields()[3].schema(), other.hour);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.minute)) {
this.minute = data().deepCopy(fields()[4].schema(), other.minute);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.second)) {
this.second = data().deepCopy(fields()[5].schema(), other.second);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.millis)) {
this.millis = data().deepCopy(fields()[6].schema(), other.millis);
fieldSetFlags()[6] = true;
}
}