Class SystemDeleteTransactionBody.Builder

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

public static final class SystemDeleteTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<SystemDeleteTransactionBody,SystemDeleteTransactionBody.Builder> implements SystemDeleteTransactionBodyOrBuilder
 *
 Delete a file or contract bytecode as an administrative transaction.

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

 This transaction MAY be reversed by the `systemUndelete` transaction.
 A file deleted via `fileDelete`, however SHALL be irrecoverable.<br/>
 This transaction MUST specify an expiration timestamp (with seconds
 precision). The file SHALL be permanently removed from state when
 network consensus time exceeds the specified expiration time.<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.SystemDeleteTransactionBody
  • Method Details

    • getIdCase

      Specified by:
      getIdCase in interface SystemDeleteTransactionBodyOrBuilder
    • clearId

    • hasFileID

      public boolean hasFileID()
       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST NOT be deleted.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
      Specified by:
      hasFileID in interface SystemDeleteTransactionBodyOrBuilder
      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 NOT be deleted.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
      Specified by:
      getFileID in interface SystemDeleteTransactionBodyOrBuilder
      Returns:
      The fileID.
    • setFileID

      public SystemDeleteTransactionBody.Builder setFileID(FileID value)
       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST NOT be deleted.<br/>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
    • setFileID

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

      public SystemDeleteTransactionBody.Builder mergeFileID(FileID value)
       *
       A file identifier.
       <p>
       The identified file MUST exist in the HFS.<br/>
       The identified file MUST NOT be deleted.<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 NOT be deleted.<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 NOT be deleted.<br/>
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
      Specified by:
      hasContractID in interface SystemDeleteTransactionBodyOrBuilder
      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 NOT be deleted.<br/>
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
      Specified by:
      getContractID in interface SystemDeleteTransactionBodyOrBuilder
      Returns:
      The contractID.
    • setContractID

      public SystemDeleteTransactionBody.Builder setContractID(ContractID value)
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST NOT be deleted.<br/>
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
    • setContractID

      public SystemDeleteTransactionBody.Builder setContractID(ContractID.Builder builderForValue)
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST NOT be deleted.<br/>
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
    • mergeContractID

      public SystemDeleteTransactionBody.Builder mergeContractID(ContractID value)
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST NOT be deleted.<br/>
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
    • clearContractID

      public SystemDeleteTransactionBody.Builder clearContractID()
       *
       A contract identifier.
       <p>
       The identified contract MUST exist in network state.<br/>
       The identified contract bytecode MUST NOT be deleted.<br/>
       <p>
       This option is _unsupported_.
       
      .proto.ContractID contractID = 2;
    • hasExpirationTime

      public boolean hasExpirationTime()
       *
       A timestamp indicating when the file will be removed from state.
       <p>
       This value SHALL be expressed in seconds since the `epoch`. The `epoch`
       SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This field is REQUIRED.
       
      .proto.TimestampSeconds expirationTime = 3;
      Specified by:
      hasExpirationTime in interface SystemDeleteTransactionBodyOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public TimestampSeconds getExpirationTime()
       *
       A timestamp indicating when the file will be removed from state.
       <p>
       This value SHALL be expressed in seconds since the `epoch`. The `epoch`
       SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This field is REQUIRED.
       
      .proto.TimestampSeconds expirationTime = 3;
      Specified by:
      getExpirationTime in interface SystemDeleteTransactionBodyOrBuilder
      Returns:
      The expirationTime.
    • setExpirationTime

      public SystemDeleteTransactionBody.Builder setExpirationTime(TimestampSeconds value)
       *
       A timestamp indicating when the file will be removed from state.
       <p>
       This value SHALL be expressed in seconds since the `epoch`. The `epoch`
       SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This field is REQUIRED.
       
      .proto.TimestampSeconds expirationTime = 3;
    • setExpirationTime

      public SystemDeleteTransactionBody.Builder setExpirationTime(TimestampSeconds.Builder builderForValue)
       *
       A timestamp indicating when the file will be removed from state.
       <p>
       This value SHALL be expressed in seconds since the `epoch`. The `epoch`
       SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This field is REQUIRED.
       
      .proto.TimestampSeconds expirationTime = 3;
    • mergeExpirationTime

      public SystemDeleteTransactionBody.Builder mergeExpirationTime(TimestampSeconds value)
       *
       A timestamp indicating when the file will be removed from state.
       <p>
       This value SHALL be expressed in seconds since the `epoch`. The `epoch`
       SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This field is REQUIRED.
       
      .proto.TimestampSeconds expirationTime = 3;
    • clearExpirationTime

      public SystemDeleteTransactionBody.Builder clearExpirationTime()
       *
       A timestamp indicating when the file will be removed from state.
       <p>
       This value SHALL be expressed in seconds since the `epoch`. The `epoch`
       SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This field is REQUIRED.
       
      .proto.TimestampSeconds expirationTime = 3;