public static class HandshakeResponse.Builder extends SpecificRecordBuilderBase<HandshakeResponse> implements RecordBuilder<HandshakeResponse>
Modifier and Type | Method and Description |
---|---|
HandshakeResponse |
build()
Constructs a new instance using the values set in the RecordBuilder.
|
HandshakeResponse.Builder |
clearMatch()
Clears the value of the 'match' field.
|
HandshakeResponse.Builder |
clearMeta()
Clears the value of the 'meta' field.
|
HandshakeResponse.Builder |
clearServerHash()
Clears the value of the 'serverHash' field.
|
HandshakeResponse.Builder |
clearServerProtocol()
Clears the value of the 'serverProtocol' field.
|
HandshakeMatch |
getMatch()
Gets the value of the 'match' field.
|
Map<String,ByteBuffer> |
getMeta()
Gets the value of the 'meta' field.
|
Optional<HandshakeMatch> |
getOptionalMatch()
Gets the value of the 'match' field as an Optional<org.apache.avro.ipc.HandshakeMatch>.
|
Optional<Map<String,ByteBuffer>> |
getOptionalMeta()
Gets the value of the 'meta' field as an Optional<java.util.Map
|
Optional<MD5> |
getOptionalServerHash()
Gets the value of the 'serverHash' field as an Optional<org.apache.avro.ipc.MD5>.
|
Optional<String> |
getOptionalServerProtocol()
Gets the value of the 'serverProtocol' field as an Optional<java.lang.String>.
|
MD5 |
getServerHash()
Gets the value of the 'serverHash' field.
|
String |
getServerProtocol()
Gets the value of the 'serverProtocol' field.
|
boolean |
hasMatch()
Checks whether the 'match' field has been set.
|
boolean |
hasMeta()
Checks whether the 'meta' field has been set.
|
boolean |
hasServerHash()
Checks whether the 'serverHash' field has been set.
|
boolean |
hasServerProtocol()
Checks whether the 'serverProtocol' field has been set.
|
HandshakeResponse.Builder |
setMatch(HandshakeMatch value)
Sets the value of the 'match' field.
|
HandshakeResponse.Builder |
setMeta(Map<String,ByteBuffer> value)
Sets the value of the 'meta' field.
|
HandshakeResponse.Builder |
setServerHash(MD5 value)
Sets the value of the 'serverHash' field.
|
HandshakeResponse.Builder |
setServerProtocol(String value)
Sets the value of the 'serverProtocol' field.
|
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
public HandshakeMatch getMatch()
public Optional<HandshakeMatch> getOptionalMatch()
public HandshakeResponse.Builder setMatch(HandshakeMatch value)
value
- The value of 'match'.public boolean hasMatch()
public HandshakeResponse.Builder clearMatch()
public String getServerProtocol()
public Optional<String> getOptionalServerProtocol()
public HandshakeResponse.Builder setServerProtocol(String value)
value
- The value of 'serverProtocol'.public boolean hasServerProtocol()
public HandshakeResponse.Builder clearServerProtocol()
public MD5 getServerHash()
public Optional<MD5> getOptionalServerHash()
public HandshakeResponse.Builder setServerHash(MD5 value)
value
- The value of 'serverHash'.public boolean hasServerHash()
public HandshakeResponse.Builder clearServerHash()
public Map<String,ByteBuffer> getMeta()
public Optional<Map<String,ByteBuffer>> getOptionalMeta()
public HandshakeResponse.Builder setMeta(Map<String,ByteBuffer> value)
value
- The value of 'meta'.public boolean hasMeta()
public HandshakeResponse.Builder clearMeta()
public HandshakeResponse build()
RecordBuilder
build
in interface RecordBuilder<HandshakeResponse>
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.