|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DescriptorProtos.FieldDescriptorProto.Type> com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type
public static enum DescriptorProtos.FieldDescriptorProto.Type
Method Summary | |
---|---|
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 DescriptorProtos.FieldDescriptorProto.Type |
valueOf(Descriptors.EnumValueDescriptor desc)
|
static DescriptorProtos.FieldDescriptorProto.Type |
valueOf(int value)
|
static DescriptorProtos.FieldDescriptorProto.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DescriptorProtos.FieldDescriptorProto.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_DOUBLE
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_FLOAT
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_INT64
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_UINT64
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_INT32
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_FIXED64
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_FIXED32
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_BOOL
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_STRING
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_GROUP
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_MESSAGE
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_BYTES
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_UINT32
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_ENUM
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SFIXED32
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SFIXED64
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SINT32
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SINT64
Method Detail |
---|
public static DescriptorProtos.FieldDescriptorProto.Type[] values()
for (DescriptorProtos.FieldDescriptorProto.Type c : DescriptorProtos.FieldDescriptorProto.Type.values()) System.out.println(c);
public static DescriptorProtos.FieldDescriptorProto.Type 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 name
java.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
ProtocolMessageEnum
getNumber
in interface ProtocolMessageEnum
public static DescriptorProtos.FieldDescriptorProto.Type valueOf(int value)
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.FieldDescriptorProto.Type valueOf(Descriptors.EnumValueDescriptor desc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |