if (isValidValue(fields()[0], other.geneName)) { this.geneName = data().deepCopy(fields()[0].schema(), other.geneName); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.ensemblGeneId)) { this.ensemblGeneId = data().deepCopy(fields()[1].schema(), other.ensemblGeneId); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.ensemblTranscriptId)) { this.ensemblTranscriptId = data().deepCopy(fields()[2].schema(), other.ensemblTranscriptId); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.strand)) { this.strand = data().deepCopy(fields()[3].schema(), other.strand); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.biotype)) { this.biotype = data().deepCopy(fields()[4].schema(), other.biotype); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.exonOverlap)) { this.exonOverlap = data().deepCopy(fields()[5].schema(), other.exonOverlap); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.transcriptAnnotationFlags)) { this.transcriptAnnotationFlags = data().deepCopy(fields()[6].schema(), other.transcriptAnnotationFlags); fieldSetFlags()[6] = true; if (isValidValue(fields()[7], other.cdnaPosition)) {
@Override public ConsequenceType build() { try { ConsequenceType record = new ConsequenceType(); record.geneName = fieldSetFlags()[0] ? this.geneName : (java.lang.String) defaultValue(fields()[0]); record.ensemblGeneId = fieldSetFlags()[1] ? this.ensemblGeneId : (java.lang.String) defaultValue(fields()[1]); record.ensemblTranscriptId = fieldSetFlags()[2] ? this.ensemblTranscriptId : (java.lang.String) defaultValue(fields()[2]); record.strand = fieldSetFlags()[3] ? this.strand : (java.lang.String) defaultValue(fields()[3]); record.biotype = fieldSetFlags()[4] ? this.biotype : (java.lang.String) defaultValue(fields()[4]); record.exonOverlap = fieldSetFlags()[5] ? this.exonOverlap : (java.util.List<org.opencb.biodata.models.variant.avro.ExonOverlap>) defaultValue(fields()[5]); record.transcriptAnnotationFlags = fieldSetFlags()[6] ? this.transcriptAnnotationFlags : (java.util.List<java.lang.String>) defaultValue(fields()[6]); record.cdnaPosition = fieldSetFlags()[7] ? this.cdnaPosition : (java.lang.Integer) defaultValue(fields()[7]); record.cdsPosition = fieldSetFlags()[8] ? this.cdsPosition : (java.lang.Integer) defaultValue(fields()[8]); record.codon = fieldSetFlags()[9] ? this.codon : (java.lang.String) defaultValue(fields()[9]); record.proteinVariantAnnotation = fieldSetFlags()[10] ? this.proteinVariantAnnotation : (org.opencb.biodata.models.variant.avro.ProteinVariantAnnotation) defaultValue(fields()[10]); record.sequenceOntologyTerms = fieldSetFlags()[11] ? this.sequenceOntologyTerms : (java.util.List<org.opencb.biodata.models.variant.avro.SequenceOntologyTerm>) defaultValue(fields()[11]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
if (isValidValue(fields()[0], other.geneName)) { this.geneName = data().deepCopy(fields()[0].schema(), other.geneName); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.ensemblGeneId)) { this.ensemblGeneId = data().deepCopy(fields()[1].schema(), other.ensemblGeneId); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.ensemblTranscriptId)) { this.ensemblTranscriptId = data().deepCopy(fields()[2].schema(), other.ensemblTranscriptId); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.strand)) { this.strand = data().deepCopy(fields()[3].schema(), other.strand); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.biotype)) { this.biotype = data().deepCopy(fields()[4].schema(), other.biotype); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.exonOverlap)) { this.exonOverlap = data().deepCopy(fields()[5].schema(), other.exonOverlap); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.transcriptAnnotationFlags)) { this.transcriptAnnotationFlags = data().deepCopy(fields()[6].schema(), other.transcriptAnnotationFlags); fieldSetFlags()[6] = true; if (isValidValue(fields()[7], other.cdnaPosition)) {
/** Checks whether the 'sequenceOntologyTerms' field has been set */ public boolean hasSequenceOntologyTerms() { return fieldSetFlags()[11]; }
/** Checks whether the 'codon' field has been set */ public boolean hasCodon() { return fieldSetFlags()[9]; }
/** Checks whether the 'ensemblGeneId' field has been set */ public boolean hasEnsemblGeneId() { return fieldSetFlags()[1]; }
/** Checks whether the 'cdsPosition' field has been set */ public boolean hasCdsPosition() { return fieldSetFlags()[8]; }
/** Checks whether the 'cdnaPosition' field has been set */ public boolean hasCdnaPosition() { return fieldSetFlags()[7]; }
/** Creates a new ConsequenceType RecordBuilder by copying an existing ConsequenceType instance */ public static org.opencb.biodata.models.variant.avro.ConsequenceType.Builder newBuilder(org.opencb.biodata.models.variant.avro.ConsequenceType other) { return new org.opencb.biodata.models.variant.avro.ConsequenceType.Builder(other); }
/** Checks whether the 'proteinVariantAnnotation' field has been set */ public boolean hasProteinVariantAnnotation() { return fieldSetFlags()[10]; }
/** Checks whether the 'strand' field has been set */ public boolean hasStrand() { return fieldSetFlags()[3]; }
/** Checks whether the 'ensemblTranscriptId' field has been set */ public boolean hasEnsemblTranscriptId() { return fieldSetFlags()[2]; }
/** Creates a new ConsequenceType RecordBuilder by copying an existing Builder */ public static org.opencb.biodata.models.variant.avro.ConsequenceType.Builder newBuilder(org.opencb.biodata.models.variant.avro.ConsequenceType.Builder other) { return new org.opencb.biodata.models.variant.avro.ConsequenceType.Builder(other); }
/** Creates a new ConsequenceType RecordBuilder */ public static org.opencb.biodata.models.variant.avro.ConsequenceType.Builder newBuilder() { return new org.opencb.biodata.models.variant.avro.ConsequenceType.Builder(); }
/** Checks whether the 'transcriptAnnotationFlags' field has been set */ public boolean hasTranscriptAnnotationFlags() { return fieldSetFlags()[6]; }
/** Checks whether the 'geneName' field has been set */ public boolean hasGeneName() { return fieldSetFlags()[0]; }
/** Checks whether the 'exonOverlap' field has been set */ public boolean hasExonOverlap() { return fieldSetFlags()[5]; }
/** Checks whether the 'biotype' field has been set */ public boolean hasBiotype() { return fieldSetFlags()[4]; }
/** Clears the value of the 'proteinVariantAnnotation' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder clearProteinVariantAnnotation() { proteinVariantAnnotation = null; fieldSetFlags()[10] = false; return this; }
/** Clears the value of the 'codon' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder clearCodon() { codon = null; fieldSetFlags()[9] = false; return this; }