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 TypeMethodDescription* The Contract ID of the contract that owns (and pays for) this slot.clearKey()* 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.ByteStringgetKey()* 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.mergeContractID(ContractID value) * The Contract ID of the contract that owns (and pays for) this slot.setContractID(ContractID value) * The Contract ID of the contract that owns (and pays for) this slot.setContractID(ContractID.Builder builderForValue) * 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, 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
-
hasContractID
public boolean hasContractID()* The Contract ID of the contract that owns (and pays for) this slot.
.proto.ContractID contractID = 1;- Specified by:
hasContractIDin interfaceSlotKeyOrBuilder- Returns:
- Whether the contractID field is set.
-
getContractID
* The Contract ID of the contract that owns (and pays for) this slot.
.proto.ContractID contractID = 1;- Specified by:
getContractIDin interfaceSlotKeyOrBuilder- Returns:
- The contractID.
-
setContractID
* The Contract ID of the contract that owns (and pays for) this slot.
.proto.ContractID contractID = 1; -
setContractID
* The Contract ID of the contract that owns (and pays for) this slot.
.proto.ContractID contractID = 1; -
mergeContractID
* The Contract ID of the contract that owns (and pays for) this slot.
.proto.ContractID contractID = 1; -
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:
getKeyin interfaceSlotKeyOrBuilder- Returns:
- The key.
-
setKey
* 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
* The EVM key of this slot, left-padded with zeros to form a 256-bit word.
bytes key = 2;- Returns:
- This builder for chaining.
-