Class SlotKey.Builder

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

public static final class SlotKey.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<SlotKey,SlotKey.Builder> implements SlotKeyOrBuilder
 *
 The key of a storage slot. A slot is scoped to a specific contract ID.

 For each contract, its EVM storage is a mapping of 256-bit keys (or "words")
 to 256-bit values.
 
Protobuf type proto.SlotKey
  • Field Summary

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * The Contract ID of the contract that owns (and pays for) this slot.
    * The EVM key of this slot, left-padded with zeros to form a 256-bit word.
    * The Contract ID of the contract that owns (and pays for) this slot.
    com.google.protobuf.ByteString
    * The EVM key of this slot, left-padded with zeros to form a 256-bit word.
    boolean
    * The Contract ID of the contract that owns (and pays for) this slot.
    * The Contract ID of the contract that owns (and pays for) this slot.
    * The Contract ID of the contract that owns (and pays for) this slot.
    * The Contract ID of the contract that owns (and pays for) this slot.
    setKey(com.google.protobuf.ByteString value)
    * The EVM key of 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

    • hasContractID

      public boolean hasContractID()
       *
       The Contract ID of the contract that owns (and pays for) this slot.
       
      .proto.ContractID contractID = 1;
      Specified by:
      hasContractID in interface SlotKeyOrBuilder
      Returns:
      Whether the contractID field is set.
    • getContractID

      public ContractID getContractID()
       *
       The Contract ID of the contract that owns (and pays for) this slot.
       
      .proto.ContractID contractID = 1;
      Specified by:
      getContractID in interface SlotKeyOrBuilder
      Returns:
      The contractID.
    • setContractID

      public SlotKey.Builder setContractID(ContractID value)
       *
       The Contract ID of the contract that owns (and pays for) this slot.
       
      .proto.ContractID contractID = 1;
    • setContractID

      public SlotKey.Builder setContractID(ContractID.Builder builderForValue)
       *
       The Contract ID of the contract that owns (and pays for) this slot.
       
      .proto.ContractID contractID = 1;
    • mergeContractID

      public SlotKey.Builder mergeContractID(ContractID value)
       *
       The Contract ID of the contract that owns (and pays for) this slot.
       
      .proto.ContractID contractID = 1;
    • clearContractID

      public SlotKey.Builder clearContractID()
       *
       The Contract ID of the contract that owns (and pays for) this slot.
       
      .proto.ContractID contractID = 1;
    • getKey

      public com.google.protobuf.ByteString getKey()
       *
       The EVM key of this slot, left-padded with zeros to form a 256-bit word.
       
      bytes key = 2;
      Specified by:
      getKey in interface SlotKeyOrBuilder
      Returns:
      The key.
    • setKey

      public SlotKey.Builder setKey(com.google.protobuf.ByteString value)
       *
       The EVM key of this slot, left-padded with zeros to form a 256-bit word.
       
      bytes key = 2;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public SlotKey.Builder clearKey()
       *
       The EVM key of this slot, left-padded with zeros to form a 256-bit word.
       
      bytes key = 2;
      Returns:
      This builder for chaining.