91 lines
3.7 KiB
C
91 lines
3.7 KiB
C
/* Automatically generated nanopb header */
|
|
/* Generated by nanopb-0.4.9 */
|
|
|
|
#ifndef PB_READGROUP_V2_READGROUP_V2_START_PB_H_INCLUDED
|
|
#define PB_READGROUP_V2_READGROUP_V2_START_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_v2_StartReadGroupRequest {
|
|
bool has_reader_id;
|
|
util_UUID reader_id;
|
|
uint32_t antenna;
|
|
pb_callback_t epc;
|
|
bool has_latitude;
|
|
float latitude;
|
|
bool has_longitude;
|
|
float longitude;
|
|
bool has_timestamp;
|
|
google_protobuf_Timestamp timestamp;
|
|
} readgroup_v2_StartReadGroupRequest;
|
|
|
|
typedef struct _readgroup_v2_StartReadGroupResponse {
|
|
bool has_group_id;
|
|
util_UUID group_id;
|
|
} readgroup_v2_StartReadGroupResponse;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Initializer values for message structs */
|
|
#define readgroup_v2_StartReadGroupRequest_init_default {false, util_UUID_init_default, 0, {{NULL}, NULL}, false, 0, false, 0, false, google_protobuf_Timestamp_init_default}
|
|
#define readgroup_v2_StartReadGroupResponse_init_default {false, util_UUID_init_default}
|
|
#define readgroup_v2_StartReadGroupRequest_init_zero {false, util_UUID_init_zero, 0, {{NULL}, NULL}, false, 0, false, 0, false, google_protobuf_Timestamp_init_zero}
|
|
#define readgroup_v2_StartReadGroupResponse_init_zero {false, util_UUID_init_zero}
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */
|
|
#define readgroup_v2_StartReadGroupRequest_reader_id_tag 1
|
|
#define readgroup_v2_StartReadGroupRequest_antenna_tag 2
|
|
#define readgroup_v2_StartReadGroupRequest_epc_tag 3
|
|
#define readgroup_v2_StartReadGroupRequest_latitude_tag 4
|
|
#define readgroup_v2_StartReadGroupRequest_longitude_tag 5
|
|
#define readgroup_v2_StartReadGroupRequest_timestamp_tag 6
|
|
#define readgroup_v2_StartReadGroupResponse_group_id_tag 1
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
#define readgroup_v2_StartReadGroupRequest_FIELDLIST(X, a) \
|
|
X(a, STATIC, OPTIONAL, MESSAGE, reader_id, 1) \
|
|
X(a, STATIC, SINGULAR, UINT32, antenna, 2) \
|
|
X(a, CALLBACK, SINGULAR, STRING, epc, 3) \
|
|
X(a, STATIC, OPTIONAL, FLOAT, latitude, 4) \
|
|
X(a, STATIC, OPTIONAL, FLOAT, longitude, 5) \
|
|
X(a, STATIC, OPTIONAL, MESSAGE, timestamp, 6)
|
|
#define readgroup_v2_StartReadGroupRequest_CALLBACK pb_default_field_callback
|
|
#define readgroup_v2_StartReadGroupRequest_DEFAULT NULL
|
|
#define readgroup_v2_StartReadGroupRequest_reader_id_MSGTYPE util_UUID
|
|
#define readgroup_v2_StartReadGroupRequest_timestamp_MSGTYPE google_protobuf_Timestamp
|
|
|
|
#define readgroup_v2_StartReadGroupResponse_FIELDLIST(X, a) \
|
|
X(a, STATIC, OPTIONAL, MESSAGE, group_id, 1)
|
|
#define readgroup_v2_StartReadGroupResponse_CALLBACK NULL
|
|
#define readgroup_v2_StartReadGroupResponse_DEFAULT NULL
|
|
#define readgroup_v2_StartReadGroupResponse_group_id_MSGTYPE util_UUID
|
|
|
|
extern const pb_msgdesc_t readgroup_v2_StartReadGroupRequest_msg;
|
|
extern const pb_msgdesc_t readgroup_v2_StartReadGroupResponse_msg;
|
|
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
#define readgroup_v2_StartReadGroupRequest_fields &readgroup_v2_StartReadGroupRequest_msg
|
|
#define readgroup_v2_StartReadGroupResponse_fields &readgroup_v2_StartReadGroupResponse_msg
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
|
/* readgroup_v2_StartReadGroupRequest_size depends on runtime parameters */
|
|
#if defined(util_UUID_size)
|
|
#define READGROUP_V2_READGROUP_V2_START_PB_H_MAX_SIZE readgroup_v2_StartReadGroupResponse_size
|
|
#define readgroup_v2_StartReadGroupResponse_size (6 + util_UUID_size)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|