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.participant.avro;
@SuppressWarnings("all")
/** An analysis panel */
@org.apache.avro.specific.AvroGenerated
public class AnalysisPanel 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\":\"AnalysisPanel\",\"namespace\":\"org.gel.models.participant.avro\",\"doc\":\"An analysis panel\",\"fields\":[{\"name\":\"specificDisease\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The specific disease that a panel tests\"},{\"name\":\"panelName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the panel\"},{\"name\":\"panelId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Id of the panel\"},{\"name\":\"panelVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The version of the panel\"},{\"name\":\"reviewOutcome\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Deprecated\"},{\"name\":\"multipleGeneticOrigins\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Deprecated\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** The specific disease that a panel tests */
private java.lang.String specificDisease;
/** The name of the panel */
private java.lang.String panelName;
/** Id of the panel */
private java.lang.String panelId;
/** The version of the panel */
private java.lang.String panelVersion;
/** Deprecated */
private java.lang.String reviewOutcome;
/** Deprecated */
private java.lang.String multipleGeneticOrigins;
/**
* 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 AnalysisPanel() {}
/**
* All-args constructor.
*/
public AnalysisPanel(java.lang.String specificDisease, java.lang.String panelName, java.lang.String panelId, java.lang.String panelVersion, java.lang.String reviewOutcome, java.lang.String multipleGeneticOrigins) {
this.specificDisease = specificDisease;
this.panelName = panelName;
this.panelId = panelId;
this.panelVersion = panelVersion;
this.reviewOutcome = reviewOutcome;
this.multipleGeneticOrigins = multipleGeneticOrigins;
}
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 panelName;
case 2: return panelId;
case 3: return panelVersion;
case 4: return reviewOutcome;
case 5: return multipleGeneticOrigins;
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: panelName = (java.lang.String)value$; break;
case 2: panelId = (java.lang.String)value$; break;
case 3: panelVersion = (java.lang.String)value$; break;
case 4: reviewOutcome = (java.lang.String)value$; break;
case 5: multipleGeneticOrigins = (java.lang.String)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'specificDisease' field.
* The specific disease that a panel tests */
public java.lang.String getSpecificDisease() {
return specificDisease;
}
/**
* Sets the value of the 'specificDisease' field.
* The specific disease that a panel tests * @param value the value to set.
*/
public void setSpecificDisease(java.lang.String value) {
this.specificDisease = value;
}
/**
* Gets the value of the 'panelName' field.
* The name of the panel */
public java.lang.String getPanelName() {
return panelName;
}
/**
* Sets the value of the 'panelName' field.
* The name of the panel * @param value the value to set.
*/
public void setPanelName(java.lang.String value) {
this.panelName = value;
}
/**
* Gets the value of the 'panelId' field.
* Id of the panel */
public java.lang.String getPanelId() {
return panelId;
}
/**
* Sets the value of the 'panelId' field.
* Id of the panel * @param value the value to set.
*/
public void setPanelId(java.lang.String value) {
this.panelId = value;
}
/**
* Gets the value of the 'panelVersion' field.
* The version of the panel */
public java.lang.String getPanelVersion() {
return panelVersion;
}
/**
* Sets the value of the 'panelVersion' field.
* The version of the panel * @param value the value to set.
*/
public void setPanelVersion(java.lang.String value) {
this.panelVersion = value;
}
/**
* Gets the value of the 'reviewOutcome' field.
* Deprecated */
public java.lang.String getReviewOutcome() {
return reviewOutcome;
}
/**
* Sets the value of the 'reviewOutcome' field.
* Deprecated * @param value the value to set.
*/
public void setReviewOutcome(java.lang.String value) {
this.reviewOutcome = value;
}
/**
* Gets the value of the 'multipleGeneticOrigins' field.
* Deprecated */
public java.lang.String getMultipleGeneticOrigins() {
return multipleGeneticOrigins;
}
/**
* Sets the value of the 'multipleGeneticOrigins' field.
* Deprecated * @param value the value to set.
*/
public void setMultipleGeneticOrigins(java.lang.String value) {
this.multipleGeneticOrigins = value;
}
/** Creates a new AnalysisPanel RecordBuilder */
public static org.gel.models.participant.avro.AnalysisPanel.Builder newBuilder() {
return new org.gel.models.participant.avro.AnalysisPanel.Builder();
}
/** Creates a new AnalysisPanel RecordBuilder by copying an existing Builder */
public static org.gel.models.participant.avro.AnalysisPanel.Builder newBuilder(org.gel.models.participant.avro.AnalysisPanel.Builder other) {
return new org.gel.models.participant.avro.AnalysisPanel.Builder(other);
}
/** Creates a new AnalysisPanel RecordBuilder by copying an existing AnalysisPanel instance */
public static org.gel.models.participant.avro.AnalysisPanel.Builder newBuilder(org.gel.models.participant.avro.AnalysisPanel other) {
return new org.gel.models.participant.avro.AnalysisPanel.Builder(other);
}
/**
* RecordBuilder for AnalysisPanel instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String specificDisease;
private java.lang.String panelName;
private java.lang.String panelId;
private java.lang.String panelVersion;
private java.lang.String reviewOutcome;
private java.lang.String multipleGeneticOrigins;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.participant.avro.AnalysisPanel.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.participant.avro.AnalysisPanel.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.panelName)) {
this.panelName = data().deepCopy(fields()[1].schema(), other.panelName);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.panelId)) {
this.panelId = data().deepCopy(fields()[2].schema(), other.panelId);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.panelVersion)) {
this.panelVersion = data().deepCopy(fields()[3].schema(), other.panelVersion);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.reviewOutcome)) {
this.reviewOutcome = data().deepCopy(fields()[4].schema(), other.reviewOutcome);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.multipleGeneticOrigins)) {
this.multipleGeneticOrigins = data().deepCopy(fields()[5].schema(), other.multipleGeneticOrigins);
fieldSetFlags()[5] = true;
}
}
/** Creates a Builder by copying an existing AnalysisPanel instance */
private Builder(org.gel.models.participant.avro.AnalysisPanel other) {
super(org.gel.models.participant.avro.AnalysisPanel.SCHEMA$);
if (isValidValue(fields()[0], other.specificDisease)) {
this.specificDisease = data().deepCopy(fields()[0].schema(), other.specificDisease);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.panelName)) {
this.panelName = data().deepCopy(fields()[1].schema(), other.panelName);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.panelId)) {
this.panelId = data().deepCopy(fields()[2].schema(), other.panelId);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.panelVersion)) {
this.panelVersion = data().deepCopy(fields()[3].schema(), other.panelVersion);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.reviewOutcome)) {
this.reviewOutcome = data().deepCopy(fields()[4].schema(), other.reviewOutcome);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.multipleGeneticOrigins)) {
this.multipleGeneticOrigins = data().deepCopy(fields()[5].schema(), other.multipleGeneticOrigins);
fieldSetFlags()[5] = 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.participant.avro.AnalysisPanel.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.participant.avro.AnalysisPanel.Builder clearSpecificDisease() {
specificDisease = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'panelName' field */
public java.lang.String getPanelName() {
return panelName;
}
/** Sets the value of the 'panelName' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder setPanelName(java.lang.String value) {
validate(fields()[1], value);
this.panelName = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'panelName' field has been set */
public boolean hasPanelName() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'panelName' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder clearPanelName() {
panelName = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'panelId' field */
public java.lang.String getPanelId() {
return panelId;
}
/** Sets the value of the 'panelId' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder setPanelId(java.lang.String value) {
validate(fields()[2], value);
this.panelId = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'panelId' field has been set */
public boolean hasPanelId() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'panelId' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder clearPanelId() {
panelId = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'panelVersion' field */
public java.lang.String getPanelVersion() {
return panelVersion;
}
/** Sets the value of the 'panelVersion' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder setPanelVersion(java.lang.String value) {
validate(fields()[3], value);
this.panelVersion = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'panelVersion' field has been set */
public boolean hasPanelVersion() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'panelVersion' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder clearPanelVersion() {
panelVersion = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'reviewOutcome' field */
public java.lang.String getReviewOutcome() {
return reviewOutcome;
}
/** Sets the value of the 'reviewOutcome' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder setReviewOutcome(java.lang.String value) {
validate(fields()[4], value);
this.reviewOutcome = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'reviewOutcome' field has been set */
public boolean hasReviewOutcome() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'reviewOutcome' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder clearReviewOutcome() {
reviewOutcome = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'multipleGeneticOrigins' field */
public java.lang.String getMultipleGeneticOrigins() {
return multipleGeneticOrigins;
}
/** Sets the value of the 'multipleGeneticOrigins' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder setMultipleGeneticOrigins(java.lang.String value) {
validate(fields()[5], value);
this.multipleGeneticOrigins = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'multipleGeneticOrigins' field has been set */
public boolean hasMultipleGeneticOrigins() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'multipleGeneticOrigins' field */
public org.gel.models.participant.avro.AnalysisPanel.Builder clearMultipleGeneticOrigins() {
multipleGeneticOrigins = null;
fieldSetFlags()[5] = false;
return this;
}
@Override
public AnalysisPanel build() {
try {
AnalysisPanel record = new AnalysisPanel();
record.specificDisease = fieldSetFlags()[0] ? this.specificDisease : (java.lang.String) defaultValue(fields()[0]);
record.panelName = fieldSetFlags()[1] ? this.panelName : (java.lang.String) defaultValue(fields()[1]);
record.panelId = fieldSetFlags()[2] ? this.panelId : (java.lang.String) defaultValue(fields()[2]);
record.panelVersion = fieldSetFlags()[3] ? this.panelVersion : (java.lang.String) defaultValue(fields()[3]);
record.reviewOutcome = fieldSetFlags()[4] ? this.reviewOutcome : (java.lang.String) defaultValue(fields()[4]);
record.multipleGeneticOrigins = fieldSetFlags()[5] ? this.multipleGeneticOrigins : (java.lang.String) defaultValue(fields()[5]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}