Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class HookCreationDetails.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HookCreationDetails,HookCreationDetails.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HookCreationDetails,HookCreationDetails.Builder>
com.hedera.hashgraph.sdk.proto.HookCreationDetails.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,HookCreationDetailsOrBuilder,Cloneable
- Enclosing class:
HookCreationDetails
public static final class HookCreationDetails.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<HookCreationDetails,HookCreationDetails.Builder>
implements HookCreationDetailsOrBuilder
** The details of a hook's creation.Protobuf type
com.hedera.hapi.node.hooks.HookCreationDetails-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.* The extension point for the hook.* The id to create the hook at.* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.* The extension point for the hook.int* The extension point for the hook.long* The id to create the hook at.boolean* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.boolean* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.mergeAdminKey(Key value) * If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.mergeEvmHook(EvmHook value) * A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.setAdminKey(Key value) * If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.setAdminKey(Key.Builder builderForValue) * If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.setEvmHook(EvmHook value) * A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.setEvmHook(EvmHook.Builder builderForValue) * A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.* The extension point for the hook.setExtensionPointValue(int value) * The extension point for the hook.setHookId(long value) * The id to create the hook at.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
-
getHookCase
- Specified by:
getHookCasein interfaceHookCreationDetailsOrBuilder
-
clearHook
-
getExtensionPointValue
public int getExtensionPointValue()* The extension point for the hook.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 1;- Specified by:
getExtensionPointValuein interfaceHookCreationDetailsOrBuilder- Returns:
- The enum numeric value on the wire for extensionPoint.
-
setExtensionPointValue
* The extension point for the hook.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 1;- Parameters:
value- The extensionPoint to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getExtensionPoint
* The extension point for the hook.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 1;- Specified by:
getExtensionPointin interfaceHookCreationDetailsOrBuilder- Returns:
- The extensionPoint.
-
setExtensionPoint
* The extension point for the hook.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 1;- Parameters:
value- The enum numeric value on the wire for extensionPoint to set.- Returns:
- This builder for chaining.
-
clearExtensionPoint
* The extension point for the hook.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 1;- Returns:
- This builder for chaining.
-
getHookId
public long getHookId()* The id to create the hook at.
int64 hook_id = 2;- Specified by:
getHookIdin interfaceHookCreationDetailsOrBuilder- Returns:
- The hookId.
-
setHookId
* The id to create the hook at.
int64 hook_id = 2;- Parameters:
value- The hookId to set.- Returns:
- This builder for chaining.
-
clearHookId
* The id to create the hook at.
int64 hook_id = 2;- Returns:
- This builder for chaining.
-
hasEvmHook
public boolean hasEvmHook()* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.
.com.hedera.hapi.node.hooks.EvmHook evm_hook = 3;- Specified by:
hasEvmHookin interfaceHookCreationDetailsOrBuilder- Returns:
- Whether the evmHook field is set.
-
getEvmHook
* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.
.com.hedera.hapi.node.hooks.EvmHook evm_hook = 3;- Specified by:
getEvmHookin interfaceHookCreationDetailsOrBuilder- Returns:
- The evmHook.
-
setEvmHook
* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.
.com.hedera.hapi.node.hooks.EvmHook evm_hook = 3; -
setEvmHook
* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.
.com.hedera.hapi.node.hooks.EvmHook evm_hook = 3; -
mergeEvmHook
* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.
.com.hedera.hapi.node.hooks.EvmHook evm_hook = 3; -
clearEvmHook
* A general-purpose hook programmed in EVM bytecode that may access state or interact with external contracts.
.com.hedera.hapi.node.hooks.EvmHook evm_hook = 3; -
hasAdminKey
public boolean hasAdminKey()* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.
.proto.Key admin_key = 4;- Specified by:
hasAdminKeyin interfaceHookCreationDetailsOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.
.proto.Key admin_key = 4;- Specified by:
getAdminKeyin interfaceHookCreationDetailsOrBuilder- Returns:
- The adminKey.
-
setAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.
.proto.Key admin_key = 4; -
setAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.
.proto.Key admin_key = 4; -
mergeAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.
.proto.Key admin_key = 4; -
clearAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) do transactions that customize the hook.
.proto.Key admin_key = 4;
-