java.lang.Object
com.hedera.hashgraph.sdk.FileInfo
Current information for a file, including its size.
See Hedera Documentation
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal InstantThe current time at which this account is set to expire.final FileIdThe ID of the file for which information is requested.final StringThe memo associated with the filefinal booleanTrue if deleted but not yet expired.final KeyListOne of these keys must sign in order to delete the file.final LedgerIdThe ledger ID the response was returned from; please see HIP-198 for the network-specific IDs.final longNumber of bytes in contents. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileInfofromBytes(byte[] bytes) Create a file info object from a byte array.(package private) static FileInfofromProtobuf(FileGetInfoResponse.FileInfo fileInfo) Create a file info object from a ptotobuf.byte[]toBytes()Create the byte array.(package private) FileGetInfoResponse.FileInfoCreate the protobuf.toString()
-
Field Details
-
fileId
The ID of the file for which information is requested. -
size
public final long sizeNumber of bytes in contents. -
expirationTime
The current time at which this account is set to expire. -
isDeleted
public final boolean isDeletedTrue if deleted but not yet expired. -
keys
One of these keys must sign in order to delete the file. All of these keys must sign in order to update the file. -
fileMemo
The memo associated with the file -
ledgerId
The ledger ID the response was returned from; please see HIP-198 for the network-specific IDs.
-
-
Method Details
-
fromProtobuf
Create a file info object from a ptotobuf.- Parameters:
fileInfo- the protobuf- Returns:
- the new file info object
-
fromBytes
public static FileInfo fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException Create a file info object from a byte array.- Parameters:
bytes- the byte array- Returns:
- the new file info object
- Throws:
com.google.protobuf.InvalidProtocolBufferException- when there is an issue with the protobuf
-
toProtobuf
FileGetInfoResponse.FileInfo toProtobuf()Create the protobuf.- Returns:
- the protobuf representation
-
toString
-
toBytes
public byte[] toBytes()Create the byte array.- Returns:
- the byte array representation
-