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

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

#include "autofs.pb-c.h"
void   autofs_entry__init
                     (AutofsEntry         *message)
{
  static const AutofsEntry init_value = AUTOFS_ENTRY__INIT;
  *message = init_value;
}
size_t autofs_entry__get_packed_size
                     (const AutofsEntry *message)
{
  assert(message->base.descriptor == &autofs_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t autofs_entry__pack
                     (const AutofsEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &autofs_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t autofs_entry__pack_to_buffer
                     (const AutofsEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &autofs_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
AutofsEntry *
       autofs_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (AutofsEntry *)
     protobuf_c_message_unpack (&autofs_entry__descriptor,
                                allocator, len, data);
}
void   autofs_entry__free_unpacked
                     (AutofsEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &autofs_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor autofs_entry__field_descriptors[9] =
{
  {
    "fd",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(AutofsEntry, fd),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "pgrp",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(AutofsEntry, pgrp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "timeout",
    3,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(AutofsEntry, timeout),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "minproto",
    4,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(AutofsEntry, minproto),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "maxproto",
    5,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(AutofsEntry, maxproto),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "mode",
    6,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(AutofsEntry, mode),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "uid",
    7,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT32,
    offsetof(AutofsEntry, has_uid),
    offsetof(AutofsEntry, uid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "gid",
    8,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT32,
    offsetof(AutofsEntry, has_gid),
    offsetof(AutofsEntry, gid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "read_fd",
    9,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT32,
    offsetof(AutofsEntry, has_read_fd),
    offsetof(AutofsEntry, read_fd),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned autofs_entry__field_indices_by_name[] = {
  0,   /* field[0] = fd */
  7,   /* field[7] = gid */
  4,   /* field[4] = maxproto */
  3,   /* field[3] = minproto */
  5,   /* field[5] = mode */
  1,   /* field[1] = pgrp */
  8,   /* field[8] = read_fd */
  2,   /* field[2] = timeout */
  6,   /* field[6] = uid */
};
static const ProtobufCIntRange autofs_entry__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 9 }
};
const ProtobufCMessageDescriptor autofs_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "autofs_entry",
  "AutofsEntry",
  "AutofsEntry",
  "",
  sizeof(AutofsEntry),
  9,
  autofs_entry__field_descriptors,
  autofs_entry__field_indices_by_name,
  1,  autofs_entry__number_ranges,
  (ProtobufCMessageInit) autofs_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
