/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(example.avro.User.Builder other) { super(other); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favoriteNumber)) { this.favoriteNumber = data().deepCopy(fields()[1].schema(), other.favoriteNumber); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favoriteColor)) { this.favoriteColor = data().deepCopy(fields()[2].schema(), other.favoriteColor); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.eventType)) { this.eventType = data().deepCopy(fields()[3].schema(), other.eventType); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing User instance * @param other The existing instance to copy. */ private Builder(example.avro.User other) { super(SCHEMA$); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favoriteNumber)) { this.favoriteNumber = data().deepCopy(fields()[1].schema(), other.favoriteNumber); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favoriteColor)) { this.favoriteColor = data().deepCopy(fields()[2].schema(), other.favoriteColor); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.eventType)) { this.eventType = data().deepCopy(fields()[3].schema(), other.eventType); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing User instance * @param other The existing instance to copy. */ private Builder(example.avro.User other) { super(SCHEMA$); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favorite_number)) { this.favorite_number = data().deepCopy(fields()[1].schema(), other.favorite_number); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favorite_color)) { this.favorite_color = data().deepCopy(fields()[2].schema(), other.favorite_color); fieldSetFlags()[2] = true; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(example.avro.User.Builder other) { super(other); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favorite_number)) { this.favorite_number = data().deepCopy(fields()[1].schema(), other.favorite_number); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favorite_color)) { this.favorite_color = data().deepCopy(fields()[2].schema(), other.favorite_color); fieldSetFlags()[2] = true; } }
/** * Creates a Builder by copying an existing User instance * @param other The existing instance to copy. */ private Builder(example.avro.User other) { super(SCHEMA$); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favorite_number)) { this.favorite_number = data().deepCopy(fields()[1].schema(), other.favorite_number); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favorite_color)) { this.favorite_color = data().deepCopy(fields()[2].schema(), other.favorite_color); fieldSetFlags()[2] = true; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(example.avro.User.Builder other) { super(other); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.favorite_number)) { this.favorite_number = data().deepCopy(fields()[1].schema(), other.favorite_number); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.favorite_color)) { this.favorite_color = data().deepCopy(fields()[2].schema(), other.favorite_color); fieldSetFlags()[2] = true; } }