public static enum Field.Kind extends Enum<Field.Kind> implements ProtocolMessageEnum
google.protobuf.Field.Kind
Kind represents a basic field type.
Enum Constant and Description |
---|
TYPE_BOOL
TYPE_BOOL = 8; |
TYPE_BYTES
TYPE_BYTES = 12; |
TYPE_DOUBLE
TYPE_DOUBLE = 1; |
TYPE_ENUM
TYPE_ENUM = 14; |
TYPE_FIXED32
TYPE_FIXED32 = 7; |
TYPE_FIXED64
TYPE_FIXED64 = 6; |
TYPE_FLOAT
TYPE_FLOAT = 2; |
TYPE_GROUP
TYPE_GROUP = 10; |
TYPE_INT32
TYPE_INT32 = 5; |
TYPE_INT64
TYPE_INT64 = 3; |
TYPE_MESSAGE
TYPE_MESSAGE = 11; |
TYPE_SFIXED32
TYPE_SFIXED32 = 15; |
TYPE_SFIXED64
TYPE_SFIXED64 = 16; |
TYPE_SINT32
TYPE_SINT32 = 17; |
TYPE_SINT64
TYPE_SINT64 = 18; |
TYPE_STRING
TYPE_STRING = 9; |
TYPE_UINT32
TYPE_UINT32 = 13; |
TYPE_UINT64
TYPE_UINT64 = 4; |
TYPE_UNKNOWN
TYPE_UNKNOWN = 0; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BOOL_VALUE
TYPE_BOOL = 8; |
static int |
TYPE_BYTES_VALUE
TYPE_BYTES = 12; |
static int |
TYPE_DOUBLE_VALUE
TYPE_DOUBLE = 1; |
static int |
TYPE_ENUM_VALUE
TYPE_ENUM = 14; |
static int |
TYPE_FIXED32_VALUE
TYPE_FIXED32 = 7; |
static int |
TYPE_FIXED64_VALUE
TYPE_FIXED64 = 6; |
static int |
TYPE_FLOAT_VALUE
TYPE_FLOAT = 2; |
static int |
TYPE_GROUP_VALUE
TYPE_GROUP = 10; |
static int |
TYPE_INT32_VALUE
TYPE_INT32 = 5; |
static int |
TYPE_INT64_VALUE
TYPE_INT64 = 3; |
static int |
TYPE_MESSAGE_VALUE
TYPE_MESSAGE = 11; |
static int |
TYPE_SFIXED32_VALUE
TYPE_SFIXED32 = 15; |
static int |
TYPE_SFIXED64_VALUE
TYPE_SFIXED64 = 16; |
static int |
TYPE_SINT32_VALUE
TYPE_SINT32 = 17; |
static int |
TYPE_SINT64_VALUE
TYPE_SINT64 = 18; |
static int |
TYPE_STRING_VALUE
TYPE_STRING = 9; |
static int |
TYPE_UINT32_VALUE
TYPE_UINT32 = 13; |
static int |
TYPE_UINT64_VALUE
TYPE_UINT64 = 4; |
static int |
TYPE_UNKNOWN_VALUE
TYPE_UNKNOWN = 0; |
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<Field.Kind> |
internalGetValueMap() |
static Field.Kind |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Field.Kind |
valueOf(int value) |
static Field.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.Kind TYPE_UNKNOWN
TYPE_UNKNOWN = 0;
Field type unknown.
public static final Field.Kind TYPE_DOUBLE
TYPE_DOUBLE = 1;
Field type double.
public static final Field.Kind TYPE_FLOAT
TYPE_FLOAT = 2;
Field type float.
public static final Field.Kind TYPE_INT64
TYPE_INT64 = 3;
Field type int64.
public static final Field.Kind TYPE_UINT64
TYPE_UINT64 = 4;
Field type uint64.
public static final Field.Kind TYPE_INT32
TYPE_INT32 = 5;
Field type int32.
public static final Field.Kind TYPE_FIXED64
TYPE_FIXED64 = 6;
Field type fixed64.
public static final Field.Kind TYPE_FIXED32
TYPE_FIXED32 = 7;
Field type fixed32.
public static final Field.Kind TYPE_BOOL
TYPE_BOOL = 8;
Field type bool.
public static final Field.Kind TYPE_STRING
TYPE_STRING = 9;
Field type string.
public static final Field.Kind TYPE_GROUP
TYPE_GROUP = 10;
Field type group (deprecated proto2 type)
public static final Field.Kind TYPE_MESSAGE
TYPE_MESSAGE = 11;
Field type message.
public static final Field.Kind TYPE_BYTES
TYPE_BYTES = 12;
Field type bytes.
public static final Field.Kind TYPE_UINT32
TYPE_UINT32 = 13;
Field type uint32.
public static final Field.Kind TYPE_ENUM
TYPE_ENUM = 14;
Field type enum.
public static final Field.Kind TYPE_SFIXED32
TYPE_SFIXED32 = 15;
Field type sfixed32.
public static final Field.Kind TYPE_SFIXED64
TYPE_SFIXED64 = 16;
Field type sfixed64.
public static final Field.Kind TYPE_SINT32
TYPE_SINT32 = 17;
Field type sint32.
public static final Field.Kind TYPE_SINT64
TYPE_SINT64 = 18;
Field type sint64.
public static final Field.Kind UNRECOGNIZED
public static final int TYPE_UNKNOWN_VALUE
TYPE_UNKNOWN = 0;
Field type unknown.
public static final int TYPE_DOUBLE_VALUE
TYPE_DOUBLE = 1;
Field type double.
public static final int TYPE_FLOAT_VALUE
TYPE_FLOAT = 2;
Field type float.
public static final int TYPE_INT64_VALUE
TYPE_INT64 = 3;
Field type int64.
public static final int TYPE_UINT64_VALUE
TYPE_UINT64 = 4;
Field type uint64.
public static final int TYPE_INT32_VALUE
TYPE_INT32 = 5;
Field type int32.
public static final int TYPE_FIXED64_VALUE
TYPE_FIXED64 = 6;
Field type fixed64.
public static final int TYPE_FIXED32_VALUE
TYPE_FIXED32 = 7;
Field type fixed32.
public static final int TYPE_BOOL_VALUE
TYPE_BOOL = 8;
Field type bool.
public static final int TYPE_STRING_VALUE
TYPE_STRING = 9;
Field type string.
public static final int TYPE_GROUP_VALUE
TYPE_GROUP = 10;
Field type group (deprecated proto2 type)
public static final int TYPE_MESSAGE_VALUE
TYPE_MESSAGE = 11;
Field type message.
public static final int TYPE_BYTES_VALUE
TYPE_BYTES = 12;
Field type bytes.
public static final int TYPE_UINT32_VALUE
TYPE_UINT32 = 13;
Field type uint32.
public static final int TYPE_ENUM_VALUE
TYPE_ENUM = 14;
Field type enum.
public static final int TYPE_SFIXED32_VALUE
TYPE_SFIXED32 = 15;
Field type sfixed32.
public static final int TYPE_SFIXED64_VALUE
TYPE_SFIXED64 = 16;
Field type sfixed64.
public static final int TYPE_SINT32_VALUE
TYPE_SINT32 = 17;
Field type sint32.
public static final int TYPE_SINT64_VALUE
TYPE_SINT64 = 18;
Field type sint64.
public static Field.Kind[] values()
for (Field.Kind c : Field.Kind.values()) System.out.println(c);
public static Field.Kind 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 Field.Kind valueOf(int value)
public static Internal.EnumLiteMap<Field.Kind> 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 Field.Kind valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2008–2015 Google. All rights reserved.