public enum BlockMetadataIndex extends Enum<BlockMetadataIndex> implements com.google.protobuf.ProtocolMessageEnum
This enum enlists indexes of the block metadata arrayProtobuf enum
common.BlockMetadataIndex
Enum Constant and Description |
---|
COMMIT_HASH
Block metadata array position to store the hash of TRANSACTIONS_FILTER, State Updates,
and the COMMIT_HASH of the previous block
|
LAST_CONFIG
Deprecated.
|
ORDERER
Deprecated.
|
SIGNATURES
Block metadata array position for block signatures
|
TRANSACTIONS_FILTER
Block metadata array position to store serialized bit array filter of invalid transactions
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
COMMIT_HASH_VALUE
Block metadata array position to store the hash of TRANSACTIONS_FILTER, State Updates,
and the COMMIT_HASH of the previous block
|
static int |
LAST_CONFIG_VALUE
Deprecated.
|
static int |
ORDERER_VALUE
Deprecated.
|
static int |
SIGNATURES_VALUE
Block metadata array position for block signatures
|
static int |
TRANSACTIONS_FILTER_VALUE
Block metadata array position to store serialized bit array filter of invalid transactions
|
Modifier and Type | Method and Description |
---|---|
static BlockMetadataIndex |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<BlockMetadataIndex> |
internalGetValueMap() |
static BlockMetadataIndex |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static BlockMetadataIndex |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BlockMetadataIndex |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockMetadataIndex[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockMetadataIndex SIGNATURES
Block metadata array position for block signatures
SIGNATURES = 0;
@Deprecated public static final BlockMetadataIndex LAST_CONFIG
Block metadata array position to store last configuration block sequence number
LAST_CONFIG = 1 [deprecated = true];
public static final BlockMetadataIndex TRANSACTIONS_FILTER
Block metadata array position to store serialized bit array filter of invalid transactions
TRANSACTIONS_FILTER = 2;
@Deprecated public static final BlockMetadataIndex ORDERER
Block metadata array position to store operational metadata for orderers e.g. For Kafka, this is where we store the last offset written to the local ledger
ORDERER = 3 [deprecated = true];
public static final BlockMetadataIndex COMMIT_HASH
Block metadata array position to store the hash of TRANSACTIONS_FILTER, State Updates, and the COMMIT_HASH of the previous block
COMMIT_HASH = 4;
public static final BlockMetadataIndex UNRECOGNIZED
public static final int SIGNATURES_VALUE
Block metadata array position for block signatures
SIGNATURES = 0;
@Deprecated public static final int LAST_CONFIG_VALUE
Block metadata array position to store last configuration block sequence number
LAST_CONFIG = 1 [deprecated = true];
public static final int TRANSACTIONS_FILTER_VALUE
Block metadata array position to store serialized bit array filter of invalid transactions
TRANSACTIONS_FILTER = 2;
@Deprecated public static final int ORDERER_VALUE
Block metadata array position to store operational metadata for orderers e.g. For Kafka, this is where we store the last offset written to the local ledger
ORDERER = 3 [deprecated = true];
public static final int COMMIT_HASH_VALUE
Block metadata array position to store the hash of TRANSACTIONS_FILTER, State Updates, and the COMMIT_HASH of the previous block
COMMIT_HASH = 4;
public static BlockMetadataIndex[] values()
for (BlockMetadataIndex c : BlockMetadataIndex.values()) System.out.println(c);
public static BlockMetadataIndex valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static BlockMetadataIndex valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static BlockMetadataIndex forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<BlockMetadataIndex> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static BlockMetadataIndex valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022. All rights reserved.