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")
@org.apache.avro.specific.AvroGenerated
public class AdditionalVariantsQuestions 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\":\"AdditionalVariantsQuestions\",\"namespace\":\"org.gel.models.report.avro\",\"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\":\"Chr: Pos Ref > Alt\"},{\"name\":\"variantActionability\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"CancerActionability\",\"doc\":\"An enumeration Variant Actionability:\\n * `predicts_therapeutic_response`: Predicts therapeutic response\\n * `prognostic`: Prognostic\\n * `defines_diagnosis_group`: Defines diagnosis group\\n * `eligibility_for_trial`: Eligibility for trial\\n * `germline_susceptibility`: Germline susceptibility\\n * `other`: Other (please specify)\",\"symbols\":[\"germline_susceptibility\",\"predicts_therapeutic_response\",\"prognostic\",\"defines_diagnosis_group\",\"eligibility_for_trial\",\"other\"]}},\"doc\":\"Type of potential actionability:\"},{\"name\":\"otherVariantActionability\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"variantUsability\",\"type\":{\"type\":\"enum\",\"name\":\"CancerUsabilitySomatic\",\"doc\":\"Variant usability for somatic variants:\\n* `already_actioned`: Already actioned (i.e. prior to receiving this WGA)\\n* `actioned_result_of_this_wga`: actioned as a result of receiving this WGA\\n* `not_yet_actioned`: not yet actioned, but potentially actionable in the future\",\"symbols\":[\"already_actioned\",\"actioned_result_of_this_wga\",\"not_yet_actioned\"]},\"doc\":\"How has/will this potentially actionable variant been/be used?\"},{\"name\":\"variantTested\",\"type\":{\"type\":\"enum\",\"name\":\"CancerTestedAdditional\",\"doc\":\"An enumeration Variant tested:\\n * `not_indicated_for_patient_care`: No: not indicated for patient care at this time\\n * `no_orthologous_test_available`: No: no orthologous test available\\n * `test_performed_prior_to_wga`: Yes: test performed prior to receiving WGA (eg using standard-of-care assay such as panel testing, or sanger sequencing)\\n * `technical_validation_following_wga`: Yes: technical validation performed/planned following receiving this WGA\\n * `na`: N/A\",\"symbols\":[\"not_indicated_for_patient_care\",\"no_orthologous_test_available\",\"test_performed_prior_to_wga\",\"technical_validation_following_wga\",\"na\"]},\"doc\":\"Has this variant been tested by another method (either prior to or following receipt of this WGA)?\"},{\"name\":\"validationAssayType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Please enter validation assay type e.g Pyrosequencing, NGS panel, COBAS, Sanger sequencing. If not applicable enter NA;\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** Chr: Pos Ref > Alt */
private org.gel.models.report.avro.VariantCoordinates variantCoordinates;
/** Type of potential actionability: */
private java.util.List variantActionability;
private java.lang.String otherVariantActionability;
/** How has/will this potentially actionable variant been/be used? */
private org.gel.models.report.avro.CancerUsabilitySomatic variantUsability;
/** Has this variant been tested by another method (either prior to or following receipt of this WGA)? */
private org.gel.models.report.avro.CancerTestedAdditional variantTested;
/** Please enter validation assay type e.g Pyrosequencing, NGS panel, COBAS, Sanger sequencing. If not applicable enter NA; */
private java.lang.String validationAssayType;
/**
* 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 AdditionalVariantsQuestions() {}
/**
* All-args constructor.
*/
public AdditionalVariantsQuestions(org.gel.models.report.avro.VariantCoordinates variantCoordinates, java.util.List variantActionability, java.lang.String otherVariantActionability, org.gel.models.report.avro.CancerUsabilitySomatic variantUsability, org.gel.models.report.avro.CancerTestedAdditional variantTested, java.lang.String validationAssayType) {
this.variantCoordinates = variantCoordinates;
this.variantActionability = variantActionability;
this.otherVariantActionability = otherVariantActionability;
this.variantUsability = variantUsability;
this.variantTested = variantTested;
this.validationAssayType = validationAssayType;
}
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 variantCoordinates;
case 1: return variantActionability;
case 2: return otherVariantActionability;
case 3: return variantUsability;
case 4: return variantTested;
case 5: return validationAssayType;
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: variantCoordinates = (org.gel.models.report.avro.VariantCoordinates)value$; break;
case 1: variantActionability = (java.util.List)value$; break;
case 2: otherVariantActionability = (java.lang.String)value$; break;
case 3: variantUsability = (org.gel.models.report.avro.CancerUsabilitySomatic)value$; break;
case 4: variantTested = (org.gel.models.report.avro.CancerTestedAdditional)value$; break;
case 5: validationAssayType = (java.lang.String)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'variantCoordinates' field.
* Chr: Pos Ref > Alt */
public org.gel.models.report.avro.VariantCoordinates getVariantCoordinates() {
return variantCoordinates;
}
/**
* Sets the value of the 'variantCoordinates' field.
* Chr: Pos Ref > Alt * @param value the value to set.
*/
public void setVariantCoordinates(org.gel.models.report.avro.VariantCoordinates value) {
this.variantCoordinates = value;
}
/**
* Gets the value of the 'variantActionability' field.
* Type of potential actionability: */
public java.util.List getVariantActionability() {
return variantActionability;
}
/**
* Sets the value of the 'variantActionability' field.
* Type of potential actionability: * @param value the value to set.
*/
public void setVariantActionability(java.util.List value) {
this.variantActionability = value;
}
/**
* Gets the value of the 'otherVariantActionability' field.
*/
public java.lang.String getOtherVariantActionability() {
return otherVariantActionability;
}
/**
* Sets the value of the 'otherVariantActionability' field.
* @param value the value to set.
*/
public void setOtherVariantActionability(java.lang.String value) {
this.otherVariantActionability = value;
}
/**
* Gets the value of the 'variantUsability' field.
* How has/will this potentially actionable variant been/be used? */
public org.gel.models.report.avro.CancerUsabilitySomatic getVariantUsability() {
return variantUsability;
}
/**
* Sets the value of the 'variantUsability' field.
* How has/will this potentially actionable variant been/be used? * @param value the value to set.
*/
public void setVariantUsability(org.gel.models.report.avro.CancerUsabilitySomatic value) {
this.variantUsability = value;
}
/**
* Gets the value of the 'variantTested' field.
* Has this variant been tested by another method (either prior to or following receipt of this WGA)? */
public org.gel.models.report.avro.CancerTestedAdditional getVariantTested() {
return variantTested;
}
/**
* Sets the value of the 'variantTested' field.
* Has this variant been tested by another method (either prior to or following receipt of this WGA)? * @param value the value to set.
*/
public void setVariantTested(org.gel.models.report.avro.CancerTestedAdditional value) {
this.variantTested = value;
}
/**
* Gets the value of the 'validationAssayType' field.
* Please enter validation assay type e.g Pyrosequencing, NGS panel, COBAS, Sanger sequencing. If not applicable enter NA; */
public java.lang.String getValidationAssayType() {
return validationAssayType;
}
/**
* Sets the value of the 'validationAssayType' field.
* Please enter validation assay type e.g Pyrosequencing, NGS panel, COBAS, Sanger sequencing. If not applicable enter NA; * @param value the value to set.
*/
public void setValidationAssayType(java.lang.String value) {
this.validationAssayType = value;
}
/** Creates a new AdditionalVariantsQuestions RecordBuilder */
public static org.gel.models.report.avro.AdditionalVariantsQuestions.Builder newBuilder() {
return new org.gel.models.report.avro.AdditionalVariantsQuestions.Builder();
}
/** Creates a new AdditionalVariantsQuestions RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.AdditionalVariantsQuestions.Builder newBuilder(org.gel.models.report.avro.AdditionalVariantsQuestions.Builder other) {
return new org.gel.models.report.avro.AdditionalVariantsQuestions.Builder(other);
}
/** Creates a new AdditionalVariantsQuestions RecordBuilder by copying an existing AdditionalVariantsQuestions instance */
public static org.gel.models.report.avro.AdditionalVariantsQuestions.Builder newBuilder(org.gel.models.report.avro.AdditionalVariantsQuestions other) {
return new org.gel.models.report.avro.AdditionalVariantsQuestions.Builder(other);
}
/**
* RecordBuilder for AdditionalVariantsQuestions instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private org.gel.models.report.avro.VariantCoordinates variantCoordinates;
private java.util.List variantActionability;
private java.lang.String otherVariantActionability;
private org.gel.models.report.avro.CancerUsabilitySomatic variantUsability;
private org.gel.models.report.avro.CancerTestedAdditional variantTested;
private java.lang.String validationAssayType;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.AdditionalVariantsQuestions.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.AdditionalVariantsQuestions.Builder other) {
super(other);
if (isValidValue(fields()[0], other.variantCoordinates)) {
this.variantCoordinates = data().deepCopy(fields()[0].schema(), other.variantCoordinates);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.variantActionability)) {
this.variantActionability = data().deepCopy(fields()[1].schema(), other.variantActionability);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.otherVariantActionability)) {
this.otherVariantActionability = data().deepCopy(fields()[2].schema(), other.otherVariantActionability);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.variantUsability)) {
this.variantUsability = data().deepCopy(fields()[3].schema(), other.variantUsability);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.variantTested)) {
this.variantTested = data().deepCopy(fields()[4].schema(), other.variantTested);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.validationAssayType)) {
this.validationAssayType = data().deepCopy(fields()[5].schema(), other.validationAssayType);
fieldSetFlags()[5] = true;
}
}
/** Creates a Builder by copying an existing AdditionalVariantsQuestions instance */
private Builder(org.gel.models.report.avro.AdditionalVariantsQuestions other) {
super(org.gel.models.report.avro.AdditionalVariantsQuestions.SCHEMA$);
if (isValidValue(fields()[0], other.variantCoordinates)) {
this.variantCoordinates = data().deepCopy(fields()[0].schema(), other.variantCoordinates);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.variantActionability)) {
this.variantActionability = data().deepCopy(fields()[1].schema(), other.variantActionability);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.otherVariantActionability)) {
this.otherVariantActionability = data().deepCopy(fields()[2].schema(), other.otherVariantActionability);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.variantUsability)) {
this.variantUsability = data().deepCopy(fields()[3].schema(), other.variantUsability);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.variantTested)) {
this.variantTested = data().deepCopy(fields()[4].schema(), other.variantTested);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.validationAssayType)) {
this.validationAssayType = data().deepCopy(fields()[5].schema(), other.validationAssayType);
fieldSetFlags()[5] = true;
}
}
/** Gets the value of the 'variantCoordinates' field */
public org.gel.models.report.avro.VariantCoordinates getVariantCoordinates() {
return variantCoordinates;
}
/** Sets the value of the 'variantCoordinates' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder setVariantCoordinates(org.gel.models.report.avro.VariantCoordinates value) {
validate(fields()[0], value);
this.variantCoordinates = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'variantCoordinates' field has been set */
public boolean hasVariantCoordinates() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'variantCoordinates' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder clearVariantCoordinates() {
variantCoordinates = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'variantActionability' field */
public java.util.List getVariantActionability() {
return variantActionability;
}
/** Sets the value of the 'variantActionability' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder setVariantActionability(java.util.List value) {
validate(fields()[1], value);
this.variantActionability = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'variantActionability' field has been set */
public boolean hasVariantActionability() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'variantActionability' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder clearVariantActionability() {
variantActionability = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'otherVariantActionability' field */
public java.lang.String getOtherVariantActionability() {
return otherVariantActionability;
}
/** Sets the value of the 'otherVariantActionability' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder setOtherVariantActionability(java.lang.String value) {
validate(fields()[2], value);
this.otherVariantActionability = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'otherVariantActionability' field has been set */
public boolean hasOtherVariantActionability() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'otherVariantActionability' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder clearOtherVariantActionability() {
otherVariantActionability = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'variantUsability' field */
public org.gel.models.report.avro.CancerUsabilitySomatic getVariantUsability() {
return variantUsability;
}
/** Sets the value of the 'variantUsability' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder setVariantUsability(org.gel.models.report.avro.CancerUsabilitySomatic value) {
validate(fields()[3], value);
this.variantUsability = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'variantUsability' field has been set */
public boolean hasVariantUsability() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'variantUsability' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder clearVariantUsability() {
variantUsability = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'variantTested' field */
public org.gel.models.report.avro.CancerTestedAdditional getVariantTested() {
return variantTested;
}
/** Sets the value of the 'variantTested' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder setVariantTested(org.gel.models.report.avro.CancerTestedAdditional value) {
validate(fields()[4], value);
this.variantTested = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'variantTested' field has been set */
public boolean hasVariantTested() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'variantTested' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder clearVariantTested() {
variantTested = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'validationAssayType' field */
public java.lang.String getValidationAssayType() {
return validationAssayType;
}
/** Sets the value of the 'validationAssayType' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder setValidationAssayType(java.lang.String value) {
validate(fields()[5], value);
this.validationAssayType = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'validationAssayType' field has been set */
public boolean hasValidationAssayType() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'validationAssayType' field */
public org.gel.models.report.avro.AdditionalVariantsQuestions.Builder clearValidationAssayType() {
validationAssayType = null;
fieldSetFlags()[5] = false;
return this;
}
@Override
public AdditionalVariantsQuestions build() {
try {
AdditionalVariantsQuestions record = new AdditionalVariantsQuestions();
record.variantCoordinates = fieldSetFlags()[0] ? this.variantCoordinates : (org.gel.models.report.avro.VariantCoordinates) defaultValue(fields()[0]);
record.variantActionability = fieldSetFlags()[1] ? this.variantActionability : (java.util.List) defaultValue(fields()[1]);
record.otherVariantActionability = fieldSetFlags()[2] ? this.otherVariantActionability : (java.lang.String) defaultValue(fields()[2]);
record.variantUsability = fieldSetFlags()[3] ? this.variantUsability : (org.gel.models.report.avro.CancerUsabilitySomatic) defaultValue(fields()[3]);
record.variantTested = fieldSetFlags()[4] ? this.variantTested : (org.gel.models.report.avro.CancerTestedAdditional) defaultValue(fields()[4]);
record.validationAssayType = fieldSetFlags()[5] ? this.validationAssayType : (java.lang.String) defaultValue(fields()[5]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}