
org.sonar.scanner.protocol.Constants Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: constants.proto
package org.sonar.scanner.protocol;
public final class Constants {
private Constants() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code Severity}
*/
public enum Severity
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSET_SEVERITY = 0;
*/
UNSET_SEVERITY(0, 0),
/**
* INFO = 1;
*/
INFO(1, 1),
/**
* MINOR = 2;
*/
MINOR(2, 2),
/**
* MAJOR = 3;
*/
MAJOR(3, 3),
/**
* CRITICAL = 4;
*/
CRITICAL(4, 4),
/**
* BLOCKER = 5;
*/
BLOCKER(5, 5),
UNRECOGNIZED(-1, -1),
;
/**
* UNSET_SEVERITY = 0;
*/
public static final int UNSET_SEVERITY_VALUE = 0;
/**
* INFO = 1;
*/
public static final int INFO_VALUE = 1;
/**
* MINOR = 2;
*/
public static final int MINOR_VALUE = 2;
/**
* MAJOR = 3;
*/
public static final int MAJOR_VALUE = 3;
/**
* CRITICAL = 4;
*/
public static final int CRITICAL_VALUE = 4;
/**
* BLOCKER = 5;
*/
public static final int BLOCKER_VALUE = 5;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
public static Severity valueOf(int value) {
switch (value) {
case 0: return UNSET_SEVERITY;
case 1: return INFO;
case 2: return MINOR;
case 3: return MAJOR;
case 4: return CRITICAL;
case 5: return BLOCKER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Severity> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Severity findValueByNumber(int number) {
return Severity.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.sonar.scanner.protocol.Constants.getDescriptor().getEnumTypes().get(0);
}
private static final Severity[] VALUES = values();
public static Severity 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 index;
private final int value;
private Severity(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Severity)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\017constants.proto*Y\n\010Severity\022\022\n\016UNSET_S" +
"EVERITY\020\000\022\010\n\004INFO\020\001\022\t\n\005MINOR\020\002\022\t\n\005MAJOR\020" +
"\003\022\014\n\010CRITICAL\020\004\022\013\n\007BLOCKER\020\005B\036\n\032org.sona" +
"r.scanner.protocolH\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy