libsignal-protocol-c  master
ProtobufCFieldDescriptor Struct Reference

#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
 

Detailed Description

Describes a single field in a message.

Member Data Documentation

◆ default_value

const void* ProtobufCFieldDescriptor::default_value

The default value for this field, if defined. May be NULL.

◆ descriptor

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.

◆ flags

uint32_t ProtobufCFieldDescriptor::flags

A flag word. Zero or more of the bits defined in the ProtobufCFieldFlag enum may be set.

◆ id

uint32_t ProtobufCFieldDescriptor::id

Tag value of the field as given in the .proto file.

◆ label

ProtobufCLabel ProtobufCFieldDescriptor::label

Whether the field is REQUIRED, OPTIONAL, or REPEATED.

◆ name

const char* ProtobufCFieldDescriptor::name

Name of the field as given in the .proto file.

◆ offset

unsigned ProtobufCFieldDescriptor::offset

The offset in bytes into the message's C structure for the member itself.

◆ quantifier_offset

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).

◆ reserved2

void* ProtobufCFieldDescriptor::reserved2

Reserved for future use.

◆ reserved3

void* ProtobufCFieldDescriptor::reserved3

Reserved for future use.

◆ reserved_flags

unsigned ProtobufCFieldDescriptor::reserved_flags

Reserved for future use.

◆ type

ProtobufCType ProtobufCFieldDescriptor::type

The type of the field.


The documentation for this struct was generated from the following file: