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")
@org.apache.avro.specific.AvroGenerated
public class Topography 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\":\"Topography\",\"namespace\":\"org.gel.models.participant.avro\",\"fields\":[{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The ontology term id or accession in OBO format ${ONTOLOGY_ID}:${TERM_ID} (http://www.obofoundry.org/id-policy.html)\"},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The ontology term name\"},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional value for the ontology term, the type of the value is not checked\\n (i.e.: we could set the pvalue term to \\\"significant\\\" or to \\\"0.0001\\\")\"},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Ontology version\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** The ontology term id or accession in OBO format ${ONTOLOGY_ID}:${TERM_ID} (http://www.obofoundry.org/id-policy.html) */
private java.lang.String id;
/** The ontology term name */
private java.lang.String name;
/** Optional value for the ontology term, the type of the value is not checked
(i.e.: we could set the pvalue term to "significant" or to "0.0001") */
private java.lang.String value;
/** Ontology version */
private java.lang.String version;
/**
* 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 Topography() {}
/**
* All-args constructor.
*/
public Topography(java.lang.String id, java.lang.String name, java.lang.String value, java.lang.String version) {
this.id = id;
this.name = name;
this.value = value;
this.version = version;
}
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 id;
case 1: return name;
case 2: return value;
case 3: return version;
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: id = (java.lang.String)value$; break;
case 1: name = (java.lang.String)value$; break;
case 2: value = (java.lang.String)value$; break;
case 3: version = (java.lang.String)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'id' field.
* The ontology term id or accession in OBO format ${ONTOLOGY_ID}:${TERM_ID} (http://www.obofoundry.org/id-policy.html) */
public java.lang.String getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* The ontology term id or accession in OBO format ${ONTOLOGY_ID}:${TERM_ID} (http://www.obofoundry.org/id-policy.html) * @param value the value to set.
*/
public void setId(java.lang.String value) {
this.id = value;
}
/**
* Gets the value of the 'name' field.
* The ontology term name */
public java.lang.String getName() {
return name;
}
/**
* Sets the value of the 'name' field.
* The ontology term name * @param value the value to set.
*/
public void setName(java.lang.String value) {
this.name = value;
}
/**
* Gets the value of the 'value' field.
* Optional value for the ontology term, the type of the value is not checked
(i.e.: we could set the pvalue term to "significant" or to "0.0001") */
public java.lang.String getValue() {
return value;
}
/**
* Sets the value of the 'value' field.
* Optional value for the ontology term, the type of the value is not checked
(i.e.: we could set the pvalue term to "significant" or to "0.0001") * @param value the value to set.
*/
public void setValue(java.lang.String value) {
this.value = value;
}
/**
* Gets the value of the 'version' field.
* Ontology version */
public java.lang.String getVersion() {
return version;
}
/**
* Sets the value of the 'version' field.
* Ontology version * @param value the value to set.
*/
public void setVersion(java.lang.String value) {
this.version = value;
}
/** Creates a new Topography RecordBuilder */
public static org.gel.models.participant.avro.Topography.Builder newBuilder() {
return new org.gel.models.participant.avro.Topography.Builder();
}
/** Creates a new Topography RecordBuilder by copying an existing Builder */
public static org.gel.models.participant.avro.Topography.Builder newBuilder(org.gel.models.participant.avro.Topography.Builder other) {
return new org.gel.models.participant.avro.Topography.Builder(other);
}
/** Creates a new Topography RecordBuilder by copying an existing Topography instance */
public static org.gel.models.participant.avro.Topography.Builder newBuilder(org.gel.models.participant.avro.Topography other) {
return new org.gel.models.participant.avro.Topography.Builder(other);
}
/**
* RecordBuilder for Topography instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String id;
private java.lang.String name;
private java.lang.String value;
private java.lang.String version;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.participant.avro.Topography.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.participant.avro.Topography.Builder other) {
super(other);
if (isValidValue(fields()[0], other.id)) {
this.id = data().deepCopy(fields()[0].schema(), other.id);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.name)) {
this.name = data().deepCopy(fields()[1].schema(), other.name);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.value)) {
this.value = data().deepCopy(fields()[2].schema(), other.value);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.version)) {
this.version = data().deepCopy(fields()[3].schema(), other.version);
fieldSetFlags()[3] = true;
}
}
/** Creates a Builder by copying an existing Topography instance */
private Builder(org.gel.models.participant.avro.Topography other) {
super(org.gel.models.participant.avro.Topography.SCHEMA$);
if (isValidValue(fields()[0], other.id)) {
this.id = data().deepCopy(fields()[0].schema(), other.id);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.name)) {
this.name = data().deepCopy(fields()[1].schema(), other.name);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.value)) {
this.value = data().deepCopy(fields()[2].schema(), other.value);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.version)) {
this.version = data().deepCopy(fields()[3].schema(), other.version);
fieldSetFlags()[3] = true;
}
}
/** Gets the value of the 'id' field */
public java.lang.String getId() {
return id;
}
/** Sets the value of the 'id' field */
public org.gel.models.participant.avro.Topography.Builder setId(java.lang.String value) {
validate(fields()[0], value);
this.id = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'id' field has been set */
public boolean hasId() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'id' field */
public org.gel.models.participant.avro.Topography.Builder clearId() {
id = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'name' field */
public java.lang.String getName() {
return name;
}
/** Sets the value of the 'name' field */
public org.gel.models.participant.avro.Topography.Builder setName(java.lang.String value) {
validate(fields()[1], value);
this.name = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'name' field has been set */
public boolean hasName() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'name' field */
public org.gel.models.participant.avro.Topography.Builder clearName() {
name = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'value' field */
public java.lang.String getValue() {
return value;
}
/** Sets the value of the 'value' field */
public org.gel.models.participant.avro.Topography.Builder setValue(java.lang.String value) {
validate(fields()[2], value);
this.value = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'value' field has been set */
public boolean hasValue() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'value' field */
public org.gel.models.participant.avro.Topography.Builder clearValue() {
value = null;
fieldSetFlags()[2] = 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.Topography.Builder setVersion(java.lang.String value) {
validate(fields()[3], value);
this.version = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'version' field has been set */
public boolean hasVersion() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'version' field */
public org.gel.models.participant.avro.Topography.Builder clearVersion() {
version = null;
fieldSetFlags()[3] = false;
return this;
}
@Override
public Topography build() {
try {
Topography record = new Topography();
record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) defaultValue(fields()[0]);
record.name = fieldSetFlags()[1] ? this.name : (java.lang.String) defaultValue(fields()[1]);
record.value = fieldSetFlags()[2] ? this.value : (java.lang.String) defaultValue(fields()[2]);
record.version = fieldSetFlags()[3] ? this.version : (java.lang.String) defaultValue(fields()[3]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}