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)) {
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); } } }
/** Sets the value of the 'sequenceOntologyTerms' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setSequenceOntologyTerms(java.util.List<org.opencb.biodata.models.variant.avro.SequenceOntologyTerm> value) { validate(fields()[11], value); this.sequenceOntologyTerms = value; fieldSetFlags()[11] = true; return this; }
/** Sets the value of the 'codon' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setCodon(java.lang.String value) { validate(fields()[9], value); this.codon = value; fieldSetFlags()[9] = true; return this; }
/** Sets the value of the 'exonOverlap' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setExonOverlap(java.util.List<org.opencb.biodata.models.variant.avro.ExonOverlap> value) { validate(fields()[5], value); this.exonOverlap = value; fieldSetFlags()[5] = true; return this; }
/** Sets the value of the 'biotype' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setBiotype(java.lang.String value) { validate(fields()[4], value); this.biotype = value; fieldSetFlags()[4] = true; return this; }
/** Sets the value of the 'cdnaPosition' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setCdnaPosition(java.lang.Integer value) { validate(fields()[7], value); this.cdnaPosition = value; fieldSetFlags()[7] = true; return this; }
/** Sets the value of the 'strand' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setStrand(java.lang.String value) { validate(fields()[3], value); this.strand = value; fieldSetFlags()[3] = true; return this; }
/** Sets the value of the 'ensemblTranscriptId' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setEnsemblTranscriptId(java.lang.String value) { validate(fields()[2], value); this.ensemblTranscriptId = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'cdsPosition' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setCdsPosition(java.lang.Integer value) { validate(fields()[8], value); this.cdsPosition = value; fieldSetFlags()[8] = true; return this; }
/** Sets the value of the 'transcriptAnnotationFlags' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setTranscriptAnnotationFlags(java.util.List<java.lang.String> value) { validate(fields()[6], value); this.transcriptAnnotationFlags = value; fieldSetFlags()[6] = true; return this; }
/** Sets the value of the 'ensemblGeneId' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setEnsemblGeneId(java.lang.String value) { validate(fields()[1], value); this.ensemblGeneId = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'proteinVariantAnnotation' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setProteinVariantAnnotation(org.opencb.biodata.models.variant.avro.ProteinVariantAnnotation value) { validate(fields()[10], value); this.proteinVariantAnnotation = value; fieldSetFlags()[10] = true; return this; }
/** Sets the value of the 'geneName' field */ public org.opencb.biodata.models.variant.avro.ConsequenceType.Builder setGeneName(java.lang.String value) { validate(fields()[0], value); this.geneName = value; fieldSetFlags()[0] = true; return this; }