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

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

#include "google/protobuf/api.pb-c.h"
void   google__protobuf__api__init
                     (Google__Protobuf__Api         *message)
{
  static Google__Protobuf__Api init_value = GOOGLE__PROTOBUF__API__INIT;
  *message = init_value;
}
size_t google__protobuf__api__get_packed_size
                     (const Google__Protobuf__Api *message)
{
  assert(message->base.descriptor == &google__protobuf__api__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t google__protobuf__api__pack
                     (const Google__Protobuf__Api *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &google__protobuf__api__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t google__protobuf__api__pack_to_buffer
                     (const Google__Protobuf__Api *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &google__protobuf__api__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Google__Protobuf__Api *
       google__protobuf__api__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Google__Protobuf__Api *)
     protobuf_c_message_unpack (&google__protobuf__api__descriptor,
                                allocator, len, data);
}
void   google__protobuf__api__free_unpacked
                     (Google__Protobuf__Api *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &google__protobuf__api__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   google__protobuf__method__init
                     (Google__Protobuf__Method         *message)
{
  static Google__Protobuf__Method init_value = GOOGLE__PROTOBUF__METHOD__INIT;
  *message = init_value;
}
size_t google__protobuf__method__get_packed_size
                     (const Google__Protobuf__Method *message)
{
  assert(message->base.descriptor == &google__protobuf__method__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t google__protobuf__method__pack
                     (const Google__Protobuf__Method *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &google__protobuf__method__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t google__protobuf__method__pack_to_buffer
                     (const Google__Protobuf__Method *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &google__protobuf__method__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Google__Protobuf__Method *
       google__protobuf__method__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Google__Protobuf__Method *)
     protobuf_c_message_unpack (&google__protobuf__method__descriptor,
                                allocator, len, data);
}
void   google__protobuf__method__free_unpacked
                     (Google__Protobuf__Method *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &google__protobuf__method__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   google__protobuf__mixin__init
                     (Google__Protobuf__Mixin         *message)
{
  static Google__Protobuf__Mixin init_value = GOOGLE__PROTOBUF__MIXIN__INIT;
  *message = init_value;
}
size_t google__protobuf__mixin__get_packed_size
                     (const Google__Protobuf__Mixin *message)
{
  assert(message->base.descriptor == &google__protobuf__mixin__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t google__protobuf__mixin__pack
                     (const Google__Protobuf__Mixin *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &google__protobuf__mixin__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t google__protobuf__mixin__pack_to_buffer
                     (const Google__Protobuf__Mixin *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &google__protobuf__mixin__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Google__Protobuf__Mixin *
       google__protobuf__mixin__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Google__Protobuf__Mixin *)
     protobuf_c_message_unpack (&google__protobuf__mixin__descriptor,
                                allocator, len, data);
}
void   google__protobuf__mixin__free_unpacked
                     (Google__Protobuf__Mixin *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &google__protobuf__mixin__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor google__protobuf__api__field_descriptors[7] =
{
  {
    "name",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Api, name),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "methods",
    2,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_MESSAGE,
    offsetof(Google__Protobuf__Api, n_methods),
    offsetof(Google__Protobuf__Api, methods),
    &google__protobuf__method__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "options",
    3,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_MESSAGE,
    offsetof(Google__Protobuf__Api, n_options),
    offsetof(Google__Protobuf__Api, options),
    &google__protobuf__option__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "version",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Api, version),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "source_context",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Api, source_context),
    &google__protobuf__source_context__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "mixins",
    6,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_MESSAGE,
    offsetof(Google__Protobuf__Api, n_mixins),
    offsetof(Google__Protobuf__Api, mixins),
    &google__protobuf__mixin__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "syntax",
    7,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_ENUM,
    offsetof(Google__Protobuf__Api, has_syntax),
    offsetof(Google__Protobuf__Api, syntax),
    &google__protobuf__syntax__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned google__protobuf__api__field_indices_by_name[] = {
  1,   /* field[1] = methods */
  5,   /* field[5] = mixins */
  0,   /* field[0] = name */
  2,   /* field[2] = options */
  4,   /* field[4] = source_context */
  6,   /* field[6] = syntax */
  3,   /* field[3] = version */
};
static const ProtobufCIntRange google__protobuf__api__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 7 }
};
const ProtobufCMessageDescriptor google__protobuf__api__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "google.protobuf.Api",
  "Api",
  "Google__Protobuf__Api",
  "google.protobuf",
  sizeof(Google__Protobuf__Api),
  7,
  google__protobuf__api__field_descriptors,
  google__protobuf__api__field_indices_by_name,
  1,  google__protobuf__api__number_ranges,
  (ProtobufCMessageInit) google__protobuf__api__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor google__protobuf__method__field_descriptors[7] =
{
  {
    "name",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Method, name),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "request_type_url",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Method, request_type_url),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "request_streaming",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(Google__Protobuf__Method, has_request_streaming),
    offsetof(Google__Protobuf__Method, request_streaming),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "response_type_url",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Method, response_type_url),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "response_streaming",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(Google__Protobuf__Method, has_response_streaming),
    offsetof(Google__Protobuf__Method, response_streaming),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "options",
    6,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_MESSAGE,
    offsetof(Google__Protobuf__Method, n_options),
    offsetof(Google__Protobuf__Method, options),
    &google__protobuf__option__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "syntax",
    7,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_ENUM,
    offsetof(Google__Protobuf__Method, has_syntax),
    offsetof(Google__Protobuf__Method, syntax),
    &google__protobuf__syntax__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned google__protobuf__method__field_indices_by_name[] = {
  0,   /* field[0] = name */
  5,   /* field[5] = options */
  2,   /* field[2] = request_streaming */
  1,   /* field[1] = request_type_url */
  4,   /* field[4] = response_streaming */
  3,   /* field[3] = response_type_url */
  6,   /* field[6] = syntax */
};
static const ProtobufCIntRange google__protobuf__method__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 7 }
};
const ProtobufCMessageDescriptor google__protobuf__method__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "google.protobuf.Method",
  "Method",
  "Google__Protobuf__Method",
  "google.protobuf",
  sizeof(Google__Protobuf__Method),
  7,
  google__protobuf__method__field_descriptors,
  google__protobuf__method__field_indices_by_name,
  1,  google__protobuf__method__number_ranges,
  (ProtobufCMessageInit) google__protobuf__method__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor google__protobuf__mixin__field_descriptors[2] =
{
  {
    "name",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Mixin, name),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "root",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Google__Protobuf__Mixin, root),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned google__protobuf__mixin__field_indices_by_name[] = {
  0,   /* field[0] = name */
  1,   /* field[1] = root */
};
static const ProtobufCIntRange google__protobuf__mixin__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor google__protobuf__mixin__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "google.protobuf.Mixin",
  "Mixin",
  "Google__Protobuf__Mixin",
  "google.protobuf",
  sizeof(Google__Protobuf__Mixin),
  2,
  google__protobuf__mixin__field_descriptors,
  google__protobuf__mixin__field_indices_by_name,
  1,  google__protobuf__mixin__number_ranges,
  (ProtobufCMessageInit) google__protobuf__mixin__init,
  NULL,NULL,NULL    /* reserved[123] */
};
