org.opencb.biodata.models.variant.avro.GeneCancerAssociation Maven / Gradle / Ivy
The newest version!
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.opencb.biodata.models.variant.avro;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class GeneCancerAssociation 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\":\"GeneCancerAssociation\",\"namespace\":\"org.opencb.biodata.models.variant.avro\",\"fields\":[{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"tier\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"somatic\",\"type\":[\"null\",\"boolean\"]},{\"name\":\"germline\",\"type\":[\"null\",\"boolean\"]},{\"name\":\"somaticTumourTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"name\":\"germlineTumourTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"name\":\"syndromes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"name\":\"tissues\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"name\":\"modeOfInheritance\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"name\":\"roleInCancer\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"name\":\"mutationTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"name\":\"translocationPartners\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private java.lang.String id;
private java.lang.String source;
private java.lang.String tier;
private java.lang.Boolean somatic;
private java.lang.Boolean germline;
private java.util.List somaticTumourTypes;
private java.util.List germlineTumourTypes;
private java.util.List syndromes;
private java.util.List tissues;
private java.util.List modeOfInheritance;
private java.util.List roleInCancer;
private java.util.List mutationTypes;
private java.util.List translocationPartners;
/**
* 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 GeneCancerAssociation() {}
/**
* All-args constructor.
*/
public GeneCancerAssociation(java.lang.String id, java.lang.String source, java.lang.String tier, java.lang.Boolean somatic, java.lang.Boolean germline, java.util.List somaticTumourTypes, java.util.List germlineTumourTypes, java.util.List syndromes, java.util.List tissues, java.util.List modeOfInheritance, java.util.List roleInCancer, java.util.List mutationTypes, java.util.List translocationPartners) {
this.id = id;
this.source = source;
this.tier = tier;
this.somatic = somatic;
this.germline = germline;
this.somaticTumourTypes = somaticTumourTypes;
this.germlineTumourTypes = germlineTumourTypes;
this.syndromes = syndromes;
this.tissues = tissues;
this.modeOfInheritance = modeOfInheritance;
this.roleInCancer = roleInCancer;
this.mutationTypes = mutationTypes;
this.translocationPartners = translocationPartners;
}
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 id;
case 1: return source;
case 2: return tier;
case 3: return somatic;
case 4: return germline;
case 5: return somaticTumourTypes;
case 6: return germlineTumourTypes;
case 7: return syndromes;
case 8: return tissues;
case 9: return modeOfInheritance;
case 10: return roleInCancer;
case 11: return mutationTypes;
case 12: return translocationPartners;
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: id = (java.lang.String)value$; break;
case 1: source = (java.lang.String)value$; break;
case 2: tier = (java.lang.String)value$; break;
case 3: somatic = (java.lang.Boolean)value$; break;
case 4: germline = (java.lang.Boolean)value$; break;
case 5: somaticTumourTypes = (java.util.List)value$; break;
case 6: germlineTumourTypes = (java.util.List)value$; break;
case 7: syndromes = (java.util.List)value$; break;
case 8: tissues = (java.util.List)value$; break;
case 9: modeOfInheritance = (java.util.List)value$; break;
case 10: roleInCancer = (java.util.List)value$; break;
case 11: mutationTypes = (java.util.List)value$; break;
case 12: translocationPartners = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'id' field.
*/
public java.lang.String getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* @param value the value to set.
*/
public void setId(java.lang.String value) {
this.id = value;
}
/**
* Gets the value of the 'source' field.
*/
public java.lang.String getSource() {
return source;
}
/**
* Sets the value of the 'source' field.
* @param value the value to set.
*/
public void setSource(java.lang.String value) {
this.source = value;
}
/**
* Gets the value of the 'tier' field.
*/
public java.lang.String getTier() {
return tier;
}
/**
* Sets the value of the 'tier' field.
* @param value the value to set.
*/
public void setTier(java.lang.String value) {
this.tier = value;
}
/**
* Gets the value of the 'somatic' field.
*/
public java.lang.Boolean getSomatic() {
return somatic;
}
/**
* Sets the value of the 'somatic' field.
* @param value the value to set.
*/
public void setSomatic(java.lang.Boolean value) {
this.somatic = value;
}
/**
* Gets the value of the 'germline' field.
*/
public java.lang.Boolean getGermline() {
return germline;
}
/**
* Sets the value of the 'germline' field.
* @param value the value to set.
*/
public void setGermline(java.lang.Boolean value) {
this.germline = value;
}
/**
* Gets the value of the 'somaticTumourTypes' field.
*/
public java.util.List getSomaticTumourTypes() {
return somaticTumourTypes;
}
/**
* Sets the value of the 'somaticTumourTypes' field.
* @param value the value to set.
*/
public void setSomaticTumourTypes(java.util.List value) {
this.somaticTumourTypes = value;
}
/**
* Gets the value of the 'germlineTumourTypes' field.
*/
public java.util.List getGermlineTumourTypes() {
return germlineTumourTypes;
}
/**
* Sets the value of the 'germlineTumourTypes' field.
* @param value the value to set.
*/
public void setGermlineTumourTypes(java.util.List value) {
this.germlineTumourTypes = value;
}
/**
* Gets the value of the 'syndromes' field.
*/
public java.util.List getSyndromes() {
return syndromes;
}
/**
* Sets the value of the 'syndromes' field.
* @param value the value to set.
*/
public void setSyndromes(java.util.List value) {
this.syndromes = value;
}
/**
* Gets the value of the 'tissues' field.
*/
public java.util.List getTissues() {
return tissues;
}
/**
* Sets the value of the 'tissues' field.
* @param value the value to set.
*/
public void setTissues(java.util.List value) {
this.tissues = value;
}
/**
* Gets the value of the 'modeOfInheritance' field.
*/
public java.util.List getModeOfInheritance() {
return modeOfInheritance;
}
/**
* Sets the value of the 'modeOfInheritance' field.
* @param value the value to set.
*/
public void setModeOfInheritance(java.util.List value) {
this.modeOfInheritance = value;
}
/**
* Gets the value of the 'roleInCancer' field.
*/
public java.util.List getRoleInCancer() {
return roleInCancer;
}
/**
* Sets the value of the 'roleInCancer' field.
* @param value the value to set.
*/
public void setRoleInCancer(java.util.List value) {
this.roleInCancer = value;
}
/**
* Gets the value of the 'mutationTypes' field.
*/
public java.util.List getMutationTypes() {
return mutationTypes;
}
/**
* Sets the value of the 'mutationTypes' field.
* @param value the value to set.
*/
public void setMutationTypes(java.util.List value) {
this.mutationTypes = value;
}
/**
* Gets the value of the 'translocationPartners' field.
*/
public java.util.List getTranslocationPartners() {
return translocationPartners;
}
/**
* Sets the value of the 'translocationPartners' field.
* @param value the value to set.
*/
public void setTranslocationPartners(java.util.List value) {
this.translocationPartners = value;
}
/** Creates a new GeneCancerAssociation RecordBuilder */
public static org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder newBuilder() {
return new org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder();
}
/** Creates a new GeneCancerAssociation RecordBuilder by copying an existing Builder */
public static org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder newBuilder(org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder other) {
return new org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder(other);
}
/** Creates a new GeneCancerAssociation RecordBuilder by copying an existing GeneCancerAssociation instance */
public static org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder newBuilder(org.opencb.biodata.models.variant.avro.GeneCancerAssociation other) {
return new org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder(other);
}
/**
* RecordBuilder for GeneCancerAssociation instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String id;
private java.lang.String source;
private java.lang.String tier;
private java.lang.Boolean somatic;
private java.lang.Boolean germline;
private java.util.List somaticTumourTypes;
private java.util.List germlineTumourTypes;
private java.util.List syndromes;
private java.util.List tissues;
private java.util.List modeOfInheritance;
private java.util.List roleInCancer;
private java.util.List mutationTypes;
private java.util.List translocationPartners;
/** Creates a new Builder */
private Builder() {
super(org.opencb.biodata.models.variant.avro.GeneCancerAssociation.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder other) {
super(other);
if (isValidValue(fields()[0], other.id)) {
this.id = data().deepCopy(fields()[0].schema(), other.id);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.source)) {
this.source = data().deepCopy(fields()[1].schema(), other.source);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.tier)) {
this.tier = data().deepCopy(fields()[2].schema(), other.tier);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.somatic)) {
this.somatic = data().deepCopy(fields()[3].schema(), other.somatic);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.germline)) {
this.germline = data().deepCopy(fields()[4].schema(), other.germline);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.somaticTumourTypes)) {
this.somaticTumourTypes = data().deepCopy(fields()[5].schema(), other.somaticTumourTypes);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.germlineTumourTypes)) {
this.germlineTumourTypes = data().deepCopy(fields()[6].schema(), other.germlineTumourTypes);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.syndromes)) {
this.syndromes = data().deepCopy(fields()[7].schema(), other.syndromes);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.tissues)) {
this.tissues = data().deepCopy(fields()[8].schema(), other.tissues);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.modeOfInheritance)) {
this.modeOfInheritance = data().deepCopy(fields()[9].schema(), other.modeOfInheritance);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.roleInCancer)) {
this.roleInCancer = data().deepCopy(fields()[10].schema(), other.roleInCancer);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.mutationTypes)) {
this.mutationTypes = data().deepCopy(fields()[11].schema(), other.mutationTypes);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.translocationPartners)) {
this.translocationPartners = data().deepCopy(fields()[12].schema(), other.translocationPartners);
fieldSetFlags()[12] = true;
}
}
/** Creates a Builder by copying an existing GeneCancerAssociation instance */
private Builder(org.opencb.biodata.models.variant.avro.GeneCancerAssociation other) {
super(org.opencb.biodata.models.variant.avro.GeneCancerAssociation.SCHEMA$);
if (isValidValue(fields()[0], other.id)) {
this.id = data().deepCopy(fields()[0].schema(), other.id);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.source)) {
this.source = data().deepCopy(fields()[1].schema(), other.source);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.tier)) {
this.tier = data().deepCopy(fields()[2].schema(), other.tier);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.somatic)) {
this.somatic = data().deepCopy(fields()[3].schema(), other.somatic);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.germline)) {
this.germline = data().deepCopy(fields()[4].schema(), other.germline);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.somaticTumourTypes)) {
this.somaticTumourTypes = data().deepCopy(fields()[5].schema(), other.somaticTumourTypes);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.germlineTumourTypes)) {
this.germlineTumourTypes = data().deepCopy(fields()[6].schema(), other.germlineTumourTypes);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.syndromes)) {
this.syndromes = data().deepCopy(fields()[7].schema(), other.syndromes);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.tissues)) {
this.tissues = data().deepCopy(fields()[8].schema(), other.tissues);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.modeOfInheritance)) {
this.modeOfInheritance = data().deepCopy(fields()[9].schema(), other.modeOfInheritance);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.roleInCancer)) {
this.roleInCancer = data().deepCopy(fields()[10].schema(), other.roleInCancer);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.mutationTypes)) {
this.mutationTypes = data().deepCopy(fields()[11].schema(), other.mutationTypes);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.translocationPartners)) {
this.translocationPartners = data().deepCopy(fields()[12].schema(), other.translocationPartners);
fieldSetFlags()[12] = true;
}
}
/** Gets the value of the 'id' field */
public java.lang.String getId() {
return id;
}
/** Sets the value of the 'id' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setId(java.lang.String value) {
validate(fields()[0], value);
this.id = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'id' field has been set */
public boolean hasId() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'id' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearId() {
id = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'source' field */
public java.lang.String getSource() {
return source;
}
/** Sets the value of the 'source' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setSource(java.lang.String value) {
validate(fields()[1], value);
this.source = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'source' field has been set */
public boolean hasSource() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'source' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearSource() {
source = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'tier' field */
public java.lang.String getTier() {
return tier;
}
/** Sets the value of the 'tier' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setTier(java.lang.String value) {
validate(fields()[2], value);
this.tier = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'tier' field has been set */
public boolean hasTier() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'tier' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearTier() {
tier = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'somatic' field */
public java.lang.Boolean getSomatic() {
return somatic;
}
/** Sets the value of the 'somatic' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setSomatic(java.lang.Boolean value) {
validate(fields()[3], value);
this.somatic = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'somatic' field has been set */
public boolean hasSomatic() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'somatic' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearSomatic() {
somatic = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'germline' field */
public java.lang.Boolean getGermline() {
return germline;
}
/** Sets the value of the 'germline' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setGermline(java.lang.Boolean value) {
validate(fields()[4], value);
this.germline = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'germline' field has been set */
public boolean hasGermline() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'germline' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearGermline() {
germline = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'somaticTumourTypes' field */
public java.util.List getSomaticTumourTypes() {
return somaticTumourTypes;
}
/** Sets the value of the 'somaticTumourTypes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setSomaticTumourTypes(java.util.List value) {
validate(fields()[5], value);
this.somaticTumourTypes = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'somaticTumourTypes' field has been set */
public boolean hasSomaticTumourTypes() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'somaticTumourTypes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearSomaticTumourTypes() {
somaticTumourTypes = null;
fieldSetFlags()[5] = false;
return this;
}
/** Gets the value of the 'germlineTumourTypes' field */
public java.util.List getGermlineTumourTypes() {
return germlineTumourTypes;
}
/** Sets the value of the 'germlineTumourTypes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setGermlineTumourTypes(java.util.List value) {
validate(fields()[6], value);
this.germlineTumourTypes = value;
fieldSetFlags()[6] = true;
return this;
}
/** Checks whether the 'germlineTumourTypes' field has been set */
public boolean hasGermlineTumourTypes() {
return fieldSetFlags()[6];
}
/** Clears the value of the 'germlineTumourTypes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearGermlineTumourTypes() {
germlineTumourTypes = null;
fieldSetFlags()[6] = false;
return this;
}
/** Gets the value of the 'syndromes' field */
public java.util.List getSyndromes() {
return syndromes;
}
/** Sets the value of the 'syndromes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setSyndromes(java.util.List value) {
validate(fields()[7], value);
this.syndromes = value;
fieldSetFlags()[7] = true;
return this;
}
/** Checks whether the 'syndromes' field has been set */
public boolean hasSyndromes() {
return fieldSetFlags()[7];
}
/** Clears the value of the 'syndromes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearSyndromes() {
syndromes = null;
fieldSetFlags()[7] = false;
return this;
}
/** Gets the value of the 'tissues' field */
public java.util.List getTissues() {
return tissues;
}
/** Sets the value of the 'tissues' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setTissues(java.util.List value) {
validate(fields()[8], value);
this.tissues = value;
fieldSetFlags()[8] = true;
return this;
}
/** Checks whether the 'tissues' field has been set */
public boolean hasTissues() {
return fieldSetFlags()[8];
}
/** Clears the value of the 'tissues' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearTissues() {
tissues = null;
fieldSetFlags()[8] = false;
return this;
}
/** Gets the value of the 'modeOfInheritance' field */
public java.util.List getModeOfInheritance() {
return modeOfInheritance;
}
/** Sets the value of the 'modeOfInheritance' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setModeOfInheritance(java.util.List value) {
validate(fields()[9], value);
this.modeOfInheritance = value;
fieldSetFlags()[9] = true;
return this;
}
/** Checks whether the 'modeOfInheritance' field has been set */
public boolean hasModeOfInheritance() {
return fieldSetFlags()[9];
}
/** Clears the value of the 'modeOfInheritance' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearModeOfInheritance() {
modeOfInheritance = null;
fieldSetFlags()[9] = false;
return this;
}
/** Gets the value of the 'roleInCancer' field */
public java.util.List getRoleInCancer() {
return roleInCancer;
}
/** Sets the value of the 'roleInCancer' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setRoleInCancer(java.util.List value) {
validate(fields()[10], value);
this.roleInCancer = value;
fieldSetFlags()[10] = true;
return this;
}
/** Checks whether the 'roleInCancer' field has been set */
public boolean hasRoleInCancer() {
return fieldSetFlags()[10];
}
/** Clears the value of the 'roleInCancer' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearRoleInCancer() {
roleInCancer = null;
fieldSetFlags()[10] = false;
return this;
}
/** Gets the value of the 'mutationTypes' field */
public java.util.List getMutationTypes() {
return mutationTypes;
}
/** Sets the value of the 'mutationTypes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setMutationTypes(java.util.List value) {
validate(fields()[11], value);
this.mutationTypes = value;
fieldSetFlags()[11] = true;
return this;
}
/** Checks whether the 'mutationTypes' field has been set */
public boolean hasMutationTypes() {
return fieldSetFlags()[11];
}
/** Clears the value of the 'mutationTypes' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearMutationTypes() {
mutationTypes = null;
fieldSetFlags()[11] = false;
return this;
}
/** Gets the value of the 'translocationPartners' field */
public java.util.List getTranslocationPartners() {
return translocationPartners;
}
/** Sets the value of the 'translocationPartners' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder setTranslocationPartners(java.util.List value) {
validate(fields()[12], value);
this.translocationPartners = value;
fieldSetFlags()[12] = true;
return this;
}
/** Checks whether the 'translocationPartners' field has been set */
public boolean hasTranslocationPartners() {
return fieldSetFlags()[12];
}
/** Clears the value of the 'translocationPartners' field */
public org.opencb.biodata.models.variant.avro.GeneCancerAssociation.Builder clearTranslocationPartners() {
translocationPartners = null;
fieldSetFlags()[12] = false;
return this;
}
@Override
public GeneCancerAssociation build() {
try {
GeneCancerAssociation record = new GeneCancerAssociation();
record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) defaultValue(fields()[0]);
record.source = fieldSetFlags()[1] ? this.source : (java.lang.String) defaultValue(fields()[1]);
record.tier = fieldSetFlags()[2] ? this.tier : (java.lang.String) defaultValue(fields()[2]);
record.somatic = fieldSetFlags()[3] ? this.somatic : (java.lang.Boolean) defaultValue(fields()[3]);
record.germline = fieldSetFlags()[4] ? this.germline : (java.lang.Boolean) defaultValue(fields()[4]);
record.somaticTumourTypes = fieldSetFlags()[5] ? this.somaticTumourTypes : (java.util.List) defaultValue(fields()[5]);
record.germlineTumourTypes = fieldSetFlags()[6] ? this.germlineTumourTypes : (java.util.List) defaultValue(fields()[6]);
record.syndromes = fieldSetFlags()[7] ? this.syndromes : (java.util.List) defaultValue(fields()[7]);
record.tissues = fieldSetFlags()[8] ? this.tissues : (java.util.List) defaultValue(fields()[8]);
record.modeOfInheritance = fieldSetFlags()[9] ? this.modeOfInheritance : (java.util.List) defaultValue(fields()[9]);
record.roleInCancer = fieldSetFlags()[10] ? this.roleInCancer : (java.util.List) defaultValue(fields()[10]);
record.mutationTypes = fieldSetFlags()[11] ? this.mutationTypes : (java.util.List) defaultValue(fields()[11]);
record.translocationPartners = fieldSetFlags()[12] ? this.translocationPartners : (java.util.List) defaultValue(fields()[12]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}