/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */

#ifndef PB_READGROUP_ANTENNA_V2_READGROUP_ANTENNA_V2_READ_PB_H_INCLUDED
#define PB_READGROUP_ANTENNA_V2_READGROUP_ANTENNA_V2_READ_PB_H_INCLUDED
#include <pb.h>
#include "google/protobuf/timestamp.pb.h"
#include "util/uuid.pb.h"

#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif

/* Struct definitions */
typedef struct _readgroup_antenna_v2_Read {
    bool has_group_id;
    util_UUID group_id;
    bool has_reader_id;
    util_UUID reader_id;
    uint32_t antenna;
    pb_callback_t epc;
    uint64_t total;
    bool has_latitude;
    float latitude;
    bool has_longitude;
    float longitude;
    bool has_first_timestamp;
    google_protobuf_Timestamp first_timestamp;
    /* filled on read exit */
    bool has_last_timestamp;
    google_protobuf_Timestamp last_timestamp;
    bool has_peak_rssi;
    int32_t peak_rssi;
    bool has_skew_rssi;
    double skew_rssi;
    bool has_variance_rssi;
    double variance_rssi;
    bool has_entropy_rssi;
    double entropy_rssi;
    pb_callback_t signals;
} readgroup_antenna_v2_Read;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define readgroup_antenna_v2_Read_init_default   {false, util_UUID_init_default, false, util_UUID_init_default, 0, {{NULL}, NULL}, 0, false, 0, false, 0, false, google_protobuf_Timestamp_init_default, false, google_protobuf_Timestamp_init_default, false, 0, false, 0, false, 0, false, 0, {{NULL}, NULL}}
#define readgroup_antenna_v2_Read_init_zero      {false, util_UUID_init_zero, false, util_UUID_init_zero, 0, {{NULL}, NULL}, 0, false, 0, false, 0, false, google_protobuf_Timestamp_init_zero, false, google_protobuf_Timestamp_init_zero, false, 0, false, 0, false, 0, false, 0, {{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
#define readgroup_antenna_v2_Read_group_id_tag   1
#define readgroup_antenna_v2_Read_reader_id_tag  2
#define readgroup_antenna_v2_Read_antenna_tag    3
#define readgroup_antenna_v2_Read_epc_tag        4
#define readgroup_antenna_v2_Read_total_tag      5
#define readgroup_antenna_v2_Read_latitude_tag   6
#define readgroup_antenna_v2_Read_longitude_tag  7
#define readgroup_antenna_v2_Read_first_timestamp_tag 8
#define readgroup_antenna_v2_Read_last_timestamp_tag 9
#define readgroup_antenna_v2_Read_peak_rssi_tag  10
#define readgroup_antenna_v2_Read_skew_rssi_tag  11
#define readgroup_antenna_v2_Read_variance_rssi_tag 12
#define readgroup_antenna_v2_Read_entropy_rssi_tag 13
#define readgroup_antenna_v2_Read_signals_tag    14

/* Struct field encoding specification for nanopb */
#define readgroup_antenna_v2_Read_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, MESSAGE,  group_id,          1) \
X(a, STATIC,   OPTIONAL, MESSAGE,  reader_id,         2) \
X(a, STATIC,   SINGULAR, UINT32,   antenna,           3) \
X(a, CALLBACK, SINGULAR, STRING,   epc,               4) \
X(a, STATIC,   SINGULAR, UINT64,   total,             5) \
X(a, STATIC,   OPTIONAL, FLOAT,    latitude,          6) \
X(a, STATIC,   OPTIONAL, FLOAT,    longitude,         7) \
X(a, STATIC,   OPTIONAL, MESSAGE,  first_timestamp,   8) \
X(a, STATIC,   OPTIONAL, MESSAGE,  last_timestamp,    9) \
X(a, STATIC,   OPTIONAL, SINT32,   peak_rssi,        10) \
X(a, STATIC,   OPTIONAL, DOUBLE,   skew_rssi,        11) \
X(a, STATIC,   OPTIONAL, DOUBLE,   variance_rssi,    12) \
X(a, STATIC,   OPTIONAL, DOUBLE,   entropy_rssi,     13) \
X(a, CALLBACK, REPEATED, UINT32,   signals,          14)
#define readgroup_antenna_v2_Read_CALLBACK pb_default_field_callback
#define readgroup_antenna_v2_Read_DEFAULT NULL
#define readgroup_antenna_v2_Read_group_id_MSGTYPE util_UUID
#define readgroup_antenna_v2_Read_reader_id_MSGTYPE util_UUID
#define readgroup_antenna_v2_Read_first_timestamp_MSGTYPE google_protobuf_Timestamp
#define readgroup_antenna_v2_Read_last_timestamp_MSGTYPE google_protobuf_Timestamp

extern const pb_msgdesc_t readgroup_antenna_v2_Read_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define readgroup_antenna_v2_Read_fields &readgroup_antenna_v2_Read_msg

/* Maximum encoded size of messages (where known) */
/* readgroup_antenna_v2_Read_size depends on runtime parameters */

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif
