libsignal-protocol-c
master
|
#include <protobuf-c.h>
Public Attributes | |
const char * | name |
uint32_t | id |
ProtobufCLabel | label |
ProtobufCType | type |
unsigned | quantifier_offset |
unsigned | offset |
const void * | descriptor |
const void * | default_value |
uint32_t | flags |
unsigned | reserved_flags |
void * | reserved2 |
void * | reserved3 |
Describes a single field in a message.
const void* ProtobufCFieldDescriptor::default_value |
The default value for this field, if defined. May be NULL.
const void* ProtobufCFieldDescriptor::descriptor |
A type-specific descriptor.
If type
is PROTOBUF_C_TYPE_ENUM
, then descriptor
points to the corresponding ProtobufCEnumDescriptor
.
If type
is PROTOBUF_C_TYPE_MESSAGE
, then descriptor
points to the corresponding ProtobufCMessageDescriptor
.
Otherwise this field is NULL.
uint32_t ProtobufCFieldDescriptor::flags |
A flag word. Zero or more of the bits defined in the ProtobufCFieldFlag
enum may be set.
uint32_t ProtobufCFieldDescriptor::id |
Tag value of the field as given in the .proto file.
ProtobufCLabel ProtobufCFieldDescriptor::label |
Whether the field is REQUIRED
, OPTIONAL
, or REPEATED
.
const char* ProtobufCFieldDescriptor::name |
Name of the field as given in the .proto file.
unsigned ProtobufCFieldDescriptor::offset |
The offset in bytes into the message's C structure for the member itself.
unsigned ProtobufCFieldDescriptor::quantifier_offset |
The offset in bytes of the message's C structure's quantifier field (the has_MEMBER
field for optional members or the n_MEMBER
field for repeated members or the case enum for oneofs).
void* ProtobufCFieldDescriptor::reserved2 |
Reserved for future use.
void* ProtobufCFieldDescriptor::reserved3 |
Reserved for future use.
unsigned ProtobufCFieldDescriptor::reserved_flags |
Reserved for future use.
ProtobufCType ProtobufCFieldDescriptor::type |
The type of the field.