Class EntityCounts.Builder

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

public static final class EntityCounts.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<EntityCounts,EntityCounts.Builder> implements EntityCountsOrBuilder
 *
 Representation of a Hedera Entity Service entity counts in the network Merkle tree.

 This message is used to store the counts of various entities in the network.
 
Protobuf type com.hedera.hapi.node.state.entity.EntityCounts
  • Method Details

    • getNumAccounts

      public long getNumAccounts()
       *
       The number of accounts in the network.
       
      uint64 num_accounts = 1;
      Specified by:
      getNumAccounts in interface EntityCountsOrBuilder
      Returns:
      The numAccounts.
    • setNumAccounts

      public EntityCounts.Builder setNumAccounts(long value)
       *
       The number of accounts in the network.
       
      uint64 num_accounts = 1;
      Parameters:
      value - The numAccounts to set.
      Returns:
      This builder for chaining.
    • clearNumAccounts

      public EntityCounts.Builder clearNumAccounts()
       *
       The number of accounts in the network.
       
      uint64 num_accounts = 1;
      Returns:
      This builder for chaining.
    • getNumAliases

      public long getNumAliases()
       *
       The number of aliases in the network.
       
      uint64 num_aliases = 2;
      Specified by:
      getNumAliases in interface EntityCountsOrBuilder
      Returns:
      The numAliases.
    • setNumAliases

      public EntityCounts.Builder setNumAliases(long value)
       *
       The number of aliases in the network.
       
      uint64 num_aliases = 2;
      Parameters:
      value - The numAliases to set.
      Returns:
      This builder for chaining.
    • clearNumAliases

      public EntityCounts.Builder clearNumAliases()
       *
       The number of aliases in the network.
       
      uint64 num_aliases = 2;
      Returns:
      This builder for chaining.
    • getNumTokens

      public long getNumTokens()
       *
       The number of tokens in the network.
       
      uint64 num_tokens = 3;
      Specified by:
      getNumTokens in interface EntityCountsOrBuilder
      Returns:
      The numTokens.
    • setNumTokens

      public EntityCounts.Builder setNumTokens(long value)
       *
       The number of tokens in the network.
       
      uint64 num_tokens = 3;
      Parameters:
      value - The numTokens to set.
      Returns:
      This builder for chaining.
    • clearNumTokens

      public EntityCounts.Builder clearNumTokens()
       *
       The number of tokens in the network.
       
      uint64 num_tokens = 3;
      Returns:
      This builder for chaining.
    • getNumTokenRelations

      public long getNumTokenRelations()
       *
       The number of token relationships in the network.
       
      uint64 num_token_relations = 4;
      Specified by:
      getNumTokenRelations in interface EntityCountsOrBuilder
      Returns:
      The numTokenRelations.
    • setNumTokenRelations

      public EntityCounts.Builder setNumTokenRelations(long value)
       *
       The number of token relationships in the network.
       
      uint64 num_token_relations = 4;
      Parameters:
      value - The numTokenRelations to set.
      Returns:
      This builder for chaining.
    • clearNumTokenRelations

      public EntityCounts.Builder clearNumTokenRelations()
       *
       The number of token relationships in the network.
       
      uint64 num_token_relations = 4;
      Returns:
      This builder for chaining.
    • getNumNfts

      public long getNumNfts()
       *
       The number of NFTs in the network.
       
      uint64 num_nfts = 5;
      Specified by:
      getNumNfts in interface EntityCountsOrBuilder
      Returns:
      The numNfts.
    • setNumNfts

      public EntityCounts.Builder setNumNfts(long value)
       *
       The number of NFTs in the network.
       
      uint64 num_nfts = 5;
      Parameters:
      value - The numNfts to set.
      Returns:
      This builder for chaining.
    • clearNumNfts

      public EntityCounts.Builder clearNumNfts()
       *
       The number of NFTs in the network.
       
      uint64 num_nfts = 5;
      Returns:
      This builder for chaining.
    • getNumAirdrops

      public long getNumAirdrops()
       *
       The number of airdrops in the network.
       
      uint64 num_airdrops = 6;
      Specified by:
      getNumAirdrops in interface EntityCountsOrBuilder
      Returns:
      The numAirdrops.
    • setNumAirdrops

      public EntityCounts.Builder setNumAirdrops(long value)
       *
       The number of airdrops in the network.
       
      uint64 num_airdrops = 6;
      Parameters:
      value - The numAirdrops to set.
      Returns:
      This builder for chaining.
    • clearNumAirdrops

      public EntityCounts.Builder clearNumAirdrops()
       *
       The number of airdrops in the network.
       
      uint64 num_airdrops = 6;
      Returns:
      This builder for chaining.
    • getNumStakingInfos

      public long getNumStakingInfos()
       *
       The number of staking infos in the network.
       
      uint64 num_staking_infos = 7;
      Specified by:
      getNumStakingInfos in interface EntityCountsOrBuilder
      Returns:
      The numStakingInfos.
    • setNumStakingInfos

      public EntityCounts.Builder setNumStakingInfos(long value)
       *
       The number of staking infos in the network.
       
      uint64 num_staking_infos = 7;
      Parameters:
      value - The numStakingInfos to set.
      Returns:
      This builder for chaining.
    • clearNumStakingInfos

      public EntityCounts.Builder clearNumStakingInfos()
       *
       The number of staking infos in the network.
       
      uint64 num_staking_infos = 7;
      Returns:
      This builder for chaining.
    • getNumTopics

      public long getNumTopics()
       *
       The number of topics in the network.
       
      uint64 num_topics = 8;
      Specified by:
      getNumTopics in interface EntityCountsOrBuilder
      Returns:
      The numTopics.
    • setNumTopics

      public EntityCounts.Builder setNumTopics(long value)
       *
       The number of topics in the network.
       
      uint64 num_topics = 8;
      Parameters:
      value - The numTopics to set.
      Returns:
      This builder for chaining.
    • clearNumTopics

      public EntityCounts.Builder clearNumTopics()
       *
       The number of topics in the network.
       
      uint64 num_topics = 8;
      Returns:
      This builder for chaining.
    • getNumFiles

      public long getNumFiles()
       *
       The number of files in the network.
       
      uint64 num_files = 9;
      Specified by:
      getNumFiles in interface EntityCountsOrBuilder
      Returns:
      The numFiles.
    • setNumFiles

      public EntityCounts.Builder setNumFiles(long value)
       *
       The number of files in the network.
       
      uint64 num_files = 9;
      Parameters:
      value - The numFiles to set.
      Returns:
      This builder for chaining.
    • clearNumFiles

      public EntityCounts.Builder clearNumFiles()
       *
       The number of files in the network.
       
      uint64 num_files = 9;
      Returns:
      This builder for chaining.
    • getNumNodes

      public long getNumNodes()
       *
       The number of nodes in the network.
       
      uint64 num_nodes = 10;
      Specified by:
      getNumNodes in interface EntityCountsOrBuilder
      Returns:
      The numNodes.
    • setNumNodes

      public EntityCounts.Builder setNumNodes(long value)
       *
       The number of nodes in the network.
       
      uint64 num_nodes = 10;
      Parameters:
      value - The numNodes to set.
      Returns:
      This builder for chaining.
    • clearNumNodes

      public EntityCounts.Builder clearNumNodes()
       *
       The number of nodes in the network.
       
      uint64 num_nodes = 10;
      Returns:
      This builder for chaining.
    • getNumSchedules

      public long getNumSchedules()
       *
       The number of schedules in the network.
       
      uint64 num_schedules = 11;
      Specified by:
      getNumSchedules in interface EntityCountsOrBuilder
      Returns:
      The numSchedules.
    • setNumSchedules

      public EntityCounts.Builder setNumSchedules(long value)
       *
       The number of schedules in the network.
       
      uint64 num_schedules = 11;
      Parameters:
      value - The numSchedules to set.
      Returns:
      This builder for chaining.
    • clearNumSchedules

      public EntityCounts.Builder clearNumSchedules()
       *
       The number of schedules in the network.
       
      uint64 num_schedules = 11;
      Returns:
      This builder for chaining.
    • getNumContractStorageSlots

      public long getNumContractStorageSlots()
       *
       The number of contract storage slots in the network.
       
      uint64 num_contract_storage_slots = 12;
      Specified by:
      getNumContractStorageSlots in interface EntityCountsOrBuilder
      Returns:
      The numContractStorageSlots.
    • setNumContractStorageSlots

      public EntityCounts.Builder setNumContractStorageSlots(long value)
       *
       The number of contract storage slots in the network.
       
      uint64 num_contract_storage_slots = 12;
      Parameters:
      value - The numContractStorageSlots to set.
      Returns:
      This builder for chaining.
    • clearNumContractStorageSlots

      public EntityCounts.Builder clearNumContractStorageSlots()
       *
       The number of contract storage slots in the network.
       
      uint64 num_contract_storage_slots = 12;
      Returns:
      This builder for chaining.
    • getNumContractBytecodes

      public long getNumContractBytecodes()
       *
       The number of contract bytecodes in the network.
       
      uint64 num_contract_bytecodes = 13;
      Specified by:
      getNumContractBytecodes in interface EntityCountsOrBuilder
      Returns:
      The numContractBytecodes.
    • setNumContractBytecodes

      public EntityCounts.Builder setNumContractBytecodes(long value)
       *
       The number of contract bytecodes in the network.
       
      uint64 num_contract_bytecodes = 13;
      Parameters:
      value - The numContractBytecodes to set.
      Returns:
      This builder for chaining.
    • clearNumContractBytecodes

      public EntityCounts.Builder clearNumContractBytecodes()
       *
       The number of contract bytecodes in the network.
       
      uint64 num_contract_bytecodes = 13;
      Returns:
      This builder for chaining.
    • getNumHooks

      public long getNumHooks()
       *
       The number of hooks in the network.
       
      uint64 num_hooks = 14;
      Specified by:
      getNumHooks in interface EntityCountsOrBuilder
      Returns:
      The numHooks.
    • setNumHooks

      public EntityCounts.Builder setNumHooks(long value)
       *
       The number of hooks in the network.
       
      uint64 num_hooks = 14;
      Parameters:
      value - The numHooks to set.
      Returns:
      This builder for chaining.
    • clearNumHooks

      public EntityCounts.Builder clearNumHooks()
       *
       The number of hooks in the network.
       
      uint64 num_hooks = 14;
      Returns:
      This builder for chaining.
    • getNumEvmHookStorageSlots

      public long getNumEvmHookStorageSlots()
       *
       The number of EVM hook storage slots in the network.
       
      uint64 num_evm_hook_storage_slots = 15;
      Specified by:
      getNumEvmHookStorageSlots in interface EntityCountsOrBuilder
      Returns:
      The numEvmHookStorageSlots.
    • setNumEvmHookStorageSlots

      public EntityCounts.Builder setNumEvmHookStorageSlots(long value)
       *
       The number of EVM hook storage slots in the network.
       
      uint64 num_evm_hook_storage_slots = 15;
      Parameters:
      value - The numEvmHookStorageSlots to set.
      Returns:
      This builder for chaining.
    • clearNumEvmHookStorageSlots

      public EntityCounts.Builder clearNumEvmHookStorageSlots()
       *
       The number of EVM hook storage slots in the network.
       
      uint64 num_evm_hook_storage_slots = 15;
      Returns:
      This builder for chaining.
    • getNumRegisteredNodes

      public long getNumRegisteredNodes()
       *
       The number of registered nodes in the network.
       
      uint64 num_registered_nodes = 16;
      Specified by:
      getNumRegisteredNodes in interface EntityCountsOrBuilder
      Returns:
      The numRegisteredNodes.
    • setNumRegisteredNodes

      public EntityCounts.Builder setNumRegisteredNodes(long value)
       *
       The number of registered nodes in the network.
       
      uint64 num_registered_nodes = 16;
      Parameters:
      value - The numRegisteredNodes to set.
      Returns:
      This builder for chaining.
    • clearNumRegisteredNodes

      public EntityCounts.Builder clearNumRegisteredNodes()
       *
       The number of registered nodes in the network.
       
      uint64 num_registered_nodes = 16;
      Returns:
      This builder for chaining.