Class HookCall.Builder

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
  • Method Details

    • getIdCase

      public HookCall.IdCase getIdCase()
      Specified by:
      getIdCase in interface HookCallOrBuilder
    • clearId

      public HookCall.Builder clearId()
    • getCallSpecCase

      public HookCall.CallSpecCase getCallSpecCase()
      Specified by:
      getCallSpecCase in interface HookCallOrBuilder
    • clearCallSpec

      public HookCall.Builder 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:
      hasHookId in interface HookCallOrBuilder
      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:
      getHookId in interface HookCallOrBuilder
      Returns:
      The hookId.
    • setHookId

      public HookCall.Builder setHookId(long value)
       *
       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

      public HookCall.Builder 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:
      hasEvmHookCall in interface HookCallOrBuilder
      Returns:
      Whether the evmHookCall field is set.
    • getEvmHookCall

      public EvmHookCall getEvmHookCall()
       *
       Specification of how to call an EVM hook.
       
      .proto.EvmHookCall evm_hook_call = 3;
      Specified by:
      getEvmHookCall in interface HookCallOrBuilder
      Returns:
      The evmHookCall.
    • setEvmHookCall

      public HookCall.Builder setEvmHookCall(EvmHookCall value)
       *
       Specification of how to call an EVM hook.
       
      .proto.EvmHookCall evm_hook_call = 3;
    • setEvmHookCall

      public HookCall.Builder setEvmHookCall(EvmHookCall.Builder builderForValue)
       *
       Specification of how to call an EVM hook.
       
      .proto.EvmHookCall evm_hook_call = 3;
    • mergeEvmHookCall

      public HookCall.Builder mergeEvmHookCall(EvmHookCall value)
       *
       Specification of how to call an EVM hook.
       
      .proto.EvmHookCall evm_hook_call = 3;
    • clearEvmHookCall

      public HookCall.Builder clearEvmHookCall()
       *
       Specification of how to call an EVM hook.
       
      .proto.EvmHookCall evm_hook_call = 3;