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

#ifndef PROTOBUF_C_cita_5fnetwork_2eproto__INCLUDED
#define PROTOBUF_C_cita_5fnetwork_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif


typedef struct _Common__CitaNetworks Common__CitaNetworks;
typedef struct _Common__CitaNetworkData Common__CitaNetworkData;


/* --- enums --- */


/* --- messages --- */

struct  _Common__CitaNetworks
{
  ProtobufCMessage base;
  uint32_t networknum;
  Common__CitaNetworkData *networks;
};
#define COMMON__CITA_NETWORKS__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&common__cita_networks__descriptor) \
    , 0, NULL }


struct  _Common__CitaNetworkData
{
  ProtobufCMessage base;
  uint32_t index;
  uint32_t version;
  char *node_url_str;
  ProtobufCBinaryData chain_id_str;
};
#define COMMON__CITA_NETWORK_DATA__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&common__cita_network_data__descriptor) \
    , 0, 0, (char *)protobuf_c_empty_string, {0,NULL} }


/* Common__CitaNetworks methods */
void   common__cita_networks__init
                     (Common__CitaNetworks         *message);
size_t common__cita_networks__get_packed_size
                     (const Common__CitaNetworks   *message);
size_t common__cita_networks__pack
                     (const Common__CitaNetworks   *message,
                      uint8_t             *out);
size_t common__cita_networks__pack_to_buffer
                     (const Common__CitaNetworks   *message,
                      ProtobufCBuffer     *buffer);
Common__CitaNetworks *
       common__cita_networks__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   common__cita_networks__free_unpacked
                     (Common__CitaNetworks *message,
                      ProtobufCAllocator *allocator);
/* Common__CitaNetworkData methods */
void   common__cita_network_data__init
                     (Common__CitaNetworkData         *message);
size_t common__cita_network_data__get_packed_size
                     (const Common__CitaNetworkData   *message);
size_t common__cita_network_data__pack
                     (const Common__CitaNetworkData   *message,
                      uint8_t             *out);
size_t common__cita_network_data__pack_to_buffer
                     (const Common__CitaNetworkData   *message,
                      ProtobufCBuffer     *buffer);
Common__CitaNetworkData *
       common__cita_network_data__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   common__cita_network_data__free_unpacked
                     (Common__CitaNetworkData *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*Common__CitaNetworks_Closure)
                 (const Common__CitaNetworks *message,
                  void *closure_data);
typedef void (*Common__CitaNetworkData_Closure)
                 (const Common__CitaNetworkData *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor common__cita_networks__descriptor;
extern const ProtobufCMessageDescriptor common__cita_network_data__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_cita_5fnetwork_2eproto__INCLUDED */
