java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<EvmHookState,EvmHookState.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<EvmHookState,EvmHookState.Builder>
com.hedera.hashgraph.sdk.proto.EvmHookState.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,EvmHookStateOrBuilder,Cloneable
- Enclosing class:
EvmHookState
public static final class EvmHookState.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<EvmHookState,EvmHookState.Builder>
implements EvmHookStateOrBuilder
* The representation of an EVM hook in state, including the previous and next hook ids in its owner's list.Protobuf type
com.hedera.hapi.node.state.hooks.EvmHookState-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.* The type of the extension point the hook implements.* For an EVM hook, its first storage key.* The id of the contract with this hook's bytecode.* For state proofs, the id of this hook.* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.* The number of storage slots an EVM hook is using.* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.* The type of the EVM hook.* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.* The type of the extension point the hook implements.int* The type of the extension point the hook implements.com.google.protobuf.ByteString* For an EVM hook, its first storage key.* The id of the contract with this hook's bytecode.* For state proofs, the id of this hook.com.google.protobuf.Int64Value* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.int* The number of storage slots an EVM hook is using.com.google.protobuf.Int64Value* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.getType()* The type of the EVM hook.int* The type of the EVM hook.boolean* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.boolean* The id of the contract with this hook's bytecode.boolean* For state proofs, the id of this hook.boolean* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.boolean* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.mergeAdminKey(Key value) * If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.mergeHookContractId(ContractID value) * The id of the contract with this hook's bytecode.mergeHookId(HookId value) * For state proofs, the id of this hook.mergeNextHookId(com.google.protobuf.Int64Value value) * If set, the id of the hook following this one in the owner's doubly-linked list of hooks.mergePreviousHookId(com.google.protobuf.Int64Value value) * If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.setAdminKey(Key value) * If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.setAdminKey(Key.Builder builderForValue) * If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.* The type of the extension point the hook implements.setExtensionPointValue(int value) * The type of the extension point the hook implements.setFirstContractStorageKey(com.google.protobuf.ByteString value) * For an EVM hook, its first storage key.setHookContractId(ContractID value) * The id of the contract with this hook's bytecode.setHookContractId(ContractID.Builder builderForValue) * The id of the contract with this hook's bytecode.* For state proofs, the id of this hook.setHookId(HookId.Builder builderForValue) * For state proofs, the id of this hook.setNextHookId(com.google.protobuf.Int64Value value) * If set, the id of the hook following this one in the owner's doubly-linked list of hooks.setNextHookId(com.google.protobuf.Int64Value.Builder builderForValue) * If set, the id of the hook following this one in the owner's doubly-linked list of hooks.setNumStorageSlots(int value) * The number of storage slots an EVM hook is using.setPreviousHookId(com.google.protobuf.Int64Value value) * If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.setPreviousHookId(com.google.protobuf.Int64Value.Builder builderForValue) * If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.* The type of the EVM hook.setTypeValue(int value) * The type of the EVM hook.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
-
hasHookId
public boolean hasHookId()* For state proofs, the id of this hook.
.proto.HookId hook_id = 1;- Specified by:
hasHookIdin interfaceEvmHookStateOrBuilder- Returns:
- Whether the hookId field is set.
-
getHookId
* For state proofs, the id of this hook.
.proto.HookId hook_id = 1;- Specified by:
getHookIdin interfaceEvmHookStateOrBuilder- Returns:
- The hookId.
-
setHookId
* For state proofs, the id of this hook.
.proto.HookId hook_id = 1; -
setHookId
* For state proofs, the id of this hook.
.proto.HookId hook_id = 1; -
mergeHookId
* For state proofs, the id of this hook.
.proto.HookId hook_id = 1; -
clearHookId
* For state proofs, the id of this hook.
.proto.HookId hook_id = 1; -
getTypeValue
public int getTypeValue()* The type of the EVM hook.
.com.hedera.hapi.node.state.hooks.HookType type = 2;- Specified by:
getTypeValuein interfaceEvmHookStateOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
* The type of the EVM hook.
.com.hedera.hapi.node.state.hooks.HookType type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getType
* The type of the EVM hook.
.com.hedera.hapi.node.state.hooks.HookType type = 2;- Specified by:
getTypein interfaceEvmHookStateOrBuilder- Returns:
- The type.
-
setType
* The type of the EVM hook.
.com.hedera.hapi.node.state.hooks.HookType type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
clearType
* The type of the EVM hook.
.com.hedera.hapi.node.state.hooks.HookType type = 2;- Returns:
- This builder for chaining.
-
getExtensionPointValue
public int getExtensionPointValue()* The type of the extension point the hook implements.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 3;- Specified by:
getExtensionPointValuein interfaceEvmHookStateOrBuilder- Returns:
- The enum numeric value on the wire for extensionPoint.
-
setExtensionPointValue
* The type of the extension point the hook implements.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 3;- Parameters:
value- The extensionPoint to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getExtensionPoint
* The type of the extension point the hook implements.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 3;- Specified by:
getExtensionPointin interfaceEvmHookStateOrBuilder- Returns:
- The extensionPoint.
-
setExtensionPoint
* The type of the extension point the hook implements.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 3;- Parameters:
value- The enum numeric value on the wire for extensionPoint to set.- Returns:
- This builder for chaining.
-
clearExtensionPoint
* The type of the extension point the hook implements.
.com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 3;- Returns:
- This builder for chaining.
-
hasHookContractId
public boolean hasHookContractId()* The id of the contract with this hook's bytecode.
.proto.ContractID hook_contract_id = 4;- Specified by:
hasHookContractIdin interfaceEvmHookStateOrBuilder- Returns:
- Whether the hookContractId field is set.
-
getHookContractId
* The id of the contract with this hook's bytecode.
.proto.ContractID hook_contract_id = 4;- Specified by:
getHookContractIdin interfaceEvmHookStateOrBuilder- Returns:
- The hookContractId.
-
setHookContractId
* The id of the contract with this hook's bytecode.
.proto.ContractID hook_contract_id = 4; -
setHookContractId
* The id of the contract with this hook's bytecode.
.proto.ContractID hook_contract_id = 4; -
mergeHookContractId
* The id of the contract with this hook's bytecode.
.proto.ContractID hook_contract_id = 4; -
clearHookContractId
* The id of the contract with this hook's bytecode.
.proto.ContractID hook_contract_id = 4; -
hasAdminKey
public boolean hasAdminKey()* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.
.proto.Key admin_key = 5;- Specified by:
hasAdminKeyin interfaceEvmHookStateOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.
.proto.Key admin_key = 5;- Specified by:
getAdminKeyin interfaceEvmHookStateOrBuilder- Returns:
- The adminKey.
-
setAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.
.proto.Key admin_key = 5; -
setAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.
.proto.Key admin_key = 5; -
mergeAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.
.proto.Key admin_key = 5; -
clearAdminKey
* If set, a key that that can be used to remove or replace the hook; or (if applicable, as with an EVM hook) perform transactions that customize the hook.
.proto.Key admin_key = 5; -
getFirstContractStorageKey
public com.google.protobuf.ByteString getFirstContractStorageKey()* For an EVM hook, its first storage key. Must be the minimal bytes representation (no leading zeros). An EVM hook with no storage slots and an EVM hook whose last-written storage slot was at the zero key can be differentiated by checking the `num_storage_slots` field.
bytes first_contract_storage_key = 6;- Specified by:
getFirstContractStorageKeyin interfaceEvmHookStateOrBuilder- Returns:
- The firstContractStorageKey.
-
setFirstContractStorageKey
* For an EVM hook, its first storage key. Must be the minimal bytes representation (no leading zeros). An EVM hook with no storage slots and an EVM hook whose last-written storage slot was at the zero key can be differentiated by checking the `num_storage_slots` field.
bytes first_contract_storage_key = 6;- Parameters:
value- The firstContractStorageKey to set.- Returns:
- This builder for chaining.
-
clearFirstContractStorageKey
* For an EVM hook, its first storage key. Must be the minimal bytes representation (no leading zeros). An EVM hook with no storage slots and an EVM hook whose last-written storage slot was at the zero key can be differentiated by checking the `num_storage_slots` field.
bytes first_contract_storage_key = 6;- Returns:
- This builder for chaining.
-
hasPreviousHookId
public boolean hasPreviousHookId()* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value previous_hook_id = 7;- Specified by:
hasPreviousHookIdin interfaceEvmHookStateOrBuilder- Returns:
- Whether the previousHookId field is set.
-
getPreviousHookId
public com.google.protobuf.Int64Value getPreviousHookId()* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value previous_hook_id = 7;- Specified by:
getPreviousHookIdin interfaceEvmHookStateOrBuilder- Returns:
- The previousHookId.
-
setPreviousHookId
* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value previous_hook_id = 7; -
setPreviousHookId
public EvmHookState.Builder setPreviousHookId(com.google.protobuf.Int64Value.Builder builderForValue) * If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value previous_hook_id = 7; -
mergePreviousHookId
* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value previous_hook_id = 7; -
clearPreviousHookId
* If set, the id of the hook preceding this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value previous_hook_id = 7; -
hasNextHookId
public boolean hasNextHookId()* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value next_hook_id = 8;- Specified by:
hasNextHookIdin interfaceEvmHookStateOrBuilder- Returns:
- Whether the nextHookId field is set.
-
getNextHookId
public com.google.protobuf.Int64Value getNextHookId()* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value next_hook_id = 8;- Specified by:
getNextHookIdin interfaceEvmHookStateOrBuilder- Returns:
- The nextHookId.
-
setNextHookId
* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value next_hook_id = 8; -
setNextHookId
* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value next_hook_id = 8; -
mergeNextHookId
* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value next_hook_id = 8; -
clearNextHookId
* If set, the id of the hook following this one in the owner's doubly-linked list of hooks.
.google.protobuf.Int64Value next_hook_id = 8; -
getNumStorageSlots
public int getNumStorageSlots()* The number of storage slots an EVM hook is using.
uint32 num_storage_slots = 9;- Specified by:
getNumStorageSlotsin interfaceEvmHookStateOrBuilder- Returns:
- The numStorageSlots.
-
setNumStorageSlots
* The number of storage slots an EVM hook is using.
uint32 num_storage_slots = 9;- Parameters:
value- The numStorageSlots to set.- Returns:
- This builder for chaining.
-
clearNumStorageSlots
* The number of storage slots an EVM hook is using.
uint32 num_storage_slots = 9;- Returns:
- This builder for chaining.
-