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

#ifndef PB_ANTENNA_V1_ANTENNA_V1_CREATE_PB_H_INCLUDED
#define PB_ANTENNA_V1_ANTENNA_V1_CREATE_PB_H_INCLUDED
#include <pb.h>
#include "antenna/v1/antenna.pb.h"
#include "buf/validate/validate.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 _antenna_v1_CreateAntennaRequest {
    bool has_reader_id;
    util_UUID reader_id;
    uint32_t antenna; /* max uint8 */
    uint32_t power;
    bool connected;
} antenna_v1_CreateAntennaRequest;

typedef struct _antenna_v1_CreateAntennaResponse {
    bool has_antenna;
    antenna_v1_Antenna antenna;
} antenna_v1_CreateAntennaResponse;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define antenna_v1_CreateAntennaRequest_init_default {false, util_UUID_init_default, 0, 0, 0}
#define antenna_v1_CreateAntennaResponse_init_default {false, antenna_v1_Antenna_init_default}
#define antenna_v1_CreateAntennaRequest_init_zero {false, util_UUID_init_zero, 0, 0, 0}
#define antenna_v1_CreateAntennaResponse_init_zero {false, antenna_v1_Antenna_init_zero}

/* Field tags (for use in manual encoding/decoding) */
#define antenna_v1_CreateAntennaRequest_reader_id_tag 1
#define antenna_v1_CreateAntennaRequest_antenna_tag 2
#define antenna_v1_CreateAntennaRequest_power_tag 3
#define antenna_v1_CreateAntennaRequest_connected_tag 4
#define antenna_v1_CreateAntennaResponse_antenna_tag 1

/* Struct field encoding specification for nanopb */
#define antenna_v1_CreateAntennaRequest_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, MESSAGE,  reader_id,         1) \
X(a, STATIC,   SINGULAR, UINT32,   antenna,           2) \
X(a, STATIC,   SINGULAR, UINT32,   power,             3) \
X(a, STATIC,   SINGULAR, BOOL,     connected,         4)
#define antenna_v1_CreateAntennaRequest_CALLBACK NULL
#define antenna_v1_CreateAntennaRequest_DEFAULT NULL
#define antenna_v1_CreateAntennaRequest_reader_id_MSGTYPE util_UUID

#define antenna_v1_CreateAntennaResponse_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, MESSAGE,  antenna,           1)
#define antenna_v1_CreateAntennaResponse_CALLBACK NULL
#define antenna_v1_CreateAntennaResponse_DEFAULT NULL
#define antenna_v1_CreateAntennaResponse_antenna_MSGTYPE antenna_v1_Antenna

extern const pb_msgdesc_t antenna_v1_CreateAntennaRequest_msg;
extern const pb_msgdesc_t antenna_v1_CreateAntennaResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define antenna_v1_CreateAntennaRequest_fields &antenna_v1_CreateAntennaRequest_msg
#define antenna_v1_CreateAntennaResponse_fields &antenna_v1_CreateAntennaResponse_msg

/* Maximum encoded size of messages (where known) */
#if defined(util_UUID_size)
#define ANTENNA_V1_ANTENNA_V1_CREATE_PB_H_MAX_SIZE antenna_v1_CreateAntennaRequest_size
#define antenna_v1_CreateAntennaRequest_size     (20 + util_UUID_size)
#endif
#if defined(antenna_v1_Antenna_size)
#define antenna_v1_CreateAntennaResponse_size    (6 + antenna_v1_Antenna_size)
#endif

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

#endif
