Class FileGetInfoResponse.FileInfo.Builder

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

public static final class FileGetInfoResponse.FileInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<FileGetInfoResponse.FileInfo,FileGetInfoResponse.FileInfo.Builder> implements FileGetInfoResponse.FileInfoOrBuilder
Protobuf type proto.FileGetInfoResponse.FileInfo
  • Method Details

    • hasFileID

      public boolean hasFileID()
       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
      Specified by:
      hasFileID in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      Whether the fileID field is set.
    • getFileID

      public FileID getFileID()
       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
      Specified by:
      getFileID in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The fileID.
    • setFileID

      public FileGetInfoResponse.FileInfo.Builder setFileID(FileID value)
       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • setFileID

      public FileGetInfoResponse.FileInfo.Builder setFileID(FileID.Builder builderForValue)
       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • mergeFileID

      public FileGetInfoResponse.FileInfo.Builder mergeFileID(FileID value)
       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • clearFileID

       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • getSize

      public long getSize()
       *
       A size, in bytes, for the file.
       
      int64 size = 2;
      Specified by:
      getSize in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The size.
    • setSize

      public FileGetInfoResponse.FileInfo.Builder setSize(long value)
       *
       A size, in bytes, for the file.
       
      int64 size = 2;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

       *
       A size, in bytes, for the file.
       
      int64 size = 2;
      Returns:
      This builder for chaining.
    • hasExpirationTime

      public boolean hasExpirationTime()
       *
       An expiration timestamp.
       <p>
       The file SHALL NOT expire before the network consensus time
       exceeds this value.<br/>
       The file SHALL expire after the network consensus time
       exceeds this value.<br/>
       
      .proto.Timestamp expirationTime = 3;
      Specified by:
      hasExpirationTime in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public Timestamp getExpirationTime()
       *
       An expiration timestamp.
       <p>
       The file SHALL NOT expire before the network consensus time
       exceeds this value.<br/>
       The file SHALL expire after the network consensus time
       exceeds this value.<br/>
       
      .proto.Timestamp expirationTime = 3;
      Specified by:
      getExpirationTime in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The expirationTime.
    • setExpirationTime

      public FileGetInfoResponse.FileInfo.Builder setExpirationTime(Timestamp value)
       *
       An expiration timestamp.
       <p>
       The file SHALL NOT expire before the network consensus time
       exceeds this value.<br/>
       The file SHALL expire after the network consensus time
       exceeds this value.<br/>
       
      .proto.Timestamp expirationTime = 3;
    • setExpirationTime

      public FileGetInfoResponse.FileInfo.Builder setExpirationTime(Timestamp.Builder builderForValue)
       *
       An expiration timestamp.
       <p>
       The file SHALL NOT expire before the network consensus time
       exceeds this value.<br/>
       The file SHALL expire after the network consensus time
       exceeds this value.<br/>
       
      .proto.Timestamp expirationTime = 3;
    • mergeExpirationTime

      public FileGetInfoResponse.FileInfo.Builder mergeExpirationTime(Timestamp value)
       *
       An expiration timestamp.
       <p>
       The file SHALL NOT expire before the network consensus time
       exceeds this value.<br/>
       The file SHALL expire after the network consensus time
       exceeds this value.<br/>
       
      .proto.Timestamp expirationTime = 3;
    • clearExpirationTime

      public FileGetInfoResponse.FileInfo.Builder clearExpirationTime()
       *
       An expiration timestamp.
       <p>
       The file SHALL NOT expire before the network consensus time
       exceeds this value.<br/>
       The file SHALL expire after the network consensus time
       exceeds this value.<br/>
       
      .proto.Timestamp expirationTime = 3;
    • getDeleted

      public boolean getDeleted()
       *
       A flag indicating this file is deleted.
       <p>
       A deleted file SHALL have a size `0` and empty content.
       
      bool deleted = 4;
      Specified by:
      getDeleted in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The deleted.
    • setDeleted

      public FileGetInfoResponse.FileInfo.Builder setDeleted(boolean value)
       *
       A flag indicating this file is deleted.
       <p>
       A deleted file SHALL have a size `0` and empty content.
       
      bool deleted = 4;
      Parameters:
      value - The deleted to set.
      Returns:
      This builder for chaining.
    • clearDeleted

      public FileGetInfoResponse.FileInfo.Builder clearDeleted()
       *
       A flag indicating this file is deleted.
       <p>
       A deleted file SHALL have a size `0` and empty content.
       
      bool deleted = 4;
      Returns:
      This builder for chaining.
    • hasKeys

      public boolean hasKeys()
       *
       A KeyList listing all keys that "own" the file.
       <p>
       All keys in this list MUST sign a transaction to append to the
       file content, or to modify file metadata.<br/>
       At least _one_ key in this list MUST sign a transaction to delete
       this file.<br/>
       If this is an empty `KeyList`, the file is immutable, cannot be
       modified or deleted, but MAY expire. A `fileUpdate` transaction MAY
       extend the expiration time for an immutable file.
       
      .proto.KeyList keys = 5;
      Specified by:
      hasKeys in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      Whether the keys field is set.
    • getKeys

      public KeyList getKeys()
       *
       A KeyList listing all keys that "own" the file.
       <p>
       All keys in this list MUST sign a transaction to append to the
       file content, or to modify file metadata.<br/>
       At least _one_ key in this list MUST sign a transaction to delete
       this file.<br/>
       If this is an empty `KeyList`, the file is immutable, cannot be
       modified or deleted, but MAY expire. A `fileUpdate` transaction MAY
       extend the expiration time for an immutable file.
       
      .proto.KeyList keys = 5;
      Specified by:
      getKeys in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The keys.
    • setKeys

       *
       A KeyList listing all keys that "own" the file.
       <p>
       All keys in this list MUST sign a transaction to append to the
       file content, or to modify file metadata.<br/>
       At least _one_ key in this list MUST sign a transaction to delete
       this file.<br/>
       If this is an empty `KeyList`, the file is immutable, cannot be
       modified or deleted, but MAY expire. A `fileUpdate` transaction MAY
       extend the expiration time for an immutable file.
       
      .proto.KeyList keys = 5;
    • setKeys

      public FileGetInfoResponse.FileInfo.Builder setKeys(KeyList.Builder builderForValue)
       *
       A KeyList listing all keys that "own" the file.
       <p>
       All keys in this list MUST sign a transaction to append to the
       file content, or to modify file metadata.<br/>
       At least _one_ key in this list MUST sign a transaction to delete
       this file.<br/>
       If this is an empty `KeyList`, the file is immutable, cannot be
       modified or deleted, but MAY expire. A `fileUpdate` transaction MAY
       extend the expiration time for an immutable file.
       
      .proto.KeyList keys = 5;
    • mergeKeys

       *
       A KeyList listing all keys that "own" the file.
       <p>
       All keys in this list MUST sign a transaction to append to the
       file content, or to modify file metadata.<br/>
       At least _one_ key in this list MUST sign a transaction to delete
       this file.<br/>
       If this is an empty `KeyList`, the file is immutable, cannot be
       modified or deleted, but MAY expire. A `fileUpdate` transaction MAY
       extend the expiration time for an immutable file.
       
      .proto.KeyList keys = 5;
    • clearKeys

       *
       A KeyList listing all keys that "own" the file.
       <p>
       All keys in this list MUST sign a transaction to append to the
       file content, or to modify file metadata.<br/>
       At least _one_ key in this list MUST sign a transaction to delete
       this file.<br/>
       If this is an empty `KeyList`, the file is immutable, cannot be
       modified or deleted, but MAY expire. A `fileUpdate` transaction MAY
       extend the expiration time for an immutable file.
       
      .proto.KeyList keys = 5;
    • getMemo

      public String getMemo()
       *
       A short description for this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Specified by:
      getMemo in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The memo.
    • getMemoBytes

      public com.google.protobuf.ByteString getMemoBytes()
       *
       A short description for this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Specified by:
      getMemoBytes in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The bytes for memo.
    • setMemo

       *
       A short description for this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Parameters:
      value - The memo to set.
      Returns:
      This builder for chaining.
    • clearMemo

       *
       A short description for this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Returns:
      This builder for chaining.
    • setMemoBytes

      public FileGetInfoResponse.FileInfo.Builder setMemoBytes(com.google.protobuf.ByteString value)
       *
       A short description for this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Parameters:
      value - The bytes for memo to set.
      Returns:
      This builder for chaining.
    • getLedgerId

      public com.google.protobuf.ByteString getLedgerId()
       *
       A ledger identifier for the responding network.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 7;
      Specified by:
      getLedgerId in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The ledgerId.
    • setLedgerId

      public FileGetInfoResponse.FileInfo.Builder setLedgerId(com.google.protobuf.ByteString value)
       *
       A ledger identifier for the responding network.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 7;
      Parameters:
      value - The ledgerId to set.
      Returns:
      This builder for chaining.
    • clearLedgerId

      public FileGetInfoResponse.FileInfo.Builder clearLedgerId()
       *
       A ledger identifier for the responding network.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 7;
      Returns:
      This builder for chaining.