libsignal-protocol-c  master
ProtobufCMessageDescriptor Struct Reference

#include <protobuf-c.h>

Collaboration diagram for ProtobufCMessageDescriptor:

Public Attributes

uint32_t magic
 
const char * name
 
const char * short_name
 
const char * c_name
 
const char * package_name
 
size_t sizeof_message
 
unsigned n_fields
 
const ProtobufCFieldDescriptorfields
 
const unsigned * fields_sorted_by_name
 
unsigned n_field_ranges
 
const ProtobufCIntRangefield_ranges
 
ProtobufCMessageInit message_init
 
void * reserved1
 
void * reserved2
 
void * reserved3
 

Detailed Description

Describes a message.

Member Data Documentation

◆ c_name

const char* ProtobufCMessageDescriptor::c_name

Identifier used in generated C code.

◆ field_ranges

const ProtobufCIntRange* ProtobufCMessageDescriptor::field_ranges

Used for looking up fields by id.

◆ fields

const ProtobufCFieldDescriptor* ProtobufCMessageDescriptor::fields

Field descriptors, sorted by tag number.

◆ fields_sorted_by_name

const unsigned* ProtobufCMessageDescriptor::fields_sorted_by_name

Used for looking up fields by name.

◆ magic

uint32_t ProtobufCMessageDescriptor::magic

Magic value checked to ensure that the API is used correctly.

◆ message_init

ProtobufCMessageInit ProtobufCMessageDescriptor::message_init

Message initialisation function.

◆ n_field_ranges

unsigned ProtobufCMessageDescriptor::n_field_ranges

Number of elements in field_ranges.

◆ n_fields

unsigned ProtobufCMessageDescriptor::n_fields

Number of elements in fields.

◆ name

const char* ProtobufCMessageDescriptor::name

The qualified name (e.g., "namespace.Type").

◆ package_name

const char* ProtobufCMessageDescriptor::package_name

The dot-separated namespace.

◆ reserved1

void* ProtobufCMessageDescriptor::reserved1

Reserved for future use.

◆ reserved2

void* ProtobufCMessageDescriptor::reserved2

Reserved for future use.

◆ reserved3

void* ProtobufCMessageDescriptor::reserved3

Reserved for future use.

◆ short_name

const char* ProtobufCMessageDescriptor::short_name

The unqualified name as given in the .proto file (e.g., "Type").

◆ sizeof_message

size_t ProtobufCMessageDescriptor::sizeof_message

Size in bytes of the C structure representing an instance of this type of message.


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