Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class SystemDeleteTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<SystemDeleteTransactionBody,SystemDeleteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<SystemDeleteTransactionBody,SystemDeleteTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,SystemDeleteTransactionBodyOrBuilder
@Generated
public final class SystemDeleteTransactionBody
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Delete a file or contract bytecode as an administrative transaction.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) * A contract identifier.static SystemDeleteTransactionBody* 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.newBuilder(SystemDeleteTransactionBody prototype) static SystemDeleteTransactionBodyparseDelimitedFrom(InputStream input) static SystemDeleteTransactionBodyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SystemDeleteTransactionBodyparseFrom(byte[] data) static SystemDeleteTransactionBodyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SystemDeleteTransactionBodyparseFrom(com.google.protobuf.ByteString data) static SystemDeleteTransactionBodyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SystemDeleteTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input) static SystemDeleteTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SystemDeleteTransactionBodyparseFrom(InputStream input) static SystemDeleteTransactionBodyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SystemDeleteTransactionBodyparseFrom(ByteBuffer data) static SystemDeleteTransactionBodyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SystemDeleteTransactionBody> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
FILEID_FIELD_NUMBER
public static final int FILEID_FIELD_NUMBER- See Also:
-
CONTRACTID_FIELD_NUMBER
public static final int CONTRACTID_FIELD_NUMBER- See Also:
-
EXPIRATIONTIME_FIELD_NUMBER
public static final int EXPIRATIONTIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getIdCase
- Specified by:
getIdCasein interfaceSystemDeleteTransactionBodyOrBuilder
-
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.
-
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.
-
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.
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SystemDeleteTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SystemDeleteTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<SystemDeleteTransactionBody,SystemDeleteTransactionBody.Builder>
-
getDefaultInstance
-
parser
-