/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: ValueComponentState.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "ValueComponentState.pb-c.h" void value_component_state__init (ValueComponentState *message) { static const ValueComponentState init_value = VALUE_COMPONENT_STATE__INIT; *message = init_value; } size_t value_component_state__get_packed_size (const ValueComponentState *message) { assert(message->base.descriptor == &value_component_state__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t value_component_state__pack (const ValueComponentState *message, uint8_t *out) { assert(message->base.descriptor == &value_component_state__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t value_component_state__pack_to_buffer (const ValueComponentState *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &value_component_state__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } ValueComponentState * value_component_state__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (ValueComponentState *) protobuf_c_message_unpack (&value_component_state__descriptor, allocator, len, data); } void value_component_state__free_unpacked (ValueComponentState *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &value_component_state__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor value_component_state__field_descriptors[2] = { { "Component", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(ValueComponentState, has_component), offsetof(ValueComponentState, component), &value_component__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Value", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, offsetof(ValueComponentState, has_value), offsetof(ValueComponentState, value), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned value_component_state__field_indices_by_name[] = { 0, /* field[0] = Component */ 1, /* field[1] = Value */ }; static const ProtobufCIntRange value_component_state__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor value_component_state__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "ValueComponentState", "ValueComponentState", "ValueComponentState", "", sizeof(ValueComponentState), 2, value_component_state__field_descriptors, value_component_state__field_indices_by_name, 1, value_component_state__number_ranges, (ProtobufCMessageInit) value_component_state__init, NULL,NULL,NULL /* reserved[123] */ };