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 TypeMethodDescription* Call data to pass to the hook via the IHieroHook.HookContext#data field.* The gas limit to use.com.google.protobuf.ByteStringgetData()* 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, 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
-
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:
getDatain interfaceEvmHookCallOrBuilder- Returns:
- The data.
-
setData
* 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
* 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:
getGasLimitin interfaceEvmHookCallOrBuilder- Returns:
- The gasLimit.
-
setGasLimit
* The gas limit to use.
uint64 gas_limit = 2;- Parameters:
value- The gasLimit to set.- Returns:
- This builder for chaining.
-
clearGasLimit
* The gas limit to use.
uint64 gas_limit = 2;- Returns:
- This builder for chaining.
-