org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions Maven / Gradle / Ivy
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.gel.models.report.avro;
@SuppressWarnings("all")
/** The additional findings variant group level questions */
@org.apache.avro.specific.AvroGenerated
public class AdditionalFindingsVariantGroupLevelQuestions extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AdditionalFindingsVariantGroupLevelQuestions\",\"namespace\":\"org.gel.models.report.avro\",\"doc\":\"The additional findings variant group level questions\",\"fields\":[{\"name\":\"variantGroup\",\"type\":\"int\",\"doc\":\"This value groups variants that together could explain the phenotype according to the mode of inheritance used.\\n (e.g.: compound heterozygous). All the variants in the same report sharing the same value will be considered in\\n the same group (i.e.: reported together). This value is an integer unique in the whole report.\\n These values are only relevant within the same report.\"},{\"name\":\"variantLevelQuestions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"VariantLevelQuestions\",\"doc\":\"The variant level questions\",\"fields\":[{\"name\":\"variantCoordinates\",\"type\":{\"type\":\"record\",\"name\":\"VariantCoordinates\",\"doc\":\"The variant coordinates representing uniquely a small variant.\\n No multi-allelic variant supported, alternate only represents one alternate allele.\",\"fields\":[{\"name\":\"chromosome\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Chromosome without \\\"chr\\\" prefix (e.g. X rather than chrX)\"},{\"name\":\"position\",\"type\":\"int\",\"doc\":\"Genomic position\"},{\"name\":\"reference\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The reference bases.\"},{\"name\":\"alternate\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The alternate bases\"},{\"name\":\"assembly\",\"type\":{\"type\":\"enum\",\"name\":\"Assembly\",\"doc\":\"The reference genome assembly\",\"symbols\":[\"GRCh38\",\"GRCh37\"]},\"doc\":\"The assembly to which this variant corresponds\"}]},\"doc\":\"Variant coordinates\"},{\"name\":\"confirmationDecision\",\"type\":{\"type\":\"enum\",\"name\":\"ConfirmationDecision\",\"symbols\":[\"yes\",\"no\",\"na\"]},\"doc\":\"Did you carry out technical confirmation of this variant via an alternative test?\"},{\"name\":\"confirmationOutcome\",\"type\":{\"type\":\"enum\",\"name\":\"ConfirmationOutcome\",\"symbols\":[\"yes\",\"no\",\"na\"]},\"doc\":\"Did the test confirm that the variant is present?\"},{\"name\":\"reportingQuestion\",\"type\":{\"type\":\"enum\",\"name\":\"ReportingQuestion\",\"symbols\":[\"yes\",\"no\",\"na\"]},\"doc\":\"Did you include the variant in your report to the clinician?\"},{\"name\":\"acmgClassification\",\"type\":{\"type\":\"enum\",\"name\":\"ACMGClassification\",\"symbols\":[\"pathogenic_variant\",\"likely_pathogenic_variant\",\"variant_of_unknown_clinical_significance\",\"likely_benign_variant\",\"benign_variant\",\"not_assessed\",\"na\"]},\"doc\":\"What ACMG pathogenicity score (1-5) did you assign to this variant?\"},{\"name\":\"publications\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Please provide PMIDs for papers which you have used to inform your assessment for this variant, separated by a `;` for multiple papers\"}]}}],\"doc\":\"Variant level questions for each of the variants in the group\"},{\"name\":\"shortTandemRepeatLevelQuestions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ShortTandemRepeatLevelQuestions\",\"doc\":\"The variant level questions\",\"fields\":[{\"name\":\"coordinates\",\"type\":{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"assembly\",\"type\":\"Assembly\",\"doc\":\"The assembly to which this variant corresponds\"},{\"name\":\"chromosome\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Chromosome without \\\"chr\\\" prefix (e.g. X rather than chrX)\"},{\"name\":\"start\",\"type\":\"int\",\"doc\":\"Start genomic position for variant (1-based)\"},{\"name\":\"end\",\"type\":\"int\",\"doc\":\"End genomic position for variant\"},{\"name\":\"ciStart\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ConfidenceInterval\",\"fields\":[{\"name\":\"left\",\"type\":\"int\"},{\"name\":\"right\",\"type\":\"int\"}]}]},{\"name\":\"ciEnd\",\"type\":[\"null\",\"ConfidenceInterval\"]}]},\"doc\":\"Variant coordinates\"},{\"name\":\"confirmationDecision\",\"type\":\"ConfirmationDecision\",\"doc\":\"Did you carry out technical confirmation of this variant via an alternative test?\"},{\"name\":\"confirmationOutcome\",\"type\":\"ConfirmationOutcome\",\"doc\":\"Did the test confirm that the variant is present?\"},{\"name\":\"reportingQuestion\",\"type\":\"ReportingQuestion\",\"doc\":\"Did you include the variant in your report to the clinician?\"},{\"name\":\"acmgClassification\",\"type\":\"ACMGClassification\",\"doc\":\"What ACMG pathogenicity score (1-5) did you assign to this variant?\"},{\"name\":\"publications\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Please provide PMIDs for papers which you have used to inform your assessment for this variant, separated by a `;` for multiple papers\"}]}}],\"doc\":\"STR level questions for each of the variants in the group\"},{\"name\":\"structuralVariantLevelQuestions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"StructuralVariantLevelQuestions\",\"doc\":\"Structural variant level questions\",\"fields\":[{\"name\":\"variantType\",\"type\":{\"type\":\"enum\",\"name\":\"StructuralVariantType\",\"symbols\":[\"ins\",\"dup\",\"inv\",\"amplification\",\"deletion\",\"dup_tandem\",\"del_me\",\"ins_me\"]},\"doc\":\"Structural variant type\"},{\"name\":\"coordinates\",\"type\":\"Coordinates\",\"doc\":\"Variant coordinates\"},{\"name\":\"confirmationDecision\",\"type\":\"ConfirmationDecision\",\"doc\":\"Did you carry out technical confirmation of this variant via an alternative test?\"},{\"name\":\"confirmationOutcome\",\"type\":\"ConfirmationOutcome\",\"doc\":\"Did the test confirm that the variant is present?\"},{\"name\":\"reportingQuestion\",\"type\":\"ReportingQuestion\",\"doc\":\"Did you include the variant in your report to the clinician?\"},{\"name\":\"acmgClassification\",\"type\":\"ACMGClassification\",\"doc\":\"What ACMG pathogenicity score (1-5) did you assign to this variant?\"},{\"name\":\"publications\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Please provide PMIDs for papers which you have used to inform your assessment for this variant, separated by a `;` for multiple papers\"}]}}],\"doc\":\"Structural level questions for each of the variants in the group\"},{\"name\":\"familyHistoryCondition\",\"type\":{\"type\":\"enum\",\"name\":\"FamilyHistoryCondition\",\"symbols\":[\"yes\",\"no\",\"unknown\"]},\"doc\":\"Does this patient have a positive family history relevant to this condition?\"},{\"name\":\"familyHistoryPatient\",\"type\":{\"type\":\"enum\",\"name\":\"FamilyHistoryPatient\",\"symbols\":[\"yes\",\"no\",\"unknown\"]},\"doc\":\"In patient:\"},{\"name\":\"familyHistoryFamily\",\"type\":{\"type\":\"enum\",\"name\":\"FamilyHistoryFamily\",\"symbols\":[\"yes\",\"no\",\"unknown\"]},\"doc\":\"In family:\"},{\"name\":\"clinicalUtility\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"ClinicalUtility\",\"symbols\":[\"none\",\"change_in_medication\",\"surgical_option\",\"additional_surveillance_for_proband_or_relatives\",\"clinical_trial_eligibility\",\"informs_reproductive_choice\",\"unknown\",\"other\"]}},\"doc\":\"Has the clinical team identified any changes to clinical care which could potentially arise as a result of this variant/variant pair?\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** This value groups variants that together could explain the phenotype according to the mode of inheritance used.
(e.g.: compound heterozygous). All the variants in the same report sharing the same value will be considered in
the same group (i.e.: reported together). This value is an integer unique in the whole report.
These values are only relevant within the same report. */
private int variantGroup;
/** Variant level questions for each of the variants in the group */
private java.util.List variantLevelQuestions;
/** STR level questions for each of the variants in the group */
private java.util.List shortTandemRepeatLevelQuestions;
/** Structural level questions for each of the variants in the group */
private java.util.List structuralVariantLevelQuestions;
/** Does this patient have a positive family history relevant to this condition? */
private org.gel.models.report.avro.FamilyHistoryCondition familyHistoryCondition;
/** In patient: */
private org.gel.models.report.avro.FamilyHistoryPatient familyHistoryPatient;
/** In family: */
private org.gel.models.report.avro.FamilyHistoryFamily familyHistoryFamily;
/** Has the clinical team identified any changes to clinical care which could potentially arise as a result of this variant/variant pair? */
private java.util.List clinicalUtility;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use newBuilder()
.
*/
public AdditionalFindingsVariantGroupLevelQuestions() {}
/**
* All-args constructor.
*/
public AdditionalFindingsVariantGroupLevelQuestions(java.lang.Integer variantGroup, java.util.List variantLevelQuestions, java.util.List shortTandemRepeatLevelQuestions, java.util.List structuralVariantLevelQuestions, org.gel.models.report.avro.FamilyHistoryCondition familyHistoryCondition, org.gel.models.report.avro.FamilyHistoryPatient familyHistoryPatient, org.gel.models.report.avro.FamilyHistoryFamily familyHistoryFamily, java.util.List clinicalUtility) {
this.variantGroup = variantGroup;
this.variantLevelQuestions = variantLevelQuestions;
this.shortTandemRepeatLevelQuestions = shortTandemRepeatLevelQuestions;
this.structuralVariantLevelQuestions = structuralVariantLevelQuestions;
this.familyHistoryCondition = familyHistoryCondition;
this.familyHistoryPatient = familyHistoryPatient;
this.familyHistoryFamily = familyHistoryFamily;
this.clinicalUtility = clinicalUtility;
}
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return variantGroup;
case 1: return variantLevelQuestions;
case 2: return shortTandemRepeatLevelQuestions;
case 3: return structuralVariantLevelQuestions;
case 4: return familyHistoryCondition;
case 5: return familyHistoryPatient;
case 6: return familyHistoryFamily;
case 7: return clinicalUtility;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: variantGroup = (java.lang.Integer)value$; break;
case 1: variantLevelQuestions = (java.util.List)value$; break;
case 2: shortTandemRepeatLevelQuestions = (java.util.List)value$; break;
case 3: structuralVariantLevelQuestions = (java.util.List)value$; break;
case 4: familyHistoryCondition = (org.gel.models.report.avro.FamilyHistoryCondition)value$; break;
case 5: familyHistoryPatient = (org.gel.models.report.avro.FamilyHistoryPatient)value$; break;
case 6: familyHistoryFamily = (org.gel.models.report.avro.FamilyHistoryFamily)value$; break;
case 7: clinicalUtility = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'variantGroup' field.
* This value groups variants that together could explain the phenotype according to the mode of inheritance used.
(e.g.: compound heterozygous). All the variants in the same report sharing the same value will be considered in
the same group (i.e.: reported together). This value is an integer unique in the whole report.
These values are only relevant within the same report. */
public java.lang.Integer getVariantGroup() {
return variantGroup;
}
/**
* Sets the value of the 'variantGroup' field.
* This value groups variants that together could explain the phenotype according to the mode of inheritance used.
(e.g.: compound heterozygous). All the variants in the same report sharing the same value will be considered in
the same group (i.e.: reported together). This value is an integer unique in the whole report.
These values are only relevant within the same report. * @param value the value to set.
*/
public void setVariantGroup(java.lang.Integer value) {
this.variantGroup = value;
}
/**
* Gets the value of the 'variantLevelQuestions' field.
* Variant level questions for each of the variants in the group */
public java.util.List getVariantLevelQuestions() {
return variantLevelQuestions;
}
/**
* Sets the value of the 'variantLevelQuestions' field.
* Variant level questions for each of the variants in the group * @param value the value to set.
*/
public void setVariantLevelQuestions(java.util.List value) {
this.variantLevelQuestions = value;
}
/**
* Gets the value of the 'shortTandemRepeatLevelQuestions' field.
* STR level questions for each of the variants in the group */
public java.util.List getShortTandemRepeatLevelQuestions() {
return shortTandemRepeatLevelQuestions;
}
/**
* Sets the value of the 'shortTandemRepeatLevelQuestions' field.
* STR level questions for each of the variants in the group * @param value the value to set.
*/
public void setShortTandemRepeatLevelQuestions(java.util.List value) {
this.shortTandemRepeatLevelQuestions = value;
}
/**
* Gets the value of the 'structuralVariantLevelQuestions' field.
* Structural level questions for each of the variants in the group */
public java.util.List getStructuralVariantLevelQuestions() {
return structuralVariantLevelQuestions;
}
/**
* Sets the value of the 'structuralVariantLevelQuestions' field.
* Structural level questions for each of the variants in the group * @param value the value to set.
*/
public void setStructuralVariantLevelQuestions(java.util.List value) {
this.structuralVariantLevelQuestions = value;
}
/**
* Gets the value of the 'familyHistoryCondition' field.
* Does this patient have a positive family history relevant to this condition? */
public org.gel.models.report.avro.FamilyHistoryCondition getFamilyHistoryCondition() {
return familyHistoryCondition;
}
/**
* Sets the value of the 'familyHistoryCondition' field.
* Does this patient have a positive family history relevant to this condition? * @param value the value to set.
*/
public void setFamilyHistoryCondition(org.gel.models.report.avro.FamilyHistoryCondition value) {
this.familyHistoryCondition = value;
}
/**
* Gets the value of the 'familyHistoryPatient' field.
* In patient: */
public org.gel.models.report.avro.FamilyHistoryPatient getFamilyHistoryPatient() {
return familyHistoryPatient;
}
/**
* Sets the value of the 'familyHistoryPatient' field.
* In patient: * @param value the value to set.
*/
public void setFamilyHistoryPatient(org.gel.models.report.avro.FamilyHistoryPatient value) {
this.familyHistoryPatient = value;
}
/**
* Gets the value of the 'familyHistoryFamily' field.
* In family: */
public org.gel.models.report.avro.FamilyHistoryFamily getFamilyHistoryFamily() {
return familyHistoryFamily;
}
/**
* Sets the value of the 'familyHistoryFamily' field.
* In family: * @param value the value to set.
*/
public void setFamilyHistoryFamily(org.gel.models.report.avro.FamilyHistoryFamily value) {
this.familyHistoryFamily = value;
}
/**
* Gets the value of the 'clinicalUtility' field.
* Has the clinical team identified any changes to clinical care which could potentially arise as a result of this variant/variant pair? */
public java.util.List getClinicalUtility() {
return clinicalUtility;
}
/**
* Sets the value of the 'clinicalUtility' field.
* Has the clinical team identified any changes to clinical care which could potentially arise as a result of this variant/variant pair? * @param value the value to set.
*/
public void setClinicalUtility(java.util.List value) {
this.clinicalUtility = value;
}
/** Creates a new AdditionalFindingsVariantGroupLevelQuestions RecordBuilder */
public static org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder newBuilder() {
return new org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder();
}
/** Creates a new AdditionalFindingsVariantGroupLevelQuestions RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder newBuilder(org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder other) {
return new org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder(other);
}
/** Creates a new AdditionalFindingsVariantGroupLevelQuestions RecordBuilder by copying an existing AdditionalFindingsVariantGroupLevelQuestions instance */
public static org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder newBuilder(org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions other) {
return new org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder(other);
}
/**
* RecordBuilder for AdditionalFindingsVariantGroupLevelQuestions instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private int variantGroup;
private java.util.List variantLevelQuestions;
private java.util.List shortTandemRepeatLevelQuestions;
private java.util.List structuralVariantLevelQuestions;
private org.gel.models.report.avro.FamilyHistoryCondition familyHistoryCondition;
private org.gel.models.report.avro.FamilyHistoryPatient familyHistoryPatient;
private org.gel.models.report.avro.FamilyHistoryFamily familyHistoryFamily;
private java.util.List clinicalUtility;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder other) {
super(other);
if (isValidValue(fields()[0], other.variantGroup)) {
this.variantGroup = data().deepCopy(fields()[0].schema(), other.variantGroup);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.variantLevelQuestions)) {
this.variantLevelQuestions = data().deepCopy(fields()[1].schema(), other.variantLevelQuestions);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.shortTandemRepeatLevelQuestions)) {
this.shortTandemRepeatLevelQuestions = data().deepCopy(fields()[2].schema(), other.shortTandemRepeatLevelQuestions);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.structuralVariantLevelQuestions)) {
this.structuralVariantLevelQuestions = data().deepCopy(fields()[3].schema(), other.structuralVariantLevelQuestions);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.familyHistoryCondition)) {
this.familyHistoryCondition = data().deepCopy(fields()[4].schema(), other.familyHistoryCondition);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.familyHistoryPatient)) {
this.familyHistoryPatient = data().deepCopy(fields()[5].schema(), other.familyHistoryPatient);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.familyHistoryFamily)) {
this.familyHistoryFamily = data().deepCopy(fields()[6].schema(), other.familyHistoryFamily);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.clinicalUtility)) {
this.clinicalUtility = data().deepCopy(fields()[7].schema(), other.clinicalUtility);
fieldSetFlags()[7] = true;
}
}
/** Creates a Builder by copying an existing AdditionalFindingsVariantGroupLevelQuestions instance */
private Builder(org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions other) {
super(org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.SCHEMA$);
if (isValidValue(fields()[0], other.variantGroup)) {
this.variantGroup = data().deepCopy(fields()[0].schema(), other.variantGroup);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.variantLevelQuestions)) {
this.variantLevelQuestions = data().deepCopy(fields()[1].schema(), other.variantLevelQuestions);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.shortTandemRepeatLevelQuestions)) {
this.shortTandemRepeatLevelQuestions = data().deepCopy(fields()[2].schema(), other.shortTandemRepeatLevelQuestions);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.structuralVariantLevelQuestions)) {
this.structuralVariantLevelQuestions = data().deepCopy(fields()[3].schema(), other.structuralVariantLevelQuestions);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.familyHistoryCondition)) {
this.familyHistoryCondition = data().deepCopy(fields()[4].schema(), other.familyHistoryCondition);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.familyHistoryPatient)) {
this.familyHistoryPatient = data().deepCopy(fields()[5].schema(), other.familyHistoryPatient);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.familyHistoryFamily)) {
this.familyHistoryFamily = data().deepCopy(fields()[6].schema(), other.familyHistoryFamily);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.clinicalUtility)) {
this.clinicalUtility = data().deepCopy(fields()[7].schema(), other.clinicalUtility);
fieldSetFlags()[7] = true;
}
}
/** Gets the value of the 'variantGroup' field */
public java.lang.Integer getVariantGroup() {
return variantGroup;
}
/** Sets the value of the 'variantGroup' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setVariantGroup(int value) {
validate(fields()[0], value);
this.variantGroup = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'variantGroup' field has been set */
public boolean hasVariantGroup() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'variantGroup' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearVariantGroup() {
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'variantLevelQuestions' field */
public java.util.List getVariantLevelQuestions() {
return variantLevelQuestions;
}
/** Sets the value of the 'variantLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setVariantLevelQuestions(java.util.List value) {
validate(fields()[1], value);
this.variantLevelQuestions = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'variantLevelQuestions' field has been set */
public boolean hasVariantLevelQuestions() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'variantLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearVariantLevelQuestions() {
variantLevelQuestions = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'shortTandemRepeatLevelQuestions' field */
public java.util.List getShortTandemRepeatLevelQuestions() {
return shortTandemRepeatLevelQuestions;
}
/** Sets the value of the 'shortTandemRepeatLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setShortTandemRepeatLevelQuestions(java.util.List value) {
validate(fields()[2], value);
this.shortTandemRepeatLevelQuestions = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'shortTandemRepeatLevelQuestions' field has been set */
public boolean hasShortTandemRepeatLevelQuestions() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'shortTandemRepeatLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearShortTandemRepeatLevelQuestions() {
shortTandemRepeatLevelQuestions = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'structuralVariantLevelQuestions' field */
public java.util.List getStructuralVariantLevelQuestions() {
return structuralVariantLevelQuestions;
}
/** Sets the value of the 'structuralVariantLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setStructuralVariantLevelQuestions(java.util.List value) {
validate(fields()[3], value);
this.structuralVariantLevelQuestions = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'structuralVariantLevelQuestions' field has been set */
public boolean hasStructuralVariantLevelQuestions() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'structuralVariantLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearStructuralVariantLevelQuestions() {
structuralVariantLevelQuestions = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'familyHistoryCondition' field */
public org.gel.models.report.avro.FamilyHistoryCondition getFamilyHistoryCondition() {
return familyHistoryCondition;
}
/** Sets the value of the 'familyHistoryCondition' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setFamilyHistoryCondition(org.gel.models.report.avro.FamilyHistoryCondition value) {
validate(fields()[4], value);
this.familyHistoryCondition = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'familyHistoryCondition' field has been set */
public boolean hasFamilyHistoryCondition() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'familyHistoryCondition' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearFamilyHistoryCondition() {
familyHistoryCondition = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'familyHistoryPatient' field */
public org.gel.models.report.avro.FamilyHistoryPatient getFamilyHistoryPatient() {
return familyHistoryPatient;
}
/** Sets the value of the 'familyHistoryPatient' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setFamilyHistoryPatient(org.gel.models.report.avro.FamilyHistoryPatient value) {
validate(fields()[5], value);
this.familyHistoryPatient = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'familyHistoryPatient' field has been set */
public boolean hasFamilyHistoryPatient() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'familyHistoryPatient' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearFamilyHistoryPatient() {
familyHistoryPatient = null;
fieldSetFlags()[5] = false;
return this;
}
/** Gets the value of the 'familyHistoryFamily' field */
public org.gel.models.report.avro.FamilyHistoryFamily getFamilyHistoryFamily() {
return familyHistoryFamily;
}
/** Sets the value of the 'familyHistoryFamily' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setFamilyHistoryFamily(org.gel.models.report.avro.FamilyHistoryFamily value) {
validate(fields()[6], value);
this.familyHistoryFamily = value;
fieldSetFlags()[6] = true;
return this;
}
/** Checks whether the 'familyHistoryFamily' field has been set */
public boolean hasFamilyHistoryFamily() {
return fieldSetFlags()[6];
}
/** Clears the value of the 'familyHistoryFamily' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearFamilyHistoryFamily() {
familyHistoryFamily = null;
fieldSetFlags()[6] = false;
return this;
}
/** Gets the value of the 'clinicalUtility' field */
public java.util.List getClinicalUtility() {
return clinicalUtility;
}
/** Sets the value of the 'clinicalUtility' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder setClinicalUtility(java.util.List value) {
validate(fields()[7], value);
this.clinicalUtility = value;
fieldSetFlags()[7] = true;
return this;
}
/** Checks whether the 'clinicalUtility' field has been set */
public boolean hasClinicalUtility() {
return fieldSetFlags()[7];
}
/** Clears the value of the 'clinicalUtility' field */
public org.gel.models.report.avro.AdditionalFindingsVariantGroupLevelQuestions.Builder clearClinicalUtility() {
clinicalUtility = null;
fieldSetFlags()[7] = false;
return this;
}
@Override
public AdditionalFindingsVariantGroupLevelQuestions build() {
try {
AdditionalFindingsVariantGroupLevelQuestions record = new AdditionalFindingsVariantGroupLevelQuestions();
record.variantGroup = fieldSetFlags()[0] ? this.variantGroup : (java.lang.Integer) defaultValue(fields()[0]);
record.variantLevelQuestions = fieldSetFlags()[1] ? this.variantLevelQuestions : (java.util.List) defaultValue(fields()[1]);
record.shortTandemRepeatLevelQuestions = fieldSetFlags()[2] ? this.shortTandemRepeatLevelQuestions : (java.util.List) defaultValue(fields()[2]);
record.structuralVariantLevelQuestions = fieldSetFlags()[3] ? this.structuralVariantLevelQuestions : (java.util.List) defaultValue(fields()[3]);
record.familyHistoryCondition = fieldSetFlags()[4] ? this.familyHistoryCondition : (org.gel.models.report.avro.FamilyHistoryCondition) defaultValue(fields()[4]);
record.familyHistoryPatient = fieldSetFlags()[5] ? this.familyHistoryPatient : (org.gel.models.report.avro.FamilyHistoryPatient) defaultValue(fields()[5]);
record.familyHistoryFamily = fieldSetFlags()[6] ? this.familyHistoryFamily : (org.gel.models.report.avro.FamilyHistoryFamily) defaultValue(fields()[6]);
record.clinicalUtility = fieldSetFlags()[7] ? this.clinicalUtility : (java.util.List) defaultValue(fields()[7]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy