org.apache.avro.ipc
Class HandshakeRequest.Builder

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

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

RecordBuilder for HandshakeRequest instances.


Method Summary
 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
 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
 
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

getClientHash

public MD5 getClientHash()
Gets the value of the 'clientHash' field


setClientHash

public HandshakeRequest.Builder setClientHash(MD5 value)
Sets the value of the 'clientHash' field


hasClientHash

public boolean hasClientHash()
Checks whether the 'clientHash' field has been set


clearClientHash

public HandshakeRequest.Builder clearClientHash()
Clears the value of the 'clientHash' field


getClientProtocol

public String getClientProtocol()
Gets the value of the 'clientProtocol' field


setClientProtocol

public HandshakeRequest.Builder setClientProtocol(String value)
Sets the value of the 'clientProtocol' field


hasClientProtocol

public boolean hasClientProtocol()
Checks whether the 'clientProtocol' field has been set


clearClientProtocol

public HandshakeRequest.Builder clearClientProtocol()
Clears the value of the 'clientProtocol' field


getServerHash

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


setServerHash

public HandshakeRequest.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 HandshakeRequest.Builder clearServerHash()
Clears the value of the 'serverHash' field


getMeta

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


setMeta

public HandshakeRequest.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 HandshakeRequest.Builder clearMeta()
Clears the value of the 'meta' field


build

public HandshakeRequest 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<HandshakeRequest>
Returns:
a new instance using values set in the RecordBuilder.


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