Class NodeDeleteTransactionBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NodeDeleteTransactionBody,NodeDeleteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NodeDeleteTransactionBody,NodeDeleteTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.NodeDeleteTransactionBody.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, NodeDeleteTransactionBodyOrBuilder, Cloneable
Enclosing class:
NodeDeleteTransactionBody

public static final class NodeDeleteTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<NodeDeleteTransactionBody,NodeDeleteTransactionBody.Builder> implements NodeDeleteTransactionBodyOrBuilder
 *
 A transaction body to delete a node from the network address book.

 - A `NodeDeleteTransactionBody` MUST be signed by one of those keys:
 adminKey, treasure account (2) key, systemAdmin(50) key, or
 addressBookAdmin(55) key.
 - Upon success, the address book entry SHALL enter a "pending delete"
 state.
 - All address book entries pending deletion SHALL be removed from the
 active network configuration during the next `freeze` transaction with
 the field `freeze_type` set to `PREPARE_UPGRADE`.<br/>
 - A deleted address book node SHALL be removed entirely from network state.
 - A deleted address book node identifier SHALL NOT be reused.

 ### Block Stream Effects
 None.
 
Protobuf type com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A consensus node identifier in the network state.
    long
    * A consensus node identifier in the network state.
    setNodeId(long value)
    * A consensus node identifier in the network state.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getNodeId

      public long getNodeId()
       *
       A consensus node identifier in the network state.
       <p>
       The node identified MUST exist in the network address book.<br/>
       The node identified MUST NOT be deleted.<br/>
       This value is REQUIRED.
       
      uint64 node_id = 1;
      Specified by:
      getNodeId in interface NodeDeleteTransactionBodyOrBuilder
      Returns:
      The nodeId.
    • setNodeId

      public NodeDeleteTransactionBody.Builder setNodeId(long value)
       *
       A consensus node identifier in the network state.
       <p>
       The node identified MUST exist in the network address book.<br/>
       The node identified MUST NOT be deleted.<br/>
       This value is REQUIRED.
       
      uint64 node_id = 1;
      Parameters:
      value - The nodeId to set.
      Returns:
      This builder for chaining.
    • clearNodeId

      public NodeDeleteTransactionBody.Builder clearNodeId()
       *
       A consensus node identifier in the network state.
       <p>
       The node identified MUST exist in the network address book.<br/>
       The node identified MUST NOT be deleted.<br/>
       This value is REQUIRED.
       
      uint64 node_id = 1;
      Returns:
      This builder for chaining.