Package org.apache.avro.ipc
Class HandshakeResponse.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<HandshakeResponse>
org.apache.avro.specific.SpecificRecordBuilderBase<HandshakeResponse>
org.apache.avro.ipc.HandshakeResponse.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<HandshakeResponse>
- Enclosing class:
HandshakeResponse
public static class HandshakeResponse.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<HandshakeResponse>
implements org.apache.avro.data.RecordBuilder<HandshakeResponse>
RecordBuilder for HandshakeResponse instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'match' field.Clears the value of the 'meta' field.Clears the value of the 'serverHash' field.Clears the value of the 'serverProtocol' field.getMatch()Gets the value of the 'match' field.getMeta()Gets the value of the 'meta' field.Gets the value of the 'match' field as an Optional<org.apache.avro.ipc.HandshakeMatch>.Gets the value of the 'meta' field as an Optional<java.util.Map<java.lang.String,java.nio.ByteBuffer>>.Gets the value of the 'serverHash' field as an Optional<org.apache.avro.ipc.MD5>.Gets the value of the 'serverProtocol' field as an Optional<java.lang.String>.Gets the value of the 'serverHash' field.Gets the value of the 'serverProtocol' field.booleanhasMatch()Checks whether the 'match' field has been set.booleanhasMeta()Checks whether the 'meta' field has been set.booleanChecks whether the 'serverHash' field has been set.booleanChecks whether the 'serverProtocol' field has been set.setMatch(HandshakeMatch value) Sets the value of the 'match' field.setMeta(Map<String, ByteBuffer> value) Sets the value of the 'meta' field.setServerHash(MD5 value) Sets the value of the 'serverHash' field.setServerProtocol(String value) Sets the value of the 'serverProtocol' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getMatch
Gets the value of the 'match' field.- Returns:
- The value.
-
getOptionalMatch
Gets the value of the 'match' field as an Optional<org.apache.avro.ipc.HandshakeMatch>.- Returns:
- The value wrapped in an Optional<org.apache.avro.ipc.HandshakeMatch>.
-
setMatch
Sets the value of the 'match' field.- Parameters:
value- The value of 'match'.- Returns:
- This builder.
-
hasMatch
public boolean hasMatch()Checks whether the 'match' field has been set.- Returns:
- True if the 'match' field has been set, false otherwise.
-
clearMatch
Clears the value of the 'match' field.- Returns:
- This builder.
-
getServerProtocol
Gets the value of the 'serverProtocol' field.- Returns:
- The value.
-
getOptionalServerProtocol
Gets the value of the 'serverProtocol' field as an Optional<java.lang.String>.- Returns:
- The value wrapped in an Optional<java.lang.String>.
-
setServerProtocol
Sets the value of the 'serverProtocol' field.- Parameters:
value- The value of 'serverProtocol'.- Returns:
- This builder.
-
hasServerProtocol
public boolean hasServerProtocol()Checks whether the 'serverProtocol' field has been set.- Returns:
- True if the 'serverProtocol' field has been set, false otherwise.
-
clearServerProtocol
Clears the value of the 'serverProtocol' field.- Returns:
- This builder.
-
getServerHash
Gets the value of the 'serverHash' field.- Returns:
- The value.
-
getOptionalServerHash
Gets the value of the 'serverHash' field as an Optional<org.apache.avro.ipc.MD5>.- Returns:
- The value wrapped in an Optional<org.apache.avro.ipc.MD5>.
-
setServerHash
Sets the value of the 'serverHash' field.- Parameters:
value- The value of 'serverHash'.- Returns:
- This builder.
-
hasServerHash
public boolean hasServerHash()Checks whether the 'serverHash' field has been set.- Returns:
- True if the 'serverHash' field has been set, false otherwise.
-
clearServerHash
Clears the value of the 'serverHash' field.- Returns:
- This builder.
-
getMeta
Gets the value of the 'meta' field.- Returns:
- The value.
-
getOptionalMeta
Gets the value of the 'meta' field as an Optional<java.util.Map<java.lang.String,java.nio.ByteBuffer>>.- Returns:
- The value wrapped in an Optional<java.util.Map<java.lang.String,java.nio.ByteBuffer>>.
-
setMeta
Sets the value of the 'meta' field.- Parameters:
value- The value of 'meta'.- Returns:
- This builder.
-
hasMeta
public boolean hasMeta()Checks whether the 'meta' field has been set.- Returns:
- True if the 'meta' field has been set, false otherwise.
-
clearMeta
Clears the value of the 'meta' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<HandshakeResponse>
-