Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.gel.models.report.avro;
@SuppressWarnings("all")
/** The variant classification according to different properties. */
@org.apache.avro.specific.AvroGenerated
public class VariantClassification 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\":\"VariantClassification\",\"namespace\":\"org.gel.models.report.avro\",\"doc\":\"The variant classification according to different properties.\",\"fields\":[{\"name\":\"clinicalSignificance\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"ClinicalSignificance\",\"symbols\":[\"benign\",\"likely_benign\",\"likely_pathogenic\",\"pathogenic\",\"uncertain_significance\",\"excluded\"]}],\"doc\":\"The variant's clinical significance.\"},{\"name\":\"drugResponseClassification\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DrugResponseClassification\",\"symbols\":[\"altered_sensitivity\",\"reduced_sensitivity\",\"increased_sensitivity\",\"altered_resistance\",\"increased_resistance\",\"reduced_resistance\",\"increased_risk_of_toxicity\",\"reduced_risk_of_toxicity\",\"altered_toxicity\",\"adverse_drug_reaction\",\"indication\",\"contraindication\",\"dosing_alteration\",\"increased_dose\",\"reduced_dose\",\"increased_monitoring\",\"increased_efficacy\",\"reduced_efficacy\",\"altered_efficacy\"]}],\"doc\":\"The variant's pharmacogenomics classification.\"},{\"name\":\"traitAssociation\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"TraitAssociation\",\"symbols\":[\"established_risk_allele\",\"likely_risk_allele\",\"uncertain_risk_allele\",\"protective\"]}],\"doc\":\"The variant's trait association.\"},{\"name\":\"tumorigenesisClassification\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"TumorigenesisClassification\",\"symbols\":[\"driver\",\"passenger\",\"modifier\"]}],\"doc\":\"The variant's tumorigenesis classification.\"},{\"name\":\"functionalEffect\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"VariantFunctionalEffect\",\"symbols\":[\"dominant_negative_variant\",\"gain_of_function_variant\",\"lethal_variant\",\"loss_of_function_variant\",\"loss_of_heterozygosity\",\"null_variant\"]}],\"doc\":\"The variant functional effect\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** The variant's clinical significance. */
private org.gel.models.report.avro.ClinicalSignificance clinicalSignificance;
/** The variant's pharmacogenomics classification. */
private org.gel.models.report.avro.DrugResponseClassification drugResponseClassification;
/** The variant's trait association. */
private org.gel.models.report.avro.TraitAssociation traitAssociation;
/** The variant's tumorigenesis classification. */
private org.gel.models.report.avro.TumorigenesisClassification tumorigenesisClassification;
/** The variant functional effect */
private org.gel.models.report.avro.VariantFunctionalEffect functionalEffect;
/**
* 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 VariantClassification() {}
/**
* All-args constructor.
*/
public VariantClassification(org.gel.models.report.avro.ClinicalSignificance clinicalSignificance, org.gel.models.report.avro.DrugResponseClassification drugResponseClassification, org.gel.models.report.avro.TraitAssociation traitAssociation, org.gel.models.report.avro.TumorigenesisClassification tumorigenesisClassification, org.gel.models.report.avro.VariantFunctionalEffect functionalEffect) {
this.clinicalSignificance = clinicalSignificance;
this.drugResponseClassification = drugResponseClassification;
this.traitAssociation = traitAssociation;
this.tumorigenesisClassification = tumorigenesisClassification;
this.functionalEffect = functionalEffect;
}
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 clinicalSignificance;
case 1: return drugResponseClassification;
case 2: return traitAssociation;
case 3: return tumorigenesisClassification;
case 4: return functionalEffect;
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: clinicalSignificance = (org.gel.models.report.avro.ClinicalSignificance)value$; break;
case 1: drugResponseClassification = (org.gel.models.report.avro.DrugResponseClassification)value$; break;
case 2: traitAssociation = (org.gel.models.report.avro.TraitAssociation)value$; break;
case 3: tumorigenesisClassification = (org.gel.models.report.avro.TumorigenesisClassification)value$; break;
case 4: functionalEffect = (org.gel.models.report.avro.VariantFunctionalEffect)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'clinicalSignificance' field.
* The variant's clinical significance. */
public org.gel.models.report.avro.ClinicalSignificance getClinicalSignificance() {
return clinicalSignificance;
}
/**
* Sets the value of the 'clinicalSignificance' field.
* The variant's clinical significance. * @param value the value to set.
*/
public void setClinicalSignificance(org.gel.models.report.avro.ClinicalSignificance value) {
this.clinicalSignificance = value;
}
/**
* Gets the value of the 'drugResponseClassification' field.
* The variant's pharmacogenomics classification. */
public org.gel.models.report.avro.DrugResponseClassification getDrugResponseClassification() {
return drugResponseClassification;
}
/**
* Sets the value of the 'drugResponseClassification' field.
* The variant's pharmacogenomics classification. * @param value the value to set.
*/
public void setDrugResponseClassification(org.gel.models.report.avro.DrugResponseClassification value) {
this.drugResponseClassification = value;
}
/**
* Gets the value of the 'traitAssociation' field.
* The variant's trait association. */
public org.gel.models.report.avro.TraitAssociation getTraitAssociation() {
return traitAssociation;
}
/**
* Sets the value of the 'traitAssociation' field.
* The variant's trait association. * @param value the value to set.
*/
public void setTraitAssociation(org.gel.models.report.avro.TraitAssociation value) {
this.traitAssociation = value;
}
/**
* Gets the value of the 'tumorigenesisClassification' field.
* The variant's tumorigenesis classification. */
public org.gel.models.report.avro.TumorigenesisClassification getTumorigenesisClassification() {
return tumorigenesisClassification;
}
/**
* Sets the value of the 'tumorigenesisClassification' field.
* The variant's tumorigenesis classification. * @param value the value to set.
*/
public void setTumorigenesisClassification(org.gel.models.report.avro.TumorigenesisClassification value) {
this.tumorigenesisClassification = value;
}
/**
* Gets the value of the 'functionalEffect' field.
* The variant functional effect */
public org.gel.models.report.avro.VariantFunctionalEffect getFunctionalEffect() {
return functionalEffect;
}
/**
* Sets the value of the 'functionalEffect' field.
* The variant functional effect * @param value the value to set.
*/
public void setFunctionalEffect(org.gel.models.report.avro.VariantFunctionalEffect value) {
this.functionalEffect = value;
}
/** Creates a new VariantClassification RecordBuilder */
public static org.gel.models.report.avro.VariantClassification.Builder newBuilder() {
return new org.gel.models.report.avro.VariantClassification.Builder();
}
/** Creates a new VariantClassification RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.VariantClassification.Builder newBuilder(org.gel.models.report.avro.VariantClassification.Builder other) {
return new org.gel.models.report.avro.VariantClassification.Builder(other);
}
/** Creates a new VariantClassification RecordBuilder by copying an existing VariantClassification instance */
public static org.gel.models.report.avro.VariantClassification.Builder newBuilder(org.gel.models.report.avro.VariantClassification other) {
return new org.gel.models.report.avro.VariantClassification.Builder(other);
}
/**
* RecordBuilder for VariantClassification instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private org.gel.models.report.avro.ClinicalSignificance clinicalSignificance;
private org.gel.models.report.avro.DrugResponseClassification drugResponseClassification;
private org.gel.models.report.avro.TraitAssociation traitAssociation;
private org.gel.models.report.avro.TumorigenesisClassification tumorigenesisClassification;
private org.gel.models.report.avro.VariantFunctionalEffect functionalEffect;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.VariantClassification.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.VariantClassification.Builder other) {
super(other);
if (isValidValue(fields()[0], other.clinicalSignificance)) {
this.clinicalSignificance = data().deepCopy(fields()[0].schema(), other.clinicalSignificance);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.drugResponseClassification)) {
this.drugResponseClassification = data().deepCopy(fields()[1].schema(), other.drugResponseClassification);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.traitAssociation)) {
this.traitAssociation = data().deepCopy(fields()[2].schema(), other.traitAssociation);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.tumorigenesisClassification)) {
this.tumorigenesisClassification = data().deepCopy(fields()[3].schema(), other.tumorigenesisClassification);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.functionalEffect)) {
this.functionalEffect = data().deepCopy(fields()[4].schema(), other.functionalEffect);
fieldSetFlags()[4] = true;
}
}
/** Creates a Builder by copying an existing VariantClassification instance */
private Builder(org.gel.models.report.avro.VariantClassification other) {
super(org.gel.models.report.avro.VariantClassification.SCHEMA$);
if (isValidValue(fields()[0], other.clinicalSignificance)) {
this.clinicalSignificance = data().deepCopy(fields()[0].schema(), other.clinicalSignificance);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.drugResponseClassification)) {
this.drugResponseClassification = data().deepCopy(fields()[1].schema(), other.drugResponseClassification);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.traitAssociation)) {
this.traitAssociation = data().deepCopy(fields()[2].schema(), other.traitAssociation);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.tumorigenesisClassification)) {
this.tumorigenesisClassification = data().deepCopy(fields()[3].schema(), other.tumorigenesisClassification);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.functionalEffect)) {
this.functionalEffect = data().deepCopy(fields()[4].schema(), other.functionalEffect);
fieldSetFlags()[4] = true;
}
}
/** Gets the value of the 'clinicalSignificance' field */
public org.gel.models.report.avro.ClinicalSignificance getClinicalSignificance() {
return clinicalSignificance;
}
/** Sets the value of the 'clinicalSignificance' field */
public org.gel.models.report.avro.VariantClassification.Builder setClinicalSignificance(org.gel.models.report.avro.ClinicalSignificance value) {
validate(fields()[0], value);
this.clinicalSignificance = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'clinicalSignificance' field has been set */
public boolean hasClinicalSignificance() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'clinicalSignificance' field */
public org.gel.models.report.avro.VariantClassification.Builder clearClinicalSignificance() {
clinicalSignificance = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'drugResponseClassification' field */
public org.gel.models.report.avro.DrugResponseClassification getDrugResponseClassification() {
return drugResponseClassification;
}
/** Sets the value of the 'drugResponseClassification' field */
public org.gel.models.report.avro.VariantClassification.Builder setDrugResponseClassification(org.gel.models.report.avro.DrugResponseClassification value) {
validate(fields()[1], value);
this.drugResponseClassification = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'drugResponseClassification' field has been set */
public boolean hasDrugResponseClassification() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'drugResponseClassification' field */
public org.gel.models.report.avro.VariantClassification.Builder clearDrugResponseClassification() {
drugResponseClassification = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'traitAssociation' field */
public org.gel.models.report.avro.TraitAssociation getTraitAssociation() {
return traitAssociation;
}
/** Sets the value of the 'traitAssociation' field */
public org.gel.models.report.avro.VariantClassification.Builder setTraitAssociation(org.gel.models.report.avro.TraitAssociation value) {
validate(fields()[2], value);
this.traitAssociation = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'traitAssociation' field has been set */
public boolean hasTraitAssociation() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'traitAssociation' field */
public org.gel.models.report.avro.VariantClassification.Builder clearTraitAssociation() {
traitAssociation = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'tumorigenesisClassification' field */
public org.gel.models.report.avro.TumorigenesisClassification getTumorigenesisClassification() {
return tumorigenesisClassification;
}
/** Sets the value of the 'tumorigenesisClassification' field */
public org.gel.models.report.avro.VariantClassification.Builder setTumorigenesisClassification(org.gel.models.report.avro.TumorigenesisClassification value) {
validate(fields()[3], value);
this.tumorigenesisClassification = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'tumorigenesisClassification' field has been set */
public boolean hasTumorigenesisClassification() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'tumorigenesisClassification' field */
public org.gel.models.report.avro.VariantClassification.Builder clearTumorigenesisClassification() {
tumorigenesisClassification = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'functionalEffect' field */
public org.gel.models.report.avro.VariantFunctionalEffect getFunctionalEffect() {
return functionalEffect;
}
/** Sets the value of the 'functionalEffect' field */
public org.gel.models.report.avro.VariantClassification.Builder setFunctionalEffect(org.gel.models.report.avro.VariantFunctionalEffect value) {
validate(fields()[4], value);
this.functionalEffect = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'functionalEffect' field has been set */
public boolean hasFunctionalEffect() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'functionalEffect' field */
public org.gel.models.report.avro.VariantClassification.Builder clearFunctionalEffect() {
functionalEffect = null;
fieldSetFlags()[4] = false;
return this;
}
@Override
public VariantClassification build() {
try {
VariantClassification record = new VariantClassification();
record.clinicalSignificance = fieldSetFlags()[0] ? this.clinicalSignificance : (org.gel.models.report.avro.ClinicalSignificance) defaultValue(fields()[0]);
record.drugResponseClassification = fieldSetFlags()[1] ? this.drugResponseClassification : (org.gel.models.report.avro.DrugResponseClassification) defaultValue(fields()[1]);
record.traitAssociation = fieldSetFlags()[2] ? this.traitAssociation : (org.gel.models.report.avro.TraitAssociation) defaultValue(fields()[2]);
record.tumorigenesisClassification = fieldSetFlags()[3] ? this.tumorigenesisClassification : (org.gel.models.report.avro.TumorigenesisClassification) defaultValue(fields()[3]);
record.functionalEffect = fieldSetFlags()[4] ? this.functionalEffect : (org.gel.models.report.avro.VariantFunctionalEffect) defaultValue(fields()[4]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}