public static enum DescriptorProtos.FieldDescriptorProto.Type extends Enum<DescriptorProtos.FieldDescriptorProto.Type> implements ProtocolMessageEnum
Enum Constant and Description |
---|
TYPE_BOOL |
TYPE_BYTES |
TYPE_DOUBLE |
TYPE_ENUM |
TYPE_FIXED32 |
TYPE_FIXED64 |
TYPE_FLOAT |
TYPE_GROUP |
TYPE_INT32 |
TYPE_INT64 |
TYPE_MESSAGE |
TYPE_SFIXED32 |
TYPE_SFIXED64 |
TYPE_SINT32 |
TYPE_SINT64 |
TYPE_STRING |
TYPE_UINT32 |
TYPE_UINT64 |
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BOOL_VALUE |
static int |
TYPE_BYTES_VALUE |
static int |
TYPE_DOUBLE_VALUE |
static int |
TYPE_ENUM_VALUE |
static int |
TYPE_FIXED32_VALUE |
static int |
TYPE_FIXED64_VALUE |
static int |
TYPE_FLOAT_VALUE |
static int |
TYPE_GROUP_VALUE |
static int |
TYPE_INT32_VALUE |
static int |
TYPE_INT64_VALUE |
static int |
TYPE_MESSAGE_VALUE |
static int |
TYPE_SFIXED32_VALUE |
static int |
TYPE_SFIXED64_VALUE |
static int |
TYPE_SINT32_VALUE |
static int |
TYPE_SINT64_VALUE |
static int |
TYPE_STRING_VALUE |
static int |
TYPE_UINT32_VALUE |
static int |
TYPE_UINT64_VALUE |
Modifier and Type | Method and Description |
---|---|
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.FieldDescriptorProto.Type> |
internalGetValueMap() |
static DescriptorProtos.FieldDescriptorProto.Type |
valueOf(Descriptors.EnumValueDescriptor desc) |
static DescriptorProtos.FieldDescriptorProto.Type |
valueOf(int value) |
static DescriptorProtos.FieldDescriptorProto.Type |
valueOf(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.
|
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
public static final int TYPE_DOUBLE_VALUE
public static final int TYPE_FLOAT_VALUE
public static final int TYPE_INT64_VALUE
public static final int TYPE_UINT64_VALUE
public static final int TYPE_INT32_VALUE
public static final int TYPE_FIXED64_VALUE
public static final int TYPE_FIXED32_VALUE
public static final int TYPE_BOOL_VALUE
public static final int TYPE_STRING_VALUE
public static final int TYPE_GROUP_VALUE
public static final int TYPE_MESSAGE_VALUE
public static final int TYPE_BYTES_VALUE
public static final int TYPE_UINT32_VALUE
public static final int TYPE_ENUM_VALUE
public static final int TYPE_SFIXED32_VALUE
public static final int TYPE_SFIXED64_VALUE
public static final int TYPE_SINT32_VALUE
public static final int TYPE_SINT64_VALUE
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(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()
ProtocolMessageEnum
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
public static DescriptorProtos.FieldDescriptorProto.Type valueOf(int value)
public static Internal.EnumLiteMap<DescriptorProtos.FieldDescriptorProto.Type> internalGetValueMap()
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)
Copyright © 2008-2013. All Rights Reserved.