Class FileDeleteTransactionBody.Builder

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

public static final class FileDeleteTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<FileDeleteTransactionBody,FileDeleteTransactionBody.Builder> implements FileDeleteTransactionBodyOrBuilder
 *
 Mark a file as deleted and remove its content from network state.

 The metadata for a deleted file SHALL be retained at least until the
 expiration time for the file is exceeded.<br/>
 On completion, the identified file SHALL be marked `deleted`.<br/>
 On completion, the identified file SHALL have an empty `contents` array.<br/>
 This transaction SHALL be final and irreversible.<br/>

 #### Signature Requirements
 At least _one_ key from the `KeyList` in the `keys` field of the
 identified file MUST sign this transaction.<br/>
 If the keys field for the identified file is an empty `KeyList` (because that
 file was previously created or updated to have an empty `KeyList`), then the
 file is considered immutable and this message SHALL fail as UNAUTHORIZED.
 See the [File Service](#FileService) specification for a detailed
 explanation of the signature requirements for all file transactions.

 ### 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.FileDeleteTransactionBody
  • Field Summary

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A file identifier.<br/> This identifies the file to delete.
    * A file identifier.<br/> This identifies the file to delete.
    boolean
    * A file identifier.<br/> This identifies the file to delete.
    * A file identifier.<br/> This identifies the file to delete.
    * A file identifier.<br/> This identifies the file to delete.
    setFileID(FileID.Builder builderForValue)
    * A file identifier.<br/> This identifies the file to delete.

    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

    • hasFileID

      public boolean hasFileID()
       *
       A file identifier.<br/>
       This identifies the file to delete.
       <p>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 2;
      Specified by:
      hasFileID in interface FileDeleteTransactionBodyOrBuilder
      Returns:
      Whether the fileID field is set.
    • getFileID

      public FileID getFileID()
       *
       A file identifier.<br/>
       This identifies the file to delete.
       <p>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 2;
      Specified by:
      getFileID in interface FileDeleteTransactionBodyOrBuilder
      Returns:
      The fileID.
    • setFileID

      public FileDeleteTransactionBody.Builder setFileID(FileID value)
       *
       A file identifier.<br/>
       This identifies the file to delete.
       <p>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 2;
    • setFileID

      public FileDeleteTransactionBody.Builder setFileID(FileID.Builder builderForValue)
       *
       A file identifier.<br/>
       This identifies the file to delete.
       <p>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 2;
    • mergeFileID

      public FileDeleteTransactionBody.Builder mergeFileID(FileID value)
       *
       A file identifier.<br/>
       This identifies the file to delete.
       <p>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 2;
    • clearFileID

      public FileDeleteTransactionBody.Builder clearFileID()
       *
       A file identifier.<br/>
       This identifies the file to delete.
       <p>
       The identified file MUST NOT be a "system" file.<br/>
       This field is REQUIRED.
       
      .proto.FileID fileID = 2;