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

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

#include "message.pb-c.h"
void   common__raw_message__signature__init
                     (Common__RawMessage__Signature         *message)
{
  static const Common__RawMessage__Signature init_value = COMMON__RAW_MESSAGE__SIGNATURE__INIT;
  *message = init_value;
}
void   common__raw_message__init
                     (Common__RawMessage         *message)
{
  static const Common__RawMessage init_value = COMMON__RAW_MESSAGE__INIT;
  *message = init_value;
}
size_t common__raw_message__get_packed_size
                     (const Common__RawMessage *message)
{
  assert(message->base.descriptor == &common__raw_message__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t common__raw_message__pack
                     (const Common__RawMessage *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &common__raw_message__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t common__raw_message__pack_to_buffer
                     (const Common__RawMessage *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &common__raw_message__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Common__RawMessage *
       common__raw_message__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Common__RawMessage *)
     protobuf_c_message_unpack (&common__raw_message__descriptor,
                                allocator, len, data);
}
void   common__raw_message__free_unpacked
                     (Common__RawMessage *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &common__raw_message__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   common__response__init
                     (Common__Response         *message)
{
  static const Common__Response init_value = COMMON__RESPONSE__INIT;
  *message = init_value;
}
size_t common__response__get_packed_size
                     (const Common__Response *message)
{
  assert(message->base.descriptor == &common__response__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t common__response__pack
                     (const Common__Response *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &common__response__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t common__response__pack_to_buffer
                     (const Common__Response *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &common__response__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Common__Response *
       common__response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Common__Response *)
     protobuf_c_message_unpack (&common__response__descriptor,
                                allocator, len, data);
}
void   common__response__free_unpacked
                     (Common__Response *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &common__response__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor common__raw_message__signature__field_descriptors[2] =
{
  {
    "cert",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BYTES,
    0,   /* quantifier_offset */
    offsetof(Common__RawMessage__Signature, cert),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "sign",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BYTES,
    0,   /* quantifier_offset */
    offsetof(Common__RawMessage__Signature, sign),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned common__raw_message__signature__field_indices_by_name[] = {
  0,   /* field[0] = cert */
  1,   /* field[1] = sign */
};
static const ProtobufCIntRange common__raw_message__signature__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor common__raw_message__signature__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "common.RawMessage.Signature",
  "Signature",
  "Common__RawMessage__Signature",
  "common",
  sizeof(Common__RawMessage__Signature),
  2,
  common__raw_message__signature__field_descriptors,
  common__raw_message__signature__field_indices_by_name,
  1,  common__raw_message__signature__number_ranges,
  (ProtobufCMessageInit) common__raw_message__signature__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCEnumValue common__raw_message__type__enum_values_by_number[2] =
{
  { "DIRECT", "COMMON__RAW_MESSAGE__TYPE__DIRECT", 0 },
  { "PROXY", "COMMON__RAW_MESSAGE__TYPE__PROXY", 1 },
};
static const ProtobufCIntRange common__raw_message__type__value_ranges[] = {
{0, 0},{0, 2}
};
static const ProtobufCEnumValueIndex common__raw_message__type__enum_values_by_name[2] =
{
  { "DIRECT", 0 },
  { "PROXY", 1 },
};
const ProtobufCEnumDescriptor common__raw_message__type__descriptor =
{
  PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
  "common.RawMessage.Type",
  "Type",
  "Common__RawMessage__Type",
  "common",
  2,
  common__raw_message__type__enum_values_by_number,
  2,
  common__raw_message__type__enum_values_by_name,
  1,
  common__raw_message__type__value_ranges,
  NULL,NULL,NULL,NULL   /* reserved[1234] */
};
static const ProtobufCFieldDescriptor common__raw_message__field_descriptors[4] =
{
  {
    "signature",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Common__RawMessage, signature),
    &common__raw_message__signature__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "payload",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BYTES,
    0,   /* quantifier_offset */
    offsetof(Common__RawMessage, payload),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "type",
    3,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_ENUM,
    0,   /* quantifier_offset */
    offsetof(Common__RawMessage, type),
    &common__raw_message__type__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "proxy_info",
    4,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BYTES,
    0,   /* quantifier_offset */
    offsetof(Common__RawMessage, proxy_info),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned common__raw_message__field_indices_by_name[] = {
  1,   /* field[1] = payload */
  3,   /* field[3] = proxy_info */
  0,   /* field[0] = signature */
  2,   /* field[2] = type */
};
static const ProtobufCIntRange common__raw_message__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 4 }
};
const ProtobufCMessageDescriptor common__raw_message__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "common.RawMessage",
  "RawMessage",
  "Common__RawMessage",
  "common",
  sizeof(Common__RawMessage),
  4,
  common__raw_message__field_descriptors,
  common__raw_message__field_indices_by_name,
  1,  common__raw_message__number_ranges,
  (ProtobufCMessageInit) common__raw_message__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor common__response__field_descriptors[3] =
{
  {
    "status",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_ENUM,
    0,   /* quantifier_offset */
    offsetof(Common__Response, status),
    &common__status__hwbcs__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "status_info",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Common__Response, status_info),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "payload",
    3,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BYTES,
    0,   /* quantifier_offset */
    offsetof(Common__Response, payload),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned common__response__field_indices_by_name[] = {
  2,   /* field[2] = payload */
  0,   /* field[0] = status */
  1,   /* field[1] = status_info */
};
static const ProtobufCIntRange common__response__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 3 }
};
const ProtobufCMessageDescriptor common__response__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "common.Response",
  "Response",
  "Common__Response",
  "common",
  sizeof(Common__Response),
  3,
  common__response__field_descriptors,
  common__response__field_indices_by_name,
  1,  common__response__number_ranges,
  (ProtobufCMessageInit) common__response__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCEnumValue common__status__enum_values_by_number[14] =
{
  { "UNKNOWN", "COMMON__STATUS__UNKNOWN", 0 },
  { "SUCCESS", "COMMON__STATUS__SUCCESS", 200 },
  { "HASH", "COMMON__STATUS__HASH", 201 },
  { "BAD_REQUEST", "COMMON__STATUS__BAD_REQUEST", 400 },
  { "FORBIDDEN", "COMMON__STATUS__FORBIDDEN", 403 },
  { "NOT_FOUND", "COMMON__STATUS__NOT_FOUND", 404 },
  { "CONTRACT_NOT_READY", "COMMON__STATUS__CONTRACT_NOT_READY", 405 },
  { "CONTRACT_LAUNCHING", "COMMON__STATUS__CONTRACT_LAUNCHING", 406 },
  { "CONTRACT_LAUNCH_ERR", "COMMON__STATUS__CONTRACT_LAUNCH_ERR", 407 },
  { "CONTRACT_RUNTIME_ERR", "COMMON__STATUS__CONTRACT_RUNTIME_ERR", 408 },
  { "REQUEST_ENTITY_TOO_LARGE", "COMMON__STATUS__REQUEST_ENTITY_TOO_LARGE", 413 },
  { "INTERNAL_SERVER_ERROR", "COMMON__STATUS__INTERNAL_SERVER_ERROR", 500 },
  { "NOT_IMPLEMENTED", "COMMON__STATUS__NOT_IMPLEMENTED", 501 },
  { "SERVICE_UNAVAILABLE", "COMMON__STATUS__SERVICE_UNAVAILABLE", 503 },
};
static const ProtobufCIntRange common__status__value_ranges[] = {
{0, 0},{200, 1},{400, 3},{403, 4},{413, 10},{500, 11},{503, 13},{0, 14}
};
static const ProtobufCEnumValueIndex common__status__enum_values_by_name[14] =
{
  { "BAD_REQUEST", 3 },
  { "CONTRACT_LAUNCHING", 7 },
  { "CONTRACT_LAUNCH_ERR", 8 },
  { "CONTRACT_NOT_READY", 6 },
  { "CONTRACT_RUNTIME_ERR", 9 },
  { "FORBIDDEN", 4 },
  { "HASH", 2 },
  { "INTERNAL_SERVER_ERROR", 11 },
  { "NOT_FOUND", 5 },
  { "NOT_IMPLEMENTED", 12 },
  { "REQUEST_ENTITY_TOO_LARGE", 10 },
  { "SERVICE_UNAVAILABLE", 13 },
  { "SUCCESS", 1 },
  { "UNKNOWN", 0 },
};
const ProtobufCEnumDescriptor common__status__hwbcs__descriptor =
{
  PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
  "common.Status",
  "Status",
  "Common__Status",
  "common",
  14,
  common__status__enum_values_by_number,
  14,
  common__status__enum_values_by_name,
  7,
  common__status__value_ranges,
  NULL,NULL,NULL,NULL   /* reserved[1234] */
};
