Class SlotValue.Builder

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 Type
    Method
    Description
    * 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.ByteString
    * 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, 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

    • 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:
      getValue in interface SlotValueOrBuilder
      Returns:
      The value.
    • setValue

      public SlotValue.Builder setValue(com.google.protobuf.ByteString value)
       *
       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

      public SlotValue.Builder 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:
      getPreviousKey in interface SlotValueOrBuilder
      Returns:
      The previousKey.
    • setPreviousKey

      public SlotValue.Builder setPreviousKey(com.google.protobuf.ByteString value)
       *
       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

      public SlotValue.Builder 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:
      getNextKey in interface SlotValueOrBuilder
      Returns:
      The nextKey.
    • setNextKey

      public SlotValue.Builder setNextKey(com.google.protobuf.ByteString value)
       *
       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

      public SlotValue.Builder clearNextKey()
       *
       The word of the next key in this contract's storage list (if any).
       
      bytes next_key = 3;
      Returns:
      This builder for chaining.