Class Key.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<Key>
org.apache.camel.quarkus.component.avro.rpc.it.specific.generated.Key.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Key>
- Enclosing class:
- Key
public static class Key.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<Key>
implements org.apache.avro.data.RecordBuilder<Key>
RecordBuilder for Key instances.
-
Method Summary
Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getKey
Gets the value of the 'key' field.- Returns:
- The value.
-
setKey
Sets the value of the 'key' field.- Parameters:
value- The value of 'key'.- Returns:
- This builder.
-
hasKey
public boolean hasKey()Checks whether the 'key' field has been set.- Returns:
- True if the 'key' field has been set, false otherwise.
-
clearKey
Clears the value of the 'key' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<Key>
-