com.hedera.hapi.block.stream.output.protoc.StateIdentifier Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stream/output/state_changes.proto
package com.hedera.hapi.block.stream.output.protoc;
/**
*
**
* An informational enumeration of all known states.
* This enumeration is included here So that people know the mapping from
* integer to state "name".
* State changes are expressed in terms of changes to named states at the
* high level conceptual model of the state type like map key/values or
* queue appends. To say which state the change is on we will include an
* `integer` number for the state name. This is done for performance and
* efficiency as there will be 10s of thousands of state changes in a block.
* We use an integer, and provide this enumeration, for the following reasons.
* - If we have a extra 8-10 bytes per state change at 40-50K state changes
* per second then that is an extra 2.5-4 megabits of bandwidth. Compression
* should help a lot but that is not guaranteed.
* - When the state name is used as part of complex key in the big state
* merkle map. The smaller the key is, in bytes, the more efficient the
* database is, because more keys can fit in a single disk page.
* - When parsing keys, parsing a UTF-8 string to a Java String is a many
* times more expensive than parsing a VARINT to an integer.
* Note: This enumeration is never transmitted directly in the block stream.
* This enumeration is provided for clients to _interpret_ the value
* of the `StateChange`.`state_id` field.
*
*
* Protobuf enum {@code com.hedera.hapi.block.stream.output.StateIdentifier}
*/
public enum StateIdentifier
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
**
* A state identifier for the Topics state.
*
*
* STATE_ID_TOPICS = 0;
*/
STATE_ID_TOPICS(0),
/**
*
**
* A state identifier for the next entity Identifier.
*
*
* STATE_ID_ENTITY_ID = 1;
*/
STATE_ID_ENTITY_ID(1),
/**
*
**
* A state identifier for the Accounts state.
*
*
* STATE_ID_ACCOUNTS = 2;
*/
STATE_ID_ACCOUNTS(2),
/**
*
**
* A state identifier for account aliases.
*
*
* STATE_ID_ALIASES = 3;
*/
STATE_ID_ALIASES(3),
/**
*
**
* A state identifier for contract storage slots.
*
*
* STATE_ID_CONTRACT_STORAGE = 4;
*/
STATE_ID_CONTRACT_STORAGE(4),
/**
*
**
* A state identifier for contract bytecode.
*
*
* STATE_ID_CONTRACT_BYTECODE = 5;
*/
STATE_ID_CONTRACT_BYTECODE(5),
/**
*
**
* A state identifier for Hedera File Service (HFS).
*
*
* STATE_ID_FILES = 6;
*/
STATE_ID_FILES(6),
/**
*
**
* A state identifier for Hedera Token Service (HTS).
*
*
* STATE_ID_TOKENS = 7;
*/
STATE_ID_TOKENS(7),
/**
*
**
* A state identifier for non-fungible/unique tokens.
*
*
* STATE_ID_NFTS = 8;
*/
STATE_ID_NFTS(8),
/**
*
**
* A state identifier for token relationships.
*
*
* STATE_ID_TOKEN_RELATIONS = 9;
*/
STATE_ID_TOKEN_RELATIONS(9),
/**
*
**
* A state identifier for network staking information.
*
*
* STATE_ID_STAKING_INFO = 10;
*/
STATE_ID_STAKING_INFO(10),
/**
*
**
* A state identifier for network staking rewards.
*
*
* STATE_ID_NETWORK_REWARDS = 11;
*/
STATE_ID_NETWORK_REWARDS(11),
/**
*
**
* A state identifier for throttle usage.
*
*
* STATE_ID_THROTTLE_USAGE = 12;
*/
STATE_ID_THROTTLE_USAGE(12),
/**
*
**
* A state identifier for network congestion start times.
*
*
* STATE_ID_CONGESTION_STARTS = 13;
*/
STATE_ID_CONGESTION_STARTS(13),
/**
*
**
* A state identifier for scheduled transactions.
*
*
* STATE_ID_SCHEDULES_BY_ID = 14;
*/
STATE_ID_SCHEDULES_BY_ID(14),
/**
*
**
* A state identifier for scheduled transaction expiration.
*
*
* STATE_ID_SCHEDULES_BY_EXPIRY = 15;
*/
STATE_ID_SCHEDULES_BY_EXPIRY(15),
/**
*
**
* A state identifier for scheduled transaction deduplication.
*
*
* STATE_ID_SCHEDULES_BY_EQUALITY = 16;
*/
STATE_ID_SCHEDULES_BY_EQUALITY(16),
/**
*
**
* A state identifier for conversion rate updates.
*
*
* STATE_ID_MIDNIGHT_RATES = 17;
*/
STATE_ID_MIDNIGHT_RATES(17),
/**
*
**
* A state identifier for the network running hash(es).
*
*
* STATE_ID_RUNNING_HASHES = 18;
*/
STATE_ID_RUNNING_HASHES(18),
/**
*
**
* A state identifier for network block information.
*
*
* STATE_ID_BLOCK_INFO = 19;
*/
STATE_ID_BLOCK_INFO(19),
/**
*
**
* A state identifier for address book nodes.
*
*
* STATE_ID_NODES = 20;
*/
STATE_ID_NODES(20),
/**
*
**
* A state identifier for the next "upgrade" file.
*
*
* STATE_ID_UPGRADE_FILE = 21;
*/
STATE_ID_UPGRADE_FILE(21),
/**
*
**
* A state identifier for the hash of the next "upgrade" file.
*
*
* STATE_ID_UPGRADE_FILE_HASH = 22;
*/
STATE_ID_UPGRADE_FILE_HASH(22),
/**
*
**
* A state identifier for the next network freeze time.
*
*
* STATE_ID_FREEZE_TIME = 23;
*/
STATE_ID_FREEZE_TIME(23),
/**
*
**
* A state identifier for the block stream status singleton.
*
*
* STATE_ID_BLOCK_STREAM_INFO = 24;
*/
STATE_ID_BLOCK_STREAM_INFO(24),
/**
*
**
* A state identifier for pending airdrops.
*
*
* STATE_ID_PENDING_AIRDROPS = 25;
*/
STATE_ID_PENDING_AIRDROPS(25),
/**
*
**
* A state identifier for the platform state singleton.
*
*
* STATE_ID_PLATFORM_STATE = 26;
*/
STATE_ID_PLATFORM_STATE(26),
/**
*
**
* A state identifier for the roster state singleton.
*
*
* STATE_ID_ROSTER_STATE = 27;
*/
STATE_ID_ROSTER_STATE(27),
/**
*
**
* A state identifier for the rosters key/value map.
*
*
* STATE_ID_ROSTERS = 28;
*/
STATE_ID_ROSTERS(28),
/**
*
**
* A state identifier for the round receipts queue.
*
*
* STATE_ID_TRANSACTION_RECEIPTS_QUEUE = 126;
*/
STATE_ID_TRANSACTION_RECEIPTS_QUEUE(126),
/**
*
**
* A state for the `150` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_150 = 10001;
*/
STATE_ID_UPGRADE_DATA_150(10001),
/**
*
**
* A state for the `151` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_151 = 10002;
*/
STATE_ID_UPGRADE_DATA_151(10002),
/**
*
**
* A state for the `152` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_152 = 10003;
*/
STATE_ID_UPGRADE_DATA_152(10003),
/**
*
**
* A state for the `153` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_153 = 10004;
*/
STATE_ID_UPGRADE_DATA_153(10004),
/**
*
**
* A state for the `154` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_154 = 10005;
*/
STATE_ID_UPGRADE_DATA_154(10005),
/**
*
**
* A state for the `155` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_155 = 10006;
*/
STATE_ID_UPGRADE_DATA_155(10006),
/**
*
**
* A state for the `156` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_156 = 10007;
*/
STATE_ID_UPGRADE_DATA_156(10007),
/**
*
**
* A state for the `157` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_157 = 10008;
*/
STATE_ID_UPGRADE_DATA_157(10008),
/**
*
**
* A state for the `158` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_158 = 10009;
*/
STATE_ID_UPGRADE_DATA_158(10009),
/**
*
**
* A state for the `159` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_159 = 10010;
*/
STATE_ID_UPGRADE_DATA_159(10010),
UNRECOGNIZED(-1),
;
/**
*
**
* A state identifier for the Topics state.
*
*
* STATE_ID_TOPICS = 0;
*/
public static final int STATE_ID_TOPICS_VALUE = 0;
/**
*
**
* A state identifier for the next entity Identifier.
*
*
* STATE_ID_ENTITY_ID = 1;
*/
public static final int STATE_ID_ENTITY_ID_VALUE = 1;
/**
*
**
* A state identifier for the Accounts state.
*
*
* STATE_ID_ACCOUNTS = 2;
*/
public static final int STATE_ID_ACCOUNTS_VALUE = 2;
/**
*
**
* A state identifier for account aliases.
*
*
* STATE_ID_ALIASES = 3;
*/
public static final int STATE_ID_ALIASES_VALUE = 3;
/**
*
**
* A state identifier for contract storage slots.
*
*
* STATE_ID_CONTRACT_STORAGE = 4;
*/
public static final int STATE_ID_CONTRACT_STORAGE_VALUE = 4;
/**
*
**
* A state identifier for contract bytecode.
*
*
* STATE_ID_CONTRACT_BYTECODE = 5;
*/
public static final int STATE_ID_CONTRACT_BYTECODE_VALUE = 5;
/**
*
**
* A state identifier for Hedera File Service (HFS).
*
*
* STATE_ID_FILES = 6;
*/
public static final int STATE_ID_FILES_VALUE = 6;
/**
*
**
* A state identifier for Hedera Token Service (HTS).
*
*
* STATE_ID_TOKENS = 7;
*/
public static final int STATE_ID_TOKENS_VALUE = 7;
/**
*
**
* A state identifier for non-fungible/unique tokens.
*
*
* STATE_ID_NFTS = 8;
*/
public static final int STATE_ID_NFTS_VALUE = 8;
/**
*
**
* A state identifier for token relationships.
*
*
* STATE_ID_TOKEN_RELATIONS = 9;
*/
public static final int STATE_ID_TOKEN_RELATIONS_VALUE = 9;
/**
*
**
* A state identifier for network staking information.
*
*
* STATE_ID_STAKING_INFO = 10;
*/
public static final int STATE_ID_STAKING_INFO_VALUE = 10;
/**
*
**
* A state identifier for network staking rewards.
*
*
* STATE_ID_NETWORK_REWARDS = 11;
*/
public static final int STATE_ID_NETWORK_REWARDS_VALUE = 11;
/**
*
**
* A state identifier for throttle usage.
*
*
* STATE_ID_THROTTLE_USAGE = 12;
*/
public static final int STATE_ID_THROTTLE_USAGE_VALUE = 12;
/**
*
**
* A state identifier for network congestion start times.
*
*
* STATE_ID_CONGESTION_STARTS = 13;
*/
public static final int STATE_ID_CONGESTION_STARTS_VALUE = 13;
/**
*
**
* A state identifier for scheduled transactions.
*
*
* STATE_ID_SCHEDULES_BY_ID = 14;
*/
public static final int STATE_ID_SCHEDULES_BY_ID_VALUE = 14;
/**
*
**
* A state identifier for scheduled transaction expiration.
*
*
* STATE_ID_SCHEDULES_BY_EXPIRY = 15;
*/
public static final int STATE_ID_SCHEDULES_BY_EXPIRY_VALUE = 15;
/**
*
**
* A state identifier for scheduled transaction deduplication.
*
*
* STATE_ID_SCHEDULES_BY_EQUALITY = 16;
*/
public static final int STATE_ID_SCHEDULES_BY_EQUALITY_VALUE = 16;
/**
*
**
* A state identifier for conversion rate updates.
*
*
* STATE_ID_MIDNIGHT_RATES = 17;
*/
public static final int STATE_ID_MIDNIGHT_RATES_VALUE = 17;
/**
*
**
* A state identifier for the network running hash(es).
*
*
* STATE_ID_RUNNING_HASHES = 18;
*/
public static final int STATE_ID_RUNNING_HASHES_VALUE = 18;
/**
*
**
* A state identifier for network block information.
*
*
* STATE_ID_BLOCK_INFO = 19;
*/
public static final int STATE_ID_BLOCK_INFO_VALUE = 19;
/**
*
**
* A state identifier for address book nodes.
*
*
* STATE_ID_NODES = 20;
*/
public static final int STATE_ID_NODES_VALUE = 20;
/**
*
**
* A state identifier for the next "upgrade" file.
*
*
* STATE_ID_UPGRADE_FILE = 21;
*/
public static final int STATE_ID_UPGRADE_FILE_VALUE = 21;
/**
*
**
* A state identifier for the hash of the next "upgrade" file.
*
*
* STATE_ID_UPGRADE_FILE_HASH = 22;
*/
public static final int STATE_ID_UPGRADE_FILE_HASH_VALUE = 22;
/**
*
**
* A state identifier for the next network freeze time.
*
*
* STATE_ID_FREEZE_TIME = 23;
*/
public static final int STATE_ID_FREEZE_TIME_VALUE = 23;
/**
*
**
* A state identifier for the block stream status singleton.
*
*
* STATE_ID_BLOCK_STREAM_INFO = 24;
*/
public static final int STATE_ID_BLOCK_STREAM_INFO_VALUE = 24;
/**
*
**
* A state identifier for pending airdrops.
*
*
* STATE_ID_PENDING_AIRDROPS = 25;
*/
public static final int STATE_ID_PENDING_AIRDROPS_VALUE = 25;
/**
*
**
* A state identifier for the platform state singleton.
*
*
* STATE_ID_PLATFORM_STATE = 26;
*/
public static final int STATE_ID_PLATFORM_STATE_VALUE = 26;
/**
*
**
* A state identifier for the roster state singleton.
*
*
* STATE_ID_ROSTER_STATE = 27;
*/
public static final int STATE_ID_ROSTER_STATE_VALUE = 27;
/**
*
**
* A state identifier for the rosters key/value map.
*
*
* STATE_ID_ROSTERS = 28;
*/
public static final int STATE_ID_ROSTERS_VALUE = 28;
/**
*
**
* A state identifier for the round receipts queue.
*
*
* STATE_ID_TRANSACTION_RECEIPTS_QUEUE = 126;
*/
public static final int STATE_ID_TRANSACTION_RECEIPTS_QUEUE_VALUE = 126;
/**
*
**
* A state for the `150` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_150 = 10001;
*/
public static final int STATE_ID_UPGRADE_DATA_150_VALUE = 10001;
/**
*
**
* A state for the `151` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_151 = 10002;
*/
public static final int STATE_ID_UPGRADE_DATA_151_VALUE = 10002;
/**
*
**
* A state for the `152` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_152 = 10003;
*/
public static final int STATE_ID_UPGRADE_DATA_152_VALUE = 10003;
/**
*
**
* A state for the `153` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_153 = 10004;
*/
public static final int STATE_ID_UPGRADE_DATA_153_VALUE = 10004;
/**
*
**
* A state for the `154` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_154 = 10005;
*/
public static final int STATE_ID_UPGRADE_DATA_154_VALUE = 10005;
/**
*
**
* A state for the `155` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_155 = 10006;
*/
public static final int STATE_ID_UPGRADE_DATA_155_VALUE = 10006;
/**
*
**
* A state for the `156` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_156 = 10007;
*/
public static final int STATE_ID_UPGRADE_DATA_156_VALUE = 10007;
/**
*
**
* A state for the `157` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_157 = 10008;
*/
public static final int STATE_ID_UPGRADE_DATA_157_VALUE = 10008;
/**
*
**
* A state for the `158` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_158 = 10009;
*/
public static final int STATE_ID_UPGRADE_DATA_158_VALUE = 10009;
/**
*
**
* A state for the `159` upgrade file data
*
*
* STATE_ID_UPGRADE_DATA_159 = 10010;
*/
public static final int STATE_ID_UPGRADE_DATA_159_VALUE = 10010;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StateIdentifier valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static StateIdentifier forNumber(int value) {
switch (value) {
case 0: return STATE_ID_TOPICS;
case 1: return STATE_ID_ENTITY_ID;
case 2: return STATE_ID_ACCOUNTS;
case 3: return STATE_ID_ALIASES;
case 4: return STATE_ID_CONTRACT_STORAGE;
case 5: return STATE_ID_CONTRACT_BYTECODE;
case 6: return STATE_ID_FILES;
case 7: return STATE_ID_TOKENS;
case 8: return STATE_ID_NFTS;
case 9: return STATE_ID_TOKEN_RELATIONS;
case 10: return STATE_ID_STAKING_INFO;
case 11: return STATE_ID_NETWORK_REWARDS;
case 12: return STATE_ID_THROTTLE_USAGE;
case 13: return STATE_ID_CONGESTION_STARTS;
case 14: return STATE_ID_SCHEDULES_BY_ID;
case 15: return STATE_ID_SCHEDULES_BY_EXPIRY;
case 16: return STATE_ID_SCHEDULES_BY_EQUALITY;
case 17: return STATE_ID_MIDNIGHT_RATES;
case 18: return STATE_ID_RUNNING_HASHES;
case 19: return STATE_ID_BLOCK_INFO;
case 20: return STATE_ID_NODES;
case 21: return STATE_ID_UPGRADE_FILE;
case 22: return STATE_ID_UPGRADE_FILE_HASH;
case 23: return STATE_ID_FREEZE_TIME;
case 24: return STATE_ID_BLOCK_STREAM_INFO;
case 25: return STATE_ID_PENDING_AIRDROPS;
case 26: return STATE_ID_PLATFORM_STATE;
case 27: return STATE_ID_ROSTER_STATE;
case 28: return STATE_ID_ROSTERS;
case 126: return STATE_ID_TRANSACTION_RECEIPTS_QUEUE;
case 10001: return STATE_ID_UPGRADE_DATA_150;
case 10002: return STATE_ID_UPGRADE_DATA_151;
case 10003: return STATE_ID_UPGRADE_DATA_152;
case 10004: return STATE_ID_UPGRADE_DATA_153;
case 10005: return STATE_ID_UPGRADE_DATA_154;
case 10006: return STATE_ID_UPGRADE_DATA_155;
case 10007: return STATE_ID_UPGRADE_DATA_156;
case 10008: return STATE_ID_UPGRADE_DATA_157;
case 10009: return STATE_ID_UPGRADE_DATA_158;
case 10010: return STATE_ID_UPGRADE_DATA_159;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StateIdentifier> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StateIdentifier findValueByNumber(int number) {
return StateIdentifier.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final StateIdentifier[] VALUES = values();
public static StateIdentifier valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StateIdentifier(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.hedera.hapi.block.stream.output.StateIdentifier)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy