class FieldDescriptorLite
Defined at line 18 of file ../../third_party/protobuf/src/google/protobuf/descriptor_lite.h
Enumerations
enum Type
| Name | Value |
|---|---|
| TYPE_DOUBLE | 1 |
| TYPE_FLOAT | 2 |
| TYPE_INT64 | 3 |
| TYPE_UINT64 | 4 |
| TYPE_INT32 | 5 |
| TYPE_FIXED64 | 6 |
| TYPE_FIXED32 | 7 |
| TYPE_BOOL | 8 |
| TYPE_STRING | 9 |
| TYPE_GROUP | 10 |
| TYPE_MESSAGE | 11 |
| TYPE_BYTES | 12 |
| TYPE_UINT32 | 13 |
| TYPE_ENUM | 14 |
| TYPE_SFIXED32 | 15 |
| TYPE_SFIXED64 | 16 |
| TYPE_SINT32 | 17 |
| TYPE_SINT64 | 18 |
| MAX_TYPE | 18 |
Identifies a field type. 0 is reserved for errors.
The order is weird for historical reasons.
Types 12 and up are new in proto2.
Defined at line 23 of file ../../third_party/protobuf/src/google/protobuf/descriptor_lite.h
enum CppType
| Name | Value |
|---|---|
| CPPTYPE_INT32 | 1 |
| CPPTYPE_INT64 | 2 |
| CPPTYPE_UINT32 | 3 |
| CPPTYPE_UINT64 | 4 |
| CPPTYPE_DOUBLE | 5 |
| CPPTYPE_FLOAT | 6 |
| CPPTYPE_BOOL | 7 |
| CPPTYPE_ENUM | 8 |
| CPPTYPE_STRING | 9 |
| CPPTYPE_MESSAGE | 10 |
| MAX_CPPTYPE | 10 |
Specifies the C++ data type used to represent the field. There is a
fixed mapping from Type to CppType where each Type maps to exactly one
CppType. 0 is reserved for errors.
Defined at line 55 of file ../../third_party/protobuf/src/google/protobuf/descriptor_lite.h
enum Label
| Name | Value |
|---|---|
| LABEL_OPTIONAL | 1 |
| LABEL_REQUIRED | 2 |
| LABEL_REPEATED | 3 |
| MAX_LABEL | 3 |
Identifies whether the field is optional, required, or repeated. 0 is
reserved for errors.
Defined at line 73 of file ../../third_party/protobuf/src/google/protobuf/descriptor_lite.h
enum CppStringType
| Name | Value |
|---|---|
| kView | 1 |
| kCord | 2 |
| kString | 3 |
Defined at line 86 of file ../../third_party/protobuf/src/google/protobuf/descriptor_lite.h