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

#ifndef PROTOBUF_C_RtdValue_2eproto__INCLUDED
#define PROTOBUF_C_RtdValue_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


typedef struct _RtdValue RtdValue;


/* --- enums --- */


/* --- messages --- */

typedef enum {
  RTD_VALUE__VALUE__NOT_SET = 0,
  RTD_VALUE__VALUE_INT_VAL = 3,
  RTD_VALUE__VALUE_DBL_VAL = 4,
  RTD_VALUE__VALUE_BOOL_VAL = 5,
  RTD_VALUE__VALUE_STR_VAL = 6,
  RTD_VALUE__VALUE_BYT_VAL = 7,
} RtdValue__ValueCase;

/*
 * 实时数据定义
 */
struct  _RtdValue
{
  ProtobufCMessage base;
  int64_t timestamp;
  int64_t quality;
  RtdValue__ValueCase value_case;
  union {
    int64_t intval;
    double dblval;
    protobuf_c_boolean boolval;
    char *strval;
    ProtobufCBinaryData bytval;
  };
};
#define RTD_VALUE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&rtd_value__descriptor) \
    , 0, 0, RTD_VALUE__VALUE__NOT_SET, {0} }


/* RtdValue methods */
void   rtd_value__init
                     (RtdValue         *message);
size_t rtd_value__get_packed_size
                     (const RtdValue   *message);
size_t rtd_value__pack
                     (const RtdValue   *message,
                      uint8_t             *out);
size_t rtd_value__pack_to_buffer
                     (const RtdValue   *message,
                      ProtobufCBuffer     *buffer);
RtdValue *
       rtd_value__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   rtd_value__free_unpacked
                     (RtdValue *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*RtdValue_Closure)
                 (const RtdValue *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor rtd_value__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_RtdValue_2eproto__INCLUDED */
