Package ch.admin.bit.jeap.messaging.avro
Class AvroMessageType.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<AvroMessageType>
org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessageType>
ch.admin.bit.jeap.messaging.avro.AvroMessageType.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroMessageType>
- Enclosing class:
AvroMessageType
public static class AvroMessageType.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroMessageType>
implements org.apache.avro.data.RecordBuilder<AvroMessageType>
RecordBuilder for AvroMessageType instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'name' field.Clears the value of the 'version' field.getName()Gets the value of the 'name' field.Gets the value of the 'name' field as an OptionalGets the value of the 'version' field as an OptionalGets the value of the 'version' field.booleanhasName()Checks whether the 'name' field has been set.booleanChecks whether the 'version' field has been set.Sets the value of the 'name' field.setVersion(String value) Sets the value of the 'version' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getName
Gets the value of the 'name' field.- Returns:
- The value.
-
getOptionalName
Gets the value of the 'name' field as an Optional- Returns:
- The Optional<value>.
-
setName
Sets the value of the 'name' field.- Parameters:
value- The value of 'name'.- Returns:
- This builder.
-
hasName
public boolean hasName()Checks whether the 'name' field has been set.- Returns:
- True if the 'name' field has been set, false otherwise.
-
clearName
Clears the value of the 'name' field.- Returns:
- This builder.
-
getVersion
Gets the value of the 'version' field.- Returns:
- The value.
-
getOptionalVersion
Gets the value of the 'version' field as an Optional- Returns:
- The Optional<value>.
-
setVersion
Sets the value of the 'version' field.- Parameters:
value- The value of 'version'.- Returns:
- This builder.
-
hasVersion
public boolean hasVersion()Checks whether the 'version' field has been set.- Returns:
- True if the 'version' field has been set, false otherwise.
-
clearVersion
Clears the value of the 'version' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<AvroMessageType>
-