All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.protos.common.BlockMetadataIndex Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common/common.proto

package org.hyperledger.fabric.protos.common;

/**
 * 
 * This enum enlists indexes of the block metadata array
 * 
* * Protobuf enum {@code common.BlockMetadataIndex} */ public enum BlockMetadataIndex implements com.google.protobuf.ProtocolMessageEnum { /** *
   * Block metadata array position for block signatures
   * 
* * SIGNATURES = 0; */ SIGNATURES(0), /** *
   * Block metadata array position to store last configuration block sequence number
   * 
* * LAST_CONFIG = 1 [deprecated = true]; */ @java.lang.Deprecated LAST_CONFIG(1), /** *
   * Block metadata array position to store serialized bit array filter of invalid transactions
   * 
* * TRANSACTIONS_FILTER = 2; */ TRANSACTIONS_FILTER(2), /** *
   * 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]; */ @java.lang.Deprecated ORDERER(3), /** *
   * Block metadata array position to store the hash of TRANSACTIONS_FILTER, State Updates,
   * and the COMMIT_HASH of the previous block 
   * 
* * COMMIT_HASH = 4; */ COMMIT_HASH(4), UNRECOGNIZED(-1), ; /** *
   * Block metadata array position for block signatures
   * 
* * SIGNATURES = 0; */ public static final int SIGNATURES_VALUE = 0; /** *
   * Block metadata array position to store last configuration block sequence number
   * 
* * LAST_CONFIG = 1 [deprecated = true]; */ @java.lang.Deprecated public static final int LAST_CONFIG_VALUE = 1; /** *
   * Block metadata array position to store serialized bit array filter of invalid transactions
   * 
* * TRANSACTIONS_FILTER = 2; */ public static final int TRANSACTIONS_FILTER_VALUE = 2; /** *
   * 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]; */ @java.lang.Deprecated public static final int ORDERER_VALUE = 3; /** *
   * 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 int COMMIT_HASH_VALUE = 4; 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 BlockMetadataIndex 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 BlockMetadataIndex forNumber(int value) { switch (value) { case 0: return SIGNATURES; case 1: return LAST_CONFIG; case 2: return TRANSACTIONS_FILTER; case 3: return ORDERER; case 4: return COMMIT_HASH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BlockMetadataIndex> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BlockMetadataIndex findValueByNumber(int number) { return BlockMetadataIndex.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 org.hyperledger.fabric.protos.common.CommonProto.getDescriptor().getEnumTypes().get(2); } private static final BlockMetadataIndex[] VALUES = values(); public static BlockMetadataIndex 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 BlockMetadataIndex(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:common.BlockMetadataIndex) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy