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")
/** Amp Clinical or Experimental Evidence, the level will define the overal clasification of the variant together with
the tiering. */
@org.apache.avro.specific.AvroGenerated
public class AmpClincialOrExperimentalEvidence 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\":\"AmpClincialOrExperimentalEvidence\",\"namespace\":\"org.gel.models.report.avro\",\"doc\":\"Amp Clinical or Experimental Evidence, the level will define the overal clasification of the variant together with\\n the tiering.\",\"fields\":[{\"name\":\"category\",\"type\":{\"type\":\"enum\",\"name\":\"AmpClinicalOrExperimentalEvidenceCategory\",\"doc\":\"Categories of Clinical and/or Experimental Evidence as defined in AMP guidelines\",\"symbols\":[\"therapeutic\",\"diagnosis\",\"prognosis\"]},\"doc\":\"As denined in AMP guidelines: therapeutic, diagnosis or prognosis\"},{\"name\":\"level\",\"type\":{\"type\":\"enum\",\"name\":\"AmpClinicalOrExperimentalEvidenceLevel\",\"doc\":\"Levels for categories of Clinical and/or Experimental Evidence as defined in AMP guidelines\",\"symbols\":[\"levelA\",\"levelB\",\"levelC\",\"levelD\"]},\"doc\":\"As denined in AMP guidelines: levelA, levelB, levelC, levelD\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the evidence\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** As denined in AMP guidelines: therapeutic, diagnosis or prognosis */
private org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory category;
/** As denined in AMP guidelines: levelA, levelB, levelC, levelD */
private org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel level;
/** Description of the evidence */
private java.lang.String description;
/**
* 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 AmpClincialOrExperimentalEvidence() {}
/**
* All-args constructor.
*/
public AmpClincialOrExperimentalEvidence(org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory category, org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel level, java.lang.String description) {
this.category = category;
this.level = level;
this.description = description;
}
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 category;
case 1: return level;
case 2: return description;
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: category = (org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory)value$; break;
case 1: level = (org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel)value$; break;
case 2: description = (java.lang.String)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'category' field.
* As denined in AMP guidelines: therapeutic, diagnosis or prognosis */
public org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory getCategory() {
return category;
}
/**
* Sets the value of the 'category' field.
* As denined in AMP guidelines: therapeutic, diagnosis or prognosis * @param value the value to set.
*/
public void setCategory(org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory value) {
this.category = value;
}
/**
* Gets the value of the 'level' field.
* As denined in AMP guidelines: levelA, levelB, levelC, levelD */
public org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel getLevel() {
return level;
}
/**
* Sets the value of the 'level' field.
* As denined in AMP guidelines: levelA, levelB, levelC, levelD * @param value the value to set.
*/
public void setLevel(org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel value) {
this.level = value;
}
/**
* Gets the value of the 'description' field.
* Description of the evidence */
public java.lang.String getDescription() {
return description;
}
/**
* Sets the value of the 'description' field.
* Description of the evidence * @param value the value to set.
*/
public void setDescription(java.lang.String value) {
this.description = value;
}
/** Creates a new AmpClincialOrExperimentalEvidence RecordBuilder */
public static org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder newBuilder() {
return new org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder();
}
/** Creates a new AmpClincialOrExperimentalEvidence RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder newBuilder(org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder other) {
return new org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder(other);
}
/** Creates a new AmpClincialOrExperimentalEvidence RecordBuilder by copying an existing AmpClincialOrExperimentalEvidence instance */
public static org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder newBuilder(org.gel.models.report.avro.AmpClincialOrExperimentalEvidence other) {
return new org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder(other);
}
/**
* RecordBuilder for AmpClincialOrExperimentalEvidence instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory category;
private org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel level;
private java.lang.String description;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder other) {
super(other);
if (isValidValue(fields()[0], other.category)) {
this.category = data().deepCopy(fields()[0].schema(), other.category);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.level)) {
this.level = data().deepCopy(fields()[1].schema(), other.level);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.description)) {
this.description = data().deepCopy(fields()[2].schema(), other.description);
fieldSetFlags()[2] = true;
}
}
/** Creates a Builder by copying an existing AmpClincialOrExperimentalEvidence instance */
private Builder(org.gel.models.report.avro.AmpClincialOrExperimentalEvidence other) {
super(org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.SCHEMA$);
if (isValidValue(fields()[0], other.category)) {
this.category = data().deepCopy(fields()[0].schema(), other.category);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.level)) {
this.level = data().deepCopy(fields()[1].schema(), other.level);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.description)) {
this.description = data().deepCopy(fields()[2].schema(), other.description);
fieldSetFlags()[2] = true;
}
}
/** Gets the value of the 'category' field */
public org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory getCategory() {
return category;
}
/** Sets the value of the 'category' field */
public org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder setCategory(org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory value) {
validate(fields()[0], value);
this.category = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'category' field has been set */
public boolean hasCategory() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'category' field */
public org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder clearCategory() {
category = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'level' field */
public org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel getLevel() {
return level;
}
/** Sets the value of the 'level' field */
public org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder setLevel(org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel value) {
validate(fields()[1], value);
this.level = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'level' field has been set */
public boolean hasLevel() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'level' field */
public org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder clearLevel() {
level = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'description' field */
public java.lang.String getDescription() {
return description;
}
/** Sets the value of the 'description' field */
public org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder setDescription(java.lang.String value) {
validate(fields()[2], value);
this.description = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'description' field has been set */
public boolean hasDescription() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'description' field */
public org.gel.models.report.avro.AmpClincialOrExperimentalEvidence.Builder clearDescription() {
description = null;
fieldSetFlags()[2] = false;
return this;
}
@Override
public AmpClincialOrExperimentalEvidence build() {
try {
AmpClincialOrExperimentalEvidence record = new AmpClincialOrExperimentalEvidence();
record.category = fieldSetFlags()[0] ? this.category : (org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceCategory) defaultValue(fields()[0]);
record.level = fieldSetFlags()[1] ? this.level : (org.gel.models.report.avro.AmpClinicalOrExperimentalEvidenceLevel) defaultValue(fields()[1]);
record.description = fieldSetFlags()[2] ? this.description : (java.lang.String) defaultValue(fields()[2]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}