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

#ifndef PB_READER_V1_READER_V1_EXPORT_PB_H_INCLUDED
#define PB_READER_V1_READER_V1_EXPORT_PB_H_INCLUDED
#include <pb.h>
#include "reader/v1/get.pb.h"

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

/* Enum definitions */
typedef enum _reader_v1_ReportType {
    reader_v1_ReportType_REPORT_TYPE_UNSPECIFIED = 0,
    reader_v1_ReportType_REPORT_TYPE_CSV = 1,
    reader_v1_ReportType_REPORT_TYPE_XML = 2,
    reader_v1_ReportType_REPORT_TYPE_JSON = 3
} reader_v1_ReportType;

/* Struct definitions */
typedef struct _reader_v1_ExportReadersRequest {
    reader_v1_ReportType type;
    bool has_request;
    reader_v1_GetReadersRequest request;
} reader_v1_ExportReadersRequest;

typedef struct _reader_v1_ExportReadersResponse {
    pb_callback_t file;
} reader_v1_ExportReadersResponse;


#ifdef __cplusplus
extern "C" {
#endif

/* Helper constants for enums */
#define _reader_v1_ReportType_MIN reader_v1_ReportType_REPORT_TYPE_UNSPECIFIED
#define _reader_v1_ReportType_MAX reader_v1_ReportType_REPORT_TYPE_JSON
#define _reader_v1_ReportType_ARRAYSIZE ((reader_v1_ReportType)(reader_v1_ReportType_REPORT_TYPE_JSON+1))

#define reader_v1_ExportReadersRequest_type_ENUMTYPE reader_v1_ReportType



/* Initializer values for message structs */
#define reader_v1_ExportReadersRequest_init_default {_reader_v1_ReportType_MIN, false, reader_v1_GetReadersRequest_init_default}
#define reader_v1_ExportReadersResponse_init_default {{{NULL}, NULL}}
#define reader_v1_ExportReadersRequest_init_zero {_reader_v1_ReportType_MIN, false, reader_v1_GetReadersRequest_init_zero}
#define reader_v1_ExportReadersResponse_init_zero {{{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
#define reader_v1_ExportReadersRequest_type_tag  1
#define reader_v1_ExportReadersRequest_request_tag 2
#define reader_v1_ExportReadersResponse_file_tag 1

/* Struct field encoding specification for nanopb */
#define reader_v1_ExportReadersRequest_FIELDLIST(X, a) \
X(a, STATIC,   SINGULAR, UENUM,    type,              1) \
X(a, STATIC,   OPTIONAL, MESSAGE,  request,           2)
#define reader_v1_ExportReadersRequest_CALLBACK NULL
#define reader_v1_ExportReadersRequest_DEFAULT NULL
#define reader_v1_ExportReadersRequest_request_MSGTYPE reader_v1_GetReadersRequest

#define reader_v1_ExportReadersResponse_FIELDLIST(X, a) \
X(a, CALLBACK, SINGULAR, STRING,   file,              1)
#define reader_v1_ExportReadersResponse_CALLBACK pb_default_field_callback
#define reader_v1_ExportReadersResponse_DEFAULT NULL

extern const pb_msgdesc_t reader_v1_ExportReadersRequest_msg;
extern const pb_msgdesc_t reader_v1_ExportReadersResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define reader_v1_ExportReadersRequest_fields &reader_v1_ExportReadersRequest_msg
#define reader_v1_ExportReadersResponse_fields &reader_v1_ExportReadersResponse_msg

/* Maximum encoded size of messages (where known) */
/* reader_v1_ExportReadersResponse_size depends on runtime parameters */
#if defined(reader_v1_GetReadersRequest_size)
#define READER_V1_READER_V1_EXPORT_PB_H_MAX_SIZE reader_v1_ExportReadersRequest_size
#define reader_v1_ExportReadersRequest_size      (8 + reader_v1_GetReadersRequest_size)
#endif

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

#endif
