java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HookCall,HookCall.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HookCall,HookCall.Builder>
com.hedera.hashgraph.sdk.proto.HookCall.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,HookCallOrBuilder,Cloneable
- Enclosing class:
HookCall
public static final class HookCall.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<HookCall,HookCall.Builder>
implements HookCallOrBuilder
* Specifies a call to a hook from within a transaction. <p> Often the hook's entity is implied by the nature of the call site. For example, when using an account allowance hook inside a crypto transfer, the hook's entity is necessarily the account whose authorization is required. <p> For future extension points where the hook owner is not forced by the context, we include the option to fully specify the hook id for the call.Protobuf type
proto.HookCall-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* Specification of how to call an EVM hook.* The numeric id of the hook to call, when the owning entity is forced by the call site.clearId()* Specification of how to call an EVM hook.long* The numeric id of the hook to call, when the owning entity is forced by the call site.boolean* Specification of how to call an EVM hook.boolean* The numeric id of the hook to call, when the owning entity is forced by the call site.mergeEvmHookCall(EvmHookCall value) * Specification of how to call an EVM hook.setEvmHookCall(EvmHookCall value) * Specification of how to call an EVM hook.setEvmHookCall(EvmHookCall.Builder builderForValue) * Specification of how to call an EVM hook.setHookId(long value) * The numeric id of the hook to call, when the owning entity is forced by the call site.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 interfaceHookCallOrBuilder
-
clearId
-
getCallSpecCase
- Specified by:
getCallSpecCasein interfaceHookCallOrBuilder
-
clearCallSpec
-
hasHookId
public boolean hasHookId()* The numeric id of the hook to call, when the owning entity is forced by the call site.
int64 hook_id = 1;- Specified by:
hasHookIdin interfaceHookCallOrBuilder- Returns:
- Whether the hookId field is set.
-
getHookId
public long getHookId()* The numeric id of the hook to call, when the owning entity is forced by the call site.
int64 hook_id = 1;- Specified by:
getHookIdin interfaceHookCallOrBuilder- Returns:
- The hookId.
-
setHookId
* The numeric id of the hook to call, when the owning entity is forced by the call site.
int64 hook_id = 1;- Parameters:
value- The hookId to set.- Returns:
- This builder for chaining.
-
clearHookId
* The numeric id of the hook to call, when the owning entity is forced by the call site.
int64 hook_id = 1;- Returns:
- This builder for chaining.
-
hasEvmHookCall
public boolean hasEvmHookCall()* Specification of how to call an EVM hook.
.proto.EvmHookCall evm_hook_call = 3;- Specified by:
hasEvmHookCallin interfaceHookCallOrBuilder- Returns:
- Whether the evmHookCall field is set.
-
getEvmHookCall
* Specification of how to call an EVM hook.
.proto.EvmHookCall evm_hook_call = 3;- Specified by:
getEvmHookCallin interfaceHookCallOrBuilder- Returns:
- The evmHookCall.
-
setEvmHookCall
* Specification of how to call an EVM hook.
.proto.EvmHookCall evm_hook_call = 3; -
setEvmHookCall
* Specification of how to call an EVM hook.
.proto.EvmHookCall evm_hook_call = 3; -
mergeEvmHookCall
* Specification of how to call an EVM hook.
.proto.EvmHookCall evm_hook_call = 3; -
clearEvmHookCall
* Specification of how to call an EVM hook.
.proto.EvmHookCall evm_hook_call = 3;
-