/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: remap-file-path.proto */

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

#include "remap-file-path.pb-c.h"
void   remap_file_path_entry__init
                     (RemapFilePathEntry         *message)
{
  static const RemapFilePathEntry init_value = REMAP_FILE_PATH_ENTRY__INIT;
  *message = init_value;
}
size_t remap_file_path_entry__get_packed_size
                     (const RemapFilePathEntry *message)
{
  assert(message->base.descriptor == &remap_file_path_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t remap_file_path_entry__pack
                     (const RemapFilePathEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &remap_file_path_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t remap_file_path_entry__pack_to_buffer
                     (const RemapFilePathEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &remap_file_path_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
RemapFilePathEntry *
       remap_file_path_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (RemapFilePathEntry *)
     protobuf_c_message_unpack (&remap_file_path_entry__descriptor,
                                allocator, len, data);
}
void   remap_file_path_entry__free_unpacked
                     (RemapFilePathEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &remap_file_path_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor remap_file_path_entry__field_descriptors[3] =
{
  {
    "orig_id",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(RemapFilePathEntry, orig_id),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "remap_id",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(RemapFilePathEntry, remap_id),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "remap_type",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_ENUM,
    offsetof(RemapFilePathEntry, has_remap_type),
    offsetof(RemapFilePathEntry, remap_type),
    &remap_type__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned remap_file_path_entry__field_indices_by_name[] = {
  0,   /* field[0] = orig_id */
  1,   /* field[1] = remap_id */
  2,   /* field[2] = remap_type */
};
static const ProtobufCIntRange remap_file_path_entry__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 3 }
};
const ProtobufCMessageDescriptor remap_file_path_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "remap_file_path_entry",
  "RemapFilePathEntry",
  "RemapFilePathEntry",
  "",
  sizeof(RemapFilePathEntry),
  3,
  remap_file_path_entry__field_descriptors,
  remap_file_path_entry__field_indices_by_name,
  1,  remap_file_path_entry__number_ranges,
  (ProtobufCMessageInit) remap_file_path_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCEnumValue remap_type__enum_values_by_number[3] =
{
  { "LINKED", "REMAP_TYPE__LINKED", 0 },
  { "GHOST", "REMAP_TYPE__GHOST", 1 },
  { "PROCFS", "REMAP_TYPE__PROCFS", 2 },
};
static const ProtobufCIntRange remap_type__value_ranges[] = {
{0, 0},{0, 3}
};
static const ProtobufCEnumValueIndex remap_type__enum_values_by_name[3] =
{
  { "GHOST", 1 },
  { "LINKED", 0 },
  { "PROCFS", 2 },
};
const ProtobufCEnumDescriptor remap_type__descriptor =
{
  PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
  "remap_type",
  "remap_type",
  "RemapType",
  "",
  3,
  remap_type__enum_values_by_number,
  3,
  remap_type__enum_values_by_name,
  1,
  remap_type__value_ranges,
  NULL,NULL,NULL,NULL   /* reserved[1234] */
};
