Class EvmHookState.Builder

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
  • Method Details

    • hasHookId

      public boolean hasHookId()
       *
       For state proofs, the id of this hook.
       
      .proto.HookId hook_id = 1;
      Specified by:
      hasHookId in interface EvmHookStateOrBuilder
      Returns:
      Whether the hookId field is set.
    • getHookId

      public HookId getHookId()
       *
       For state proofs, the id of this hook.
       
      .proto.HookId hook_id = 1;
      Specified by:
      getHookId in interface EvmHookStateOrBuilder
      Returns:
      The hookId.
    • setHookId

      public EvmHookState.Builder setHookId(HookId value)
       *
       For state proofs, the id of this hook.
       
      .proto.HookId hook_id = 1;
    • setHookId

      public EvmHookState.Builder setHookId(HookId.Builder builderForValue)
       *
       For state proofs, the id of this hook.
       
      .proto.HookId hook_id = 1;
    • mergeHookId

      public EvmHookState.Builder mergeHookId(HookId value)
       *
       For state proofs, the id of this hook.
       
      .proto.HookId hook_id = 1;
    • clearHookId

      public EvmHookState.Builder 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:
      getTypeValue in interface EvmHookStateOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public EvmHookState.Builder setTypeValue(int value)
       *
       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

      public HookType getType()
       *
       The type of the EVM hook.
       
      .com.hedera.hapi.node.state.hooks.HookType type = 2;
      Specified by:
      getType in interface EvmHookStateOrBuilder
      Returns:
      The type.
    • setType

      public EvmHookState.Builder setType(HookType value)
       *
       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

      public EvmHookState.Builder 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:
      getExtensionPointValue in interface EvmHookStateOrBuilder
      Returns:
      The enum numeric value on the wire for extensionPoint.
    • setExtensionPointValue

      public EvmHookState.Builder setExtensionPointValue(int value)
       *
       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

      public HookExtensionPoint getExtensionPoint()
       *
       The type of the extension point the hook implements.
       
      .com.hedera.hapi.node.hooks.HookExtensionPoint extension_point = 3;
      Specified by:
      getExtensionPoint in interface EvmHookStateOrBuilder
      Returns:
      The extensionPoint.
    • setExtensionPoint

      public EvmHookState.Builder setExtensionPoint(HookExtensionPoint value)
       *
       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

      public EvmHookState.Builder 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:
      hasHookContractId in interface EvmHookStateOrBuilder
      Returns:
      Whether the hookContractId field is set.
    • getHookContractId

      public ContractID getHookContractId()
       *
       The id of the contract with this hook's bytecode.
       
      .proto.ContractID hook_contract_id = 4;
      Specified by:
      getHookContractId in interface EvmHookStateOrBuilder
      Returns:
      The hookContractId.
    • setHookContractId

      public EvmHookState.Builder setHookContractId(ContractID value)
       *
       The id of the contract with this hook's bytecode.
       
      .proto.ContractID hook_contract_id = 4;
    • setHookContractId

      public EvmHookState.Builder setHookContractId(ContractID.Builder builderForValue)
       *
       The id of the contract with this hook's bytecode.
       
      .proto.ContractID hook_contract_id = 4;
    • mergeHookContractId

      public EvmHookState.Builder mergeHookContractId(ContractID value)
       *
       The id of the contract with this hook's bytecode.
       
      .proto.ContractID hook_contract_id = 4;
    • clearHookContractId

      public EvmHookState.Builder 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:
      hasAdminKey in interface EvmHookStateOrBuilder
      Returns:
      Whether the adminKey field is set.
    • getAdminKey

      public Key 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:
      getAdminKey in interface EvmHookStateOrBuilder
      Returns:
      The adminKey.
    • setAdminKey

      public EvmHookState.Builder 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.
       
      .proto.Key admin_key = 5;
    • setAdminKey

      public EvmHookState.Builder 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.
       
      .proto.Key admin_key = 5;
    • mergeAdminKey

      public EvmHookState.Builder 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.
       
      .proto.Key admin_key = 5;
    • clearAdminKey

      public EvmHookState.Builder 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:
      getFirstContractStorageKey in interface EvmHookStateOrBuilder
      Returns:
      The firstContractStorageKey.
    • setFirstContractStorageKey

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

      public EvmHookState.Builder 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:
      hasPreviousHookId in interface EvmHookStateOrBuilder
      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:
      getPreviousHookId in interface EvmHookStateOrBuilder
      Returns:
      The previousHookId.
    • setPreviousHookId

      public EvmHookState.Builder 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.
       
      .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

      public EvmHookState.Builder 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.
       
      .google.protobuf.Int64Value previous_hook_id = 7;
    • clearPreviousHookId

      public EvmHookState.Builder 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:
      hasNextHookId in interface EvmHookStateOrBuilder
      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:
      getNextHookId in interface EvmHookStateOrBuilder
      Returns:
      The nextHookId.
    • setNextHookId

      public EvmHookState.Builder 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.
       
      .google.protobuf.Int64Value next_hook_id = 8;
    • setNextHookId

      public EvmHookState.Builder 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.
       
      .google.protobuf.Int64Value next_hook_id = 8;
    • mergeNextHookId

      public EvmHookState.Builder 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.
       
      .google.protobuf.Int64Value next_hook_id = 8;
    • clearNextHookId

      public EvmHookState.Builder 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:
      getNumStorageSlots in interface EvmHookStateOrBuilder
      Returns:
      The numStorageSlots.
    • setNumStorageSlots

      public EvmHookState.Builder setNumStorageSlots(int value)
       *
       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

      public EvmHookState.Builder clearNumStorageSlots()
       *
       The number of storage slots an EVM hook is using.
       
      uint32 num_storage_slots = 9;
      Returns:
      This builder for chaining.