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.participant.avro;
@SuppressWarnings("all")
/** Inbreeding coefficient */
@org.apache.avro.specific.AvroGenerated
public class InbreedingCoefficient 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\":\"InbreedingCoefficient\",\"namespace\":\"org.gel.models.participant.avro\",\"doc\":\"Inbreeding coefficient\",\"fields\":[{\"name\":\"sampleId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"This is the sample id against which the coefficient was estimated\"},{\"name\":\"program\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of program used to calculate the coefficient\"},{\"name\":\"version\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Version of the programme\"},{\"name\":\"estimationMethod\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Where various methods for estimation exist, which method was used.\"},{\"name\":\"coefficient\",\"type\":\"double\",\"doc\":\"Inbreeding coefficient ideally a real number in [0,1]\"},{\"name\":\"standardError\",\"type\":[\"null\",\"double\"],\"doc\":\"Standard error of the Inbreeding coefficient\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** This is the sample id against which the coefficient was estimated */
private java.lang.String sampleId;
/** Name of program used to calculate the coefficient */
private java.lang.String program;
/** Version of the programme */
private java.lang.String version;
/** Where various methods for estimation exist, which method was used. */
private java.lang.String estimationMethod;
/** Inbreeding coefficient ideally a real number in [0,1] */
private double coefficient;
/** Standard error of the Inbreeding coefficient */
private java.lang.Double standardError;
/**
* 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 InbreedingCoefficient() {}
/**
* All-args constructor.
*/
public InbreedingCoefficient(java.lang.String sampleId, java.lang.String program, java.lang.String version, java.lang.String estimationMethod, java.lang.Double coefficient, java.lang.Double standardError) {
this.sampleId = sampleId;
this.program = program;
this.version = version;
this.estimationMethod = estimationMethod;
this.coefficient = coefficient;
this.standardError = standardError;
}
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 sampleId;
case 1: return program;
case 2: return version;
case 3: return estimationMethod;
case 4: return coefficient;
case 5: return standardError;
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: sampleId = (java.lang.String)value$; break;
case 1: program = (java.lang.String)value$; break;
case 2: version = (java.lang.String)value$; break;
case 3: estimationMethod = (java.lang.String)value$; break;
case 4: coefficient = (java.lang.Double)value$; break;
case 5: standardError = (java.lang.Double)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'sampleId' field.
* This is the sample id against which the coefficient was estimated */
public java.lang.String getSampleId() {
return sampleId;
}
/**
* Sets the value of the 'sampleId' field.
* This is the sample id against which the coefficient was estimated * @param value the value to set.
*/
public void setSampleId(java.lang.String value) {
this.sampleId = value;
}
/**
* Gets the value of the 'program' field.
* Name of program used to calculate the coefficient */
public java.lang.String getProgram() {
return program;
}
/**
* Sets the value of the 'program' field.
* Name of program used to calculate the coefficient * @param value the value to set.
*/
public void setProgram(java.lang.String value) {
this.program = value;
}
/**
* Gets the value of the 'version' field.
* Version of the programme */
public java.lang.String getVersion() {
return version;
}
/**
* Sets the value of the 'version' field.
* Version of the programme * @param value the value to set.
*/
public void setVersion(java.lang.String value) {
this.version = value;
}
/**
* Gets the value of the 'estimationMethod' field.
* Where various methods for estimation exist, which method was used. */
public java.lang.String getEstimationMethod() {
return estimationMethod;
}
/**
* Sets the value of the 'estimationMethod' field.
* Where various methods for estimation exist, which method was used. * @param value the value to set.
*/
public void setEstimationMethod(java.lang.String value) {
this.estimationMethod = value;
}
/**
* Gets the value of the 'coefficient' field.
* Inbreeding coefficient ideally a real number in [0,1] */
public java.lang.Double getCoefficient() {
return coefficient;
}
/**
* Sets the value of the 'coefficient' field.
* Inbreeding coefficient ideally a real number in [0,1] * @param value the value to set.
*/
public void setCoefficient(java.lang.Double value) {
this.coefficient = value;
}
/**
* Gets the value of the 'standardError' field.
* Standard error of the Inbreeding coefficient */
public java.lang.Double getStandardError() {
return standardError;
}
/**
* Sets the value of the 'standardError' field.
* Standard error of the Inbreeding coefficient * @param value the value to set.
*/
public void setStandardError(java.lang.Double value) {
this.standardError = value;
}
/** Creates a new InbreedingCoefficient RecordBuilder */
public static org.gel.models.participant.avro.InbreedingCoefficient.Builder newBuilder() {
return new org.gel.models.participant.avro.InbreedingCoefficient.Builder();
}
/** Creates a new InbreedingCoefficient RecordBuilder by copying an existing Builder */
public static org.gel.models.participant.avro.InbreedingCoefficient.Builder newBuilder(org.gel.models.participant.avro.InbreedingCoefficient.Builder other) {
return new org.gel.models.participant.avro.InbreedingCoefficient.Builder(other);
}
/** Creates a new InbreedingCoefficient RecordBuilder by copying an existing InbreedingCoefficient instance */
public static org.gel.models.participant.avro.InbreedingCoefficient.Builder newBuilder(org.gel.models.participant.avro.InbreedingCoefficient other) {
return new org.gel.models.participant.avro.InbreedingCoefficient.Builder(other);
}
/**
* RecordBuilder for InbreedingCoefficient instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String sampleId;
private java.lang.String program;
private java.lang.String version;
private java.lang.String estimationMethod;
private double coefficient;
private java.lang.Double standardError;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.participant.avro.InbreedingCoefficient.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.participant.avro.InbreedingCoefficient.Builder other) {
super(other);
if (isValidValue(fields()[0], other.sampleId)) {
this.sampleId = data().deepCopy(fields()[0].schema(), other.sampleId);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.program)) {
this.program = data().deepCopy(fields()[1].schema(), other.program);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.version)) {
this.version = data().deepCopy(fields()[2].schema(), other.version);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.estimationMethod)) {
this.estimationMethod = data().deepCopy(fields()[3].schema(), other.estimationMethod);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.coefficient)) {
this.coefficient = data().deepCopy(fields()[4].schema(), other.coefficient);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.standardError)) {
this.standardError = data().deepCopy(fields()[5].schema(), other.standardError);
fieldSetFlags()[5] = true;
}
}
/** Creates a Builder by copying an existing InbreedingCoefficient instance */
private Builder(org.gel.models.participant.avro.InbreedingCoefficient other) {
super(org.gel.models.participant.avro.InbreedingCoefficient.SCHEMA$);
if (isValidValue(fields()[0], other.sampleId)) {
this.sampleId = data().deepCopy(fields()[0].schema(), other.sampleId);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.program)) {
this.program = data().deepCopy(fields()[1].schema(), other.program);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.version)) {
this.version = data().deepCopy(fields()[2].schema(), other.version);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.estimationMethod)) {
this.estimationMethod = data().deepCopy(fields()[3].schema(), other.estimationMethod);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.coefficient)) {
this.coefficient = data().deepCopy(fields()[4].schema(), other.coefficient);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.standardError)) {
this.standardError = data().deepCopy(fields()[5].schema(), other.standardError);
fieldSetFlags()[5] = true;
}
}
/** Gets the value of the 'sampleId' field */
public java.lang.String getSampleId() {
return sampleId;
}
/** Sets the value of the 'sampleId' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder setSampleId(java.lang.String value) {
validate(fields()[0], value);
this.sampleId = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'sampleId' field has been set */
public boolean hasSampleId() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'sampleId' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder clearSampleId() {
sampleId = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'program' field */
public java.lang.String getProgram() {
return program;
}
/** Sets the value of the 'program' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder setProgram(java.lang.String value) {
validate(fields()[1], value);
this.program = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'program' field has been set */
public boolean hasProgram() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'program' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder clearProgram() {
program = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'version' field */
public java.lang.String getVersion() {
return version;
}
/** Sets the value of the 'version' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder setVersion(java.lang.String value) {
validate(fields()[2], value);
this.version = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'version' field has been set */
public boolean hasVersion() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'version' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder clearVersion() {
version = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'estimationMethod' field */
public java.lang.String getEstimationMethod() {
return estimationMethod;
}
/** Sets the value of the 'estimationMethod' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder setEstimationMethod(java.lang.String value) {
validate(fields()[3], value);
this.estimationMethod = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'estimationMethod' field has been set */
public boolean hasEstimationMethod() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'estimationMethod' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder clearEstimationMethod() {
estimationMethod = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'coefficient' field */
public java.lang.Double getCoefficient() {
return coefficient;
}
/** Sets the value of the 'coefficient' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder setCoefficient(double value) {
validate(fields()[4], value);
this.coefficient = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'coefficient' field has been set */
public boolean hasCoefficient() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'coefficient' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder clearCoefficient() {
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'standardError' field */
public java.lang.Double getStandardError() {
return standardError;
}
/** Sets the value of the 'standardError' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder setStandardError(java.lang.Double value) {
validate(fields()[5], value);
this.standardError = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'standardError' field has been set */
public boolean hasStandardError() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'standardError' field */
public org.gel.models.participant.avro.InbreedingCoefficient.Builder clearStandardError() {
standardError = null;
fieldSetFlags()[5] = false;
return this;
}
@Override
public InbreedingCoefficient build() {
try {
InbreedingCoefficient record = new InbreedingCoefficient();
record.sampleId = fieldSetFlags()[0] ? this.sampleId : (java.lang.String) defaultValue(fields()[0]);
record.program = fieldSetFlags()[1] ? this.program : (java.lang.String) defaultValue(fields()[1]);
record.version = fieldSetFlags()[2] ? this.version : (java.lang.String) defaultValue(fields()[2]);
record.estimationMethod = fieldSetFlags()[3] ? this.estimationMethod : (java.lang.String) defaultValue(fields()[3]);
record.coefficient = fieldSetFlags()[4] ? this.coefficient : (java.lang.Double) defaultValue(fields()[4]);
record.standardError = fieldSetFlags()[5] ? this.standardError : (java.lang.Double) defaultValue(fields()[5]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}