if (isValidValue(fields()[0], other.therapeuticContext)) { this.therapeuticContext = data().deepCopy(fields()[0].schema(), other.therapeuticContext); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.pathway)) { this.pathway = data().deepCopy(fields()[1].schema(), other.pathway); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.effect)) { this.effect = data().deepCopy(fields()[2].schema(), other.effect); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.association)) { this.association = data().deepCopy(fields()[3].schema(), other.association); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.status)) { this.status = data().deepCopy(fields()[4].schema(), other.status); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.evidence)) { this.evidence = data().deepCopy(fields()[5].schema(), other.evidence); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.bibliography)) { this.bibliography = data().deepCopy(fields()[6].schema(), other.bibliography); fieldSetFlags()[6] = true;
@Override public Drug build() { try { Drug record = new Drug(); record.therapeuticContext = fieldSetFlags()[0] ? this.therapeuticContext : (java.lang.String) defaultValue(fields()[0]); record.pathway = fieldSetFlags()[1] ? this.pathway : (java.lang.String) defaultValue(fields()[1]); record.effect = fieldSetFlags()[2] ? this.effect : (java.lang.String) defaultValue(fields()[2]); record.association = fieldSetFlags()[3] ? this.association : (java.lang.String) defaultValue(fields()[3]); record.status = fieldSetFlags()[4] ? this.status : (java.lang.String) defaultValue(fields()[4]); record.evidence = fieldSetFlags()[5] ? this.evidence : (java.lang.String) defaultValue(fields()[5]); record.bibliography = fieldSetFlags()[6] ? this.bibliography : (java.util.List<java.lang.String>) defaultValue(fields()[6]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
if (isValidValue(fields()[0], other.therapeuticContext)) { this.therapeuticContext = data().deepCopy(fields()[0].schema(), other.therapeuticContext); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.pathway)) { this.pathway = data().deepCopy(fields()[1].schema(), other.pathway); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.effect)) { this.effect = data().deepCopy(fields()[2].schema(), other.effect); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.association)) { this.association = data().deepCopy(fields()[3].schema(), other.association); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.status)) { this.status = data().deepCopy(fields()[4].schema(), other.status); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.evidence)) { this.evidence = data().deepCopy(fields()[5].schema(), other.evidence); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.bibliography)) { this.bibliography = data().deepCopy(fields()[6].schema(), other.bibliography); fieldSetFlags()[6] = true;
/** Checks whether the 'association' field has been set */ public boolean hasAssociation() { return fieldSetFlags()[3]; }
/** Checks whether the 'effect' field has been set */ public boolean hasEffect() { return fieldSetFlags()[2]; }
/** Checks whether the 'pathway' field has been set */ public boolean hasPathway() { return fieldSetFlags()[1]; }
/** Checks whether the 'bibliography' field has been set */ public boolean hasBibliography() { return fieldSetFlags()[6]; }
/** Checks whether the 'evidence' field has been set */ public boolean hasEvidence() { return fieldSetFlags()[5]; }
/** Checks whether the 'status' field has been set */ public boolean hasStatus() { return fieldSetFlags()[4]; }
/** Creates a new Drug RecordBuilder by copying an existing Builder */ public static org.opencb.biodata.models.variant.avro.Drug.Builder newBuilder(org.opencb.biodata.models.variant.avro.Drug.Builder other) { return new org.opencb.biodata.models.variant.avro.Drug.Builder(other); }
/** Creates a new Drug RecordBuilder */ public static org.opencb.biodata.models.variant.avro.Drug.Builder newBuilder() { return new org.opencb.biodata.models.variant.avro.Drug.Builder(); }
/** Clears the value of the 'status' field */ public org.opencb.biodata.models.variant.avro.Drug.Builder clearStatus() { status = null; fieldSetFlags()[4] = false; return this; }
/** Clears the value of the 'association' field */ public org.opencb.biodata.models.variant.avro.Drug.Builder clearAssociation() { association = null; fieldSetFlags()[3] = false; return this; }
/** Clears the value of the 'therapeuticContext' field */ public org.opencb.biodata.models.variant.avro.Drug.Builder clearTherapeuticContext() { therapeuticContext = null; fieldSetFlags()[0] = false; return this; }
/** Checks whether the 'therapeuticContext' field has been set */ public boolean hasTherapeuticContext() { return fieldSetFlags()[0]; }
/** Creates a new Drug RecordBuilder by copying an existing Drug instance */ public static org.opencb.biodata.models.variant.avro.Drug.Builder newBuilder(org.opencb.biodata.models.variant.avro.Drug other) { return new org.opencb.biodata.models.variant.avro.Drug.Builder(other); }
/** Clears the value of the 'bibliography' field */ public org.opencb.biodata.models.variant.avro.Drug.Builder clearBibliography() { bibliography = null; fieldSetFlags()[6] = false; return this; }
/** Clears the value of the 'evidence' field */ public org.opencb.biodata.models.variant.avro.Drug.Builder clearEvidence() { evidence = null; fieldSetFlags()[5] = false; return this; }
/** Clears the value of the 'pathway' field */ public org.opencb.biodata.models.variant.avro.Drug.Builder clearPathway() { pathway = null; fieldSetFlags()[1] = false; return this; }
/** Clears the value of the 'effect' field */ public org.opencb.biodata.models.variant.avro.Drug.Builder clearEffect() { effect = null; fieldSetFlags()[2] = false; return this; }