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

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

#include "opts.pb-c.h"
void   criu__opts__init
                     (CRIUOpts         *message)
{
  static const CRIUOpts init_value = CRIU__OPTS__INIT;
  *message = init_value;
}
size_t criu__opts__get_packed_size
                     (const CRIUOpts *message)
{
  assert(message->base.descriptor == &criu__opts__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t criu__opts__pack
                     (const CRIUOpts *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &criu__opts__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t criu__opts__pack_to_buffer
                     (const CRIUOpts *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &criu__opts__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
CRIUOpts *
       criu__opts__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (CRIUOpts *)
     protobuf_c_message_unpack (&criu__opts__descriptor,
                                allocator, len, data);
}
void   criu__opts__free_unpacked
                     (CRIUOpts *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &criu__opts__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor criu__opts__field_descriptors[7] =
{
  {
    "hex",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(CRIUOpts, has_hex),
    offsetof(CRIUOpts, hex),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "ipadd",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(CRIUOpts, has_ipadd),
    offsetof(CRIUOpts, ipadd),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "flags",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(CRIUOpts, flags),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "dev",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(CRIUOpts, has_dev),
    offsetof(CRIUOpts, dev),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "odev",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(CRIUOpts, has_odev),
    offsetof(CRIUOpts, odev),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "dict",
    6,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(CRIUOpts, dict),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "conv",
    7,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(CRIUOpts, conv),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned criu__opts__field_indices_by_name[] = {
  6,   /* field[6] = conv */
  3,   /* field[3] = dev */
  5,   /* field[5] = dict */
  2,   /* field[2] = flags */
  0,   /* field[0] = hex */
  1,   /* field[1] = ipadd */
  4,   /* field[4] = odev */
};
static const ProtobufCIntRange criu__opts__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 7 }
};
const ProtobufCMessageDescriptor criu__opts__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "CRIU_Opts",
  "CRIUOpts",
  "CRIUOpts",
  "",
  sizeof(CRIUOpts),
  7,
  criu__opts__field_descriptors,
  criu__opts__field_indices_by_name,
  1,  criu__opts__number_ranges,
  (ProtobufCMessageInit) criu__opts__init,
  NULL,NULL,NULL    /* reserved[123] */
};
