All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: system_delete.proto

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Delete a file or smart contract - can only be done with a Hedera administrative multisignature.
 * When it is deleted, it immediately disappears from the system as seen by the user, but is still
 * stored internally until the expiration time, at which time it is truly and permanently deleted.
 * Until that time, it can be undeleted by the Hedera administrative multisignature. When a smart
 * contract is deleted, the cryptocurrency account within it continues to exist, and is not affected
 * by the expiration time here. 
 * 
* * Protobuf type {@code proto.SystemDeleteTransactionBody} */ public final class SystemDeleteTransactionBody extends com.google.protobuf.GeneratedMessageLite< SystemDeleteTransactionBody, SystemDeleteTransactionBody.Builder> implements // @@protoc_insertion_point(message_implements:proto.SystemDeleteTransactionBody) SystemDeleteTransactionBodyOrBuilder { private SystemDeleteTransactionBody() { } private int idCase_ = 0; private java.lang.Object id_; public enum IdCase { FILEID(1), CONTRACTID(2), ID_NOT_SET(0); private final int value; private IdCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IdCase valueOf(int value) { return forNumber(value); } public static IdCase forNumber(int value) { switch (value) { case 1: return FILEID; case 2: return CONTRACTID; case 0: return ID_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public IdCase getIdCase() { return IdCase.forNumber( idCase_); } private void clearId() { idCase_ = 0; id_ = null; } public static final int FILEID_FIELD_NUMBER = 1; /** *
   **
   * The file ID of the file to delete, in the format used in transactions
   * 
* * .proto.FileID fileID = 1; */ @java.lang.Override public boolean hasFileID() { return idCase_ == 1; } /** *
   **
   * The file ID of the file to delete, in the format used in transactions
   * 
* * .proto.FileID fileID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getFileID() { if (idCase_ == 1) { return (com.hedera.hashgraph.sdk.proto.FileID) id_; } return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance(); } /** *
   **
   * The file ID of the file to delete, in the format used in transactions
   * 
* * .proto.FileID fileID = 1; */ private void setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { value.getClass(); id_ = value; idCase_ = 1; } /** *
   **
   * The file ID of the file to delete, in the format used in transactions
   * 
* * .proto.FileID fileID = 1; */ private void mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) { value.getClass(); if (idCase_ == 1 && id_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) { id_ = com.hedera.hashgraph.sdk.proto.FileID.newBuilder((com.hedera.hashgraph.sdk.proto.FileID) id_) .mergeFrom(value).buildPartial(); } else { id_ = value; } idCase_ = 1; } /** *
   **
   * The file ID of the file to delete, in the format used in transactions
   * 
* * .proto.FileID fileID = 1; */ private void clearFileID() { if (idCase_ == 1) { idCase_ = 0; id_ = null; } } public static final int CONTRACTID_FIELD_NUMBER = 2; /** *
   **
   * The contract ID instance to delete, in the format used in transactions
   * 
* * .proto.ContractID contractID = 2; */ @java.lang.Override public boolean hasContractID() { return idCase_ == 2; } /** *
   **
   * The contract ID instance to delete, in the format used in transactions
   * 
* * .proto.ContractID contractID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { if (idCase_ == 2) { return (com.hedera.hashgraph.sdk.proto.ContractID) id_; } return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance(); } /** *
   **
   * The contract ID instance to delete, in the format used in transactions
   * 
* * .proto.ContractID contractID = 2; */ private void setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); id_ = value; idCase_ = 2; } /** *
   **
   * The contract ID instance to delete, in the format used in transactions
   * 
* * .proto.ContractID contractID = 2; */ private void mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); if (idCase_ == 2 && id_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) { id_ = com.hedera.hashgraph.sdk.proto.ContractID.newBuilder((com.hedera.hashgraph.sdk.proto.ContractID) id_) .mergeFrom(value).buildPartial(); } else { id_ = value; } idCase_ = 2; } /** *
   **
   * The contract ID instance to delete, in the format used in transactions
   * 
* * .proto.ContractID contractID = 2; */ private void clearContractID() { if (idCase_ == 2) { idCase_ = 0; id_ = null; } } public static final int EXPIRATIONTIME_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.TimestampSeconds expirationTime_; /** *
   **
   * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
   * 
* * .proto.TimestampSeconds expirationTime = 3; */ @java.lang.Override public boolean hasExpirationTime() { return expirationTime_ != null; } /** *
   **
   * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
   * 
* * .proto.TimestampSeconds expirationTime = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpirationTime() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_; } /** *
   **
   * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
   * 
* * .proto.TimestampSeconds expirationTime = 3; */ private void setExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { value.getClass(); expirationTime_ = value; } /** *
   **
   * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
   * 
* * .proto.TimestampSeconds expirationTime = 3; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { value.getClass(); if (expirationTime_ != null && expirationTime_ != com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance()) { expirationTime_ = com.hedera.hashgraph.sdk.proto.TimestampSeconds.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } } /** *
   **
   * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
   * 
* * .proto.TimestampSeconds expirationTime = 3; */ private void clearExpirationTime() { expirationTime_ = null; } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Delete a file or smart contract - can only be done with a Hedera administrative multisignature.
   * When it is deleted, it immediately disappears from the system as seen by the user, but is still
   * stored internally until the expiration time, at which time it is truly and permanently deleted.
   * Until that time, it can be undeleted by the Hedera administrative multisignature. When a smart
   * contract is deleted, the cryptocurrency account within it continues to exist, and is not affected
   * by the expiration time here. 
   * 
* * Protobuf type {@code proto.SystemDeleteTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.SystemDeleteTransactionBody) com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public IdCase getIdCase() { return instance.getIdCase(); } public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** *
     **
     * The file ID of the file to delete, in the format used in transactions
     * 
* * .proto.FileID fileID = 1; */ @java.lang.Override public boolean hasFileID() { return instance.hasFileID(); } /** *
     **
     * The file ID of the file to delete, in the format used in transactions
     * 
* * .proto.FileID fileID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getFileID() { return instance.getFileID(); } /** *
     **
     * The file ID of the file to delete, in the format used in transactions
     * 
* * .proto.FileID fileID = 1; */ public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.setFileID(value); return this; } /** *
     **
     * The file ID of the file to delete, in the format used in transactions
     * 
* * .proto.FileID fileID = 1; */ public Builder setFileID( com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) { copyOnWrite(); instance.setFileID(builderForValue.build()); return this; } /** *
     **
     * The file ID of the file to delete, in the format used in transactions
     * 
* * .proto.FileID fileID = 1; */ public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.mergeFileID(value); return this; } /** *
     **
     * The file ID of the file to delete, in the format used in transactions
     * 
* * .proto.FileID fileID = 1; */ public Builder clearFileID() { copyOnWrite(); instance.clearFileID(); return this; } /** *
     **
     * The contract ID instance to delete, in the format used in transactions
     * 
* * .proto.ContractID contractID = 2; */ @java.lang.Override public boolean hasContractID() { return instance.hasContractID(); } /** *
     **
     * The contract ID instance to delete, in the format used in transactions
     * 
* * .proto.ContractID contractID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { return instance.getContractID(); } /** *
     **
     * The contract ID instance to delete, in the format used in transactions
     * 
* * .proto.ContractID contractID = 2; */ public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.setContractID(value); return this; } /** *
     **
     * The contract ID instance to delete, in the format used in transactions
     * 
* * .proto.ContractID contractID = 2; */ public Builder setContractID( com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) { copyOnWrite(); instance.setContractID(builderForValue.build()); return this; } /** *
     **
     * The contract ID instance to delete, in the format used in transactions
     * 
* * .proto.ContractID contractID = 2; */ public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.mergeContractID(value); return this; } /** *
     **
     * The contract ID instance to delete, in the format used in transactions
     * 
* * .proto.ContractID contractID = 2; */ public Builder clearContractID() { copyOnWrite(); instance.clearContractID(); return this; } /** *
     **
     * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
     * 
* * .proto.TimestampSeconds expirationTime = 3; */ @java.lang.Override public boolean hasExpirationTime() { return instance.hasExpirationTime(); } /** *
     **
     * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
     * 
* * .proto.TimestampSeconds expirationTime = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpirationTime() { return instance.getExpirationTime(); } /** *
     **
     * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
     * 
* * .proto.TimestampSeconds expirationTime = 3; */ public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { copyOnWrite(); instance.setExpirationTime(value); return this; } /** *
     **
     * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
     * 
* * .proto.TimestampSeconds expirationTime = 3; */ public Builder setExpirationTime( com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder builderForValue) { copyOnWrite(); instance.setExpirationTime(builderForValue.build()); return this; } /** *
     **
     * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
     * 
* * .proto.TimestampSeconds expirationTime = 3; */ public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) { copyOnWrite(); instance.mergeExpirationTime(value); return this; } /** *
     **
     * The timestamp in seconds at which the "deleted" file should truly be permanently deleted
     * 
* * .proto.TimestampSeconds expirationTime = 3; */ public Builder clearExpirationTime() { copyOnWrite(); instance.clearExpirationTime(); return this; } // @@protoc_insertion_point(builder_scope:proto.SystemDeleteTransactionBody) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "id_", "idCase_", com.hedera.hashgraph.sdk.proto.FileID.class, com.hedera.hashgraph.sdk.proto.ContractID.class, "expirationTime_", }; java.lang.String info = "\u0000\u0003\u0001\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001<\u0000\u0002<" + "\u0000\u0003\t"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.SystemDeleteTransactionBody) private static final com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody DEFAULT_INSTANCE; static { SystemDeleteTransactionBody defaultInstance = new SystemDeleteTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SystemDeleteTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy