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

#ifndef PB_READER_V1_READER_V1_GET_PB_H_INCLUDED
#define PB_READER_V1_READER_V1_GET_PB_H_INCLUDED
#include <pb.h>
#include "reader/v1/reader.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 _reader_v1_GetReaderRequest {
    bool has_id;
    util_UUID id;
} reader_v1_GetReaderRequest;

typedef struct _reader_v1_GetReaderResponse {
    bool has_reader;
    reader_v1_Reader reader;
} reader_v1_GetReaderResponse;

typedef struct _reader_v1_GetReadersRequest {
    pb_callback_t filter;
    bool has_unclaimed;
    bool unclaimed;
} reader_v1_GetReadersRequest;

typedef struct _reader_v1_GetReadersResponse {
    pb_callback_t readers;
} reader_v1_GetReadersResponse;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define reader_v1_GetReaderRequest_init_default  {false, util_UUID_init_default}
#define reader_v1_GetReaderResponse_init_default {false, reader_v1_Reader_init_default}
#define reader_v1_GetReadersRequest_init_default {{{NULL}, NULL}, false, 0}
#define reader_v1_GetReadersResponse_init_default {{{NULL}, NULL}}
#define reader_v1_GetReaderRequest_init_zero     {false, util_UUID_init_zero}
#define reader_v1_GetReaderResponse_init_zero    {false, reader_v1_Reader_init_zero}
#define reader_v1_GetReadersRequest_init_zero    {{{NULL}, NULL}, false, 0}
#define reader_v1_GetReadersResponse_init_zero   {{{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
#define reader_v1_GetReaderRequest_id_tag        1
#define reader_v1_GetReaderResponse_reader_tag   1
#define reader_v1_GetReadersRequest_filter_tag   1
#define reader_v1_GetReadersRequest_unclaimed_tag 2
#define reader_v1_GetReadersResponse_readers_tag 1

/* Struct field encoding specification for nanopb */
#define reader_v1_GetReaderRequest_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, MESSAGE,  id,                1)
#define reader_v1_GetReaderRequest_CALLBACK NULL
#define reader_v1_GetReaderRequest_DEFAULT NULL
#define reader_v1_GetReaderRequest_id_MSGTYPE util_UUID

#define reader_v1_GetReaderResponse_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, MESSAGE,  reader,            1)
#define reader_v1_GetReaderResponse_CALLBACK NULL
#define reader_v1_GetReaderResponse_DEFAULT NULL
#define reader_v1_GetReaderResponse_reader_MSGTYPE reader_v1_Reader

#define reader_v1_GetReadersRequest_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, STRING,   filter,            1) \
X(a, STATIC,   OPTIONAL, BOOL,     unclaimed,         2)
#define reader_v1_GetReadersRequest_CALLBACK pb_default_field_callback
#define reader_v1_GetReadersRequest_DEFAULT NULL

#define reader_v1_GetReadersResponse_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, MESSAGE,  readers,           1)
#define reader_v1_GetReadersResponse_CALLBACK pb_default_field_callback
#define reader_v1_GetReadersResponse_DEFAULT NULL
#define reader_v1_GetReadersResponse_readers_MSGTYPE reader_v1_Reader

extern const pb_msgdesc_t reader_v1_GetReaderRequest_msg;
extern const pb_msgdesc_t reader_v1_GetReaderResponse_msg;
extern const pb_msgdesc_t reader_v1_GetReadersRequest_msg;
extern const pb_msgdesc_t reader_v1_GetReadersResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define reader_v1_GetReaderRequest_fields &reader_v1_GetReaderRequest_msg
#define reader_v1_GetReaderResponse_fields &reader_v1_GetReaderResponse_msg
#define reader_v1_GetReadersRequest_fields &reader_v1_GetReadersRequest_msg
#define reader_v1_GetReadersResponse_fields &reader_v1_GetReadersResponse_msg

/* Maximum encoded size of messages (where known) */
/* reader_v1_GetReadersRequest_size depends on runtime parameters */
/* reader_v1_GetReadersResponse_size depends on runtime parameters */
#if defined(util_UUID_size)
#define READER_V1_READER_V1_GET_PB_H_MAX_SIZE    reader_v1_GetReaderRequest_size
#define reader_v1_GetReaderRequest_size          (6 + util_UUID_size)
#endif
#if defined(reader_v1_Reader_size)
#define reader_v1_GetReaderResponse_size         (6 + reader_v1_Reader_size)
#endif

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

#endif
