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

    • getHookCase

      public HookCreationDetails.HookCase getHookCase()
      Specified by:
      getHookCase in interface HookCreationDetailsOrBuilder
    • clearHook

      public HookCreationDetails.Builder clearHook()
    • getExtensionPointValue

      public int getExtensionPointValue()
       *
       The extension point for the hook.
       
      .com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 1;
      Specified by:
      getExtensionPointValue in interface HookCreationDetailsOrBuilder
      Returns:
      The enum numeric value on the wire for extensionPoint.
    • setExtensionPointValue

      public HookCreationDetails.Builder setExtensionPointValue(int value)
       *
       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

      public HookExtensionPoint getExtensionPoint()
       *
       The extension point for the hook.
       
      .com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 1;
      Specified by:
      getExtensionPoint in interface HookCreationDetailsOrBuilder
      Returns:
      The extensionPoint.
    • setExtensionPoint

      public HookCreationDetails.Builder setExtensionPoint(HookExtensionPoint value)
       *
       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

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

      public HookCreationDetails.Builder setHookId(long value)
       *
       The id to create the hook at.
       
      int64 hook_id = 2;
      Parameters:
      value - The hookId to set.
      Returns:
      This builder for chaining.
    • clearHookId

      public HookCreationDetails.Builder 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:
      hasEvmHook in interface HookCreationDetailsOrBuilder
      Returns:
      Whether the evmHook field is set.
    • getEvmHook

      public EvmHook 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:
      getEvmHook in interface HookCreationDetailsOrBuilder
      Returns:
      The evmHook.
    • setEvmHook

      public HookCreationDetails.Builder setEvmHook(EvmHook value)
       *
       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

      public HookCreationDetails.Builder setEvmHook(EvmHook.Builder builderForValue)
       *
       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

      public HookCreationDetails.Builder mergeEvmHook(EvmHook value)
       *
       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

      public HookCreationDetails.Builder 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:
      hasAdminKey in interface HookCreationDetailsOrBuilder
      Returns:
      Whether the adminKey field is set.
    • getAdminKey

      public Key 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:
      getAdminKey in interface HookCreationDetailsOrBuilder
      Returns:
      The adminKey.
    • setAdminKey

      public HookCreationDetails.Builder 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.
       
      .proto.Key admin_key = 4;
    • setAdminKey

      public HookCreationDetails.Builder 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.
       
      .proto.Key admin_key = 4;
    • mergeAdminKey

      public HookCreationDetails.Builder 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.
       
      .proto.Key admin_key = 4;
    • clearAdminKey

      public HookCreationDetails.Builder 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;