// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */

#ifndef PB_WPI_PROTO_WPIMATH_NPB_H_INCLUDED
#define PB_WPI_PROTO_WPIMATH_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>

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

/* Struct definitions */
typedef struct _wpi_proto_ProtobufMatrix {
    static const pb_msgdesc_t* msg_descriptor(void) noexcept;
    static std::string_view msg_name(void) noexcept;
    static pb_filedesc_t file_descriptor(void) noexcept;

    uint32_t num_rows;
    uint32_t num_cols;
    pb_callback_t data;
} wpi_proto_ProtobufMatrix;

typedef struct _wpi_proto_ProtobufVector {
    static const pb_msgdesc_t* msg_descriptor(void) noexcept;
    static std::string_view msg_name(void) noexcept;
    static pb_filedesc_t file_descriptor(void) noexcept;

    pb_callback_t rows;
} wpi_proto_ProtobufVector;


/* Initializer values for message structs */
#define wpi_proto_ProtobufMatrix_init_default    {0, 0, {{NULL}, NULL}}
#define wpi_proto_ProtobufVector_init_default    {{{NULL}, NULL}}
#define wpi_proto_ProtobufMatrix_init_zero       {0, 0, {{NULL}, NULL}}
#define wpi_proto_ProtobufVector_init_zero       {{{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufMatrix_num_rows_tag    1
#define wpi_proto_ProtobufMatrix_num_cols_tag    2
#define wpi_proto_ProtobufMatrix_data_tag        3
#define wpi_proto_ProtobufVector_rows_tag        1

/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufMatrix_FIELDLIST(X, a) \
X(a, STATIC,   SINGULAR, UINT32,   num_rows,          1) \
X(a, STATIC,   SINGULAR, UINT32,   num_cols,          2) \
X(a, CALLBACK, REPEATED, DOUBLE,   data,              3)
#define wpi_proto_ProtobufMatrix_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufMatrix_DEFAULT NULL

#define wpi_proto_ProtobufVector_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, DOUBLE,   rows,              1)
#define wpi_proto_ProtobufVector_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufVector_DEFAULT NULL

/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufMatrix_size depends on runtime parameters */
/* wpi_proto_ProtobufVector_size depends on runtime parameters */


#endif
