libsignal-protocol-c  master
ProtobufCEnumDescriptor Struct Reference

#include <protobuf-c.h>

Collaboration diagram for ProtobufCEnumDescriptor:

Public Attributes

uint32_t magic
 
const char * name
 
const char * short_name
 
const char * c_name
 
const char * package_name
 
unsigned n_values
 
const ProtobufCEnumValuevalues
 
unsigned n_value_names
 
const ProtobufCEnumValueIndexvalues_by_name
 
unsigned n_value_ranges
 
const ProtobufCIntRangevalue_ranges
 
void * reserved1
 
void * reserved2
 
void * reserved3
 
void * reserved4
 

Detailed Description

Describes an enumeration as a whole, with all of its values.

Member Data Documentation

◆ c_name

const char* ProtobufCEnumDescriptor::c_name

Identifier used in generated C code.

◆ magic

uint32_t ProtobufCEnumDescriptor::magic

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

◆ n_value_names

unsigned ProtobufCEnumDescriptor::n_value_names

Number of elements in values_by_name.

◆ n_value_ranges

unsigned ProtobufCEnumDescriptor::n_value_ranges

Number of elements in value_ranges.

◆ n_values

unsigned ProtobufCEnumDescriptor::n_values

Number elements in values.

◆ name

const char* ProtobufCEnumDescriptor::name

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

◆ package_name

const char* ProtobufCEnumDescriptor::package_name

The dot-separated namespace.

◆ reserved1

void* ProtobufCEnumDescriptor::reserved1

Reserved for future use.

◆ reserved2

void* ProtobufCEnumDescriptor::reserved2

Reserved for future use.

◆ reserved3

void* ProtobufCEnumDescriptor::reserved3

Reserved for future use.

◆ reserved4

void* ProtobufCEnumDescriptor::reserved4

Reserved for future use.

◆ short_name

const char* ProtobufCEnumDescriptor::short_name

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

◆ value_ranges

const ProtobufCIntRange* ProtobufCEnumDescriptor::value_ranges

Value ranges, for faster lookups by numeric value.

◆ values

const ProtobufCEnumValue* ProtobufCEnumDescriptor::values

Array of distinct values, sorted by numeric value.

◆ values_by_name

const ProtobufCEnumValueIndex* ProtobufCEnumDescriptor::values_by_name

Array of named values, including aliases, sorted by name.


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