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")
/** A panel of genes and the specific disease that it assesses */
@org.apache.avro.specific.AvroGenerated
public class AdditionalAnalysisPanel 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\":\"AdditionalAnalysisPanel\",\"namespace\":\"org.gel.models.report.avro\",\"doc\":\"A panel of genes and the specific disease that it assesses\",\"fields\":[{\"name\":\"specificDisease\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"panel\",\"type\":{\"type\":\"record\",\"name\":\"GenePanel\",\"doc\":\"A panel of genes\",\"fields\":[{\"name\":\"panelIdentifier\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Panel name used\"},{\"name\":\"panelName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Panel name used\"},{\"name\":\"panelVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Panel version\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"source i.e, PanelApp\"}]}}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private java.lang.String specificDisease;
private org.gel.models.report.avro.GenePanel panel;
/**
* 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 AdditionalAnalysisPanel() {}
/**
* All-args constructor.
*/
public AdditionalAnalysisPanel(java.lang.String specificDisease, org.gel.models.report.avro.GenePanel panel) {
this.specificDisease = specificDisease;
this.panel = panel;
}
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 specificDisease;
case 1: return panel;
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: specificDisease = (java.lang.String)value$; break;
case 1: panel = (org.gel.models.report.avro.GenePanel)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'specificDisease' field.
*/
public java.lang.String getSpecificDisease() {
return specificDisease;
}
/**
* Sets the value of the 'specificDisease' field.
* @param value the value to set.
*/
public void setSpecificDisease(java.lang.String value) {
this.specificDisease = value;
}
/**
* Gets the value of the 'panel' field.
*/
public org.gel.models.report.avro.GenePanel getPanel() {
return panel;
}
/**
* Sets the value of the 'panel' field.
* @param value the value to set.
*/
public void setPanel(org.gel.models.report.avro.GenePanel value) {
this.panel = value;
}
/** Creates a new AdditionalAnalysisPanel RecordBuilder */
public static org.gel.models.report.avro.AdditionalAnalysisPanel.Builder newBuilder() {
return new org.gel.models.report.avro.AdditionalAnalysisPanel.Builder();
}
/** Creates a new AdditionalAnalysisPanel RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.AdditionalAnalysisPanel.Builder newBuilder(org.gel.models.report.avro.AdditionalAnalysisPanel.Builder other) {
return new org.gel.models.report.avro.AdditionalAnalysisPanel.Builder(other);
}
/** Creates a new AdditionalAnalysisPanel RecordBuilder by copying an existing AdditionalAnalysisPanel instance */
public static org.gel.models.report.avro.AdditionalAnalysisPanel.Builder newBuilder(org.gel.models.report.avro.AdditionalAnalysisPanel other) {
return new org.gel.models.report.avro.AdditionalAnalysisPanel.Builder(other);
}
/**
* RecordBuilder for AdditionalAnalysisPanel instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String specificDisease;
private org.gel.models.report.avro.GenePanel panel;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.AdditionalAnalysisPanel.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.AdditionalAnalysisPanel.Builder other) {
super(other);
if (isValidValue(fields()[0], other.specificDisease)) {
this.specificDisease = data().deepCopy(fields()[0].schema(), other.specificDisease);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.panel)) {
this.panel = data().deepCopy(fields()[1].schema(), other.panel);
fieldSetFlags()[1] = true;
}
}
/** Creates a Builder by copying an existing AdditionalAnalysisPanel instance */
private Builder(org.gel.models.report.avro.AdditionalAnalysisPanel other) {
super(org.gel.models.report.avro.AdditionalAnalysisPanel.SCHEMA$);
if (isValidValue(fields()[0], other.specificDisease)) {
this.specificDisease = data().deepCopy(fields()[0].schema(), other.specificDisease);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.panel)) {
this.panel = data().deepCopy(fields()[1].schema(), other.panel);
fieldSetFlags()[1] = true;
}
}
/** Gets the value of the 'specificDisease' field */
public java.lang.String getSpecificDisease() {
return specificDisease;
}
/** Sets the value of the 'specificDisease' field */
public org.gel.models.report.avro.AdditionalAnalysisPanel.Builder setSpecificDisease(java.lang.String value) {
validate(fields()[0], value);
this.specificDisease = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'specificDisease' field has been set */
public boolean hasSpecificDisease() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'specificDisease' field */
public org.gel.models.report.avro.AdditionalAnalysisPanel.Builder clearSpecificDisease() {
specificDisease = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'panel' field */
public org.gel.models.report.avro.GenePanel getPanel() {
return panel;
}
/** Sets the value of the 'panel' field */
public org.gel.models.report.avro.AdditionalAnalysisPanel.Builder setPanel(org.gel.models.report.avro.GenePanel value) {
validate(fields()[1], value);
this.panel = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'panel' field has been set */
public boolean hasPanel() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'panel' field */
public org.gel.models.report.avro.AdditionalAnalysisPanel.Builder clearPanel() {
panel = null;
fieldSetFlags()[1] = false;
return this;
}
@Override
public AdditionalAnalysisPanel build() {
try {
AdditionalAnalysisPanel record = new AdditionalAnalysisPanel();
record.specificDisease = fieldSetFlags()[0] ? this.specificDisease : (java.lang.String) defaultValue(fields()[0]);
record.panel = fieldSetFlags()[1] ? this.panel : (org.gel.models.report.avro.GenePanel) defaultValue(fields()[1]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}