|
|
@@ -15,7 +15,7 @@
|
|
|
*/
|
|
|
|
|
|
/* Automatically generated nanopb constant definitions */
|
|
|
-/* Generated by nanopb-0.3.9.6 */
|
|
|
+/* Generated by nanopb-0.3.9.7 */
|
|
|
|
|
|
#include "document.nanopb.h"
|
|
|
|
|
|
@@ -60,7 +60,7 @@ const pb_field_t google_firestore_v1_Value_fields[12] = {
|
|
|
PB_ANONYMOUS_ONEOF_FIELD(value_type, 8, MESSAGE , ONEOF, STATIC , UNION, google_firestore_v1_Value, geo_point_value, geo_point_value, &google_type_LatLng_fields),
|
|
|
PB_ANONYMOUS_ONEOF_FIELD(value_type, 9, MESSAGE , ONEOF, STATIC , UNION, google_firestore_v1_Value, array_value, array_value, &google_firestore_v1_ArrayValue_fields),
|
|
|
PB_ANONYMOUS_ONEOF_FIELD(value_type, 10, MESSAGE , ONEOF, STATIC , UNION, google_firestore_v1_Value, timestamp_value, timestamp_value, &google_protobuf_Timestamp_fields),
|
|
|
- PB_ANONYMOUS_ONEOF_FIELD(value_type, 11, ENUM , ONEOF, STATIC , UNION, google_firestore_v1_Value, null_value, null_value, 0),
|
|
|
+ PB_ANONYMOUS_ONEOF_FIELD(value_type, 11, UENUM , ONEOF, STATIC , UNION, google_firestore_v1_Value, null_value, null_value, 0),
|
|
|
PB_ANONYMOUS_ONEOF_FIELD(value_type, 17, BYTES , ONEOF, POINTER , UNION, google_firestore_v1_Value, string_value, string_value, 0),
|
|
|
PB_ANONYMOUS_ONEOF_FIELD(value_type, 18, BYTES , ONEOF, POINTER , UNION, google_firestore_v1_Value, bytes_value, bytes_value, 0),
|
|
|
PB_LAST_FIELD
|
|
|
@@ -107,6 +107,12 @@ PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_Document, create_time) < 256
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+/* On some platforms (such as AVR), double is really float.
|
|
|
+ * These are not directly supported by nanopb, but see example_avr_double.
|
|
|
+ * To get rid of this error, remove any double fields from your .proto.
|
|
|
+ */
|
|
|
+PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
|
|
|
+
|
|
|
std::string google_firestore_v1_Document::ToString(int indent) const {
|
|
|
std::string header = PrintHeader(indent, "Document", this);
|
|
|
std::string result;
|