Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class EvmHookMappingEntries.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<EvmHookMappingEntries,EvmHookMappingEntries.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<EvmHookMappingEntries,EvmHookMappingEntries.Builder>
com.hedera.hashgraph.sdk.proto.EvmHookMappingEntries.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,EvmHookMappingEntriesOrBuilder,Cloneable
- Enclosing class:
EvmHookMappingEntries
public static final class EvmHookMappingEntries.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<EvmHookMappingEntries,EvmHookMappingEntries.Builder>
implements EvmHookMappingEntriesOrBuilder
* Specifies storage slot updates via indirection into a Solidity mapping. <p> Concretely, if the Solidity mapping is itself at slot `mapping_slot`, then the * storage slot for key `key` in the mapping is defined by the relationship `key_storage_slot = keccak256(abi.encodePacked(mapping_slot, key))`. <p> This message lets a metaprotocol be specified in terms of changes to a Solidity mapping's entries. If only raw slots could be updated, then a block stream consumer following the metaprotocol would have to invert the Keccak256 hash to determine which mapping entry was being updated, which is not possible.Protobuf type
com.hedera.hapi.node.hooks.EvmHookMappingEntries-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllEntries(Iterable<? extends EvmHookMappingEntry> values) * The entries in the mapping at the given slot.addEntries(int index, EvmHookMappingEntry value) * The entries in the mapping at the given slot.addEntries(int index, EvmHookMappingEntry.Builder builderForValue) * The entries in the mapping at the given slot.addEntries(EvmHookMappingEntry value) * The entries in the mapping at the given slot.addEntries(EvmHookMappingEntry.Builder builderForValue) * The entries in the mapping at the given slot.* The entries in the mapping at the given slot.* The slot that corresponds to the Solidity mapping itself.getEntries(int index) * The entries in the mapping at the given slot.int* The entries in the mapping at the given slot.* The entries in the mapping at the given slot.com.google.protobuf.ByteString* The slot that corresponds to the Solidity mapping itself.removeEntries(int index) * The entries in the mapping at the given slot.setEntries(int index, EvmHookMappingEntry value) * The entries in the mapping at the given slot.setEntries(int index, EvmHookMappingEntry.Builder builderForValue) * The entries in the mapping at the given slot.setMappingSlot(com.google.protobuf.ByteString value) * The slot that corresponds to the Solidity mapping itself.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
-
getMappingSlot
public com.google.protobuf.ByteString getMappingSlot()* The slot that corresponds to the Solidity mapping itself. Must use a minimal byte representation (no leading zeros).
bytes mapping_slot = 1;- Specified by:
getMappingSlotin interfaceEvmHookMappingEntriesOrBuilder- Returns:
- The mappingSlot.
-
setMappingSlot
* The slot that corresponds to the Solidity mapping itself. Must use a minimal byte representation (no leading zeros).
bytes mapping_slot = 1;- Parameters:
value- The mappingSlot to set.- Returns:
- This builder for chaining.
-
clearMappingSlot
* The slot that corresponds to the Solidity mapping itself. Must use a minimal byte representation (no leading zeros).
bytes mapping_slot = 1;- Returns:
- This builder for chaining.
-
getEntriesList
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2;- Specified by:
getEntriesListin interfaceEvmHookMappingEntriesOrBuilder
-
getEntriesCount
public int getEntriesCount()* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2;- Specified by:
getEntriesCountin interfaceEvmHookMappingEntriesOrBuilder
-
getEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2;- Specified by:
getEntriesin interfaceEvmHookMappingEntriesOrBuilder
-
setEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
setEntries
public EvmHookMappingEntries.Builder setEntries(int index, EvmHookMappingEntry.Builder builderForValue) * The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
addEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
addEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
addEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
addEntries
public EvmHookMappingEntries.Builder addEntries(int index, EvmHookMappingEntry.Builder builderForValue) * The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
addAllEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
clearEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2; -
removeEntries
* The entries in the mapping at the given slot.
repeated .com.hedera.hapi.node.hooks.EvmHookMappingEntry entries = 2;
-