org.opencb.biodata.models.variant.avro.PopulationFrequency 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 PopulationFrequency 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\":\"PopulationFrequency\",\"namespace\":\"org.opencb.biodata.models.variant.avro\",\"fields\":[{\"name\":\"study\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"population\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"refAllele\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"altAllele\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"refAlleleFreq\",\"type\":\"float\"},{\"name\":\"altAlleleFreq\",\"type\":\"float\"},{\"name\":\"refAlleleCount\",\"type\":[\"null\",\"int\"]},{\"name\":\"altAlleleCount\",\"type\":[\"null\",\"int\"]},{\"name\":\"refHomGenotypeFreq\",\"type\":[\"null\",\"float\"]},{\"name\":\"hetGenotypeFreq\",\"type\":[\"null\",\"float\"]},{\"name\":\"altHomGenotypeFreq\",\"type\":[\"null\",\"float\"]},{\"name\":\"refHomGenotypeCount\",\"type\":[\"null\",\"int\"]},{\"name\":\"hetGenotypeCount\",\"type\":[\"null\",\"int\"]},{\"name\":\"altHomGenotypeCount\",\"type\":[\"null\",\"int\"]}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private java.lang.String study;
private java.lang.String population;
private java.lang.String refAllele;
private java.lang.String altAllele;
private float refAlleleFreq;
private float altAlleleFreq;
private java.lang.Integer refAlleleCount;
private java.lang.Integer altAlleleCount;
private java.lang.Float refHomGenotypeFreq;
private java.lang.Float hetGenotypeFreq;
private java.lang.Float altHomGenotypeFreq;
private java.lang.Integer refHomGenotypeCount;
private java.lang.Integer hetGenotypeCount;
private java.lang.Integer altHomGenotypeCount;
/**
* 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 PopulationFrequency() {}
/**
* All-args constructor.
*/
public PopulationFrequency(java.lang.String study, java.lang.String population, java.lang.String refAllele, java.lang.String altAllele, java.lang.Float refAlleleFreq, java.lang.Float altAlleleFreq, java.lang.Integer refAlleleCount, java.lang.Integer altAlleleCount, java.lang.Float refHomGenotypeFreq, java.lang.Float hetGenotypeFreq, java.lang.Float altHomGenotypeFreq, java.lang.Integer refHomGenotypeCount, java.lang.Integer hetGenotypeCount, java.lang.Integer altHomGenotypeCount) {
this.study = study;
this.population = population;
this.refAllele = refAllele;
this.altAllele = altAllele;
this.refAlleleFreq = refAlleleFreq;
this.altAlleleFreq = altAlleleFreq;
this.refAlleleCount = refAlleleCount;
this.altAlleleCount = altAlleleCount;
this.refHomGenotypeFreq = refHomGenotypeFreq;
this.hetGenotypeFreq = hetGenotypeFreq;
this.altHomGenotypeFreq = altHomGenotypeFreq;
this.refHomGenotypeCount = refHomGenotypeCount;
this.hetGenotypeCount = hetGenotypeCount;
this.altHomGenotypeCount = altHomGenotypeCount;
}
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 study;
case 1: return population;
case 2: return refAllele;
case 3: return altAllele;
case 4: return refAlleleFreq;
case 5: return altAlleleFreq;
case 6: return refAlleleCount;
case 7: return altAlleleCount;
case 8: return refHomGenotypeFreq;
case 9: return hetGenotypeFreq;
case 10: return altHomGenotypeFreq;
case 11: return refHomGenotypeCount;
case 12: return hetGenotypeCount;
case 13: return altHomGenotypeCount;
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: study = (java.lang.String)value$; break;
case 1: population = (java.lang.String)value$; break;
case 2: refAllele = (java.lang.String)value$; break;
case 3: altAllele = (java.lang.String)value$; break;
case 4: refAlleleFreq = (java.lang.Float)value$; break;
case 5: altAlleleFreq = (java.lang.Float)value$; break;
case 6: refAlleleCount = (java.lang.Integer)value$; break;
case 7: altAlleleCount = (java.lang.Integer)value$; break;
case 8: refHomGenotypeFreq = (java.lang.Float)value$; break;
case 9: hetGenotypeFreq = (java.lang.Float)value$; break;
case 10: altHomGenotypeFreq = (java.lang.Float)value$; break;
case 11: refHomGenotypeCount = (java.lang.Integer)value$; break;
case 12: hetGenotypeCount = (java.lang.Integer)value$; break;
case 13: altHomGenotypeCount = (java.lang.Integer)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'study' field.
*/
public java.lang.String getStudy() {
return study;
}
/**
* Sets the value of the 'study' field.
* @param value the value to set.
*/
public void setStudy(java.lang.String value) {
this.study = value;
}
/**
* Gets the value of the 'population' field.
*/
public java.lang.String getPopulation() {
return population;
}
/**
* Sets the value of the 'population' field.
* @param value the value to set.
*/
public void setPopulation(java.lang.String value) {
this.population = value;
}
/**
* Gets the value of the 'refAllele' field.
*/
public java.lang.String getRefAllele() {
return refAllele;
}
/**
* Sets the value of the 'refAllele' field.
* @param value the value to set.
*/
public void setRefAllele(java.lang.String value) {
this.refAllele = value;
}
/**
* Gets the value of the 'altAllele' field.
*/
public java.lang.String getAltAllele() {
return altAllele;
}
/**
* Sets the value of the 'altAllele' field.
* @param value the value to set.
*/
public void setAltAllele(java.lang.String value) {
this.altAllele = value;
}
/**
* Gets the value of the 'refAlleleFreq' field.
*/
public java.lang.Float getRefAlleleFreq() {
return refAlleleFreq;
}
/**
* Sets the value of the 'refAlleleFreq' field.
* @param value the value to set.
*/
public void setRefAlleleFreq(java.lang.Float value) {
this.refAlleleFreq = value;
}
/**
* Gets the value of the 'altAlleleFreq' field.
*/
public java.lang.Float getAltAlleleFreq() {
return altAlleleFreq;
}
/**
* Sets the value of the 'altAlleleFreq' field.
* @param value the value to set.
*/
public void setAltAlleleFreq(java.lang.Float value) {
this.altAlleleFreq = value;
}
/**
* Gets the value of the 'refAlleleCount' field.
*/
public java.lang.Integer getRefAlleleCount() {
return refAlleleCount;
}
/**
* Sets the value of the 'refAlleleCount' field.
* @param value the value to set.
*/
public void setRefAlleleCount(java.lang.Integer value) {
this.refAlleleCount = value;
}
/**
* Gets the value of the 'altAlleleCount' field.
*/
public java.lang.Integer getAltAlleleCount() {
return altAlleleCount;
}
/**
* Sets the value of the 'altAlleleCount' field.
* @param value the value to set.
*/
public void setAltAlleleCount(java.lang.Integer value) {
this.altAlleleCount = value;
}
/**
* Gets the value of the 'refHomGenotypeFreq' field.
*/
public java.lang.Float getRefHomGenotypeFreq() {
return refHomGenotypeFreq;
}
/**
* Sets the value of the 'refHomGenotypeFreq' field.
* @param value the value to set.
*/
public void setRefHomGenotypeFreq(java.lang.Float value) {
this.refHomGenotypeFreq = value;
}
/**
* Gets the value of the 'hetGenotypeFreq' field.
*/
public java.lang.Float getHetGenotypeFreq() {
return hetGenotypeFreq;
}
/**
* Sets the value of the 'hetGenotypeFreq' field.
* @param value the value to set.
*/
public void setHetGenotypeFreq(java.lang.Float value) {
this.hetGenotypeFreq = value;
}
/**
* Gets the value of the 'altHomGenotypeFreq' field.
*/
public java.lang.Float getAltHomGenotypeFreq() {
return altHomGenotypeFreq;
}
/**
* Sets the value of the 'altHomGenotypeFreq' field.
* @param value the value to set.
*/
public void setAltHomGenotypeFreq(java.lang.Float value) {
this.altHomGenotypeFreq = value;
}
/**
* Gets the value of the 'refHomGenotypeCount' field.
*/
public java.lang.Integer getRefHomGenotypeCount() {
return refHomGenotypeCount;
}
/**
* Sets the value of the 'refHomGenotypeCount' field.
* @param value the value to set.
*/
public void setRefHomGenotypeCount(java.lang.Integer value) {
this.refHomGenotypeCount = value;
}
/**
* Gets the value of the 'hetGenotypeCount' field.
*/
public java.lang.Integer getHetGenotypeCount() {
return hetGenotypeCount;
}
/**
* Sets the value of the 'hetGenotypeCount' field.
* @param value the value to set.
*/
public void setHetGenotypeCount(java.lang.Integer value) {
this.hetGenotypeCount = value;
}
/**
* Gets the value of the 'altHomGenotypeCount' field.
*/
public java.lang.Integer getAltHomGenotypeCount() {
return altHomGenotypeCount;
}
/**
* Sets the value of the 'altHomGenotypeCount' field.
* @param value the value to set.
*/
public void setAltHomGenotypeCount(java.lang.Integer value) {
this.altHomGenotypeCount = value;
}
/** Creates a new PopulationFrequency RecordBuilder */
public static org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder newBuilder() {
return new org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder();
}
/** Creates a new PopulationFrequency RecordBuilder by copying an existing Builder */
public static org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder newBuilder(org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder other) {
return new org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder(other);
}
/** Creates a new PopulationFrequency RecordBuilder by copying an existing PopulationFrequency instance */
public static org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder newBuilder(org.opencb.biodata.models.variant.avro.PopulationFrequency other) {
return new org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder(other);
}
/**
* RecordBuilder for PopulationFrequency instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String study;
private java.lang.String population;
private java.lang.String refAllele;
private java.lang.String altAllele;
private float refAlleleFreq;
private float altAlleleFreq;
private java.lang.Integer refAlleleCount;
private java.lang.Integer altAlleleCount;
private java.lang.Float refHomGenotypeFreq;
private java.lang.Float hetGenotypeFreq;
private java.lang.Float altHomGenotypeFreq;
private java.lang.Integer refHomGenotypeCount;
private java.lang.Integer hetGenotypeCount;
private java.lang.Integer altHomGenotypeCount;
/** Creates a new Builder */
private Builder() {
super(org.opencb.biodata.models.variant.avro.PopulationFrequency.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder other) {
super(other);
if (isValidValue(fields()[0], other.study)) {
this.study = data().deepCopy(fields()[0].schema(), other.study);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.population)) {
this.population = data().deepCopy(fields()[1].schema(), other.population);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.refAllele)) {
this.refAllele = data().deepCopy(fields()[2].schema(), other.refAllele);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.altAllele)) {
this.altAllele = data().deepCopy(fields()[3].schema(), other.altAllele);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.refAlleleFreq)) {
this.refAlleleFreq = data().deepCopy(fields()[4].schema(), other.refAlleleFreq);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.altAlleleFreq)) {
this.altAlleleFreq = data().deepCopy(fields()[5].schema(), other.altAlleleFreq);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.refAlleleCount)) {
this.refAlleleCount = data().deepCopy(fields()[6].schema(), other.refAlleleCount);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.altAlleleCount)) {
this.altAlleleCount = data().deepCopy(fields()[7].schema(), other.altAlleleCount);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.refHomGenotypeFreq)) {
this.refHomGenotypeFreq = data().deepCopy(fields()[8].schema(), other.refHomGenotypeFreq);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.hetGenotypeFreq)) {
this.hetGenotypeFreq = data().deepCopy(fields()[9].schema(), other.hetGenotypeFreq);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.altHomGenotypeFreq)) {
this.altHomGenotypeFreq = data().deepCopy(fields()[10].schema(), other.altHomGenotypeFreq);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.refHomGenotypeCount)) {
this.refHomGenotypeCount = data().deepCopy(fields()[11].schema(), other.refHomGenotypeCount);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.hetGenotypeCount)) {
this.hetGenotypeCount = data().deepCopy(fields()[12].schema(), other.hetGenotypeCount);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.altHomGenotypeCount)) {
this.altHomGenotypeCount = data().deepCopy(fields()[13].schema(), other.altHomGenotypeCount);
fieldSetFlags()[13] = true;
}
}
/** Creates a Builder by copying an existing PopulationFrequency instance */
private Builder(org.opencb.biodata.models.variant.avro.PopulationFrequency other) {
super(org.opencb.biodata.models.variant.avro.PopulationFrequency.SCHEMA$);
if (isValidValue(fields()[0], other.study)) {
this.study = data().deepCopy(fields()[0].schema(), other.study);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.population)) {
this.population = data().deepCopy(fields()[1].schema(), other.population);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.refAllele)) {
this.refAllele = data().deepCopy(fields()[2].schema(), other.refAllele);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.altAllele)) {
this.altAllele = data().deepCopy(fields()[3].schema(), other.altAllele);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.refAlleleFreq)) {
this.refAlleleFreq = data().deepCopy(fields()[4].schema(), other.refAlleleFreq);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.altAlleleFreq)) {
this.altAlleleFreq = data().deepCopy(fields()[5].schema(), other.altAlleleFreq);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.refAlleleCount)) {
this.refAlleleCount = data().deepCopy(fields()[6].schema(), other.refAlleleCount);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.altAlleleCount)) {
this.altAlleleCount = data().deepCopy(fields()[7].schema(), other.altAlleleCount);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.refHomGenotypeFreq)) {
this.refHomGenotypeFreq = data().deepCopy(fields()[8].schema(), other.refHomGenotypeFreq);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.hetGenotypeFreq)) {
this.hetGenotypeFreq = data().deepCopy(fields()[9].schema(), other.hetGenotypeFreq);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.altHomGenotypeFreq)) {
this.altHomGenotypeFreq = data().deepCopy(fields()[10].schema(), other.altHomGenotypeFreq);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.refHomGenotypeCount)) {
this.refHomGenotypeCount = data().deepCopy(fields()[11].schema(), other.refHomGenotypeCount);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.hetGenotypeCount)) {
this.hetGenotypeCount = data().deepCopy(fields()[12].schema(), other.hetGenotypeCount);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.altHomGenotypeCount)) {
this.altHomGenotypeCount = data().deepCopy(fields()[13].schema(), other.altHomGenotypeCount);
fieldSetFlags()[13] = true;
}
}
/** Gets the value of the 'study' field */
public java.lang.String getStudy() {
return study;
}
/** Sets the value of the 'study' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setStudy(java.lang.String value) {
validate(fields()[0], value);
this.study = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'study' field has been set */
public boolean hasStudy() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'study' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearStudy() {
study = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'population' field */
public java.lang.String getPopulation() {
return population;
}
/** Sets the value of the 'population' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setPopulation(java.lang.String value) {
validate(fields()[1], value);
this.population = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'population' field has been set */
public boolean hasPopulation() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'population' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearPopulation() {
population = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'refAllele' field */
public java.lang.String getRefAllele() {
return refAllele;
}
/** Sets the value of the 'refAllele' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setRefAllele(java.lang.String value) {
validate(fields()[2], value);
this.refAllele = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'refAllele' field has been set */
public boolean hasRefAllele() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'refAllele' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearRefAllele() {
refAllele = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'altAllele' field */
public java.lang.String getAltAllele() {
return altAllele;
}
/** Sets the value of the 'altAllele' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setAltAllele(java.lang.String value) {
validate(fields()[3], value);
this.altAllele = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'altAllele' field has been set */
public boolean hasAltAllele() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'altAllele' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearAltAllele() {
altAllele = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'refAlleleFreq' field */
public java.lang.Float getRefAlleleFreq() {
return refAlleleFreq;
}
/** Sets the value of the 'refAlleleFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setRefAlleleFreq(float value) {
validate(fields()[4], value);
this.refAlleleFreq = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'refAlleleFreq' field has been set */
public boolean hasRefAlleleFreq() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'refAlleleFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearRefAlleleFreq() {
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'altAlleleFreq' field */
public java.lang.Float getAltAlleleFreq() {
return altAlleleFreq;
}
/** Sets the value of the 'altAlleleFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setAltAlleleFreq(float value) {
validate(fields()[5], value);
this.altAlleleFreq = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'altAlleleFreq' field has been set */
public boolean hasAltAlleleFreq() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'altAlleleFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearAltAlleleFreq() {
fieldSetFlags()[5] = false;
return this;
}
/** Gets the value of the 'refAlleleCount' field */
public java.lang.Integer getRefAlleleCount() {
return refAlleleCount;
}
/** Sets the value of the 'refAlleleCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setRefAlleleCount(java.lang.Integer value) {
validate(fields()[6], value);
this.refAlleleCount = value;
fieldSetFlags()[6] = true;
return this;
}
/** Checks whether the 'refAlleleCount' field has been set */
public boolean hasRefAlleleCount() {
return fieldSetFlags()[6];
}
/** Clears the value of the 'refAlleleCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearRefAlleleCount() {
refAlleleCount = null;
fieldSetFlags()[6] = false;
return this;
}
/** Gets the value of the 'altAlleleCount' field */
public java.lang.Integer getAltAlleleCount() {
return altAlleleCount;
}
/** Sets the value of the 'altAlleleCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setAltAlleleCount(java.lang.Integer value) {
validate(fields()[7], value);
this.altAlleleCount = value;
fieldSetFlags()[7] = true;
return this;
}
/** Checks whether the 'altAlleleCount' field has been set */
public boolean hasAltAlleleCount() {
return fieldSetFlags()[7];
}
/** Clears the value of the 'altAlleleCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearAltAlleleCount() {
altAlleleCount = null;
fieldSetFlags()[7] = false;
return this;
}
/** Gets the value of the 'refHomGenotypeFreq' field */
public java.lang.Float getRefHomGenotypeFreq() {
return refHomGenotypeFreq;
}
/** Sets the value of the 'refHomGenotypeFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setRefHomGenotypeFreq(java.lang.Float value) {
validate(fields()[8], value);
this.refHomGenotypeFreq = value;
fieldSetFlags()[8] = true;
return this;
}
/** Checks whether the 'refHomGenotypeFreq' field has been set */
public boolean hasRefHomGenotypeFreq() {
return fieldSetFlags()[8];
}
/** Clears the value of the 'refHomGenotypeFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearRefHomGenotypeFreq() {
refHomGenotypeFreq = null;
fieldSetFlags()[8] = false;
return this;
}
/** Gets the value of the 'hetGenotypeFreq' field */
public java.lang.Float getHetGenotypeFreq() {
return hetGenotypeFreq;
}
/** Sets the value of the 'hetGenotypeFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setHetGenotypeFreq(java.lang.Float value) {
validate(fields()[9], value);
this.hetGenotypeFreq = value;
fieldSetFlags()[9] = true;
return this;
}
/** Checks whether the 'hetGenotypeFreq' field has been set */
public boolean hasHetGenotypeFreq() {
return fieldSetFlags()[9];
}
/** Clears the value of the 'hetGenotypeFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearHetGenotypeFreq() {
hetGenotypeFreq = null;
fieldSetFlags()[9] = false;
return this;
}
/** Gets the value of the 'altHomGenotypeFreq' field */
public java.lang.Float getAltHomGenotypeFreq() {
return altHomGenotypeFreq;
}
/** Sets the value of the 'altHomGenotypeFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setAltHomGenotypeFreq(java.lang.Float value) {
validate(fields()[10], value);
this.altHomGenotypeFreq = value;
fieldSetFlags()[10] = true;
return this;
}
/** Checks whether the 'altHomGenotypeFreq' field has been set */
public boolean hasAltHomGenotypeFreq() {
return fieldSetFlags()[10];
}
/** Clears the value of the 'altHomGenotypeFreq' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearAltHomGenotypeFreq() {
altHomGenotypeFreq = null;
fieldSetFlags()[10] = false;
return this;
}
/** Gets the value of the 'refHomGenotypeCount' field */
public java.lang.Integer getRefHomGenotypeCount() {
return refHomGenotypeCount;
}
/** Sets the value of the 'refHomGenotypeCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setRefHomGenotypeCount(java.lang.Integer value) {
validate(fields()[11], value);
this.refHomGenotypeCount = value;
fieldSetFlags()[11] = true;
return this;
}
/** Checks whether the 'refHomGenotypeCount' field has been set */
public boolean hasRefHomGenotypeCount() {
return fieldSetFlags()[11];
}
/** Clears the value of the 'refHomGenotypeCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearRefHomGenotypeCount() {
refHomGenotypeCount = null;
fieldSetFlags()[11] = false;
return this;
}
/** Gets the value of the 'hetGenotypeCount' field */
public java.lang.Integer getHetGenotypeCount() {
return hetGenotypeCount;
}
/** Sets the value of the 'hetGenotypeCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setHetGenotypeCount(java.lang.Integer value) {
validate(fields()[12], value);
this.hetGenotypeCount = value;
fieldSetFlags()[12] = true;
return this;
}
/** Checks whether the 'hetGenotypeCount' field has been set */
public boolean hasHetGenotypeCount() {
return fieldSetFlags()[12];
}
/** Clears the value of the 'hetGenotypeCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearHetGenotypeCount() {
hetGenotypeCount = null;
fieldSetFlags()[12] = false;
return this;
}
/** Gets the value of the 'altHomGenotypeCount' field */
public java.lang.Integer getAltHomGenotypeCount() {
return altHomGenotypeCount;
}
/** Sets the value of the 'altHomGenotypeCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder setAltHomGenotypeCount(java.lang.Integer value) {
validate(fields()[13], value);
this.altHomGenotypeCount = value;
fieldSetFlags()[13] = true;
return this;
}
/** Checks whether the 'altHomGenotypeCount' field has been set */
public boolean hasAltHomGenotypeCount() {
return fieldSetFlags()[13];
}
/** Clears the value of the 'altHomGenotypeCount' field */
public org.opencb.biodata.models.variant.avro.PopulationFrequency.Builder clearAltHomGenotypeCount() {
altHomGenotypeCount = null;
fieldSetFlags()[13] = false;
return this;
}
@Override
public PopulationFrequency build() {
try {
PopulationFrequency record = new PopulationFrequency();
record.study = fieldSetFlags()[0] ? this.study : (java.lang.String) defaultValue(fields()[0]);
record.population = fieldSetFlags()[1] ? this.population : (java.lang.String) defaultValue(fields()[1]);
record.refAllele = fieldSetFlags()[2] ? this.refAllele : (java.lang.String) defaultValue(fields()[2]);
record.altAllele = fieldSetFlags()[3] ? this.altAllele : (java.lang.String) defaultValue(fields()[3]);
record.refAlleleFreq = fieldSetFlags()[4] ? this.refAlleleFreq : (java.lang.Float) defaultValue(fields()[4]);
record.altAlleleFreq = fieldSetFlags()[5] ? this.altAlleleFreq : (java.lang.Float) defaultValue(fields()[5]);
record.refAlleleCount = fieldSetFlags()[6] ? this.refAlleleCount : (java.lang.Integer) defaultValue(fields()[6]);
record.altAlleleCount = fieldSetFlags()[7] ? this.altAlleleCount : (java.lang.Integer) defaultValue(fields()[7]);
record.refHomGenotypeFreq = fieldSetFlags()[8] ? this.refHomGenotypeFreq : (java.lang.Float) defaultValue(fields()[8]);
record.hetGenotypeFreq = fieldSetFlags()[9] ? this.hetGenotypeFreq : (java.lang.Float) defaultValue(fields()[9]);
record.altHomGenotypeFreq = fieldSetFlags()[10] ? this.altHomGenotypeFreq : (java.lang.Float) defaultValue(fields()[10]);
record.refHomGenotypeCount = fieldSetFlags()[11] ? this.refHomGenotypeCount : (java.lang.Integer) defaultValue(fields()[11]);
record.hetGenotypeCount = fieldSetFlags()[12] ? this.hetGenotypeCount : (java.lang.Integer) defaultValue(fields()[12]);
record.altHomGenotypeCount = fieldSetFlags()[13] ? this.altHomGenotypeCount : (java.lang.Integer) defaultValue(fields()[13]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy