/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: RtdValue.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "RtdValue.pb-c.h"
void   rtd_value__init
                     (RtdValue         *message)
{
  static RtdValue init_value = RTD_VALUE__INIT;
  *message = init_value;
}
size_t rtd_value__get_packed_size
                     (const RtdValue *message)
{
  assert(message->base.descriptor == &rtd_value__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t rtd_value__pack
                     (const RtdValue *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &rtd_value__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t rtd_value__pack_to_buffer
                     (const RtdValue *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &rtd_value__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
RtdValue *
       rtd_value__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (RtdValue *)
     protobuf_c_message_unpack (&rtd_value__descriptor,
                                allocator, len, data);
}
void   rtd_value__free_unpacked
                     (RtdValue *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &rtd_value__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor rtd_value__field_descriptors[7] =
{
  {
    "timeStamp",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT64,
    0,   /* quantifier_offset */
    offsetof(RtdValue, timestamp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "quality",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT64,
    0,   /* quantifier_offset */
    offsetof(RtdValue, quality),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "intVal",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT64,
    offsetof(RtdValue, value_case),
    offsetof(RtdValue, intval),
    NULL,
    NULL,
    0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "dblVal",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(RtdValue, value_case),
    offsetof(RtdValue, dblval),
    NULL,
    NULL,
    0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "boolVal",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(RtdValue, value_case),
    offsetof(RtdValue, boolval),
    NULL,
    NULL,
    0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "strVal",
    6,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    offsetof(RtdValue, value_case),
    offsetof(RtdValue, strval),
    NULL,
    NULL,
    0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "bytVal",
    7,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(RtdValue, value_case),
    offsetof(RtdValue, bytval),
    NULL,
    NULL,
    0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned rtd_value__field_indices_by_name[] = {
  4,   /* field[4] = boolVal */
  6,   /* field[6] = bytVal */
  3,   /* field[3] = dblVal */
  2,   /* field[2] = intVal */
  1,   /* field[1] = quality */
  5,   /* field[5] = strVal */
  0,   /* field[0] = timeStamp */
};
static const ProtobufCIntRange rtd_value__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 7 }
};
const ProtobufCMessageDescriptor rtd_value__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "RtdValue",
  "RtdValue",
  "RtdValue",
  "",
  sizeof(RtdValue),
  7,
  rtd_value__field_descriptors,
  rtd_value__field_indices_by_name,
  1,  rtd_value__number_ranges,
  (ProtobufCMessageInit) rtd_value__init,
  NULL,NULL,NULL    /* reserved[123] */
};
