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.
|
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, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
public HandshakeMatch getMatch()
public HandshakeResponse.Builder setMatch(HandshakeMatch value)
value
- The value of 'match'.public boolean hasMatch()
public HandshakeResponse.Builder clearMatch()
public String getServerProtocol()
public HandshakeResponse.Builder setServerProtocol(String value)
value
- The value of 'serverProtocol'.public boolean hasServerProtocol()
public HandshakeResponse.Builder clearServerProtocol()
public MD5 getServerHash()
public HandshakeResponse.Builder setServerHash(MD5 value)
value
- The value of 'serverHash'.public boolean hasServerHash()
public HandshakeResponse.Builder clearServerHash()
public Map<String,ByteBuffer> getMeta()
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–2017 The Apache Software Foundation. All rights reserved.