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

#ifndef PB_READ_V1_READ_V1_GET_PB_H_INCLUDED
#define PB_READ_V1_READ_V1_GET_PB_H_INCLUDED
#include <pb.h>
#include "read/v1/read.pb.h"
#include "util/between.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 _read_v1_GetReadsRequest {
    bool has_reader_id;
    util_UUID reader_id;
    pb_callback_t epc;
    bool has_antenna;
    uint32_t antenna;
    bool has_timestamp;
    util_TimestampBetween timestamp;
} read_v1_GetReadsRequest;

typedef struct _read_v1_GetReadsResponse {
    pb_callback_t reads;
} read_v1_GetReadsResponse;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define read_v1_GetReadsRequest_init_default     {false, util_UUID_init_default, {{NULL}, NULL}, false, 0, false, util_TimestampBetween_init_default}
#define read_v1_GetReadsResponse_init_default    {{{NULL}, NULL}}
#define read_v1_GetReadsRequest_init_zero        {false, util_UUID_init_zero, {{NULL}, NULL}, false, 0, false, util_TimestampBetween_init_zero}
#define read_v1_GetReadsResponse_init_zero       {{{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
#define read_v1_GetReadsRequest_reader_id_tag    1
#define read_v1_GetReadsRequest_epc_tag          2
#define read_v1_GetReadsRequest_antenna_tag      3
#define read_v1_GetReadsRequest_timestamp_tag    4
#define read_v1_GetReadsResponse_reads_tag       1

/* Struct field encoding specification for nanopb */
#define read_v1_GetReadsRequest_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, MESSAGE,  reader_id,         1) \
X(a, CALLBACK, OPTIONAL, STRING,   epc,               2) \
X(a, STATIC,   OPTIONAL, UINT32,   antenna,           3) \
X(a, STATIC,   OPTIONAL, MESSAGE,  timestamp,         4)
#define read_v1_GetReadsRequest_CALLBACK pb_default_field_callback
#define read_v1_GetReadsRequest_DEFAULT NULL
#define read_v1_GetReadsRequest_reader_id_MSGTYPE util_UUID
#define read_v1_GetReadsRequest_timestamp_MSGTYPE util_TimestampBetween

#define read_v1_GetReadsResponse_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, MESSAGE,  reads,             1)
#define read_v1_GetReadsResponse_CALLBACK pb_default_field_callback
#define read_v1_GetReadsResponse_DEFAULT NULL
#define read_v1_GetReadsResponse_reads_MSGTYPE read_v1_Read

extern const pb_msgdesc_t read_v1_GetReadsRequest_msg;
extern const pb_msgdesc_t read_v1_GetReadsResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define read_v1_GetReadsRequest_fields &read_v1_GetReadsRequest_msg
#define read_v1_GetReadsResponse_fields &read_v1_GetReadsResponse_msg

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

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

#endif
