Class SystemUndeleteTransactionBody.Builder

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

public static final class SystemUndeleteTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<SystemUndeleteTransactionBody,SystemUndeleteTransactionBody.Builder> implements SystemUndeleteTransactionBodyOrBuilder
 *
 Recover a file or contract bytecode deleted from the Hedera File
 System (HFS) by a `systemDelete` transaction.

 > Note
 >> A system delete/undelete for a `contractID` is not supported and
 >> SHALL return `INVALID_FILE_ID` or `MISSING_ENTITY_ID`.

 This transaction can _only_ recover a file removed with the `systemDelete`
 transaction. A file deleted via `fileDelete` SHALL be irrecoverable.<br/>
 This transaction MUST be signed by an Hedera administrative ("system")
 account.

 ### What is a "system" file
 A "system" file is any file with a file number less than or equal to the
 current configuration value for `ledger.numReservedSystemEntities`,
 typically `750`.

 ### Block Stream Effects
 None
 
Protobuf type proto.SystemUndeleteTransactionBody
  • Method Details

    • getIdCase

      Specified by:
      getIdCase in interface SystemUndeleteTransactionBodyOrBuilder
    • clearId

    • hasFileID

      public boolean hasFileID()
       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST be deleted.<br/>
       The identified file deletion MUST be a result of a
       `systemDelete` transaction.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
      Specified by:
      hasFileID in interface SystemUndeleteTransactionBodyOrBuilder
      Returns:
      Whether the fileID field is set.
    • getFileID

      public FileID getFileID()
       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST be deleted.<br/>
       The identified file deletion MUST be a result of a
       `systemDelete` transaction.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
      Specified by:
      getFileID in interface SystemUndeleteTransactionBodyOrBuilder
      Returns:
      The fileID.
    • setFileID

       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST be deleted.<br/>
       The identified file deletion MUST be a result of a
       `systemDelete` transaction.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
    • setFileID

      public SystemUndeleteTransactionBody.Builder setFileID(FileID.Builder builderForValue)
       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST be deleted.<br/>
       The identified file deletion MUST be a result of a
       `systemDelete` transaction.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
    • mergeFileID

      public SystemUndeleteTransactionBody.Builder mergeFileID(FileID value)
       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST be deleted.<br/>
       The identified file deletion MUST be a result of a
       `systemDelete` transaction.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
    • clearFileID

       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST be deleted.<br/>
       The identified file deletion MUST be a result of a
       `systemDelete` transaction.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
    • hasContractID

      public boolean hasContractID()
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST be deleted.<br/>
       The identified contract deletion MUST be a result of a
       `systemDelete` transaction.
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
      Specified by:
      hasContractID in interface SystemUndeleteTransactionBodyOrBuilder
      Returns:
      Whether the contractID field is set.
    • getContractID

      public ContractID getContractID()
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST be deleted.<br/>
       The identified contract deletion MUST be a result of a
       `systemDelete` transaction.
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
      Specified by:
      getContractID in interface SystemUndeleteTransactionBodyOrBuilder
      Returns:
      The contractID.
    • setContractID

      public SystemUndeleteTransactionBody.Builder setContractID(ContractID value)
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST be deleted.<br/>
       The identified contract deletion MUST be a result of a
       `systemDelete` transaction.
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
    • setContractID

      public SystemUndeleteTransactionBody.Builder setContractID(ContractID.Builder builderForValue)
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST be deleted.<br/>
       The identified contract deletion MUST be a result of a
       `systemDelete` transaction.
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
    • mergeContractID

      public SystemUndeleteTransactionBody.Builder mergeContractID(ContractID value)
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST be deleted.<br/>
       The identified contract deletion MUST be a result of a
       `systemDelete` transaction.
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
    • clearContractID

      public SystemUndeleteTransactionBody.Builder clearContractID()
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST be deleted.<br/>
       The identified contract deletion MUST be a result of a
       `systemDelete` transaction.
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;