public static enum Descriptors.FieldDescriptor.JavaType extends java.lang.Enum<Descriptors.FieldDescriptor.JavaType>
Enum Constant and Description |
---|
BOOLEAN |
BYTE_STRING |
DOUBLE |
ENUM |
FLOAT |
INT |
LONG |
MESSAGE |
STRING |
Modifier and Type | Method and Description |
---|---|
static Descriptors.FieldDescriptor.JavaType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Descriptors.FieldDescriptor.JavaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Descriptors.FieldDescriptor.JavaType INT
public static final Descriptors.FieldDescriptor.JavaType LONG
public static final Descriptors.FieldDescriptor.JavaType FLOAT
public static final Descriptors.FieldDescriptor.JavaType DOUBLE
public static final Descriptors.FieldDescriptor.JavaType BOOLEAN
public static final Descriptors.FieldDescriptor.JavaType STRING
public static final Descriptors.FieldDescriptor.JavaType BYTE_STRING
public static final Descriptors.FieldDescriptor.JavaType ENUM
public static final Descriptors.FieldDescriptor.JavaType MESSAGE
public static Descriptors.FieldDescriptor.JavaType[] values()
for (Descriptors.FieldDescriptor.JavaType c : Descriptors.FieldDescriptor.JavaType.values()) System.out.println(c);
public static Descriptors.FieldDescriptor.JavaType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.