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 ClinicalIndication 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\":\"ClinicalIndication\",\"namespace\":\"org.gel.models.participant.avro\",\"fields\":[{\"name\":\"clinicalIndicationUid\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"GUID of Clinical Indication for the Referral\"},{\"name\":\"clinicalIndicationCode\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Code of Clinical Indication, e.g. (RT-13)\"},{\"name\":\"clinicalIndicationFullName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Clinical Indication Full Name\"},{\"name\":\"clinicalIndicationVersionNumber\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Clinical Indication version number\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** GUID of Clinical Indication for the Referral */
private java.lang.String clinicalIndicationUid;
/** Code of Clinical Indication, e.g. (RT-13) */
private java.lang.String clinicalIndicationCode;
/** Clinical Indication Full Name */
private java.lang.String clinicalIndicationFullName;
/** Clinical Indication version number */
private java.lang.String clinicalIndicationVersionNumber;
/**
* 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 ClinicalIndication() {}
/**
* All-args constructor.
*/
public ClinicalIndication(java.lang.String clinicalIndicationUid, java.lang.String clinicalIndicationCode, java.lang.String clinicalIndicationFullName, java.lang.String clinicalIndicationVersionNumber) {
this.clinicalIndicationUid = clinicalIndicationUid;
this.clinicalIndicationCode = clinicalIndicationCode;
this.clinicalIndicationFullName = clinicalIndicationFullName;
this.clinicalIndicationVersionNumber = clinicalIndicationVersionNumber;
}
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 clinicalIndicationUid;
case 1: return clinicalIndicationCode;
case 2: return clinicalIndicationFullName;
case 3: return clinicalIndicationVersionNumber;
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: clinicalIndicationUid = (java.lang.String)value$; break;
case 1: clinicalIndicationCode = (java.lang.String)value$; break;
case 2: clinicalIndicationFullName = (java.lang.String)value$; break;
case 3: clinicalIndicationVersionNumber = (java.lang.String)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'clinicalIndicationUid' field.
* GUID of Clinical Indication for the Referral */
public java.lang.String getClinicalIndicationUid() {
return clinicalIndicationUid;
}
/**
* Sets the value of the 'clinicalIndicationUid' field.
* GUID of Clinical Indication for the Referral * @param value the value to set.
*/
public void setClinicalIndicationUid(java.lang.String value) {
this.clinicalIndicationUid = value;
}
/**
* Gets the value of the 'clinicalIndicationCode' field.
* Code of Clinical Indication, e.g. (RT-13) */
public java.lang.String getClinicalIndicationCode() {
return clinicalIndicationCode;
}
/**
* Sets the value of the 'clinicalIndicationCode' field.
* Code of Clinical Indication, e.g. (RT-13) * @param value the value to set.
*/
public void setClinicalIndicationCode(java.lang.String value) {
this.clinicalIndicationCode = value;
}
/**
* Gets the value of the 'clinicalIndicationFullName' field.
* Clinical Indication Full Name */
public java.lang.String getClinicalIndicationFullName() {
return clinicalIndicationFullName;
}
/**
* Sets the value of the 'clinicalIndicationFullName' field.
* Clinical Indication Full Name * @param value the value to set.
*/
public void setClinicalIndicationFullName(java.lang.String value) {
this.clinicalIndicationFullName = value;
}
/**
* Gets the value of the 'clinicalIndicationVersionNumber' field.
* Clinical Indication version number */
public java.lang.String getClinicalIndicationVersionNumber() {
return clinicalIndicationVersionNumber;
}
/**
* Sets the value of the 'clinicalIndicationVersionNumber' field.
* Clinical Indication version number * @param value the value to set.
*/
public void setClinicalIndicationVersionNumber(java.lang.String value) {
this.clinicalIndicationVersionNumber = value;
}
/** Creates a new ClinicalIndication RecordBuilder */
public static org.gel.models.participant.avro.ClinicalIndication.Builder newBuilder() {
return new org.gel.models.participant.avro.ClinicalIndication.Builder();
}
/** Creates a new ClinicalIndication RecordBuilder by copying an existing Builder */
public static org.gel.models.participant.avro.ClinicalIndication.Builder newBuilder(org.gel.models.participant.avro.ClinicalIndication.Builder other) {
return new org.gel.models.participant.avro.ClinicalIndication.Builder(other);
}
/** Creates a new ClinicalIndication RecordBuilder by copying an existing ClinicalIndication instance */
public static org.gel.models.participant.avro.ClinicalIndication.Builder newBuilder(org.gel.models.participant.avro.ClinicalIndication other) {
return new org.gel.models.participant.avro.ClinicalIndication.Builder(other);
}
/**
* RecordBuilder for ClinicalIndication instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String clinicalIndicationUid;
private java.lang.String clinicalIndicationCode;
private java.lang.String clinicalIndicationFullName;
private java.lang.String clinicalIndicationVersionNumber;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.participant.avro.ClinicalIndication.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.participant.avro.ClinicalIndication.Builder other) {
super(other);
if (isValidValue(fields()[0], other.clinicalIndicationUid)) {
this.clinicalIndicationUid = data().deepCopy(fields()[0].schema(), other.clinicalIndicationUid);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.clinicalIndicationCode)) {
this.clinicalIndicationCode = data().deepCopy(fields()[1].schema(), other.clinicalIndicationCode);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.clinicalIndicationFullName)) {
this.clinicalIndicationFullName = data().deepCopy(fields()[2].schema(), other.clinicalIndicationFullName);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.clinicalIndicationVersionNumber)) {
this.clinicalIndicationVersionNumber = data().deepCopy(fields()[3].schema(), other.clinicalIndicationVersionNumber);
fieldSetFlags()[3] = true;
}
}
/** Creates a Builder by copying an existing ClinicalIndication instance */
private Builder(org.gel.models.participant.avro.ClinicalIndication other) {
super(org.gel.models.participant.avro.ClinicalIndication.SCHEMA$);
if (isValidValue(fields()[0], other.clinicalIndicationUid)) {
this.clinicalIndicationUid = data().deepCopy(fields()[0].schema(), other.clinicalIndicationUid);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.clinicalIndicationCode)) {
this.clinicalIndicationCode = data().deepCopy(fields()[1].schema(), other.clinicalIndicationCode);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.clinicalIndicationFullName)) {
this.clinicalIndicationFullName = data().deepCopy(fields()[2].schema(), other.clinicalIndicationFullName);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.clinicalIndicationVersionNumber)) {
this.clinicalIndicationVersionNumber = data().deepCopy(fields()[3].schema(), other.clinicalIndicationVersionNumber);
fieldSetFlags()[3] = true;
}
}
/** Gets the value of the 'clinicalIndicationUid' field */
public java.lang.String getClinicalIndicationUid() {
return clinicalIndicationUid;
}
/** Sets the value of the 'clinicalIndicationUid' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder setClinicalIndicationUid(java.lang.String value) {
validate(fields()[0], value);
this.clinicalIndicationUid = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'clinicalIndicationUid' field has been set */
public boolean hasClinicalIndicationUid() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'clinicalIndicationUid' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder clearClinicalIndicationUid() {
clinicalIndicationUid = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'clinicalIndicationCode' field */
public java.lang.String getClinicalIndicationCode() {
return clinicalIndicationCode;
}
/** Sets the value of the 'clinicalIndicationCode' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder setClinicalIndicationCode(java.lang.String value) {
validate(fields()[1], value);
this.clinicalIndicationCode = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'clinicalIndicationCode' field has been set */
public boolean hasClinicalIndicationCode() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'clinicalIndicationCode' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder clearClinicalIndicationCode() {
clinicalIndicationCode = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'clinicalIndicationFullName' field */
public java.lang.String getClinicalIndicationFullName() {
return clinicalIndicationFullName;
}
/** Sets the value of the 'clinicalIndicationFullName' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder setClinicalIndicationFullName(java.lang.String value) {
validate(fields()[2], value);
this.clinicalIndicationFullName = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'clinicalIndicationFullName' field has been set */
public boolean hasClinicalIndicationFullName() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'clinicalIndicationFullName' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder clearClinicalIndicationFullName() {
clinicalIndicationFullName = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'clinicalIndicationVersionNumber' field */
public java.lang.String getClinicalIndicationVersionNumber() {
return clinicalIndicationVersionNumber;
}
/** Sets the value of the 'clinicalIndicationVersionNumber' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder setClinicalIndicationVersionNumber(java.lang.String value) {
validate(fields()[3], value);
this.clinicalIndicationVersionNumber = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'clinicalIndicationVersionNumber' field has been set */
public boolean hasClinicalIndicationVersionNumber() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'clinicalIndicationVersionNumber' field */
public org.gel.models.participant.avro.ClinicalIndication.Builder clearClinicalIndicationVersionNumber() {
clinicalIndicationVersionNumber = null;
fieldSetFlags()[3] = false;
return this;
}
@Override
public ClinicalIndication build() {
try {
ClinicalIndication record = new ClinicalIndication();
record.clinicalIndicationUid = fieldSetFlags()[0] ? this.clinicalIndicationUid : (java.lang.String) defaultValue(fields()[0]);
record.clinicalIndicationCode = fieldSetFlags()[1] ? this.clinicalIndicationCode : (java.lang.String) defaultValue(fields()[1]);
record.clinicalIndicationFullName = fieldSetFlags()[2] ? this.clinicalIndicationFullName : (java.lang.String) defaultValue(fields()[2]);
record.clinicalIndicationVersionNumber = fieldSetFlags()[3] ? this.clinicalIndicationVersionNumber : (java.lang.String) defaultValue(fields()[3]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}