org.gel.models.report.avro.UniparentalDisomyEvidences Maven / Gradle / Ivy
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.gel.models.report.avro;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class UniparentalDisomyEvidences 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\":\"UniparentalDisomyEvidences\",\"namespace\":\"org.gel.models.report.avro\",\"fields\":[{\"name\":\"ibds\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"IdentityByDescent\",\"fields\":[{\"name\":\"relatedSample\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"ibd0\",\"type\":\"float\"},{\"name\":\"ibd1\",\"type\":\"float\"},{\"name\":\"ibd2\",\"type\":\"float\"},{\"name\":\"pihat\",\"type\":\"float\"}]}}]}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private java.util.List ibds;
/**
* 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 UniparentalDisomyEvidences() {}
/**
* All-args constructor.
*/
public UniparentalDisomyEvidences(java.util.List ibds) {
this.ibds = ibds;
}
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 ibds;
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: ibds = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'ibds' field.
*/
public java.util.List getIbds() {
return ibds;
}
/**
* Sets the value of the 'ibds' field.
* @param value the value to set.
*/
public void setIbds(java.util.List value) {
this.ibds = value;
}
/** Creates a new UniparentalDisomyEvidences RecordBuilder */
public static org.gel.models.report.avro.UniparentalDisomyEvidences.Builder newBuilder() {
return new org.gel.models.report.avro.UniparentalDisomyEvidences.Builder();
}
/** Creates a new UniparentalDisomyEvidences RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.UniparentalDisomyEvidences.Builder newBuilder(org.gel.models.report.avro.UniparentalDisomyEvidences.Builder other) {
return new org.gel.models.report.avro.UniparentalDisomyEvidences.Builder(other);
}
/** Creates a new UniparentalDisomyEvidences RecordBuilder by copying an existing UniparentalDisomyEvidences instance */
public static org.gel.models.report.avro.UniparentalDisomyEvidences.Builder newBuilder(org.gel.models.report.avro.UniparentalDisomyEvidences other) {
return new org.gel.models.report.avro.UniparentalDisomyEvidences.Builder(other);
}
/**
* RecordBuilder for UniparentalDisomyEvidences instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.util.List ibds;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.UniparentalDisomyEvidences.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.UniparentalDisomyEvidences.Builder other) {
super(other);
if (isValidValue(fields()[0], other.ibds)) {
this.ibds = data().deepCopy(fields()[0].schema(), other.ibds);
fieldSetFlags()[0] = true;
}
}
/** Creates a Builder by copying an existing UniparentalDisomyEvidences instance */
private Builder(org.gel.models.report.avro.UniparentalDisomyEvidences other) {
super(org.gel.models.report.avro.UniparentalDisomyEvidences.SCHEMA$);
if (isValidValue(fields()[0], other.ibds)) {
this.ibds = data().deepCopy(fields()[0].schema(), other.ibds);
fieldSetFlags()[0] = true;
}
}
/** Gets the value of the 'ibds' field */
public java.util.List getIbds() {
return ibds;
}
/** Sets the value of the 'ibds' field */
public org.gel.models.report.avro.UniparentalDisomyEvidences.Builder setIbds(java.util.List value) {
validate(fields()[0], value);
this.ibds = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'ibds' field has been set */
public boolean hasIbds() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'ibds' field */
public org.gel.models.report.avro.UniparentalDisomyEvidences.Builder clearIbds() {
ibds = null;
fieldSetFlags()[0] = false;
return this;
}
@Override
public UniparentalDisomyEvidences build() {
try {
UniparentalDisomyEvidences record = new UniparentalDisomyEvidences();
record.ibds = fieldSetFlags()[0] ? this.ibds : (java.util.List) defaultValue(fields()[0]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy