Class EvmHook.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<EvmHook,EvmHook.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<EvmHook,EvmHook.Builder>
com.hedera.hashgraph.sdk.proto.EvmHook.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, EvmHookOrBuilder, Cloneable
Enclosing class:
EvmHook

public static final class EvmHook.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<EvmHook,EvmHook.Builder> implements EvmHookOrBuilder
 *
 Definition of a general-purpose EVM hook.
 
Protobuf type com.hedera.hapi.node.hooks.EvmHook
  • Method Details

    • hasSpec

      public boolean hasSpec()
       *
       The specification for the hook.
       
      .com.hedera.hapi.node.hooks.EvmHookSpec spec = 1;
      Specified by:
      hasSpec in interface EvmHookOrBuilder
      Returns:
      Whether the spec field is set.
    • getSpec

      public EvmHookSpec getSpec()
       *
       The specification for the hook.
       
      .com.hedera.hapi.node.hooks.EvmHookSpec spec = 1;
      Specified by:
      getSpec in interface EvmHookOrBuilder
      Returns:
      The spec.
    • setSpec

      public EvmHook.Builder setSpec(EvmHookSpec value)
       *
       The specification for the hook.
       
      .com.hedera.hapi.node.hooks.EvmHookSpec spec = 1;
    • setSpec

      public EvmHook.Builder setSpec(EvmHookSpec.Builder builderForValue)
       *
       The specification for the hook.
       
      .com.hedera.hapi.node.hooks.EvmHookSpec spec = 1;
    • mergeSpec

      public EvmHook.Builder mergeSpec(EvmHookSpec value)
       *
       The specification for the hook.
       
      .com.hedera.hapi.node.hooks.EvmHookSpec spec = 1;
    • clearSpec

      public EvmHook.Builder clearSpec()
       *
       The specification for the hook.
       
      .com.hedera.hapi.node.hooks.EvmHookSpec spec = 1;
    • getStorageUpdatesList

      public List<EvmHookStorageUpdate> getStorageUpdatesList()
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
      Specified by:
      getStorageUpdatesList in interface EvmHookOrBuilder
    • getStorageUpdatesCount

      public int getStorageUpdatesCount()
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
      Specified by:
      getStorageUpdatesCount in interface EvmHookOrBuilder
    • getStorageUpdates

      public EvmHookStorageUpdate getStorageUpdates(int index)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
      Specified by:
      getStorageUpdates in interface EvmHookOrBuilder
    • setStorageUpdates

      public EvmHook.Builder setStorageUpdates(int index, EvmHookStorageUpdate value)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • setStorageUpdates

      public EvmHook.Builder setStorageUpdates(int index, EvmHookStorageUpdate.Builder builderForValue)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • addStorageUpdates

      public EvmHook.Builder addStorageUpdates(EvmHookStorageUpdate value)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • addStorageUpdates

      public EvmHook.Builder addStorageUpdates(int index, EvmHookStorageUpdate value)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • addStorageUpdates

      public EvmHook.Builder addStorageUpdates(EvmHookStorageUpdate.Builder builderForValue)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • addStorageUpdates

      public EvmHook.Builder addStorageUpdates(int index, EvmHookStorageUpdate.Builder builderForValue)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • addAllStorageUpdates

      public EvmHook.Builder addAllStorageUpdates(Iterable<? extends EvmHookStorageUpdate> values)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • clearStorageUpdates

      public EvmHook.Builder clearStorageUpdates()
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;
    • removeStorageUpdates

      public EvmHook.Builder removeStorageUpdates(int index)
       *
       Initial storage updates for the hook, if any.
       
      repeated .com.hedera.hapi.node.hooks.EvmHookStorageUpdate storage_updates = 2;