Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class SystemDeleteTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<SystemDeleteTransactionBody,SystemDeleteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<SystemDeleteTransactionBody,SystemDeleteTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,SystemDeleteTransactionBodyOrBuilder,Cloneable
- Enclosing class:
SystemDeleteTransactionBody
public static final class SystemDeleteTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<SystemDeleteTransactionBody,SystemDeleteTransactionBody.Builder>
implements SystemDeleteTransactionBodyOrBuilder
*
Delete a file or contract bytecode as an administrative transaction.
> Note
>> A system delete/undelete for a `contractID` is not supported and
>> SHALL return `INVALID_FILE_ID` or `MISSING_ENTITY_ID`.
This transaction MAY be reversed by the `systemUndelete` transaction.
A file deleted via `fileDelete`, however SHALL be irrecoverable.<br/>
This transaction MUST specify an expiration timestamp (with seconds
precision). The file SHALL be permanently removed from state when
network consensus time exceeds the specified expiration time.<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.SystemDeleteTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A contract identifier.* A timestamp indicating when the file will be removed from state.* A file identifier.clearId()* A contract identifier.* A timestamp indicating when the file will be removed from state.* A file identifier.boolean* A contract identifier.boolean* A timestamp indicating when the file will be removed from state.boolean* A file identifier.mergeContractID(ContractID value) * A contract identifier.* A timestamp indicating when the file will be removed from state.mergeFileID(FileID value) * A file identifier.setContractID(ContractID value) * A contract identifier.setContractID(ContractID.Builder builderForValue) * A contract identifier.* A timestamp indicating when the file will be removed from state.setExpirationTime(TimestampSeconds.Builder builderForValue) * A timestamp indicating when the file will be removed from state.* 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 interfaceSystemDeleteTransactionBodyOrBuilder
-
clearId
-
hasFileID
public boolean hasFileID()* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST NOT be deleted.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1;- Specified by:
hasFileIDin interfaceSystemDeleteTransactionBodyOrBuilder- 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 NOT be deleted.<br/> The identified file MUST NOT be a "system" file.<br/> This field is REQUIRED.
.proto.FileID fileID = 1;- Specified by:
getFileIDin interfaceSystemDeleteTransactionBodyOrBuilder- Returns:
- The fileID.
-
setFileID
* A file identifier. <p> The identified file MUST exist in the HFS.<br/> The identified file MUST NOT be deleted.<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 NOT be deleted.<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 NOT be deleted.<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 NOT be deleted.<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 NOT be deleted.<br/> <p> This option is _unsupported_.
.proto.ContractID contractID = 2;- Specified by:
hasContractIDin interfaceSystemDeleteTransactionBodyOrBuilder- 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 NOT be deleted.<br/> <p> This option is _unsupported_.
.proto.ContractID contractID = 2;- Specified by:
getContractIDin interfaceSystemDeleteTransactionBodyOrBuilder- Returns:
- The contractID.
-
setContractID
* A contract identifier. <p> The identified contract MUST exist in network state.<br/> The identified contract bytecode MUST NOT be deleted.<br/> <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 NOT be deleted.<br/> <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 NOT be deleted.<br/> <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 NOT be deleted.<br/> <p> This option is _unsupported_.
.proto.ContractID contractID = 2; -
hasExpirationTime
public boolean hasExpirationTime()* A timestamp indicating when the file will be removed from state. <p> This value SHALL be expressed in seconds since the `epoch`. The `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This field is REQUIRED.
.proto.TimestampSeconds expirationTime = 3;- Specified by:
hasExpirationTimein interfaceSystemDeleteTransactionBodyOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
* A timestamp indicating when the file will be removed from state. <p> This value SHALL be expressed in seconds since the `epoch`. The `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This field is REQUIRED.
.proto.TimestampSeconds expirationTime = 3;- Specified by:
getExpirationTimein interfaceSystemDeleteTransactionBodyOrBuilder- Returns:
- The expirationTime.
-
setExpirationTime
* A timestamp indicating when the file will be removed from state. <p> This value SHALL be expressed in seconds since the `epoch`. The `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This field is REQUIRED.
.proto.TimestampSeconds expirationTime = 3; -
setExpirationTime
public SystemDeleteTransactionBody.Builder setExpirationTime(TimestampSeconds.Builder builderForValue) * A timestamp indicating when the file will be removed from state. <p> This value SHALL be expressed in seconds since the `epoch`. The `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This field is REQUIRED.
.proto.TimestampSeconds expirationTime = 3; -
mergeExpirationTime
* A timestamp indicating when the file will be removed from state. <p> This value SHALL be expressed in seconds since the `epoch`. The `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This field is REQUIRED.
.proto.TimestampSeconds expirationTime = 3; -
clearExpirationTime
* A timestamp indicating when the file will be removed from state. <p> This value SHALL be expressed in seconds since the `epoch`. The `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.<br/> This field is REQUIRED.
.proto.TimestampSeconds expirationTime = 3;
-