net.i2p.data.i2np

## Class TunnelBuildMessage

- java.lang.Object
- - net.i2p.data.i2np.I2NPMessageImpl
  - - net.i2p.data.i2np.TunnelBuildMessageBase
    - - net.i2p.data.i2np.TunnelBuildMessage

- All Implemented Interfaces:
    I2NPMessage
  Direct Known Subclasses:
    ShortTunnelBuildMessage, VariableTunnelBuildMessage

      public class TunnelBuildMessage
      extends TunnelBuildMessageBase

  The basic build message with 8 records.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class net.i2p.data.i2np.I2NPMessageImpl

      `I2NPMessageImpl.Builder`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `MESSAGE_TYPE`

    - ### Fields inherited from class net.i2p.data.i2np.TunnelBuildMessageBase

      `_records, MAX_RECORD_COUNT, RECORD_COUNT, RECORD_SIZE`

    - ### Fields inherited from class net.i2p.data.i2np.I2NPMessageImpl

      `_context, _expiration, _log, CHECKSUM_LENGTH, DEFAULT_EXPIRATION_MS, HEADER_LENGTH`

    - ### Fields inherited from interface net.i2p.data.i2np.I2NPMessage

      `MAX_ID_VALUE, MAX_SIZE`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `` | `TunnelBuildMessage(I2PAppContext context)`
    `protected` | `TunnelBuildMessage(I2PAppContext context, int records)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getType()` Return the unique identifier for this type of I2NP message, as defined in the I2NP spec
    `String` | `toString()`

    - ### Methods inherited from class net.i2p.data.i2np.TunnelBuildMessageBase

      `calculateWrittenLength, getRecord, getRecordCount, readMessage, setRecord, writeMessageBody`

    - ### Methods inherited from class net.i2p.data.i2np.I2NPMessageImpl

      `createMessage, fromRawByteArray, fromRawByteArrayNTCP2, getMessageExpiration, getMessageSize, getRawMessageSize, getUniqueId, getUniqueId, readBytes, readBytes, readMessage, setMessageExpiration, setUniqueId, toByteArray, toByteArray, toByteArray, toRawByteArray, toRawByteArrayNTCP2`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### MESSAGE_TYPE

          public static final int MESSAGE_TYPE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### TunnelBuildMessage

          public TunnelBuildMessage(I2PAppContext context)

    - #### TunnelBuildMessage

          protected TunnelBuildMessage(I2PAppContext context,
                                       int records)

  - ### Method Detail

    - #### getType

          public int getType()

      Description copied from interface: `I2NPMessage`
      Return the unique identifier for this type of I2NP message, as defined in the I2NP spec

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`