public static enum Field.Kind extends java.lang.Enum<Field.Kind> implements ProtocolMessageEnum
Basic field types.Protobuf enum
google.protobuf.Field.Kind
Enum Constant and Description |
---|
TYPE_BOOL
Field type bool.
|
TYPE_BYTES
Field type bytes.
|
TYPE_DOUBLE
Field type double.
|
TYPE_ENUM
Field type enum.
|
TYPE_FIXED32
Field type fixed32.
|
TYPE_FIXED64
Field type fixed64.
|
TYPE_FLOAT
Field type float.
|
TYPE_GROUP
Field type group.
|
TYPE_INT32
Field type int32.
|
TYPE_INT64
Field type int64.
|
TYPE_MESSAGE
Field type message.
|
TYPE_SFIXED32
Field type sfixed32.
|
TYPE_SFIXED64
Field type sfixed64.
|
TYPE_SINT32
Field type sint32.
|
TYPE_SINT64
Field type sint64.
|
TYPE_STRING
Field type string.
|
TYPE_UINT32
Field type uint32.
|
TYPE_UINT64
Field type uint64.
|
TYPE_UNKNOWN
Field type unknown.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BOOL_VALUE
Field type bool.
|
static int |
TYPE_BYTES_VALUE
Field type bytes.
|
static int |
TYPE_DOUBLE_VALUE
Field type double.
|
static int |
TYPE_ENUM_VALUE
Field type enum.
|
static int |
TYPE_FIXED32_VALUE
Field type fixed32.
|
static int |
TYPE_FIXED64_VALUE
Field type fixed64.
|
static int |
TYPE_FLOAT_VALUE
Field type float.
|
static int |
TYPE_GROUP_VALUE
Field type group.
|
static int |
TYPE_INT32_VALUE
Field type int32.
|
static int |
TYPE_INT64_VALUE
Field type int64.
|
static int |
TYPE_MESSAGE_VALUE
Field type message.
|
static int |
TYPE_SFIXED32_VALUE
Field type sfixed32.
|
static int |
TYPE_SFIXED64_VALUE
Field type sfixed64.
|
static int |
TYPE_SINT32_VALUE
Field type sint32.
|
static int |
TYPE_SINT64_VALUE
Field type sint64.
|
static int |
TYPE_STRING_VALUE
Field type string.
|
static int |
TYPE_UINT32_VALUE
Field type uint32.
|
static int |
TYPE_UINT64_VALUE
Field type uint64.
|
static int |
TYPE_UNKNOWN_VALUE
Field type unknown.
|
Modifier and Type | Method and Description |
---|---|
static Field.Kind |
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 com.google.protobuf.Internal.EnumLiteMap<Field.Kind> |
internalGetValueMap() |
static Field.Kind |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Field.Kind |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Field.Kind |
valueOf(java.lang.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
Field type unknown.
TYPE_UNKNOWN = 0;
public static final Field.Kind TYPE_DOUBLE
Field type double.
TYPE_DOUBLE = 1;
public static final Field.Kind TYPE_FLOAT
Field type float.
TYPE_FLOAT = 2;
public static final Field.Kind TYPE_INT64
Field type int64.
TYPE_INT64 = 3;
public static final Field.Kind TYPE_UINT64
Field type uint64.
TYPE_UINT64 = 4;
public static final Field.Kind TYPE_INT32
Field type int32.
TYPE_INT32 = 5;
public static final Field.Kind TYPE_FIXED64
Field type fixed64.
TYPE_FIXED64 = 6;
public static final Field.Kind TYPE_FIXED32
Field type fixed32.
TYPE_FIXED32 = 7;
public static final Field.Kind TYPE_BOOL
Field type bool.
TYPE_BOOL = 8;
public static final Field.Kind TYPE_STRING
Field type string.
TYPE_STRING = 9;
public static final Field.Kind TYPE_GROUP
Field type group. Proto2 syntax only, and deprecated.
TYPE_GROUP = 10;
public static final Field.Kind TYPE_MESSAGE
Field type message.
TYPE_MESSAGE = 11;
public static final Field.Kind TYPE_BYTES
Field type bytes.
TYPE_BYTES = 12;
public static final Field.Kind TYPE_UINT32
Field type uint32.
TYPE_UINT32 = 13;
public static final Field.Kind TYPE_ENUM
Field type enum.
TYPE_ENUM = 14;
public static final Field.Kind TYPE_SFIXED32
Field type sfixed32.
TYPE_SFIXED32 = 15;
public static final Field.Kind TYPE_SFIXED64
Field type sfixed64.
TYPE_SFIXED64 = 16;
public static final Field.Kind TYPE_SINT32
Field type sint32.
TYPE_SINT32 = 17;
public static final Field.Kind TYPE_SINT64
Field type sint64.
TYPE_SINT64 = 18;
public static final Field.Kind UNRECOGNIZED
public static final int TYPE_UNKNOWN_VALUE
Field type unknown.
TYPE_UNKNOWN = 0;
public static final int TYPE_DOUBLE_VALUE
Field type double.
TYPE_DOUBLE = 1;
public static final int TYPE_FLOAT_VALUE
Field type float.
TYPE_FLOAT = 2;
public static final int TYPE_INT64_VALUE
Field type int64.
TYPE_INT64 = 3;
public static final int TYPE_UINT64_VALUE
Field type uint64.
TYPE_UINT64 = 4;
public static final int TYPE_INT32_VALUE
Field type int32.
TYPE_INT32 = 5;
public static final int TYPE_FIXED64_VALUE
Field type fixed64.
TYPE_FIXED64 = 6;
public static final int TYPE_FIXED32_VALUE
Field type fixed32.
TYPE_FIXED32 = 7;
public static final int TYPE_BOOL_VALUE
Field type bool.
TYPE_BOOL = 8;
public static final int TYPE_STRING_VALUE
Field type string.
TYPE_STRING = 9;
public static final int TYPE_GROUP_VALUE
Field type group. Proto2 syntax only, and deprecated.
TYPE_GROUP = 10;
public static final int TYPE_MESSAGE_VALUE
Field type message.
TYPE_MESSAGE = 11;
public static final int TYPE_BYTES_VALUE
Field type bytes.
TYPE_BYTES = 12;
public static final int TYPE_UINT32_VALUE
Field type uint32.
TYPE_UINT32 = 13;
public static final int TYPE_ENUM_VALUE
Field type enum.
TYPE_ENUM = 14;
public static final int TYPE_SFIXED32_VALUE
Field type sfixed32.
TYPE_SFIXED32 = 15;
public static final int TYPE_SFIXED64_VALUE
Field type sfixed64.
TYPE_SFIXED64 = 16;
public static final int TYPE_SINT32_VALUE
Field type sint32.
TYPE_SINT32 = 17;
public static final int TYPE_SINT64_VALUE
Field type sint64.
TYPE_SINT64 = 18;
public static Field.Kind[] values()
for (Field.Kind c : Field.Kind.values()) System.out.println(c);
public static Field.Kind 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 nullpublic final int getNumber()
ProtocolMessageEnum
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Field.Kind valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Field.Kind forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.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)