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

org.openlca.proto.ProtoRiskLevel Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: olca.proto

package org.openlca.proto;

/**
 * Protobuf enum {@code protolca.ProtoRiskLevel}
 */
public enum ProtoRiskLevel
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * 
   * This default option was added automatically
   * and means that no values was set.
   * 
* * UNDEFINED_RISK_LEVEL = 0; */ UNDEFINED_RISK_LEVEL(0), /** * NO_OPPORTUNITY = 1; */ NO_OPPORTUNITY(1), /** * HIGH_OPPORTUNITY = 2; */ HIGH_OPPORTUNITY(2), /** * MEDIUM_OPPORTUNITY = 3; */ MEDIUM_OPPORTUNITY(3), /** * LOW_OPPORTUNITY = 4; */ LOW_OPPORTUNITY(4), /** * NO_RISK = 5; */ NO_RISK(5), /** * VERY_LOW_RISK = 6; */ VERY_LOW_RISK(6), /** * LOW_RISK = 7; */ LOW_RISK(7), /** * MEDIUM_RISK = 8; */ MEDIUM_RISK(8), /** * HIGH_RISK = 9; */ HIGH_RISK(9), /** * VERY_HIGH_RISK = 10; */ VERY_HIGH_RISK(10), /** * NO_DATA = 11; */ NO_DATA(11), /** * NOT_APPLICABLE = 12; */ NOT_APPLICABLE(12), UNRECOGNIZED(-1), ; /** *
   * This default option was added automatically
   * and means that no values was set.
   * 
* * UNDEFINED_RISK_LEVEL = 0; */ public static final int UNDEFINED_RISK_LEVEL_VALUE = 0; /** * NO_OPPORTUNITY = 1; */ public static final int NO_OPPORTUNITY_VALUE = 1; /** * HIGH_OPPORTUNITY = 2; */ public static final int HIGH_OPPORTUNITY_VALUE = 2; /** * MEDIUM_OPPORTUNITY = 3; */ public static final int MEDIUM_OPPORTUNITY_VALUE = 3; /** * LOW_OPPORTUNITY = 4; */ public static final int LOW_OPPORTUNITY_VALUE = 4; /** * NO_RISK = 5; */ public static final int NO_RISK_VALUE = 5; /** * VERY_LOW_RISK = 6; */ public static final int VERY_LOW_RISK_VALUE = 6; /** * LOW_RISK = 7; */ public static final int LOW_RISK_VALUE = 7; /** * MEDIUM_RISK = 8; */ public static final int MEDIUM_RISK_VALUE = 8; /** * HIGH_RISK = 9; */ public static final int HIGH_RISK_VALUE = 9; /** * VERY_HIGH_RISK = 10; */ public static final int VERY_HIGH_RISK_VALUE = 10; /** * NO_DATA = 11; */ public static final int NO_DATA_VALUE = 11; /** * NOT_APPLICABLE = 12; */ public static final int NOT_APPLICABLE_VALUE = 12; 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 ProtoRiskLevel 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 ProtoRiskLevel forNumber(int value) { switch (value) { case 0: return UNDEFINED_RISK_LEVEL; case 1: return NO_OPPORTUNITY; case 2: return HIGH_OPPORTUNITY; case 3: return MEDIUM_OPPORTUNITY; case 4: return LOW_OPPORTUNITY; case 5: return NO_RISK; case 6: return VERY_LOW_RISK; case 7: return LOW_RISK; case 8: return MEDIUM_RISK; case 9: return HIGH_RISK; case 10: return VERY_HIGH_RISK; case 11: return NO_DATA; case 12: return NOT_APPLICABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ProtoRiskLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ProtoRiskLevel findValueByNumber(int number) { return ProtoRiskLevel.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.openlca.proto.Proto.getDescriptor().getEnumTypes().get(6); } private static final ProtoRiskLevel[] VALUES = values(); public static ProtoRiskLevel 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 ProtoRiskLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protolca.ProtoRiskLevel) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy