/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: ThreadParameters.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "ThreadParameters.pb-c.h" void thread_parameters__init (ThreadParameters *message) { static const ThreadParameters init_value = THREAD_PARAMETERS__INIT; *message = init_value; } size_t thread_parameters__get_packed_size (const ThreadParameters *message) { assert(message->base.descriptor == &thread_parameters__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t thread_parameters__pack (const ThreadParameters *message, uint8_t *out) { assert(message->base.descriptor == &thread_parameters__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t thread_parameters__pack_to_buffer (const ThreadParameters *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &thread_parameters__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } ThreadParameters * thread_parameters__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (ThreadParameters *) protobuf_c_message_unpack (&thread_parameters__descriptor, allocator, len, data); } void thread_parameters__free_unpacked (ThreadParameters *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &thread_parameters__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor thread_parameters__field_descriptors[10] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_feederp), offsetof(ThreadParameters, feederp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_feederi), offsetof(ThreadParameters, feederi), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_feederd), offsetof(ThreadParameters, feederd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_pullerp), offsetof(ThreadParameters, pullerp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_pulleri), offsetof(ThreadParameters, pulleri), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_pullerd), offsetof(ThreadParameters, pullerd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_winderp), offsetof(ThreadParameters, winderp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_winderi), offsetof(ThreadParameters, winderi), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(ThreadParameters, has_winderd), offsetof(ThreadParameters, winderd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 10, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(ThreadParameters, has_bypassrockers), offsetof(ThreadParameters, bypassrockers), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned thread_parameters__field_indices_by_name[] = { 9, /* field[9] = BypassRockers */ 2, /* field[2] = FeederD */ 1, /* field[1] = FeederI */ 0, /* field[0] = FeederP */ 5, /* field[5] = PullerD */ 4, /* field[4] = PullerI */ 3, /* field[3] = PullerP */ 8, /* field[8] = WinderD */ 7, /* field[7] = WinderI */ 6, /* field[6] = WinderP */ }; static const ProtobufCIntRange thread_parameters__number_ranges[1 + 1] = { { 1, 0 }, { 0, 10 } }; const ProtobufCMessageDescriptor thread_parameters__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(ThreadParameters), 10, thread_parameters__field_descriptors, thread_parameters__field_indices_by_name, 1, thread_parameters__number_ranges, (ProtobufCMessageInit) thread_parameters__init, NULL,NULL,NULL /* reserved[123] */ };