Class 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 Details

    • getClientHash

      public MD5 getClientHash()
      Gets the value of the 'clientHash' field.
      Returns:
      The value.
    • getOptionalClientHash

      public Optional<MD5> getOptionalClientHash()
      Gets the value of the 'clientHash' field as an Optional<org.apache.avro.ipc.MD5>.
      Returns:
      The value wrapped in an Optional<org.apache.avro.ipc.MD5>.
    • setClientHash

      public HandshakeRequest.Builder setClientHash(MD5 value)
      Sets the value of the 'clientHash' field.
      Parameters:
      value - The value of 'clientHash'.
      Returns:
      This builder.
    • hasClientHash

      public boolean hasClientHash()
      Checks whether the 'clientHash' field has been set.
      Returns:
      True if the 'clientHash' field has been set, false otherwise.
    • clearClientHash

      public HandshakeRequest.Builder clearClientHash()
      Clears the value of the 'clientHash' field.
      Returns:
      This builder.
    • getClientProtocol

      public String getClientProtocol()
      Gets the value of the 'clientProtocol' field.
      Returns:
      The value.
    • getOptionalClientProtocol

      public Optional<String> getOptionalClientProtocol()
      Gets the value of the 'clientProtocol' field as an Optional<java.lang.String>.
      Returns:
      The value wrapped in an Optional<java.lang.String>.
    • setClientProtocol

      public HandshakeRequest.Builder setClientProtocol(String value)
      Sets the value of the 'clientProtocol' field.
      Parameters:
      value - The value of 'clientProtocol'.
      Returns:
      This builder.
    • hasClientProtocol

      public boolean hasClientProtocol()
      Checks whether the 'clientProtocol' field has been set.
      Returns:
      True if the 'clientProtocol' field has been set, false otherwise.
    • clearClientProtocol

      public HandshakeRequest.Builder clearClientProtocol()
      Clears the value of the 'clientProtocol' field.
      Returns:
      This builder.
    • getServerHash

      public MD5 getServerHash()
      Gets the value of the 'serverHash' field.
      Returns:
      The value.
    • getOptionalServerHash

      public Optional<MD5> getOptionalServerHash()
      Gets the value of the 'serverHash' field as an Optional<org.apache.avro.ipc.MD5>.
      Returns:
      The value wrapped in an Optional<org.apache.avro.ipc.MD5>.
    • setServerHash

      public HandshakeRequest.Builder setServerHash(MD5 value)
      Sets the value of the 'serverHash' field.
      Parameters:
      value - The value of 'serverHash'.
      Returns:
      This builder.
    • hasServerHash

      public boolean hasServerHash()
      Checks whether the 'serverHash' field has been set.
      Returns:
      True if the 'serverHash' field has been set, false otherwise.
    • clearServerHash

      public HandshakeRequest.Builder clearServerHash()
      Clears the value of the 'serverHash' field.
      Returns:
      This builder.
    • getMeta

      public Map<String,ByteBuffer> getMeta()
      Gets the value of the 'meta' field.
      Returns:
      The value.
    • getOptionalMeta

      public Optional<Map<String,ByteBuffer>> getOptionalMeta()
      Gets the value of the 'meta' field as an Optional<java.util.Map<java.lang.String,java.nio.ByteBuffer>>.
      Returns:
      The value wrapped in an Optional<java.util.Map<java.lang.String,java.nio.ByteBuffer>>.
    • setMeta

      public HandshakeRequest.Builder setMeta(Map<String,ByteBuffer> value)
      Sets the value of the 'meta' field.
      Parameters:
      value - The value of 'meta'.
      Returns:
      This builder.
    • hasMeta

      public boolean hasMeta()
      Checks whether the 'meta' field has been set.
      Returns:
      True if the 'meta' field has been set, false otherwise.
    • clearMeta

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