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

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

#include "cita_network.pb-c.h"
void   common__cita_networks__init
                     (Common__CitaNetworks         *message)
{
  static const Common__CitaNetworks init_value = COMMON__CITA_NETWORKS__INIT;
  *message = init_value;
}
size_t common__cita_networks__get_packed_size
                     (const Common__CitaNetworks *message)
{
  assert(message->base.descriptor == &common__cita_networks__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t common__cita_networks__pack
                     (const Common__CitaNetworks *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &common__cita_networks__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t common__cita_networks__pack_to_buffer
                     (const Common__CitaNetworks *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &common__cita_networks__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Common__CitaNetworks *
       common__cita_networks__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Common__CitaNetworks *)
     protobuf_c_message_unpack (&common__cita_networks__descriptor,
                                allocator, len, data);
}
void   common__cita_networks__free_unpacked
                     (Common__CitaNetworks *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &common__cita_networks__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   common__cita_network_data__init
                     (Common__CitaNetworkData         *message)
{
  static const Common__CitaNetworkData init_value = COMMON__CITA_NETWORK_DATA__INIT;
  *message = init_value;
}
size_t common__cita_network_data__get_packed_size
                     (const Common__CitaNetworkData *message)
{
  assert(message->base.descriptor == &common__cita_network_data__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t common__cita_network_data__pack
                     (const Common__CitaNetworkData *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &common__cita_network_data__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t common__cita_network_data__pack_to_buffer
                     (const Common__CitaNetworkData *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &common__cita_network_data__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Common__CitaNetworkData *
       common__cita_network_data__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Common__CitaNetworkData *)
     protobuf_c_message_unpack (&common__cita_network_data__descriptor,
                                allocator, len, data);
}
void   common__cita_network_data__free_unpacked
                     (Common__CitaNetworkData *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &common__cita_network_data__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor common__cita_networks__field_descriptors[2] =
{
  {
    "networkNum",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(Common__CitaNetworks, networknum),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "networks",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Common__CitaNetworks, networks),
    &common__cita_network_data__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned common__cita_networks__field_indices_by_name[] = {
  0,   /* field[0] = networkNum */
  1,   /* field[1] = networks */
};
static const ProtobufCIntRange common__cita_networks__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor common__cita_networks__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "common.citaNetworks",
  "CitaNetworks",
  "Common__CitaNetworks",
  "common",
  sizeof(Common__CitaNetworks),
  2,
  common__cita_networks__field_descriptors,
  common__cita_networks__field_indices_by_name,
  1,  common__cita_networks__number_ranges,
  (ProtobufCMessageInit) common__cita_networks__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor common__cita_network_data__field_descriptors[4] =
{
  {
    "index",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(Common__CitaNetworkData, index),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "version",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(Common__CitaNetworkData, version),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "node_url_str",
    3,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Common__CitaNetworkData, node_url_str),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "chain_id_str",
    4,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BYTES,
    0,   /* quantifier_offset */
    offsetof(Common__CitaNetworkData, chain_id_str),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned common__cita_network_data__field_indices_by_name[] = {
  3,   /* field[3] = chain_id_str */
  0,   /* field[0] = index */
  2,   /* field[2] = node_url_str */
  1,   /* field[1] = version */
};
static const ProtobufCIntRange common__cita_network_data__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 4 }
};
const ProtobufCMessageDescriptor common__cita_network_data__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "common.citaNetworkData",
  "CitaNetworkData",
  "Common__CitaNetworkData",
  "common",
  sizeof(Common__CitaNetworkData),
  4,
  common__cita_network_data__field_descriptors,
  common__cita_network_data__field_indices_by_name,
  1,  common__cita_network_data__number_ranges,
  (ProtobufCMessageInit) common__cita_network_data__init,
  NULL,NULL,NULL    /* reserved[123] */
};
