org.openlca.proto.ProtoParameterScope Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: olca.proto
package org.openlca.proto;
/**
*
* The possible scopes of parameters. Parameters can be defined globally, in
* processes, or impact categories. They can be redefined in calculation setups
* on the project and product system level, but the initial definition is
* always only global, in a process, or an LCIA category.
*
*
* Protobuf enum {@code protolca.ProtoParameterScope}
*/
public enum ProtoParameterScope
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* This default option was added automatically
* and means that no values was set.
*
*
* UNDEFINED_PARAMETER_SCOPE = 0;
*/
UNDEFINED_PARAMETER_SCOPE(0),
/**
*
* Indicates that the evaluation scope of a parameter is the process where it
* is defined.
*
*
* PROCESS_SCOPE = 1;
*/
PROCESS_SCOPE(1),
/**
*
* Indicates that the evaluation scope of a parameter is the impact category
* where it is defined.
*
*
* IMPACT_SCOPE = 2;
*/
IMPACT_SCOPE(2),
/**
*
* Indicates that the evaluation scope of a parameter is the global scope.
*
*
* GLOBAL_SCOPE = 3;
*/
GLOBAL_SCOPE(3),
UNRECOGNIZED(-1),
;
/**
*
* This default option was added automatically
* and means that no values was set.
*
*
* UNDEFINED_PARAMETER_SCOPE = 0;
*/
public static final int UNDEFINED_PARAMETER_SCOPE_VALUE = 0;
/**
*
* Indicates that the evaluation scope of a parameter is the process where it
* is defined.
*
*
* PROCESS_SCOPE = 1;
*/
public static final int PROCESS_SCOPE_VALUE = 1;
/**
*
* Indicates that the evaluation scope of a parameter is the impact category
* where it is defined.
*
*
* IMPACT_SCOPE = 2;
*/
public static final int IMPACT_SCOPE_VALUE = 2;
/**
*
* Indicates that the evaluation scope of a parameter is the global scope.
*
*
* GLOBAL_SCOPE = 3;
*/
public static final int GLOBAL_SCOPE_VALUE = 3;
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 ProtoParameterScope 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 ProtoParameterScope forNumber(int value) {
switch (value) {
case 0: return UNDEFINED_PARAMETER_SCOPE;
case 1: return PROCESS_SCOPE;
case 2: return IMPACT_SCOPE;
case 3: return GLOBAL_SCOPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ProtoParameterScope> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProtoParameterScope findValueByNumber(int number) {
return ProtoParameterScope.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(4);
}
private static final ProtoParameterScope[] VALUES = values();
public static ProtoParameterScope 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 ProtoParameterScope(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protolca.ProtoParameterScope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy