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

#ifndef PB_USER_V1_USER_V1_API_KEY_PB_H_INCLUDED
#define PB_USER_V1_USER_V1_API_KEY_PB_H_INCLUDED
#include <pb.h>
#include "buf/validate/validate.pb.h"
#include "google/protobuf/timestamp.pb.h"

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

/* Struct definitions */
typedef struct _user_v1_CreateAPIKeyRequest {
    bool has_expiration;
    google_protobuf_Timestamp expiration;
    pb_callback_t password;
    pb_callback_t confirm_password;
} user_v1_CreateAPIKeyRequest;

typedef struct _user_v1_CreateAPIKeyResponse {
    pb_callback_t key;
} user_v1_CreateAPIKeyResponse;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define user_v1_CreateAPIKeyRequest_init_default {false, google_protobuf_Timestamp_init_default, {{NULL}, NULL}, {{NULL}, NULL}}
#define user_v1_CreateAPIKeyResponse_init_default {{{NULL}, NULL}}
#define user_v1_CreateAPIKeyRequest_init_zero    {false, google_protobuf_Timestamp_init_zero, {{NULL}, NULL}, {{NULL}, NULL}}
#define user_v1_CreateAPIKeyResponse_init_zero   {{{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
#define user_v1_CreateAPIKeyRequest_expiration_tag 1
#define user_v1_CreateAPIKeyRequest_password_tag 2
#define user_v1_CreateAPIKeyRequest_confirm_password_tag 3
#define user_v1_CreateAPIKeyResponse_key_tag     1

/* Struct field encoding specification for nanopb */
#define user_v1_CreateAPIKeyRequest_FIELDLIST(X, a) \
X(a, STATIC,   OPTIONAL, MESSAGE,  expiration,        1) \
X(a, CALLBACK, SINGULAR, STRING,   password,          2) \
X(a, CALLBACK, SINGULAR, STRING,   confirm_password,   3)
#define user_v1_CreateAPIKeyRequest_CALLBACK pb_default_field_callback
#define user_v1_CreateAPIKeyRequest_DEFAULT NULL
#define user_v1_CreateAPIKeyRequest_expiration_MSGTYPE google_protobuf_Timestamp

#define user_v1_CreateAPIKeyResponse_FIELDLIST(X, a) \
X(a, CALLBACK, SINGULAR, STRING,   key,               1)
#define user_v1_CreateAPIKeyResponse_CALLBACK pb_default_field_callback
#define user_v1_CreateAPIKeyResponse_DEFAULT NULL

extern const pb_msgdesc_t user_v1_CreateAPIKeyRequest_msg;
extern const pb_msgdesc_t user_v1_CreateAPIKeyResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define user_v1_CreateAPIKeyRequest_fields &user_v1_CreateAPIKeyRequest_msg
#define user_v1_CreateAPIKeyResponse_fields &user_v1_CreateAPIKeyResponse_msg

/* Maximum encoded size of messages (where known) */
/* user_v1_CreateAPIKeyRequest_size depends on runtime parameters */
/* user_v1_CreateAPIKeyResponse_size depends on runtime parameters */

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

#endif
