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 NumberOfCopies 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\":\"NumberOfCopies\",\"namespace\":\"org.gel.models.report.avro\",\"fields\":[{\"name\":\"numberOfCopies\",\"type\":\"int\",\"doc\":\"Number of copies given by the caller in one of the allele\"},{\"name\":\"confidenceIntervalMaximum\",\"type\":[\"null\",\"int\"]},{\"name\":\"confidenceIntervalMinimum\",\"type\":[\"null\",\"int\"]}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** Number of copies given by the caller in one of the allele */
private int numberOfCopies;
private java.lang.Integer confidenceIntervalMaximum;
private java.lang.Integer confidenceIntervalMinimum;
/**
* 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 NumberOfCopies() {}
/**
* All-args constructor.
*/
public NumberOfCopies(java.lang.Integer numberOfCopies, java.lang.Integer confidenceIntervalMaximum, java.lang.Integer confidenceIntervalMinimum) {
this.numberOfCopies = numberOfCopies;
this.confidenceIntervalMaximum = confidenceIntervalMaximum;
this.confidenceIntervalMinimum = confidenceIntervalMinimum;
}
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 numberOfCopies;
case 1: return confidenceIntervalMaximum;
case 2: return confidenceIntervalMinimum;
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: numberOfCopies = (java.lang.Integer)value$; break;
case 1: confidenceIntervalMaximum = (java.lang.Integer)value$; break;
case 2: confidenceIntervalMinimum = (java.lang.Integer)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'numberOfCopies' field.
* Number of copies given by the caller in one of the allele */
public java.lang.Integer getNumberOfCopies() {
return numberOfCopies;
}
/**
* Sets the value of the 'numberOfCopies' field.
* Number of copies given by the caller in one of the allele * @param value the value to set.
*/
public void setNumberOfCopies(java.lang.Integer value) {
this.numberOfCopies = value;
}
/**
* Gets the value of the 'confidenceIntervalMaximum' field.
*/
public java.lang.Integer getConfidenceIntervalMaximum() {
return confidenceIntervalMaximum;
}
/**
* Sets the value of the 'confidenceIntervalMaximum' field.
* @param value the value to set.
*/
public void setConfidenceIntervalMaximum(java.lang.Integer value) {
this.confidenceIntervalMaximum = value;
}
/**
* Gets the value of the 'confidenceIntervalMinimum' field.
*/
public java.lang.Integer getConfidenceIntervalMinimum() {
return confidenceIntervalMinimum;
}
/**
* Sets the value of the 'confidenceIntervalMinimum' field.
* @param value the value to set.
*/
public void setConfidenceIntervalMinimum(java.lang.Integer value) {
this.confidenceIntervalMinimum = value;
}
/** Creates a new NumberOfCopies RecordBuilder */
public static org.gel.models.report.avro.NumberOfCopies.Builder newBuilder() {
return new org.gel.models.report.avro.NumberOfCopies.Builder();
}
/** Creates a new NumberOfCopies RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.NumberOfCopies.Builder newBuilder(org.gel.models.report.avro.NumberOfCopies.Builder other) {
return new org.gel.models.report.avro.NumberOfCopies.Builder(other);
}
/** Creates a new NumberOfCopies RecordBuilder by copying an existing NumberOfCopies instance */
public static org.gel.models.report.avro.NumberOfCopies.Builder newBuilder(org.gel.models.report.avro.NumberOfCopies other) {
return new org.gel.models.report.avro.NumberOfCopies.Builder(other);
}
/**
* RecordBuilder for NumberOfCopies instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private int numberOfCopies;
private java.lang.Integer confidenceIntervalMaximum;
private java.lang.Integer confidenceIntervalMinimum;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.NumberOfCopies.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.NumberOfCopies.Builder other) {
super(other);
if (isValidValue(fields()[0], other.numberOfCopies)) {
this.numberOfCopies = data().deepCopy(fields()[0].schema(), other.numberOfCopies);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.confidenceIntervalMaximum)) {
this.confidenceIntervalMaximum = data().deepCopy(fields()[1].schema(), other.confidenceIntervalMaximum);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.confidenceIntervalMinimum)) {
this.confidenceIntervalMinimum = data().deepCopy(fields()[2].schema(), other.confidenceIntervalMinimum);
fieldSetFlags()[2] = true;
}
}
/** Creates a Builder by copying an existing NumberOfCopies instance */
private Builder(org.gel.models.report.avro.NumberOfCopies other) {
super(org.gel.models.report.avro.NumberOfCopies.SCHEMA$);
if (isValidValue(fields()[0], other.numberOfCopies)) {
this.numberOfCopies = data().deepCopy(fields()[0].schema(), other.numberOfCopies);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.confidenceIntervalMaximum)) {
this.confidenceIntervalMaximum = data().deepCopy(fields()[1].schema(), other.confidenceIntervalMaximum);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.confidenceIntervalMinimum)) {
this.confidenceIntervalMinimum = data().deepCopy(fields()[2].schema(), other.confidenceIntervalMinimum);
fieldSetFlags()[2] = true;
}
}
/** Gets the value of the 'numberOfCopies' field */
public java.lang.Integer getNumberOfCopies() {
return numberOfCopies;
}
/** Sets the value of the 'numberOfCopies' field */
public org.gel.models.report.avro.NumberOfCopies.Builder setNumberOfCopies(int value) {
validate(fields()[0], value);
this.numberOfCopies = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'numberOfCopies' field has been set */
public boolean hasNumberOfCopies() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'numberOfCopies' field */
public org.gel.models.report.avro.NumberOfCopies.Builder clearNumberOfCopies() {
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'confidenceIntervalMaximum' field */
public java.lang.Integer getConfidenceIntervalMaximum() {
return confidenceIntervalMaximum;
}
/** Sets the value of the 'confidenceIntervalMaximum' field */
public org.gel.models.report.avro.NumberOfCopies.Builder setConfidenceIntervalMaximum(java.lang.Integer value) {
validate(fields()[1], value);
this.confidenceIntervalMaximum = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'confidenceIntervalMaximum' field has been set */
public boolean hasConfidenceIntervalMaximum() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'confidenceIntervalMaximum' field */
public org.gel.models.report.avro.NumberOfCopies.Builder clearConfidenceIntervalMaximum() {
confidenceIntervalMaximum = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'confidenceIntervalMinimum' field */
public java.lang.Integer getConfidenceIntervalMinimum() {
return confidenceIntervalMinimum;
}
/** Sets the value of the 'confidenceIntervalMinimum' field */
public org.gel.models.report.avro.NumberOfCopies.Builder setConfidenceIntervalMinimum(java.lang.Integer value) {
validate(fields()[2], value);
this.confidenceIntervalMinimum = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'confidenceIntervalMinimum' field has been set */
public boolean hasConfidenceIntervalMinimum() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'confidenceIntervalMinimum' field */
public org.gel.models.report.avro.NumberOfCopies.Builder clearConfidenceIntervalMinimum() {
confidenceIntervalMinimum = null;
fieldSetFlags()[2] = false;
return this;
}
@Override
public NumberOfCopies build() {
try {
NumberOfCopies record = new NumberOfCopies();
record.numberOfCopies = fieldSetFlags()[0] ? this.numberOfCopies : (java.lang.Integer) defaultValue(fields()[0]);
record.confidenceIntervalMaximum = fieldSetFlags()[1] ? this.confidenceIntervalMaximum : (java.lang.Integer) defaultValue(fields()[1]);
record.confidenceIntervalMinimum = fieldSetFlags()[2] ? this.confidenceIntervalMinimum : (java.lang.Integer) defaultValue(fields()[2]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}