public static class HandshakeRequest.Builder extends SpecificRecordBuilderBase<HandshakeRequest> implements RecordBuilder<HandshakeRequest>
| Modifier and Type | Method and Description | 
|---|---|
HandshakeRequest | 
build()
Constructs a new instance using the values set in the RecordBuilder. 
 | 
HandshakeRequest.Builder | 
clearClientHash()
Clears the value of the 'clientHash' field. 
 | 
HandshakeRequest.Builder | 
clearClientProtocol()
Clears the value of the 'clientProtocol' field. 
 | 
HandshakeRequest.Builder | 
clearMeta()
Clears the value of the 'meta' field. 
 | 
HandshakeRequest.Builder | 
clearServerHash()
Clears the value of the 'serverHash' field. 
 | 
MD5 | 
getClientHash()
Gets the value of the 'clientHash' field. 
 | 
String | 
getClientProtocol()
Gets the value of the 'clientProtocol' field. 
 | 
Map<String,ByteBuffer> | 
getMeta()
Gets the value of the 'meta' field. 
 | 
Optional<MD5> | 
getOptionalClientHash()
Gets the value of the 'clientHash' field as an Optional<org.apache.avro.ipc.MD5>. 
 | 
Optional<String> | 
getOptionalClientProtocol()
Gets the value of the 'clientProtocol' field as an Optional<java.lang.String>. 
 | 
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>. 
 | 
MD5 | 
getServerHash()
Gets the value of the 'serverHash' field. 
 | 
boolean | 
hasClientHash()
Checks whether the 'clientHash' field has been set. 
 | 
boolean | 
hasClientProtocol()
Checks whether the 'clientProtocol' field has been set. 
 | 
boolean | 
hasMeta()
Checks whether the 'meta' field has been set. 
 | 
boolean | 
hasServerHash()
Checks whether the 'serverHash' field has been set. 
 | 
HandshakeRequest.Builder | 
setClientHash(MD5 value)
Sets the value of the 'clientHash' field. 
 | 
HandshakeRequest.Builder | 
setClientProtocol(String value)
Sets the value of the 'clientProtocol' field. 
 | 
HandshakeRequest.Builder | 
setMeta(Map<String,ByteBuffer> value)
Sets the value of the 'meta' field. 
 | 
HandshakeRequest.Builder | 
setServerHash(MD5 value)
Sets the value of the 'serverHash' field. 
 | 
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validatepublic MD5 getClientHash()
public Optional<MD5> getOptionalClientHash()
public HandshakeRequest.Builder setClientHash(MD5 value)
value - The value of 'clientHash'.public boolean hasClientHash()
public HandshakeRequest.Builder clearClientHash()
public String getClientProtocol()
public Optional<String> getOptionalClientProtocol()
public HandshakeRequest.Builder setClientProtocol(String value)
value - The value of 'clientProtocol'.public boolean hasClientProtocol()
public HandshakeRequest.Builder clearClientProtocol()
public MD5 getServerHash()
public Optional<MD5> getOptionalServerHash()
public HandshakeRequest.Builder setServerHash(MD5 value)
value - The value of 'serverHash'.public boolean hasServerHash()
public HandshakeRequest.Builder clearServerHash()
public Map<String,ByteBuffer> getMeta()
public Optional<Map<String,ByteBuffer>> getOptionalMeta()
public HandshakeRequest.Builder setMeta(Map<String,ByteBuffer> value)
value - The value of 'meta'.public boolean hasMeta()
public HandshakeRequest.Builder clearMeta()
public HandshakeRequest build()
RecordBuilderbuild in interface RecordBuilder<HandshakeRequest>Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.