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

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

#include "ValueSequence.pb-c.h"
void   named_value__init
                     (NamedValue         *message)
{
  static NamedValue init_value = NAMED_VALUE__INIT;
  *message = init_value;
}
size_t named_value__get_packed_size
                     (const NamedValue *message)
{
  assert(message->base.descriptor == &named_value__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t named_value__pack
                     (const NamedValue *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &named_value__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t named_value__pack_to_buffer
                     (const NamedValue *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &named_value__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
NamedValue *
       named_value__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (NamedValue *)
     protobuf_c_message_unpack (&named_value__descriptor,
                                allocator, len, data);
}
void   named_value__free_unpacked
                     (NamedValue *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &named_value__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   value_sequence__init
                     (ValueSequence         *message)
{
  static ValueSequence init_value = VALUE_SEQUENCE__INIT;
  *message = init_value;
}
size_t value_sequence__get_packed_size
                     (const ValueSequence *message)
{
  assert(message->base.descriptor == &value_sequence__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t value_sequence__pack
                     (const ValueSequence *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &value_sequence__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t value_sequence__pack_to_buffer
                     (const ValueSequence *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &value_sequence__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
ValueSequence *
       value_sequence__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (ValueSequence *)
     protobuf_c_message_unpack (&value_sequence__descriptor,
                                allocator, len, data);
}
void   value_sequence__free_unpacked
                     (ValueSequence *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &value_sequence__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor named_value__field_descriptors[2] =
{
  {
    "name",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(NamedValue, name),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "value",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(NamedValue, value),
    &rtd_value__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned named_value__field_indices_by_name[] = {
  0,   /* field[0] = name */
  1,   /* field[1] = value */
};
static const ProtobufCIntRange named_value__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor named_value__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "NamedValue",
  "NamedValue",
  "NamedValue",
  "",
  sizeof(NamedValue),
  2,
  named_value__field_descriptors,
  named_value__field_indices_by_name,
  1,  named_value__number_ranges,
  (ProtobufCMessageInit) named_value__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor value_sequence__field_descriptors[1] =
{
  {
    "values",
    1,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_MESSAGE,
    offsetof(ValueSequence, n_values),
    offsetof(ValueSequence, values),
    &named_value__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned value_sequence__field_indices_by_name[] = {
  0,   /* field[0] = values */
};
static const ProtobufCIntRange value_sequence__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor value_sequence__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "ValueSequence",
  "ValueSequence",
  "ValueSequence",
  "",
  sizeof(ValueSequence),
  1,
  value_sequence__field_descriptors,
  value_sequence__field_indices_by_name,
  1,  value_sequence__number_ranges,
  (ProtobufCMessageInit) value_sequence__init,
  NULL,NULL,NULL    /* reserved[123] */
};
