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

#ifndef PB_SNS_TIME_PB_H_INCLUDED
#define PB_SNS_TIME_PB_H_INCLUDED
#include <pb.h>
#include "sns_std.pb.h"
#include "sns_std_sensor.pb.h"

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

/* Enum definitions */
/* @brief Message IDs for time Sensor */
typedef enum _sns_time_msgid {
    /* @brief Event with utc time or time zone offset
 Message: sns_time_event */
    SNS_TIME_MSGID_SNS_TIME_EVENT = 771
} sns_time_msgid;

/* Struct definitions */
/* @brief sns_time_event */
typedef struct _sns_time_event {
    /* @brief UTC time in seconds since 1/1/1970 00:00:00 */
    bool has_utc_time;
    uint64_t utc_time;
    /* @brief Time zone offset in seconds */
    bool has_time_zone_offset;
    int32_t time_zone_offset;
} sns_time_event;


#ifdef __cplusplus
extern "C" {
#endif

/* Helper constants for enums */
#define _sns_time_msgid_MIN SNS_TIME_MSGID_SNS_TIME_EVENT
#define _sns_time_msgid_MAX SNS_TIME_MSGID_SNS_TIME_EVENT
#define _sns_time_msgid_ARRAYSIZE ((sns_time_msgid)(SNS_TIME_MSGID_SNS_TIME_EVENT+1))
#define sns_time_msgid_SNS_TIME_MSGID_SNS_TIME_EVENT SNS_TIME_MSGID_SNS_TIME_EVENT



/* Initializer values for message structs */
#define sns_time_event_init_default              {false, 0, false, 0}
#define sns_time_event_init_zero                 {false, 0, false, 0}

/* Field tags (for use in manual encoding/decoding) */
#define sns_time_event_utc_time_tag              1
#define sns_time_event_time_zone_offset_tag      2

/* Struct field encoding specification for nanopb */
#define sns_time_event_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, UINT64,   utc_time,          1) \
X(a, STATIC,   OPTIONAL, SINT32,   time_zone_offset,   2)
#define sns_time_event_CALLBACK NULL
#define sns_time_event_DEFAULT NULL

extern const pb_msgdesc_t sns_time_event_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define sns_time_event_fields &sns_time_event_msg

/* Maximum encoded size of messages (where known) */
#define SNS_TIME_PB_H_MAX_SIZE                   sns_time_event_size
#define sns_time_event_size                      17

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

#endif
