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 com.cerner.bunsen.stu3.avro;
import org.apache.avro.specific.SpecificData;
import org.apache.avro.message.BinaryMessageEncoder;
import org.apache.avro.message.BinaryMessageDecoder;
import org.apache.avro.message.SchemaStore;
@SuppressWarnings("all")
/** Structure for FHIR type Meta */
@org.apache.avro.specific.AvroGenerated
public class Meta extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = 4750381712364470531L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Meta\",\"namespace\":\"com.cerner.bunsen.stu3.avro\",\"doc\":\"Structure for FHIR type Meta\",\"fields\":[{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property id\",\"default\":null},{\"name\":\"versionId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property versionId\",\"default\":null},{\"name\":\"lastUpdated\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property lastUpdated\",\"default\":null},{\"name\":\"profile\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Field for FHIR property profile\",\"default\":null},{\"name\":\"security\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Coding\",\"doc\":\"Structure for FHIR type Coding\",\"fields\":[{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property id\",\"default\":null},{\"name\":\"system\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property system\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property version\",\"default\":null},{\"name\":\"code\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property code\",\"default\":null},{\"name\":\"display\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Field for FHIR property display\",\"default\":null},{\"name\":\"userSelected\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Field for FHIR property userSelected\",\"default\":null}]}}],\"doc\":\"Field for FHIR property security\",\"default\":null},{\"name\":\"tag\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Coding\"}],\"doc\":\"Field for FHIR property tag\",\"default\":null}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private static SpecificData MODEL$ = new SpecificData();
private static final BinaryMessageEncoder ENCODER =
new BinaryMessageEncoder(MODEL$, SCHEMA$);
private static final BinaryMessageDecoder DECODER =
new BinaryMessageDecoder(MODEL$, SCHEMA$);
/**
* Return the BinaryMessageDecoder instance used by this class.
*/
public static BinaryMessageDecoder getDecoder() {
return DECODER;
}
/**
* Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
* @param resolver a {@link SchemaStore} used to find schemas by fingerprint
*/
public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
}
/** Serializes this Meta to a ByteBuffer. */
public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
return ENCODER.encode(this);
}
/** Deserializes a Meta from a ByteBuffer. */
public static Meta fromByteBuffer(
java.nio.ByteBuffer b) throws java.io.IOException {
return DECODER.decode(b);
}
/** Field for FHIR property id */
private java.lang.String id;
/** Field for FHIR property versionId */
private java.lang.String versionId;
/** Field for FHIR property lastUpdated */
private java.lang.String lastUpdated;
/** Field for FHIR property profile */
private java.util.List profile;
/** Field for FHIR property security */
private java.util.List security;
/** Field for FHIR property tag */
private java.util.List tag;
/**
* 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 Meta() {}
/**
* All-args constructor.
* @param id Field for FHIR property id
* @param versionId Field for FHIR property versionId
* @param lastUpdated Field for FHIR property lastUpdated
* @param profile Field for FHIR property profile
* @param security Field for FHIR property security
* @param tag Field for FHIR property tag
*/
public Meta(java.lang.String id, java.lang.String versionId, java.lang.String lastUpdated, java.util.List profile, java.util.List security, java.util.List tag) {
this.id = id;
this.versionId = versionId;
this.lastUpdated = lastUpdated;
this.profile = profile;
this.security = security;
this.tag = tag;
}
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 versionId;
case 2: return lastUpdated;
case 3: return profile;
case 4: return security;
case 5: return tag;
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: versionId = (java.lang.String)value$; break;
case 2: lastUpdated = (java.lang.String)value$; break;
case 3: profile = (java.util.List)value$; break;
case 4: security = (java.util.List)value$; break;
case 5: tag = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'id' field.
* @return Field for FHIR property id
*/
public java.lang.String getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* Field for FHIR property id
* @param value the value to set.
*/
public void setId(java.lang.String value) {
this.id = value;
}
/**
* Gets the value of the 'versionId' field.
* @return Field for FHIR property versionId
*/
public java.lang.String getVersionId() {
return versionId;
}
/**
* Sets the value of the 'versionId' field.
* Field for FHIR property versionId
* @param value the value to set.
*/
public void setVersionId(java.lang.String value) {
this.versionId = value;
}
/**
* Gets the value of the 'lastUpdated' field.
* @return Field for FHIR property lastUpdated
*/
public java.lang.String getLastUpdated() {
return lastUpdated;
}
/**
* Sets the value of the 'lastUpdated' field.
* Field for FHIR property lastUpdated
* @param value the value to set.
*/
public void setLastUpdated(java.lang.String value) {
this.lastUpdated = value;
}
/**
* Gets the value of the 'profile' field.
* @return Field for FHIR property profile
*/
public java.util.List getProfile() {
return profile;
}
/**
* Sets the value of the 'profile' field.
* Field for FHIR property profile
* @param value the value to set.
*/
public void setProfile(java.util.List value) {
this.profile = value;
}
/**
* Gets the value of the 'security' field.
* @return Field for FHIR property security
*/
public java.util.List getSecurity() {
return security;
}
/**
* Sets the value of the 'security' field.
* Field for FHIR property security
* @param value the value to set.
*/
public void setSecurity(java.util.List value) {
this.security = value;
}
/**
* Gets the value of the 'tag' field.
* @return Field for FHIR property tag
*/
public java.util.List getTag() {
return tag;
}
/**
* Sets the value of the 'tag' field.
* Field for FHIR property tag
* @param value the value to set.
*/
public void setTag(java.util.List value) {
this.tag = value;
}
/**
* Creates a new Meta RecordBuilder.
* @return A new Meta RecordBuilder
*/
public static com.cerner.bunsen.stu3.avro.Meta.Builder newBuilder() {
return new com.cerner.bunsen.stu3.avro.Meta.Builder();
}
/**
* Creates a new Meta RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new Meta RecordBuilder
*/
public static com.cerner.bunsen.stu3.avro.Meta.Builder newBuilder(com.cerner.bunsen.stu3.avro.Meta.Builder other) {
return new com.cerner.bunsen.stu3.avro.Meta.Builder(other);
}
/**
* Creates a new Meta RecordBuilder by copying an existing Meta instance.
* @param other The existing instance to copy.
* @return A new Meta RecordBuilder
*/
public static com.cerner.bunsen.stu3.avro.Meta.Builder newBuilder(com.cerner.bunsen.stu3.avro.Meta other) {
return new com.cerner.bunsen.stu3.avro.Meta.Builder(other);
}
/**
* RecordBuilder for Meta instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
/** Field for FHIR property id */
private java.lang.String id;
/** Field for FHIR property versionId */
private java.lang.String versionId;
/** Field for FHIR property lastUpdated */
private java.lang.String lastUpdated;
/** Field for FHIR property profile */
private java.util.List profile;
/** Field for FHIR property security */
private java.util.List security;
/** Field for FHIR property tag */
private java.util.List tag;
/** Creates a new Builder */
private Builder() {
super(SCHEMA$);
}
/**
* Creates a Builder by copying an existing Builder.
* @param other The existing Builder to copy.
*/
private Builder(com.cerner.bunsen.stu3.avro.Meta.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.versionId)) {
this.versionId = data().deepCopy(fields()[1].schema(), other.versionId);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.lastUpdated)) {
this.lastUpdated = data().deepCopy(fields()[2].schema(), other.lastUpdated);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.profile)) {
this.profile = data().deepCopy(fields()[3].schema(), other.profile);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.security)) {
this.security = data().deepCopy(fields()[4].schema(), other.security);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.tag)) {
this.tag = data().deepCopy(fields()[5].schema(), other.tag);
fieldSetFlags()[5] = true;
}
}
/**
* Creates a Builder by copying an existing Meta instance
* @param other The existing instance to copy.
*/
private Builder(com.cerner.bunsen.stu3.avro.Meta other) {
super(SCHEMA$);
if (isValidValue(fields()[0], other.id)) {
this.id = data().deepCopy(fields()[0].schema(), other.id);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.versionId)) {
this.versionId = data().deepCopy(fields()[1].schema(), other.versionId);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.lastUpdated)) {
this.lastUpdated = data().deepCopy(fields()[2].schema(), other.lastUpdated);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.profile)) {
this.profile = data().deepCopy(fields()[3].schema(), other.profile);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.security)) {
this.security = data().deepCopy(fields()[4].schema(), other.security);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.tag)) {
this.tag = data().deepCopy(fields()[5].schema(), other.tag);
fieldSetFlags()[5] = true;
}
}
/**
* Gets the value of the 'id' field.
* Field for FHIR property id
* @return The value.
*/
public java.lang.String getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* Field for FHIR property id
* @param value The value of 'id'.
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.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.
* Field for FHIR property id
* @return True if the 'id' field has been set, false otherwise.
*/
public boolean hasId() {
return fieldSetFlags()[0];
}
/**
* Clears the value of the 'id' field.
* Field for FHIR property id
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder clearId() {
id = null;
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'versionId' field.
* Field for FHIR property versionId
* @return The value.
*/
public java.lang.String getVersionId() {
return versionId;
}
/**
* Sets the value of the 'versionId' field.
* Field for FHIR property versionId
* @param value The value of 'versionId'.
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder setVersionId(java.lang.String value) {
validate(fields()[1], value);
this.versionId = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'versionId' field has been set.
* Field for FHIR property versionId
* @return True if the 'versionId' field has been set, false otherwise.
*/
public boolean hasVersionId() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'versionId' field.
* Field for FHIR property versionId
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder clearVersionId() {
versionId = null;
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'lastUpdated' field.
* Field for FHIR property lastUpdated
* @return The value.
*/
public java.lang.String getLastUpdated() {
return lastUpdated;
}
/**
* Sets the value of the 'lastUpdated' field.
* Field for FHIR property lastUpdated
* @param value The value of 'lastUpdated'.
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder setLastUpdated(java.lang.String value) {
validate(fields()[2], value);
this.lastUpdated = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'lastUpdated' field has been set.
* Field for FHIR property lastUpdated
* @return True if the 'lastUpdated' field has been set, false otherwise.
*/
public boolean hasLastUpdated() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'lastUpdated' field.
* Field for FHIR property lastUpdated
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder clearLastUpdated() {
lastUpdated = null;
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'profile' field.
* Field for FHIR property profile
* @return The value.
*/
public java.util.List getProfile() {
return profile;
}
/**
* Sets the value of the 'profile' field.
* Field for FHIR property profile
* @param value The value of 'profile'.
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder setProfile(java.util.List value) {
validate(fields()[3], value);
this.profile = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'profile' field has been set.
* Field for FHIR property profile
* @return True if the 'profile' field has been set, false otherwise.
*/
public boolean hasProfile() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'profile' field.
* Field for FHIR property profile
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder clearProfile() {
profile = null;
fieldSetFlags()[3] = false;
return this;
}
/**
* Gets the value of the 'security' field.
* Field for FHIR property security
* @return The value.
*/
public java.util.List getSecurity() {
return security;
}
/**
* Sets the value of the 'security' field.
* Field for FHIR property security
* @param value The value of 'security'.
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder setSecurity(java.util.List value) {
validate(fields()[4], value);
this.security = value;
fieldSetFlags()[4] = true;
return this;
}
/**
* Checks whether the 'security' field has been set.
* Field for FHIR property security
* @return True if the 'security' field has been set, false otherwise.
*/
public boolean hasSecurity() {
return fieldSetFlags()[4];
}
/**
* Clears the value of the 'security' field.
* Field for FHIR property security
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder clearSecurity() {
security = null;
fieldSetFlags()[4] = false;
return this;
}
/**
* Gets the value of the 'tag' field.
* Field for FHIR property tag
* @return The value.
*/
public java.util.List getTag() {
return tag;
}
/**
* Sets the value of the 'tag' field.
* Field for FHIR property tag
* @param value The value of 'tag'.
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder setTag(java.util.List value) {
validate(fields()[5], value);
this.tag = value;
fieldSetFlags()[5] = true;
return this;
}
/**
* Checks whether the 'tag' field has been set.
* Field for FHIR property tag
* @return True if the 'tag' field has been set, false otherwise.
*/
public boolean hasTag() {
return fieldSetFlags()[5];
}
/**
* Clears the value of the 'tag' field.
* Field for FHIR property tag
* @return This builder.
*/
public com.cerner.bunsen.stu3.avro.Meta.Builder clearTag() {
tag = null;
fieldSetFlags()[5] = false;
return this;
}
@Override
@SuppressWarnings("unchecked")
public Meta build() {
try {
Meta record = new Meta();
record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) defaultValue(fields()[0]);
record.versionId = fieldSetFlags()[1] ? this.versionId : (java.lang.String) defaultValue(fields()[1]);
record.lastUpdated = fieldSetFlags()[2] ? this.lastUpdated : (java.lang.String) defaultValue(fields()[2]);
record.profile = fieldSetFlags()[3] ? this.profile : (java.util.List) defaultValue(fields()[3]);
record.security = fieldSetFlags()[4] ? this.security : (java.util.List) defaultValue(fields()[4]);
record.tag = fieldSetFlags()[5] ? this.tag : (java.util.List) defaultValue(fields()[5]);
return record;
} catch (java.lang.Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumWriter
WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
@Override public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException {
WRITER$.write(this, SpecificData.getEncoder(out));
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumReader
READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
@Override public void readExternal(java.io.ObjectInput in)
throws java.io.IOException {
READER$.read(this, SpecificData.getDecoder(in));
}
}