com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification Maven / Gradle / Ivy
The newest version!
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package com.expediagroup.streamplatform.streamregistry.state.avro;
import org.apache.avro.generic.GenericArray;
import org.apache.avro.specific.SpecificData;
import org.apache.avro.util.Utf8;
import org.apache.avro.message.BinaryMessageEncoder;
import org.apache.avro.message.BinaryMessageDecoder;
import org.apache.avro.message.SchemaStore;
@org.apache.avro.specific.AvroGenerated
public class AvroProcessBindingSpecification extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = -6240096961781178799L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AvroProcessBindingSpecification\",\"namespace\":\"com.expediagroup.streamplatform.streamregistry.state.avro\",\"fields\":[{\"name\":\"zone\",\"type\":{\"type\":\"record\",\"name\":\"AvroZoneKey\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AvroTag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"configuration\",\"type\":{\"type\":\"record\",\"name\":\"AvroObject\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"map\",\"values\":[\"AvroObject\",{\"type\":\"record\",\"name\":\"AvroArray\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"array\",\"items\":[\"AvroObject\",\"AvroArray\",{\"type\":\"string\",\"avro.java.string\":\"String\"},\"long\",\"double\",\"boolean\",\"null\"]}}]},{\"type\":\"string\",\"avro.java.string\":\"String\"},\"long\",\"double\",\"boolean\",\"null\"],\"avro.java.string\":\"String\"}}]}},{\"name\":\"security\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AvroPrincipal\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}},\"avro.java.string\":\"String\"}},{\"name\":\"function\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"default\":\"\"},{\"name\":\"inputs\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AvroProcessInputStreamBinding\",\"fields\":[{\"name\":\"streamBindingKey\",\"type\":{\"type\":\"record\",\"name\":\"AvroStreamBindingKey\",\"fields\":[{\"name\":\"streamKey\",\"type\":{\"type\":\"record\",\"name\":\"AvroStreamKey\",\"fields\":[{\"name\":\"domainKey\",\"type\":{\"type\":\"record\",\"name\":\"AvroDomainKey\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"version\",\"type\":\"int\"}]}},{\"name\":\"infrastructureKey\",\"type\":{\"type\":\"record\",\"name\":\"AvroInfrastructureKey\",\"fields\":[{\"name\":\"zoneKey\",\"type\":\"AvroZoneKey\"},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}}]}},{\"name\":\"configuration\",\"type\":\"AvroObject\"}]}}},{\"name\":\"outputs\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AvroProcessOutputStreamBinding\",\"fields\":[{\"name\":\"streamBindingKey\",\"type\":\"AvroStreamBindingKey\"},{\"name\":\"configuration\",\"type\":\"AvroObject\"}]}}}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private static final SpecificData MODEL$ = new SpecificData();
private static final BinaryMessageEncoder ENCODER =
new BinaryMessageEncoder<>(MODEL$, SCHEMA$);
private static final BinaryMessageDecoder DECODER =
new BinaryMessageDecoder<>(MODEL$, SCHEMA$);
/**
* Return the BinaryMessageEncoder instance used by this class.
* @return the message encoder used by this class
*/
public static BinaryMessageEncoder getEncoder() {
return ENCODER;
}
/**
* Return the BinaryMessageDecoder instance used by this class.
* @return the message decoder 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
* @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
*/
public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
return new BinaryMessageDecoder<>(MODEL$, SCHEMA$, resolver);
}
/**
* Serializes this AvroProcessBindingSpecification to a ByteBuffer.
* @return a buffer holding the serialized data for this instance
* @throws java.io.IOException if this instance could not be serialized
*/
public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
return ENCODER.encode(this);
}
/**
* Deserializes a AvroProcessBindingSpecification from a ByteBuffer.
* @param b a byte buffer holding serialized data for an instance of this class
* @return a AvroProcessBindingSpecification instance decoded from the given buffer
* @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
*/
public static AvroProcessBindingSpecification fromByteBuffer(
java.nio.ByteBuffer b) throws java.io.IOException {
return DECODER.decode(b);
}
private com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey zone;
private java.lang.String description;
private java.util.List tags;
private java.lang.String type;
private com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject configuration;
private java.util.Map> security;
private java.lang.String function;
private java.util.List inputs;
private java.util.List outputs;
/**
* 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 AvroProcessBindingSpecification() {}
/**
* All-args constructor.
* @param zone The new value for zone
* @param description The new value for description
* @param tags The new value for tags
* @param type The new value for type
* @param configuration The new value for configuration
* @param security The new value for security
* @param function The new value for function
* @param inputs The new value for inputs
* @param outputs The new value for outputs
*/
public AvroProcessBindingSpecification(com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey zone, java.lang.String description, java.util.List tags, java.lang.String type, com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject configuration, java.util.Map> security, java.lang.String function, java.util.List inputs, java.util.List outputs) {
this.zone = zone;
this.description = description;
this.tags = tags;
this.type = type;
this.configuration = configuration;
this.security = security;
this.function = function;
this.inputs = inputs;
this.outputs = outputs;
}
@Override
public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
@Override
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
@Override
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return zone;
case 1: return description;
case 2: return tags;
case 3: return type;
case 4: return configuration;
case 5: return security;
case 6: return function;
case 7: return inputs;
case 8: return outputs;
default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
}
}
// Used by DatumReader. Applications should not call.
@Override
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: zone = (com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey)value$; break;
case 1: description = value$ != null ? value$.toString() : null; break;
case 2: tags = (java.util.List)value$; break;
case 3: type = value$ != null ? value$.toString() : null; break;
case 4: configuration = (com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject)value$; break;
case 5: security = (java.util.Map>)value$; break;
case 6: function = value$ != null ? value$.toString() : null; break;
case 7: inputs = (java.util.List)value$; break;
case 8: outputs = (java.util.List)value$; break;
default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
}
}
/**
* Gets the value of the 'zone' field.
* @return The value of the 'zone' field.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey getZone() {
return zone;
}
/**
* Gets the value of the 'description' field.
* @return The value of the 'description' field.
*/
public java.lang.String getDescription() {
return description;
}
/**
* Gets the value of the 'tags' field.
* @return The value of the 'tags' field.
*/
public java.util.List getTags() {
return tags;
}
/**
* Gets the value of the 'type' field.
* @return The value of the 'type' field.
*/
public java.lang.String getType() {
return type;
}
/**
* Gets the value of the 'configuration' field.
* @return The value of the 'configuration' field.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject getConfiguration() {
return configuration;
}
/**
* Gets the value of the 'security' field.
* @return The value of the 'security' field.
*/
public java.util.Map> getSecurity() {
return security;
}
/**
* Gets the value of the 'function' field.
* @return The value of the 'function' field.
*/
public java.lang.String getFunction() {
return function;
}
/**
* Gets the value of the 'inputs' field.
* @return The value of the 'inputs' field.
*/
public java.util.List getInputs() {
return inputs;
}
/**
* Gets the value of the 'outputs' field.
* @return The value of the 'outputs' field.
*/
public java.util.List getOutputs() {
return outputs;
}
/**
* Creates a new AvroProcessBindingSpecification RecordBuilder.
* @return A new AvroProcessBindingSpecification RecordBuilder
*/
public static com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder newBuilder() {
return new com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder();
}
/**
* Creates a new AvroProcessBindingSpecification RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new AvroProcessBindingSpecification RecordBuilder
*/
public static com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder newBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder other) {
if (other == null) {
return new com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder();
} else {
return new com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder(other);
}
}
/**
* Creates a new AvroProcessBindingSpecification RecordBuilder by copying an existing AvroProcessBindingSpecification instance.
* @param other The existing instance to copy.
* @return A new AvroProcessBindingSpecification RecordBuilder
*/
public static com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder newBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification other) {
if (other == null) {
return new com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder();
} else {
return new com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder(other);
}
}
/**
* RecordBuilder for AvroProcessBindingSpecification instances.
*/
@org.apache.avro.specific.AvroGenerated
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey zone;
private com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey.Builder zoneBuilder;
private java.lang.String description;
private java.util.List tags;
private java.lang.String type;
private com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject configuration;
private com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject.Builder configurationBuilder;
private java.util.Map> security;
private java.lang.String function;
private java.util.List inputs;
private java.util.List outputs;
/** Creates a new Builder */
private Builder() {
super(SCHEMA$, MODEL$);
}
/**
* Creates a Builder by copying an existing Builder.
* @param other The existing Builder to copy.
*/
private Builder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder other) {
super(other);
if (isValidValue(fields()[0], other.zone)) {
this.zone = data().deepCopy(fields()[0].schema(), other.zone);
fieldSetFlags()[0] = other.fieldSetFlags()[0];
}
if (other.hasZoneBuilder()) {
this.zoneBuilder = com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey.newBuilder(other.getZoneBuilder());
}
if (isValidValue(fields()[1], other.description)) {
this.description = data().deepCopy(fields()[1].schema(), other.description);
fieldSetFlags()[1] = other.fieldSetFlags()[1];
}
if (isValidValue(fields()[2], other.tags)) {
this.tags = data().deepCopy(fields()[2].schema(), other.tags);
fieldSetFlags()[2] = other.fieldSetFlags()[2];
}
if (isValidValue(fields()[3], other.type)) {
this.type = data().deepCopy(fields()[3].schema(), other.type);
fieldSetFlags()[3] = other.fieldSetFlags()[3];
}
if (isValidValue(fields()[4], other.configuration)) {
this.configuration = data().deepCopy(fields()[4].schema(), other.configuration);
fieldSetFlags()[4] = other.fieldSetFlags()[4];
}
if (other.hasConfigurationBuilder()) {
this.configurationBuilder = com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject.newBuilder(other.getConfigurationBuilder());
}
if (isValidValue(fields()[5], other.security)) {
this.security = data().deepCopy(fields()[5].schema(), other.security);
fieldSetFlags()[5] = other.fieldSetFlags()[5];
}
if (isValidValue(fields()[6], other.function)) {
this.function = data().deepCopy(fields()[6].schema(), other.function);
fieldSetFlags()[6] = other.fieldSetFlags()[6];
}
if (isValidValue(fields()[7], other.inputs)) {
this.inputs = data().deepCopy(fields()[7].schema(), other.inputs);
fieldSetFlags()[7] = other.fieldSetFlags()[7];
}
if (isValidValue(fields()[8], other.outputs)) {
this.outputs = data().deepCopy(fields()[8].schema(), other.outputs);
fieldSetFlags()[8] = other.fieldSetFlags()[8];
}
}
/**
* Creates a Builder by copying an existing AvroProcessBindingSpecification instance
* @param other The existing instance to copy.
*/
private Builder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification other) {
super(SCHEMA$, MODEL$);
if (isValidValue(fields()[0], other.zone)) {
this.zone = data().deepCopy(fields()[0].schema(), other.zone);
fieldSetFlags()[0] = true;
}
this.zoneBuilder = null;
if (isValidValue(fields()[1], other.description)) {
this.description = data().deepCopy(fields()[1].schema(), other.description);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.tags)) {
this.tags = data().deepCopy(fields()[2].schema(), other.tags);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.type)) {
this.type = data().deepCopy(fields()[3].schema(), other.type);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.configuration)) {
this.configuration = data().deepCopy(fields()[4].schema(), other.configuration);
fieldSetFlags()[4] = true;
}
this.configurationBuilder = null;
if (isValidValue(fields()[5], other.security)) {
this.security = data().deepCopy(fields()[5].schema(), other.security);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.function)) {
this.function = data().deepCopy(fields()[6].schema(), other.function);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.inputs)) {
this.inputs = data().deepCopy(fields()[7].schema(), other.inputs);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.outputs)) {
this.outputs = data().deepCopy(fields()[8].schema(), other.outputs);
fieldSetFlags()[8] = true;
}
}
/**
* Gets the value of the 'zone' field.
* @return The value.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey getZone() {
return zone;
}
/**
* Sets the value of the 'zone' field.
* @param value The value of 'zone'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setZone(com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey value) {
validate(fields()[0], value);
this.zoneBuilder = null;
this.zone = value;
fieldSetFlags()[0] = true;
return this;
}
/**
* Checks whether the 'zone' field has been set.
* @return True if the 'zone' field has been set, false otherwise.
*/
public boolean hasZone() {
return fieldSetFlags()[0];
}
/**
* Gets the Builder instance for the 'zone' field and creates one if it doesn't exist yet.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey.Builder getZoneBuilder() {
if (zoneBuilder == null) {
if (hasZone()) {
setZoneBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey.newBuilder(zone));
} else {
setZoneBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey.newBuilder());
}
}
return zoneBuilder;
}
/**
* Sets the Builder instance for the 'zone' field
* @param value The builder instance that must be set.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setZoneBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey.Builder value) {
clearZone();
zoneBuilder = value;
return this;
}
/**
* Checks whether the 'zone' field has an active Builder instance
* @return True if the 'zone' field has an active Builder instance
*/
public boolean hasZoneBuilder() {
return zoneBuilder != null;
}
/**
* Clears the value of the 'zone' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearZone() {
zone = null;
zoneBuilder = null;
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'description' field.
* @return The value.
*/
public java.lang.String getDescription() {
return description;
}
/**
* Sets the value of the 'description' field.
* @param value The value of 'description'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setDescription(java.lang.String value) {
validate(fields()[1], value);
this.description = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'description' field has been set.
* @return True if the 'description' field has been set, false otherwise.
*/
public boolean hasDescription() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'description' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearDescription() {
description = null;
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'tags' field.
* @return The value.
*/
public java.util.List getTags() {
return tags;
}
/**
* Sets the value of the 'tags' field.
* @param value The value of 'tags'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setTags(java.util.List value) {
validate(fields()[2], value);
this.tags = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'tags' field has been set.
* @return True if the 'tags' field has been set, false otherwise.
*/
public boolean hasTags() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'tags' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearTags() {
tags = null;
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'type' field.
* @return The value.
*/
public java.lang.String getType() {
return type;
}
/**
* Sets the value of the 'type' field.
* @param value The value of 'type'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setType(java.lang.String value) {
validate(fields()[3], value);
this.type = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'type' field has been set.
* @return True if the 'type' field has been set, false otherwise.
*/
public boolean hasType() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'type' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearType() {
type = null;
fieldSetFlags()[3] = false;
return this;
}
/**
* Gets the value of the 'configuration' field.
* @return The value.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject getConfiguration() {
return configuration;
}
/**
* Sets the value of the 'configuration' field.
* @param value The value of 'configuration'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setConfiguration(com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject value) {
validate(fields()[4], value);
this.configurationBuilder = null;
this.configuration = value;
fieldSetFlags()[4] = true;
return this;
}
/**
* Checks whether the 'configuration' field has been set.
* @return True if the 'configuration' field has been set, false otherwise.
*/
public boolean hasConfiguration() {
return fieldSetFlags()[4];
}
/**
* Gets the Builder instance for the 'configuration' field and creates one if it doesn't exist yet.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject.Builder getConfigurationBuilder() {
if (configurationBuilder == null) {
if (hasConfiguration()) {
setConfigurationBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject.newBuilder(configuration));
} else {
setConfigurationBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject.newBuilder());
}
}
return configurationBuilder;
}
/**
* Sets the Builder instance for the 'configuration' field
* @param value The builder instance that must be set.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setConfigurationBuilder(com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject.Builder value) {
clearConfiguration();
configurationBuilder = value;
return this;
}
/**
* Checks whether the 'configuration' field has an active Builder instance
* @return True if the 'configuration' field has an active Builder instance
*/
public boolean hasConfigurationBuilder() {
return configurationBuilder != null;
}
/**
* Clears the value of the 'configuration' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearConfiguration() {
configuration = null;
configurationBuilder = null;
fieldSetFlags()[4] = false;
return this;
}
/**
* Gets the value of the 'security' field.
* @return The value.
*/
public java.util.Map> getSecurity() {
return security;
}
/**
* Sets the value of the 'security' field.
* @param value The value of 'security'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setSecurity(java.util.Map> value) {
validate(fields()[5], value);
this.security = value;
fieldSetFlags()[5] = true;
return this;
}
/**
* Checks whether the 'security' field has been set.
* @return True if the 'security' field has been set, false otherwise.
*/
public boolean hasSecurity() {
return fieldSetFlags()[5];
}
/**
* Clears the value of the 'security' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearSecurity() {
security = null;
fieldSetFlags()[5] = false;
return this;
}
/**
* Gets the value of the 'function' field.
* @return The value.
*/
public java.lang.String getFunction() {
return function;
}
/**
* Sets the value of the 'function' field.
* @param value The value of 'function'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setFunction(java.lang.String value) {
validate(fields()[6], value);
this.function = value;
fieldSetFlags()[6] = true;
return this;
}
/**
* Checks whether the 'function' field has been set.
* @return True if the 'function' field has been set, false otherwise.
*/
public boolean hasFunction() {
return fieldSetFlags()[6];
}
/**
* Clears the value of the 'function' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearFunction() {
function = null;
fieldSetFlags()[6] = false;
return this;
}
/**
* Gets the value of the 'inputs' field.
* @return The value.
*/
public java.util.List getInputs() {
return inputs;
}
/**
* Sets the value of the 'inputs' field.
* @param value The value of 'inputs'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setInputs(java.util.List value) {
validate(fields()[7], value);
this.inputs = value;
fieldSetFlags()[7] = true;
return this;
}
/**
* Checks whether the 'inputs' field has been set.
* @return True if the 'inputs' field has been set, false otherwise.
*/
public boolean hasInputs() {
return fieldSetFlags()[7];
}
/**
* Clears the value of the 'inputs' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearInputs() {
inputs = null;
fieldSetFlags()[7] = false;
return this;
}
/**
* Gets the value of the 'outputs' field.
* @return The value.
*/
public java.util.List getOutputs() {
return outputs;
}
/**
* Sets the value of the 'outputs' field.
* @param value The value of 'outputs'.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder setOutputs(java.util.List value) {
validate(fields()[8], value);
this.outputs = value;
fieldSetFlags()[8] = true;
return this;
}
/**
* Checks whether the 'outputs' field has been set.
* @return True if the 'outputs' field has been set, false otherwise.
*/
public boolean hasOutputs() {
return fieldSetFlags()[8];
}
/**
* Clears the value of the 'outputs' field.
* @return This builder.
*/
public com.expediagroup.streamplatform.streamregistry.state.avro.AvroProcessBindingSpecification.Builder clearOutputs() {
outputs = null;
fieldSetFlags()[8] = false;
return this;
}
@Override
@SuppressWarnings("unchecked")
public AvroProcessBindingSpecification build() {
try {
AvroProcessBindingSpecification record = new AvroProcessBindingSpecification();
if (zoneBuilder != null) {
try {
record.zone = this.zoneBuilder.build();
} catch (org.apache.avro.AvroMissingFieldException e) {
e.addParentField(record.getSchema().getField("zone"));
throw e;
}
} else {
record.zone = fieldSetFlags()[0] ? this.zone : (com.expediagroup.streamplatform.streamregistry.state.avro.AvroZoneKey) defaultValue(fields()[0]);
}
record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]);
record.tags = fieldSetFlags()[2] ? this.tags : (java.util.List) defaultValue(fields()[2]);
record.type = fieldSetFlags()[3] ? this.type : (java.lang.String) defaultValue(fields()[3]);
if (configurationBuilder != null) {
try {
record.configuration = this.configurationBuilder.build();
} catch (org.apache.avro.AvroMissingFieldException e) {
e.addParentField(record.getSchema().getField("configuration"));
throw e;
}
} else {
record.configuration = fieldSetFlags()[4] ? this.configuration : (com.expediagroup.streamplatform.streamregistry.state.avro.AvroObject) defaultValue(fields()[4]);
}
record.security = fieldSetFlags()[5] ? this.security : (java.util.Map>) defaultValue(fields()[5]);
record.function = fieldSetFlags()[6] ? this.function : (java.lang.String) defaultValue(fields()[6]);
record.inputs = fieldSetFlags()[7] ? this.inputs : (java.util.List) defaultValue(fields()[7]);
record.outputs = fieldSetFlags()[8] ? this.outputs : (java.util.List) defaultValue(fields()[8]);
return record;
} catch (org.apache.avro.AvroMissingFieldException e) {
throw e;
} 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));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy