Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A flag indicating this file is deleted.* An expiration timestamp.* A file identifier.* A KeyList listing all keys that "own" the file.* A ledger identifier for the responding network.* A short description for this file.* A size, in bytes, for the file.boolean* 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.mergeExpirationTime(Timestamp value) * An expiration timestamp.mergeFileID(FileID value) * A file identifier.* A KeyList listing all keys that "own" the file.setDeleted(boolean value) * A flag indicating this file is deleted.setExpirationTime(Timestamp value) * An expiration timestamp.setExpirationTime(Timestamp.Builder builderForValue) * An expiration timestamp.* A file identifier.setFileID(FileID.Builder builderForValue) * A file identifier.* A KeyList listing all keys that "own" the file.setKeys(KeyList.Builder builderForValue) * A KeyList listing all keys that "own" the file.setLedgerId(com.google.protobuf.ByteString value) * A ledger identifier for the responding network.* A short description for this file.setMemoBytes(com.google.protobuf.ByteString value) * A short description for this file.setSize(long value) * A size, in bytes, for the file.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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:
hasFileIDin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- Whether the fileID field is set.
-
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:
getFileIDin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The fileID.
-
setFileID
* 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
* 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
* 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:
getSizein interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The size.
-
setSize
* 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:
hasExpirationTimein interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- Whether the expirationTime field is set.
-
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:
getExpirationTimein interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The expirationTime.
-
setExpirationTime
* 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
* 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
* 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
* 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:
getDeletedin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The deleted.
-
setDeleted
* 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
* 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:
hasKeysin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- Whether the keys field is set.
-
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:
getKeysin interfaceFileGetInfoResponse.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
* 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
* 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:
getMemoin interfaceFileGetInfoResponse.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:
getMemoBytesin interfaceFileGetInfoResponse.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
* 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:
getLedgerIdin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The ledgerId.
-
setLedgerId
* 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
* 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.
-