
org.glowroot.agent.shaded.google.protobuf.Syntax Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/type.proto
package org.glowroot.agent.shaded.google.protobuf;
/**
* Protobuf enum {@code google.protobuf.Syntax}
*
*
* Syntax specifies the syntax in which a service element was defined.
*
*/
public enum Syntax
implements org.glowroot.agent.shaded.google.protobuf.ProtocolMessageEnum {
/**
* SYNTAX_PROTO2 = 0;
*
*
* Syntax "proto2"
*
*/
SYNTAX_PROTO2(0, 0),
/**
* SYNTAX_PROTO3 = 1;
*
*
* Syntax "proto3"
*
*/
SYNTAX_PROTO3(1, 1),
UNRECOGNIZED(-1, -1),
;
/**
* SYNTAX_PROTO2 = 0;
*
*
* Syntax "proto2"
*
*/
public static final int SYNTAX_PROTO2_VALUE = 0;
/**
* SYNTAX_PROTO3 = 1;
*
*
* Syntax "proto3"
*
*/
public static final int SYNTAX_PROTO3_VALUE = 1;
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 Syntax valueOf(int value) {
switch (value) {
case 0: return SYNTAX_PROTO2;
case 1: return SYNTAX_PROTO3;
default: return null;
}
}
public static org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap<
Syntax> internalValueMap =
new org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap() {
public Syntax findValueByNumber(int number) {
return Syntax.valueOf(number);
}
};
public final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.glowroot.agent.shaded.google.protobuf.TypeProto.getDescriptor()
.getEnumTypes().get(0);
}
private static final Syntax[] VALUES = values();
public static Syntax valueOf(
org.glowroot.agent.shaded.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 Syntax(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.protobuf.Syntax)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy