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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: contract_delete.proto

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * At consensus, marks a contract as deleted and transfers its remaining hBars, if any, to a
 * designated receiver. After a contract is deleted, it can no longer be called.
 * 
 * If the target contract is immutable (that is, was created without an admin key), then this
 * transaction resolves to MODIFYING_IMMUTABLE_CONTRACT.
 * 
 * --- Signing Requirements ---
 * 1. The admin key of the target contract must sign.
 * 2. If the transfer account or contract has receiverSigRequired, its associated key must also sign
 * 
* * Protobuf type {@code proto.ContractDeleteTransactionBody} */ public final class ContractDeleteTransactionBody extends com.google.protobuf.GeneratedMessageLite< ContractDeleteTransactionBody, ContractDeleteTransactionBody.Builder> implements // @@protoc_insertion_point(message_implements:proto.ContractDeleteTransactionBody) ContractDeleteTransactionBodyOrBuilder { private ContractDeleteTransactionBody() { } private int obtainersCase_ = 0; private java.lang.Object obtainers_; public enum ObtainersCase { TRANSFERACCOUNTID(2), TRANSFERCONTRACTID(3), OBTAINERS_NOT_SET(0); private final int value; private ObtainersCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ObtainersCase valueOf(int value) { return forNumber(value); } public static ObtainersCase forNumber(int value) { switch (value) { case 2: return TRANSFERACCOUNTID; case 3: return TRANSFERCONTRACTID; case 0: return OBTAINERS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public ObtainersCase getObtainersCase() { return ObtainersCase.forNumber( obtainersCase_); } private void clearObtainers() { obtainersCase_ = 0; obtainers_ = null; } public static final int CONTRACTID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.ContractID contractID_; /** *
   **
   * The id of the contract to be deleted
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public boolean hasContractID() { return contractID_ != null; } /** *
   **
   * The id of the contract to be deleted
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } /** *
   **
   * The id of the contract to be deleted
   * 
* * .proto.ContractID contractID = 1; */ private void setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); contractID_ = value; } /** *
   **
   * The id of the contract to be deleted
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); if (contractID_ != null && contractID_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) { contractID_ = com.hedera.hashgraph.sdk.proto.ContractID.newBuilder(contractID_).mergeFrom(value).buildPartial(); } else { contractID_ = value; } } /** *
   **
   * The id of the contract to be deleted
   * 
* * .proto.ContractID contractID = 1; */ private void clearContractID() { contractID_ = null; } public static final int TRANSFERACCOUNTID_FIELD_NUMBER = 2; /** *
   **
   * The id of an account to receive any remaining hBars from the deleted contract
   * 
* * .proto.AccountID transferAccountID = 2; */ @java.lang.Override public boolean hasTransferAccountID() { return obtainersCase_ == 2; } /** *
   **
   * The id of an account to receive any remaining hBars from the deleted contract
   * 
* * .proto.AccountID transferAccountID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getTransferAccountID() { if (obtainersCase_ == 2) { return (com.hedera.hashgraph.sdk.proto.AccountID) obtainers_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } /** *
   **
   * The id of an account to receive any remaining hBars from the deleted contract
   * 
* * .proto.AccountID transferAccountID = 2; */ private void setTransferAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { value.getClass(); obtainers_ = value; obtainersCase_ = 2; } /** *
   **
   * The id of an account to receive any remaining hBars from the deleted contract
   * 
* * .proto.AccountID transferAccountID = 2; */ private void mergeTransferAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { value.getClass(); if (obtainersCase_ == 2 && obtainers_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { obtainers_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder((com.hedera.hashgraph.sdk.proto.AccountID) obtainers_) .mergeFrom(value).buildPartial(); } else { obtainers_ = value; } obtainersCase_ = 2; } /** *
   **
   * The id of an account to receive any remaining hBars from the deleted contract
   * 
* * .proto.AccountID transferAccountID = 2; */ private void clearTransferAccountID() { if (obtainersCase_ == 2) { obtainersCase_ = 0; obtainers_ = null; } } public static final int TRANSFERCONTRACTID_FIELD_NUMBER = 3; /** *
   **
   * The id of a contract to receive any remaining hBars from the deleted contract
   * 
* * .proto.ContractID transferContractID = 3; */ @java.lang.Override public boolean hasTransferContractID() { return obtainersCase_ == 3; } /** *
   **
   * The id of a contract to receive any remaining hBars from the deleted contract
   * 
* * .proto.ContractID transferContractID = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getTransferContractID() { if (obtainersCase_ == 3) { return (com.hedera.hashgraph.sdk.proto.ContractID) obtainers_; } return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance(); } /** *
   **
   * The id of a contract to receive any remaining hBars from the deleted contract
   * 
* * .proto.ContractID transferContractID = 3; */ private void setTransferContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); obtainers_ = value; obtainersCase_ = 3; } /** *
   **
   * The id of a contract to receive any remaining hBars from the deleted contract
   * 
* * .proto.ContractID transferContractID = 3; */ private void mergeTransferContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); if (obtainersCase_ == 3 && obtainers_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) { obtainers_ = com.hedera.hashgraph.sdk.proto.ContractID.newBuilder((com.hedera.hashgraph.sdk.proto.ContractID) obtainers_) .mergeFrom(value).buildPartial(); } else { obtainers_ = value; } obtainersCase_ = 3; } /** *
   **
   * The id of a contract to receive any remaining hBars from the deleted contract
   * 
* * .proto.ContractID transferContractID = 3; */ private void clearTransferContractID() { if (obtainersCase_ == 3) { obtainersCase_ = 0; obtainers_ = null; } } public static final int PERMANENT_REMOVAL_FIELD_NUMBER = 4; private boolean permanentRemoval_; /** *
   **
   * If set to true, means this is a "synthetic" system transaction being used to 
   * alert mirror nodes that the contract is being permanently removed from the ledger.
   * <b>IMPORTANT:</b> User transactions cannot set this field to true, as permanent
   * removal is always managed by the ledger itself. Any ContractDeleteTransactionBody
   * submitted to HAPI with permanent_removal=true will be rejected with precheck status
   * PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION.
   * 
* * bool permanent_removal = 4; * @return The permanentRemoval. */ @java.lang.Override public boolean getPermanentRemoval() { return permanentRemoval_; } /** *
   **
   * If set to true, means this is a "synthetic" system transaction being used to 
   * alert mirror nodes that the contract is being permanently removed from the ledger.
   * <b>IMPORTANT:</b> User transactions cannot set this field to true, as permanent
   * removal is always managed by the ledger itself. Any ContractDeleteTransactionBody
   * submitted to HAPI with permanent_removal=true will be rejected with precheck status
   * PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION.
   * 
* * bool permanent_removal = 4; * @param value The permanentRemoval to set. */ private void setPermanentRemoval(boolean value) { permanentRemoval_ = value; } /** *
   **
   * If set to true, means this is a "synthetic" system transaction being used to 
   * alert mirror nodes that the contract is being permanently removed from the ledger.
   * <b>IMPORTANT:</b> User transactions cannot set this field to true, as permanent
   * removal is always managed by the ledger itself. Any ContractDeleteTransactionBody
   * submitted to HAPI with permanent_removal=true will be rejected with precheck status
   * PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION.
   * 
* * bool permanent_removal = 4; */ private void clearPermanentRemoval() { permanentRemoval_ = false; } public static com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody 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.ContractDeleteTransactionBody prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * At consensus, marks a contract as deleted and transfers its remaining hBars, if any, to a
   * designated receiver. After a contract is deleted, it can no longer be called.
   * 
   * If the target contract is immutable (that is, was created without an admin key), then this
   * transaction resolves to MODIFYING_IMMUTABLE_CONTRACT.
   * 
   * --- Signing Requirements ---
   * 1. The admin key of the target contract must sign.
   * 2. If the transfer account or contract has receiverSigRequired, its associated key must also sign
   * 
* * Protobuf type {@code proto.ContractDeleteTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.ContractDeleteTransactionBody) com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public ObtainersCase getObtainersCase() { return instance.getObtainersCase(); } public Builder clearObtainers() { copyOnWrite(); instance.clearObtainers(); return this; } /** *
     **
     * The id of the contract to be deleted
     * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public boolean hasContractID() { return instance.hasContractID(); } /** *
     **
     * The id of the contract to be deleted
     * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { return instance.getContractID(); } /** *
     **
     * The id of the contract to be deleted
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.setContractID(value); return this; } /** *
     **
     * The id of the contract to be deleted
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID( com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) { copyOnWrite(); instance.setContractID(builderForValue.build()); return this; } /** *
     **
     * The id of the contract to be deleted
     * 
* * .proto.ContractID contractID = 1; */ public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.mergeContractID(value); return this; } /** *
     **
     * The id of the contract to be deleted
     * 
* * .proto.ContractID contractID = 1; */ public Builder clearContractID() { copyOnWrite(); instance.clearContractID(); return this; } /** *
     **
     * The id of an account to receive any remaining hBars from the deleted contract
     * 
* * .proto.AccountID transferAccountID = 2; */ @java.lang.Override public boolean hasTransferAccountID() { return instance.hasTransferAccountID(); } /** *
     **
     * The id of an account to receive any remaining hBars from the deleted contract
     * 
* * .proto.AccountID transferAccountID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getTransferAccountID() { return instance.getTransferAccountID(); } /** *
     **
     * The id of an account to receive any remaining hBars from the deleted contract
     * 
* * .proto.AccountID transferAccountID = 2; */ public Builder setTransferAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { copyOnWrite(); instance.setTransferAccountID(value); return this; } /** *
     **
     * The id of an account to receive any remaining hBars from the deleted contract
     * 
* * .proto.AccountID transferAccountID = 2; */ public Builder setTransferAccountID( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { copyOnWrite(); instance.setTransferAccountID(builderForValue.build()); return this; } /** *
     **
     * The id of an account to receive any remaining hBars from the deleted contract
     * 
* * .proto.AccountID transferAccountID = 2; */ public Builder mergeTransferAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { copyOnWrite(); instance.mergeTransferAccountID(value); return this; } /** *
     **
     * The id of an account to receive any remaining hBars from the deleted contract
     * 
* * .proto.AccountID transferAccountID = 2; */ public Builder clearTransferAccountID() { copyOnWrite(); instance.clearTransferAccountID(); return this; } /** *
     **
     * The id of a contract to receive any remaining hBars from the deleted contract
     * 
* * .proto.ContractID transferContractID = 3; */ @java.lang.Override public boolean hasTransferContractID() { return instance.hasTransferContractID(); } /** *
     **
     * The id of a contract to receive any remaining hBars from the deleted contract
     * 
* * .proto.ContractID transferContractID = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getTransferContractID() { return instance.getTransferContractID(); } /** *
     **
     * The id of a contract to receive any remaining hBars from the deleted contract
     * 
* * .proto.ContractID transferContractID = 3; */ public Builder setTransferContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.setTransferContractID(value); return this; } /** *
     **
     * The id of a contract to receive any remaining hBars from the deleted contract
     * 
* * .proto.ContractID transferContractID = 3; */ public Builder setTransferContractID( com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) { copyOnWrite(); instance.setTransferContractID(builderForValue.build()); return this; } /** *
     **
     * The id of a contract to receive any remaining hBars from the deleted contract
     * 
* * .proto.ContractID transferContractID = 3; */ public Builder mergeTransferContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.mergeTransferContractID(value); return this; } /** *
     **
     * The id of a contract to receive any remaining hBars from the deleted contract
     * 
* * .proto.ContractID transferContractID = 3; */ public Builder clearTransferContractID() { copyOnWrite(); instance.clearTransferContractID(); return this; } /** *
     **
     * If set to true, means this is a "synthetic" system transaction being used to 
     * alert mirror nodes that the contract is being permanently removed from the ledger.
     * <b>IMPORTANT:</b> User transactions cannot set this field to true, as permanent
     * removal is always managed by the ledger itself. Any ContractDeleteTransactionBody
     * submitted to HAPI with permanent_removal=true will be rejected with precheck status
     * PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION.
     * 
* * bool permanent_removal = 4; * @return The permanentRemoval. */ @java.lang.Override public boolean getPermanentRemoval() { return instance.getPermanentRemoval(); } /** *
     **
     * If set to true, means this is a "synthetic" system transaction being used to 
     * alert mirror nodes that the contract is being permanently removed from the ledger.
     * <b>IMPORTANT:</b> User transactions cannot set this field to true, as permanent
     * removal is always managed by the ledger itself. Any ContractDeleteTransactionBody
     * submitted to HAPI with permanent_removal=true will be rejected with precheck status
     * PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION.
     * 
* * bool permanent_removal = 4; * @param value The permanentRemoval to set. * @return This builder for chaining. */ public Builder setPermanentRemoval(boolean value) { copyOnWrite(); instance.setPermanentRemoval(value); return this; } /** *
     **
     * If set to true, means this is a "synthetic" system transaction being used to 
     * alert mirror nodes that the contract is being permanently removed from the ledger.
     * <b>IMPORTANT:</b> User transactions cannot set this field to true, as permanent
     * removal is always managed by the ledger itself. Any ContractDeleteTransactionBody
     * submitted to HAPI with permanent_removal=true will be rejected with precheck status
     * PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION.
     * 
* * bool permanent_removal = 4; * @return This builder for chaining. */ public Builder clearPermanentRemoval() { copyOnWrite(); instance.clearPermanentRemoval(); return this; } // @@protoc_insertion_point(builder_scope:proto.ContractDeleteTransactionBody) } @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.ContractDeleteTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "obtainers_", "obtainersCase_", "contractID_", com.hedera.hashgraph.sdk.proto.AccountID.class, com.hedera.hashgraph.sdk.proto.ContractID.class, "permanentRemoval_", }; java.lang.String info = "\u0000\u0004\u0001\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\t\u0002<\u0000" + "\u0003<\u0000\u0004\u0007"; 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.ContractDeleteTransactionBody.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.ContractDeleteTransactionBody) private static final com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody DEFAULT_INSTANCE; static { ContractDeleteTransactionBody defaultInstance = new ContractDeleteTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ContractDeleteTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy