public static enum DescriptorProtos.FeatureSet.JsonFormat extends Enum<DescriptorProtos.FeatureSet.JsonFormat> implements ProtocolMessageEnum
google.protobuf.FeatureSet.JsonFormat| Enum Constant and Description |
|---|
ALLOW
ALLOW = 1; |
JSON_FORMAT_UNKNOWN
JSON_FORMAT_UNKNOWN = 0; |
LEGACY_BEST_EFFORT
LEGACY_BEST_EFFORT = 2; |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_VALUE
ALLOW = 1; |
static int |
JSON_FORMAT_UNKNOWN_VALUE
JSON_FORMAT_UNKNOWN = 0; |
static int |
LEGACY_BEST_EFFORT_VALUE
LEGACY_BEST_EFFORT = 2; |
| Modifier and Type | Method and Description |
|---|---|
static DescriptorProtos.FeatureSet.JsonFormat |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc.
|
int |
getNumber()
Return the value's numeric value as defined in the .proto file.
|
Descriptors.EnumValueDescriptor |
getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type.
|
static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.JsonFormat> |
internalGetValueMap() |
static DescriptorProtos.FeatureSet.JsonFormat |
valueOf(Descriptors.EnumValueDescriptor desc) |
static DescriptorProtos.FeatureSet.JsonFormat |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DescriptorProtos.FeatureSet.JsonFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DescriptorProtos.FeatureSet.JsonFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DescriptorProtos.FeatureSet.JsonFormat JSON_FORMAT_UNKNOWN
JSON_FORMAT_UNKNOWN = 0;public static final DescriptorProtos.FeatureSet.JsonFormat ALLOW
ALLOW = 1;public static final DescriptorProtos.FeatureSet.JsonFormat LEGACY_BEST_EFFORT
LEGACY_BEST_EFFORT = 2;public static final int JSON_FORMAT_UNKNOWN_VALUE
JSON_FORMAT_UNKNOWN = 0;public static final int ALLOW_VALUE
ALLOW = 1;public static final int LEGACY_BEST_EFFORT_VALUE
LEGACY_BEST_EFFORT = 2;public static DescriptorProtos.FeatureSet.JsonFormat[] values()
for (DescriptorProtos.FeatureSet.JsonFormat c : DescriptorProtos.FeatureSet.JsonFormat.values()) System.out.println(c);
public static DescriptorProtos.FeatureSet.JsonFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
ProtocolMessageEnumgetNumber in interface Internal.EnumLitegetNumber in interface ProtocolMessageEnum@Deprecated public static DescriptorProtos.FeatureSet.JsonFormat valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DescriptorProtos.FeatureSet.JsonFormat forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.JsonFormat> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnumgetValueDescriptor in interface ProtocolMessageEnumpublic final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnumgetDescriptorForType in interface ProtocolMessageEnumpublic static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.FeatureSet.JsonFormat valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2008–2025. All rights reserved.