/** Creates a Builder by copying an existing Builder */ private Builder(org.opencb.biodata.models.variant.avro.AlternateCoordinate.Builder other) { super(other); if (isValidValue(fields()[0], other.chromosome)) { this.chromosome = data().deepCopy(fields()[0].schema(), other.chromosome); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.start)) { this.start = data().deepCopy(fields()[1].schema(), other.start); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.end)) { this.end = data().deepCopy(fields()[2].schema(), other.end); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.reference)) { this.reference = data().deepCopy(fields()[3].schema(), other.reference); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.alternate)) { this.alternate = data().deepCopy(fields()[4].schema(), other.alternate); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.type)) { this.type = data().deepCopy(fields()[5].schema(), other.type); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing AlternateCoordinate instance */ private Builder(org.opencb.biodata.models.variant.avro.AlternateCoordinate other) { super(org.opencb.biodata.models.variant.avro.AlternateCoordinate.SCHEMA$); if (isValidValue(fields()[0], other.chromosome)) { this.chromosome = data().deepCopy(fields()[0].schema(), other.chromosome); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.start)) { this.start = data().deepCopy(fields()[1].schema(), other.start); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.end)) { this.end = data().deepCopy(fields()[2].schema(), other.end); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.reference)) { this.reference = data().deepCopy(fields()[3].schema(), other.reference); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.alternate)) { this.alternate = data().deepCopy(fields()[4].schema(), other.alternate); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.type)) { this.type = data().deepCopy(fields()[5].schema(), other.type); fieldSetFlags()[5] = true; } }