java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<SlotValue,SlotValue.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<SlotValue,SlotValue.Builder>
com.hedera.hashgraph.sdk.proto.SlotValue.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,SlotValueOrBuilder,Cloneable
- Enclosing class:
SlotValue
public static final class SlotValue.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<SlotValue,SlotValue.Builder>
implements SlotValueOrBuilder
* The value of a contract storage slot. For the EVM, this is a single "word". Because we iterate through all the storage slots for an expired contract when purging it from state, our slot values also include the words of the previous and next keys in this contract's storage "virtual linked list".Protobuf type
proto.SlotValue-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The word of the next key in this contract's storage list (if any).* The word of the previous key in this contract's storage list (if any).* The EVM value in this slot, left-padded with zeros to form a 256-bit word.com.google.protobuf.ByteString* The word of the next key in this contract's storage list (if any).com.google.protobuf.ByteString* The word of the previous key in this contract's storage list (if any).com.google.protobuf.ByteStringgetValue()* The EVM value in this slot, left-padded with zeros to form a 256-bit word.setNextKey(com.google.protobuf.ByteString value) * The word of the next key in this contract's storage list (if any).setPreviousKey(com.google.protobuf.ByteString value) * The word of the previous key in this contract's storage list (if any).setValue(com.google.protobuf.ByteString value) * The EVM value in this slot, left-padded with zeros to form a 256-bit word.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
-
getValue
public com.google.protobuf.ByteString getValue()* The EVM value in this slot, left-padded with zeros to form a 256-bit word.
bytes value = 1;- Specified by:
getValuein interfaceSlotValueOrBuilder- Returns:
- The value.
-
setValue
* The EVM value in this slot, left-padded with zeros to form a 256-bit word.
bytes value = 1;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
* The EVM value in this slot, left-padded with zeros to form a 256-bit word.
bytes value = 1;- Returns:
- This builder for chaining.
-
getPreviousKey
public com.google.protobuf.ByteString getPreviousKey()* The word of the previous key in this contract's storage list (if any).
bytes previous_key = 2;- Specified by:
getPreviousKeyin interfaceSlotValueOrBuilder- Returns:
- The previousKey.
-
setPreviousKey
* The word of the previous key in this contract's storage list (if any).
bytes previous_key = 2;- Parameters:
value- The previousKey to set.- Returns:
- This builder for chaining.
-
clearPreviousKey
* The word of the previous key in this contract's storage list (if any).
bytes previous_key = 2;- Returns:
- This builder for chaining.
-
getNextKey
public com.google.protobuf.ByteString getNextKey()* The word of the next key in this contract's storage list (if any).
bytes next_key = 3;- Specified by:
getNextKeyin interfaceSlotValueOrBuilder- Returns:
- The nextKey.
-
setNextKey
* The word of the next key in this contract's storage list (if any).
bytes next_key = 3;- Parameters:
value- The nextKey to set.- Returns:
- This builder for chaining.
-
clearNextKey
* The word of the next key in this contract's storage list (if any).
bytes next_key = 3;- Returns:
- This builder for chaining.
-