public static enum DescriptorProtos.FieldDescriptorProto.Type extends java.lang.Enum<DescriptorProtos.FieldDescriptorProto.Type> implements com.google.protobuf.ProtocolMessageEnum
google.protobuf.FieldDescriptorProto.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; |
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; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.FieldDescriptorProto.Type> |
internalGetValueMap() |
static DescriptorProtos.FieldDescriptorProto.Type |
valueOf(com.google.protobuf.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.
|
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_DOUBLE
TYPE_DOUBLE = 1;
0 is reserved for errors. Order is weird for historical reasons.
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_FLOAT
TYPE_FLOAT = 2;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_INT64
TYPE_INT64 = 3;
Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_UINT64
TYPE_UINT64 = 4;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_INT32
TYPE_INT32 = 5;
Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_FIXED64
TYPE_FIXED64 = 6;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_FIXED32
TYPE_FIXED32 = 7;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_BOOL
TYPE_BOOL = 8;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_STRING
TYPE_STRING = 9;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_GROUP
TYPE_GROUP = 10;
Tag-delimited aggregate.
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_MESSAGE
TYPE_MESSAGE = 11;
Length-delimited aggregate.
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_BYTES
TYPE_BYTES = 12;
New in version 2.
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_UINT32
TYPE_UINT32 = 13;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_ENUM
TYPE_ENUM = 14;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SFIXED32
TYPE_SFIXED32 = 15;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SFIXED64
TYPE_SFIXED64 = 16;
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SINT32
TYPE_SINT32 = 17;
Uses ZigZag encoding.
public static final DescriptorProtos.FieldDescriptorProto.Type TYPE_SINT64
TYPE_SINT64 = 18;
Uses ZigZag encoding.
public static final int TYPE_DOUBLE_VALUE
TYPE_DOUBLE = 1;
0 is reserved for errors. Order is weird for historical reasons.
public static final int TYPE_FLOAT_VALUE
TYPE_FLOAT = 2;
public static final int TYPE_INT64_VALUE
TYPE_INT64 = 3;
Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.
public static final int TYPE_UINT64_VALUE
TYPE_UINT64 = 4;
public static final int TYPE_INT32_VALUE
TYPE_INT32 = 5;
Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.
public static final int TYPE_FIXED64_VALUE
TYPE_FIXED64 = 6;
public static final int TYPE_FIXED32_VALUE
TYPE_FIXED32 = 7;
public static final int TYPE_BOOL_VALUE
TYPE_BOOL = 8;
public static final int TYPE_STRING_VALUE
TYPE_STRING = 9;
public static final int TYPE_GROUP_VALUE
TYPE_GROUP = 10;
Tag-delimited aggregate.
public static final int TYPE_MESSAGE_VALUE
TYPE_MESSAGE = 11;
Length-delimited aggregate.
public static final int TYPE_BYTES_VALUE
TYPE_BYTES = 12;
New in version 2.
public static final int TYPE_UINT32_VALUE
TYPE_UINT32 = 13;
public static final int TYPE_ENUM_VALUE
TYPE_ENUM = 14;
public static final int TYPE_SFIXED32_VALUE
TYPE_SFIXED32 = 15;
public static final int TYPE_SFIXED64_VALUE
TYPE_SFIXED64 = 16;
public static final int TYPE_SINT32_VALUE
TYPE_SINT32 = 17;
Uses ZigZag encoding.
public static final int TYPE_SINT64_VALUE
TYPE_SINT64 = 18;
Uses ZigZag encoding.
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 namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static DescriptorProtos.FieldDescriptorProto.Type valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.FieldDescriptorProto.Type> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.FieldDescriptorProto.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)