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

#ifndef PROTOBUF_C_ValueSequence_2eproto__INCLUDED
#define PROTOBUF_C_ValueSequence_2eproto__INCLUDED

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

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1000000
# 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 1002001 < 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

#include "RtdValue.pb-c.h"

typedef struct _NamedValue NamedValue;
typedef struct _ValueSequence ValueSequence;


/* --- enums --- */


/* --- messages --- */

/*
 * 命名实时数据定义
 */
struct  _NamedValue
{
  ProtobufCMessage base;
  char *name;
  RtdValue *value;
};
#define NAMED_VALUE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&named_value__descriptor) \
    , NULL, NULL }


/*
 * 实时数据列定义
 */
struct  _ValueSequence
{
  ProtobufCMessage base;
  size_t n_values;
  NamedValue **values;
};
#define VALUE_SEQUENCE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&value_sequence__descriptor) \
    , 0,NULL }


/* NamedValue methods */
void   named_value__init
                     (NamedValue         *message);
size_t named_value__get_packed_size
                     (const NamedValue   *message);
size_t named_value__pack
                     (const NamedValue   *message,
                      uint8_t             *out);
size_t named_value__pack_to_buffer
                     (const NamedValue   *message,
                      ProtobufCBuffer     *buffer);
NamedValue *
       named_value__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   named_value__free_unpacked
                     (NamedValue *message,
                      ProtobufCAllocator *allocator);
/* ValueSequence methods */
void   value_sequence__init
                     (ValueSequence         *message);
size_t value_sequence__get_packed_size
                     (const ValueSequence   *message);
size_t value_sequence__pack
                     (const ValueSequence   *message,
                      uint8_t             *out);
size_t value_sequence__pack_to_buffer
                     (const ValueSequence   *message,
                      ProtobufCBuffer     *buffer);
ValueSequence *
       value_sequence__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   value_sequence__free_unpacked
                     (ValueSequence *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*NamedValue_Closure)
                 (const NamedValue *message,
                  void *closure_data);
typedef void (*ValueSequence_Closure)
                 (const ValueSequence *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor named_value__descriptor;
extern const ProtobufCMessageDescriptor value_sequence__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_ValueSequence_2eproto__INCLUDED */
