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 IdentityByDescent 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\":\"IdentityByDescent\",\"namespace\":\"org.gel.models.report.avro\",\"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.lang.String relatedSample;
private float ibd0;
private float ibd1;
private float ibd2;
private float pihat;
/**
* 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 IdentityByDescent() {}
/**
* All-args constructor.
*/
public IdentityByDescent(java.lang.String relatedSample, java.lang.Float ibd0, java.lang.Float ibd1, java.lang.Float ibd2, java.lang.Float pihat) {
this.relatedSample = relatedSample;
this.ibd0 = ibd0;
this.ibd1 = ibd1;
this.ibd2 = ibd2;
this.pihat = pihat;
}
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 relatedSample;
case 1: return ibd0;
case 2: return ibd1;
case 3: return ibd2;
case 4: return pihat;
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: relatedSample = (java.lang.String)value$; break;
case 1: ibd0 = (java.lang.Float)value$; break;
case 2: ibd1 = (java.lang.Float)value$; break;
case 3: ibd2 = (java.lang.Float)value$; break;
case 4: pihat = (java.lang.Float)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'relatedSample' field.
*/
public java.lang.String getRelatedSample() {
return relatedSample;
}
/**
* Sets the value of the 'relatedSample' field.
* @param value the value to set.
*/
public void setRelatedSample(java.lang.String value) {
this.relatedSample = value;
}
/**
* Gets the value of the 'ibd0' field.
*/
public java.lang.Float getIbd0() {
return ibd0;
}
/**
* Sets the value of the 'ibd0' field.
* @param value the value to set.
*/
public void setIbd0(java.lang.Float value) {
this.ibd0 = value;
}
/**
* Gets the value of the 'ibd1' field.
*/
public java.lang.Float getIbd1() {
return ibd1;
}
/**
* Sets the value of the 'ibd1' field.
* @param value the value to set.
*/
public void setIbd1(java.lang.Float value) {
this.ibd1 = value;
}
/**
* Gets the value of the 'ibd2' field.
*/
public java.lang.Float getIbd2() {
return ibd2;
}
/**
* Sets the value of the 'ibd2' field.
* @param value the value to set.
*/
public void setIbd2(java.lang.Float value) {
this.ibd2 = value;
}
/**
* Gets the value of the 'pihat' field.
*/
public java.lang.Float getPihat() {
return pihat;
}
/**
* Sets the value of the 'pihat' field.
* @param value the value to set.
*/
public void setPihat(java.lang.Float value) {
this.pihat = value;
}
/** Creates a new IdentityByDescent RecordBuilder */
public static org.gel.models.report.avro.IdentityByDescent.Builder newBuilder() {
return new org.gel.models.report.avro.IdentityByDescent.Builder();
}
/** Creates a new IdentityByDescent RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.IdentityByDescent.Builder newBuilder(org.gel.models.report.avro.IdentityByDescent.Builder other) {
return new org.gel.models.report.avro.IdentityByDescent.Builder(other);
}
/** Creates a new IdentityByDescent RecordBuilder by copying an existing IdentityByDescent instance */
public static org.gel.models.report.avro.IdentityByDescent.Builder newBuilder(org.gel.models.report.avro.IdentityByDescent other) {
return new org.gel.models.report.avro.IdentityByDescent.Builder(other);
}
/**
* RecordBuilder for IdentityByDescent instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String relatedSample;
private float ibd0;
private float ibd1;
private float ibd2;
private float pihat;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.IdentityByDescent.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.IdentityByDescent.Builder other) {
super(other);
if (isValidValue(fields()[0], other.relatedSample)) {
this.relatedSample = data().deepCopy(fields()[0].schema(), other.relatedSample);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.ibd0)) {
this.ibd0 = data().deepCopy(fields()[1].schema(), other.ibd0);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.ibd1)) {
this.ibd1 = data().deepCopy(fields()[2].schema(), other.ibd1);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.ibd2)) {
this.ibd2 = data().deepCopy(fields()[3].schema(), other.ibd2);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.pihat)) {
this.pihat = data().deepCopy(fields()[4].schema(), other.pihat);
fieldSetFlags()[4] = true;
}
}
/** Creates a Builder by copying an existing IdentityByDescent instance */
private Builder(org.gel.models.report.avro.IdentityByDescent other) {
super(org.gel.models.report.avro.IdentityByDescent.SCHEMA$);
if (isValidValue(fields()[0], other.relatedSample)) {
this.relatedSample = data().deepCopy(fields()[0].schema(), other.relatedSample);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.ibd0)) {
this.ibd0 = data().deepCopy(fields()[1].schema(), other.ibd0);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.ibd1)) {
this.ibd1 = data().deepCopy(fields()[2].schema(), other.ibd1);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.ibd2)) {
this.ibd2 = data().deepCopy(fields()[3].schema(), other.ibd2);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.pihat)) {
this.pihat = data().deepCopy(fields()[4].schema(), other.pihat);
fieldSetFlags()[4] = true;
}
}
/** Gets the value of the 'relatedSample' field */
public java.lang.String getRelatedSample() {
return relatedSample;
}
/** Sets the value of the 'relatedSample' field */
public org.gel.models.report.avro.IdentityByDescent.Builder setRelatedSample(java.lang.String value) {
validate(fields()[0], value);
this.relatedSample = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'relatedSample' field has been set */
public boolean hasRelatedSample() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'relatedSample' field */
public org.gel.models.report.avro.IdentityByDescent.Builder clearRelatedSample() {
relatedSample = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'ibd0' field */
public java.lang.Float getIbd0() {
return ibd0;
}
/** Sets the value of the 'ibd0' field */
public org.gel.models.report.avro.IdentityByDescent.Builder setIbd0(float value) {
validate(fields()[1], value);
this.ibd0 = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'ibd0' field has been set */
public boolean hasIbd0() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'ibd0' field */
public org.gel.models.report.avro.IdentityByDescent.Builder clearIbd0() {
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'ibd1' field */
public java.lang.Float getIbd1() {
return ibd1;
}
/** Sets the value of the 'ibd1' field */
public org.gel.models.report.avro.IdentityByDescent.Builder setIbd1(float value) {
validate(fields()[2], value);
this.ibd1 = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'ibd1' field has been set */
public boolean hasIbd1() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'ibd1' field */
public org.gel.models.report.avro.IdentityByDescent.Builder clearIbd1() {
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'ibd2' field */
public java.lang.Float getIbd2() {
return ibd2;
}
/** Sets the value of the 'ibd2' field */
public org.gel.models.report.avro.IdentityByDescent.Builder setIbd2(float value) {
validate(fields()[3], value);
this.ibd2 = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'ibd2' field has been set */
public boolean hasIbd2() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'ibd2' field */
public org.gel.models.report.avro.IdentityByDescent.Builder clearIbd2() {
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'pihat' field */
public java.lang.Float getPihat() {
return pihat;
}
/** Sets the value of the 'pihat' field */
public org.gel.models.report.avro.IdentityByDescent.Builder setPihat(float value) {
validate(fields()[4], value);
this.pihat = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'pihat' field has been set */
public boolean hasPihat() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'pihat' field */
public org.gel.models.report.avro.IdentityByDescent.Builder clearPihat() {
fieldSetFlags()[4] = false;
return this;
}
@Override
public IdentityByDescent build() {
try {
IdentityByDescent record = new IdentityByDescent();
record.relatedSample = fieldSetFlags()[0] ? this.relatedSample : (java.lang.String) defaultValue(fields()[0]);
record.ibd0 = fieldSetFlags()[1] ? this.ibd0 : (java.lang.Float) defaultValue(fields()[1]);
record.ibd1 = fieldSetFlags()[2] ? this.ibd1 : (java.lang.Float) defaultValue(fields()[2]);
record.ibd2 = fieldSetFlags()[3] ? this.ibd2 : (java.lang.Float) defaultValue(fields()[3]);
record.pihat = fieldSetFlags()[4] ? this.pihat : (java.lang.Float) defaultValue(fields()[4]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}