Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface FileGetInfoResponse.FileInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
FileGetInfoResponse.FileInfo,FileGetInfoResponse.FileInfo.Builder
- Enclosing class:
FileGetInfoResponse
public static interface FileGetInfoResponse.FileInfoOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean* A flag indicating this file is deleted.* An expiration timestamp.* A file identifier.getKeys()* A KeyList listing all keys that "own" the file.com.google.protobuf.ByteString* A ledger identifier for the responding network.getMemo()* A short description for this file.com.google.protobuf.ByteString* A short description for this file.longgetSize()* A size, in bytes, for the file.boolean* An expiration timestamp.boolean* A file identifier.booleanhasKeys()* A KeyList listing all keys that "own" the file.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasFileID
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;- Returns:
- Whether the fileID field is set.
-
getFileID
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;- Returns:
- The fileID.
-
getSize
long getSize()* A size, in bytes, for the file.
int64 size = 2;- Returns:
- The size.
-
hasExpirationTime
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;- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
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;- Returns:
- The expirationTime.
-
getDeleted
boolean getDeleted()* A flag indicating this file is deleted. <p> A deleted file SHALL have a size `0` and empty content.
bool deleted = 4;- Returns:
- The deleted.
-
hasKeys
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;- Returns:
- Whether the keys field is set.
-
getKeys
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;- Returns:
- The keys.
-
getMemo
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;- Returns:
- The memo.
-
getMemoBytes
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;- Returns:
- The bytes for memo.
-
getLedgerId
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;- Returns:
- The ledgerId.
-