/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: StartHeadCleaningResponse.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "StartHeadCleaningResponse.pb-c.h" void start_head_cleaning_response__init (StartHeadCleaningResponse *message) { static const StartHeadCleaningResponse init_value = START_HEAD_CLEANING_RESPONSE__INIT; *message = init_value; } size_t start_head_cleaning_response__get_packed_size (const StartHeadCleaningResponse *message) { assert(message->base.descriptor == &start_head_cleaning_response__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t start_head_cleaning_response__pack (const StartHeadCleaningResponse *message, uint8_t *out) { assert(message->base.descriptor == &start_head_cleaning_response__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t start_head_cleaning_response__pack_to_buffer (const StartHeadCleaningResponse *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &start_head_cleaning_response__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } StartHeadCleaningResponse * start_head_cleaning_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (StartHeadCleaningResponse *) protobuf_c_message_unpack (&start_head_cleaning_response__descriptor, allocator, len, data); } void start_head_cleaning_response__free_unpacked (StartHeadCleaningResponse *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &start_head_cleaning_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor start_head_cleaning_response__field_descriptors[3] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, offsetof(StartHeadCleaningResponse, has_progress), offsetof(StartHeadCleaningResponse, progress), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, offsetof(StartHeadCleaningResponse, has_total), offsetof(StartHeadCleaningResponse, total), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(StartHeadCleaningResponse, status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned start_head_cleaning_response__field_indices_by_name[] = { 0, /* field[0] = Progress */ 2, /* field[2] = Status */ 1, /* field[1] = Total */ }; static const ProtobufCIntRange start_head_cleaning_response__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor start_head_cleaning_response__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(StartHeadCleaningResponse), 3, start_head_cleaning_response__field_descriptors, start_head_cleaning_response__field_indices_by_name, 1, start_head_cleaning_response__number_ranges, (ProtobufCMessageInit) start_head_cleaning_response__init, NULL,NULL,NULL /* reserved[123] */ };