org.apache.avro.ipc
Class HandshakeResponse.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<HandshakeResponse>
          extended by org.apache.avro.ipc.HandshakeResponse.Builder
All Implemented Interfaces:
RecordBuilder<HandshakeResponse>
Enclosing class:
HandshakeResponse

public static class HandshakeResponse.Builder
extends SpecificRecordBuilderBase<HandshakeResponse>
implements RecordBuilder<HandshakeResponse>

RecordBuilder for HandshakeResponse instances.


Method Summary
 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
 
Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMatch

public HandshakeMatch getMatch()
Gets the value of the 'match' field


setMatch

public HandshakeResponse.Builder setMatch(HandshakeMatch value)
Sets the value of the 'match' field


hasMatch

public boolean hasMatch()
Checks whether the 'match' field has been set


clearMatch

public HandshakeResponse.Builder clearMatch()
Clears the value of the 'match' field


getServerProtocol

public String getServerProtocol()
Gets the value of the 'serverProtocol' field


setServerProtocol

public HandshakeResponse.Builder setServerProtocol(String value)
Sets the value of the 'serverProtocol' field


hasServerProtocol

public boolean hasServerProtocol()
Checks whether the 'serverProtocol' field has been set


clearServerProtocol

public HandshakeResponse.Builder clearServerProtocol()
Clears the value of the 'serverProtocol' field


getServerHash

public MD5 getServerHash()
Gets the value of the 'serverHash' field


setServerHash

public HandshakeResponse.Builder setServerHash(MD5 value)
Sets the value of the 'serverHash' field


hasServerHash

public boolean hasServerHash()
Checks whether the 'serverHash' field has been set


clearServerHash

public HandshakeResponse.Builder clearServerHash()
Clears the value of the 'serverHash' field


getMeta

public Map<String,ByteBuffer> getMeta()
Gets the value of the 'meta' field


setMeta

public HandshakeResponse.Builder setMeta(Map<String,ByteBuffer> value)
Sets the value of the 'meta' field


hasMeta

public boolean hasMeta()
Checks whether the 'meta' field has been set


clearMeta

public HandshakeResponse.Builder clearMeta()
Clears the value of the 'meta' field


build

public HandshakeResponse build()
Description copied from interface: RecordBuilder
Constructs a new instance using the values set in the RecordBuilder. If a particular value was not set and the schema defines a default value, the default value will be used.

Specified by:
build in interface RecordBuilder<HandshakeResponse>
Returns:
a new instance using values set in the RecordBuilder.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.