Class EvmHookCall.Builder

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

public static final class EvmHookCall.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<EvmHookCall,EvmHookCall.Builder> implements EvmHookCallOrBuilder
 *
 Specifies details of a call to an EVM hook.
 
Protobuf type proto.EvmHookCall
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * Call data to pass to the hook via the IHieroHook.HookContext#data field.
    * The gas limit to use.
    com.google.protobuf.ByteString
    * Call data to pass to the hook via the IHieroHook.HookContext#data field.
    long
    * The gas limit to use.
    setData(com.google.protobuf.ByteString value)
    * Call data to pass to the hook via the IHieroHook.HookContext#data field.
    setGasLimit(long value)
    * The gas limit to use.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getData

      public com.google.protobuf.ByteString getData()
       *
       Call data to pass to the hook via the IHieroHook.HookContext#data field.
       
      bytes data = 1;
      Specified by:
      getData in interface EvmHookCallOrBuilder
      Returns:
      The data.
    • setData

      public EvmHookCall.Builder setData(com.google.protobuf.ByteString value)
       *
       Call data to pass to the hook via the IHieroHook.HookContext#data field.
       
      bytes data = 1;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public EvmHookCall.Builder clearData()
       *
       Call data to pass to the hook via the IHieroHook.HookContext#data field.
       
      bytes data = 1;
      Returns:
      This builder for chaining.
    • getGasLimit

      public long getGasLimit()
       *
       The gas limit to use.
       
      uint64 gas_limit = 2;
      Specified by:
      getGasLimit in interface EvmHookCallOrBuilder
      Returns:
      The gasLimit.
    • setGasLimit

      public EvmHookCall.Builder setGasLimit(long value)
       *
       The gas limit to use.
       
      uint64 gas_limit = 2;
      Parameters:
      value - The gasLimit to set.
      Returns:
      This builder for chaining.
    • clearGasLimit

      public EvmHookCall.Builder clearGasLimit()
       *
       The gas limit to use.
       
      uint64 gas_limit = 2;
      Returns:
      This builder for chaining.