Class MessageReference.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<MessageReference>
org.apache.avro.specific.SpecificRecordBuilderBase<MessageReference>
ch.admin.bit.jeap.domainevent.avro.error.MessageReference.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<MessageReference>
- Enclosing class:
MessageReference
public static class MessageReference.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<MessageReference>
implements org.apache.avro.data.RecordBuilder<MessageReference>
RecordBuilder for MessageReference instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'offset' field.Clears the value of the 'partition' field.Clears the value of the 'topicName' field.Clears the value of the 'type' field.Gets the value of the 'offset' field.Gets the value of the 'offset' field as an OptionalGets the value of the 'partition' field as an OptionalGets the value of the 'topicName' field as an OptionalGets the value of the 'type' field as an OptionalGets the value of the 'partition' field.Gets the value of the 'topicName' field.getType()Gets the value of the 'type' field.booleanChecks whether the 'offset' field has been set.booleanChecks whether the 'partition' field has been set.booleanChecks whether the 'topicName' field has been set.booleanhasType()Checks whether the 'type' field has been set.Sets the value of the 'offset' field.setPartition(String value) Sets the value of the 'partition' field.setTopicName(String value) Sets the value of the 'topicName' field.Sets the value of the 'type' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getType
Gets the value of the 'type' field.- Returns:
- The value.
-
getOptionalType
Gets the value of the 'type' field as an Optional- Returns:
- The Optional<value>.
-
setType
Sets the value of the 'type' field.- Parameters:
value- The value of 'type'.- Returns:
- This builder.
-
hasType
public boolean hasType()Checks whether the 'type' field has been set.- Returns:
- True if the 'type' field has been set, false otherwise.
-
clearType
Clears the value of the 'type' field.- Returns:
- This builder.
-
getTopicName
Gets the value of the 'topicName' field.- Returns:
- The value.
-
getOptionalTopicName
Gets the value of the 'topicName' field as an Optional- Returns:
- The Optional<value>.
-
setTopicName
Sets the value of the 'topicName' field.- Parameters:
value- The value of 'topicName'.- Returns:
- This builder.
-
hasTopicName
public boolean hasTopicName()Checks whether the 'topicName' field has been set.- Returns:
- True if the 'topicName' field has been set, false otherwise.
-
clearTopicName
Clears the value of the 'topicName' field.- Returns:
- This builder.
-
getPartition
Gets the value of the 'partition' field.- Returns:
- The value.
-
getOptionalPartition
Gets the value of the 'partition' field as an Optional- Returns:
- The Optional<value>.
-
setPartition
Sets the value of the 'partition' field.- Parameters:
value- The value of 'partition'.- Returns:
- This builder.
-
hasPartition
public boolean hasPartition()Checks whether the 'partition' field has been set.- Returns:
- True if the 'partition' field has been set, false otherwise.
-
clearPartition
Clears the value of the 'partition' field.- Returns:
- This builder.
-
getOffset
Gets the value of the 'offset' field.- Returns:
- The value.
-
getOptionalOffset
Gets the value of the 'offset' field as an Optional- Returns:
- The Optional<value>.
-
setOffset
Sets the value of the 'offset' field.- Parameters:
value- The value of 'offset'.- Returns:
- This builder.
-
hasOffset
public boolean hasOffset()Checks whether the 'offset' field has been set.- Returns:
- True if the 'offset' field has been set, false otherwise.
-
clearOffset
Clears the value of the 'offset' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<MessageReference>
-