Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class SystemUndeleteTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<SystemUndeleteTransactionBody,SystemUndeleteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<SystemUndeleteTransactionBody,SystemUndeleteTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,SystemUndeleteTransactionBodyOrBuilder,Cloneable
- Enclosing class:
SystemUndeleteTransactionBody
public static final class SystemUndeleteTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<SystemUndeleteTransactionBody,SystemUndeleteTransactionBody.Builder>
implements SystemUndeleteTransactionBodyOrBuilder
*
Recover a file or contract bytecode deleted from the Hedera File
System (HFS) by a `systemDelete` transaction.
> Note
>> A system delete/undelete for a `contractID` is not supported and
>> SHALL return `INVALID_FILE_ID` or `MISSING_ENTITY_ID`.
This transaction can _only_ recover a file removed with the `systemDelete`
transaction. A file deleted via `fileDelete` SHALL be irrecoverable.<br/>
This transaction MUST be signed by an Hedera administrative ("system")
account.
### 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.SystemUndeleteTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A contract identifier.* A file identifier.clearId()* A contract identifier.* A file identifier.boolean* A contract identifier.boolean* A file identifier.mergeContractID(ContractID value) * A contract identifier.mergeFileID(FileID value) * A file identifier.setContractID(ContractID value) * A contract identifier.setContractID(ContractID.Builder builderForValue) * A contract identifier.* A file identifier.setFileID(FileID.Builder builderForValue) * A file identifier.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
-
getIdCase
- Specified by:
getIdCasein interfaceSystemUndeleteTransactionBodyOrBuilder
-
clearId
-
hasFileID
public boolean hasFileID()* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST be deleted.<br/> The identified file deletion MUST be a result of a `systemDelete` transaction.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1;- Specified by:
hasFileIDin interfaceSystemUndeleteTransactionBodyOrBuilder- Returns:
- Whether the fileID field is set.
-
getFileID
* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST be deleted.<br/> The identified file deletion MUST be a result of a `systemDelete` transaction.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1;- Specified by:
getFileIDin interfaceSystemUndeleteTransactionBodyOrBuilder- Returns:
- The fileID.
-
setFileID
* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST be deleted.<br/> The identified file deletion MUST be a result of a `systemDelete` transaction.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1; -
setFileID
* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST be deleted.<br/> The identified file deletion MUST be a result of a `systemDelete` transaction.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1; -
mergeFileID
* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST be deleted.<br/> The identified file deletion MUST be a result of a `systemDelete` transaction.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1; -
clearFileID
* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST be deleted.<br/> The identified file deletion MUST be a result of a `systemDelete` transaction.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1; -
hasContractID
public boolean hasContractID()* A contract identifier. <p> The identified contract MUST exist in network state.<br/> The identified contract bytecode MUST be deleted.<br/> The identified contract deletion MUST be a result of a `systemDelete` transaction. <p> This option is _unsupported_.
.proto.ContractID contractID = 2;- Specified by:
hasContractIDin interfaceSystemUndeleteTransactionBodyOrBuilder- Returns:
- Whether the contractID field is set.
-
getContractID
* A contract identifier. <p> The identified contract MUST exist in network state.<br/> The identified contract bytecode MUST be deleted.<br/> The identified contract deletion MUST be a result of a `systemDelete` transaction. <p> This option is _unsupported_.
.proto.ContractID contractID = 2;- Specified by:
getContractIDin interfaceSystemUndeleteTransactionBodyOrBuilder- Returns:
- The contractID.
-
setContractID
* A contract identifier. <p> The identified contract MUST exist in network state.<br/> The identified contract bytecode MUST be deleted.<br/> The identified contract deletion MUST be a result of a `systemDelete` transaction. <p> This option is _unsupported_.
.proto.ContractID contractID = 2; -
setContractID
* A contract identifier. <p> The identified contract MUST exist in network state.<br/> The identified contract bytecode MUST be deleted.<br/> The identified contract deletion MUST be a result of a `systemDelete` transaction. <p> This option is _unsupported_.
.proto.ContractID contractID = 2; -
mergeContractID
* A contract identifier. <p> The identified contract MUST exist in network state.<br/> The identified contract bytecode MUST be deleted.<br/> The identified contract deletion MUST be a result of a `systemDelete` transaction. <p> This option is _unsupported_.
.proto.ContractID contractID = 2; -
clearContractID
* A contract identifier. <p> The identified contract MUST exist in network state.<br/> The identified contract bytecode MUST be deleted.<br/> The identified contract deletion MUST be a result of a `systemDelete` transaction. <p> This option is _unsupported_.
.proto.ContractID contractID = 2;
-