myopcualearning/processvalue.pb-c.c

145 lines
4.5 KiB
C

/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: processvalue.proto */
/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif
#include "processvalue.pb-c.h"
void krohne__process_value__init
(Krohne__ProcessValue *message)
{
static Krohne__ProcessValue init_value = KROHNE__PROCESS_VALUE__INIT;
*message = init_value;
}
size_t krohne__process_value__get_packed_size
(const Krohne__ProcessValue *message)
{
assert(message->base.descriptor == &krohne__process_value__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t krohne__process_value__pack
(const Krohne__ProcessValue *message,
uint8_t *out)
{
assert(message->base.descriptor == &krohne__process_value__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t krohne__process_value__pack_to_buffer
(const Krohne__ProcessValue *message,
ProtobufCBuffer *buffer)
{
assert(message->base.descriptor == &krohne__process_value__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Krohne__ProcessValue *
krohne__process_value__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (Krohne__ProcessValue *)
protobuf_c_message_unpack (&krohne__process_value__descriptor,
allocator, len, data);
}
void krohne__process_value__free_unpacked
(Krohne__ProcessValue *message,
ProtobufCAllocator *allocator)
{
assert(message->base.descriptor == &krohne__process_value__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCEnumValue krohne__process_value__status_type__enum_values_by_number[2] =
{
{ "valid", "KROHNE__PROCESS_VALUE__STATUS_TYPE__valid", 0 },
{ "invalid", "KROHNE__PROCESS_VALUE__STATUS_TYPE__invalid", 1 },
};
static const ProtobufCIntRange krohne__process_value__status_type__value_ranges[] = {
{0, 0},{0, 2}
};
static const ProtobufCEnumValueIndex krohne__process_value__status_type__enum_values_by_name[2] =
{
{ "invalid", 1 },
{ "valid", 0 },
};
const ProtobufCEnumDescriptor krohne__process_value__status_type__descriptor =
{
PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
"Krohne.processValue.statusType",
"statusType",
"Krohne__ProcessValue__StatusType",
"Krohne",
2,
krohne__process_value__status_type__enum_values_by_number,
2,
krohne__process_value__status_type__enum_values_by_name,
1,
krohne__process_value__status_type__value_ranges,
NULL,NULL,NULL,NULL /* reserved[1234] */
};
static const ProtobufCFieldDescriptor krohne__process_value__field_descriptors[3] =
{
{
"value",
1,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_DOUBLE,
0, /* quantifier_offset */
offsetof(Krohne__ProcessValue, value),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"unit",
2,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_INT32,
0, /* quantifier_offset */
offsetof(Krohne__ProcessValue, unit),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"status",
3,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_ENUM,
0, /* quantifier_offset */
offsetof(Krohne__ProcessValue, status),
&krohne__process_value__status_type__descriptor,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned krohne__process_value__field_indices_by_name[] = {
2, /* field[2] = status */
1, /* field[1] = unit */
0, /* field[0] = value */
};
static const ProtobufCIntRange krohne__process_value__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 3 }
};
const ProtobufCMessageDescriptor krohne__process_value__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
"Krohne.processValue",
"ProcessValue",
"Krohne__ProcessValue",
"Krohne",
sizeof(Krohne__ProcessValue),
3,
krohne__process_value__field_descriptors,
krohne__process_value__field_indices_by_name,
1, krohne__process_value__number_ranges,
(ProtobufCMessageInit) krohne__process_value__init,
NULL,NULL,NULL /* reserved[123] */
};