Class EvmHookState

java.lang.Object
com.google.protobuf.AbstractMessageLite<EvmHookState,EvmHookState.Builder>
com.google.protobuf.GeneratedMessageLite<EvmHookState,EvmHookState.Builder>
com.hedera.hashgraph.sdk.proto.EvmHookState
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, EvmHookStateOrBuilder

@Generated public final class EvmHookState extends com.google.protobuf.GeneratedMessageLite<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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * The representation of an EVM hook in state, including the previous and next hook ids in its owner's list.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    * 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.
    * 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.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<EvmHookState>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • HOOK_ID_FIELD_NUMBER

      public static final int HOOK_ID_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • EXTENSION_POINT_FIELD_NUMBER

      public static final int EXTENSION_POINT_FIELD_NUMBER
      See Also:
    • HOOK_CONTRACT_ID_FIELD_NUMBER

      public static final int HOOK_CONTRACT_ID_FIELD_NUMBER
      See Also:
    • ADMIN_KEY_FIELD_NUMBER

      public static final int ADMIN_KEY_FIELD_NUMBER
      See Also:
    • FIRST_CONTRACT_STORAGE_KEY_FIELD_NUMBER

      public static final int FIRST_CONTRACT_STORAGE_KEY_FIELD_NUMBER
      See Also:
    • PREVIOUS_HOOK_ID_FIELD_NUMBER

      public static final int PREVIOUS_HOOK_ID_FIELD_NUMBER
      See Also:
    • NEXT_HOOK_ID_FIELD_NUMBER

      public static final int NEXT_HOOK_ID_FIELD_NUMBER
      See Also:
    • NUM_STORAGE_SLOTS_FIELD_NUMBER

      public static final int NUM_STORAGE_SLOTS_FIELD_NUMBER
      See Also:
  • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • parseFrom

      public static EvmHookState parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EvmHookState parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EvmHookState parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EvmHookState parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EvmHookState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EvmHookState parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EvmHookState parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EvmHookState parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EvmHookState parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EvmHookState parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EvmHookState parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EvmHookState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static EvmHookState.Builder newBuilder()
    • newBuilder

      public static EvmHookState.Builder newBuilder(EvmHookState prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<EvmHookState,EvmHookState.Builder>
    • getDefaultInstance

      public static EvmHookState getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EvmHookState> parser()