document.nanopb.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /*
  2. * Copyright 2024 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* Automatically generated nanopb header */
  17. /* Generated by nanopb-0.3.9.8 */
  18. #ifndef PB_GOOGLE_FIRESTORE_V1_DOCUMENT_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_FIRESTORE_V1_DOCUMENT_NANOPB_H_INCLUDED
  20. #include <pb.h>
  21. #include "google/protobuf/struct.nanopb.h"
  22. #include "google/protobuf/timestamp.nanopb.h"
  23. #include "google/type/latlng.nanopb.h"
  24. #include <string>
  25. namespace firebase {
  26. namespace firestore {
  27. /* @@protoc_insertion_point(includes) */
  28. #if PB_PROTO_HEADER_VERSION != 30
  29. #error Regenerate this file with the current version of nanopb generator.
  30. #endif
  31. /* Struct definitions */
  32. typedef struct _google_firestore_v1_ArrayValue {
  33. pb_size_t values_count;
  34. struct _google_firestore_v1_Value *values;
  35. std::string ToString(int indent = 0) const;
  36. /* @@protoc_insertion_point(struct:google_firestore_v1_ArrayValue) */
  37. } google_firestore_v1_ArrayValue;
  38. typedef struct _google_firestore_v1_MapValue {
  39. pb_size_t fields_count;
  40. struct _google_firestore_v1_MapValue_FieldsEntry *fields;
  41. std::string ToString(int indent = 0) const;
  42. /* @@protoc_insertion_point(struct:google_firestore_v1_MapValue) */
  43. } google_firestore_v1_MapValue;
  44. typedef struct _google_firestore_v1_Document {
  45. pb_bytes_array_t *name;
  46. pb_size_t fields_count;
  47. struct _google_firestore_v1_Document_FieldsEntry *fields;
  48. google_protobuf_Timestamp create_time;
  49. bool has_update_time;
  50. google_protobuf_Timestamp update_time;
  51. std::string ToString(int indent = 0) const;
  52. /* @@protoc_insertion_point(struct:google_firestore_v1_Document) */
  53. } google_firestore_v1_Document;
  54. typedef struct _google_firestore_v1_Value {
  55. pb_size_t which_value_type;
  56. union {
  57. bool boolean_value;
  58. int64_t integer_value;
  59. double double_value;
  60. pb_bytes_array_t *reference_value;
  61. google_firestore_v1_MapValue map_value;
  62. google_type_LatLng geo_point_value;
  63. google_firestore_v1_ArrayValue array_value;
  64. google_protobuf_Timestamp timestamp_value;
  65. google_protobuf_NullValue null_value;
  66. pb_bytes_array_t *string_value;
  67. pb_bytes_array_t *bytes_value;
  68. };
  69. std::string ToString(int indent = 0) const;
  70. /* @@protoc_insertion_point(struct:google_firestore_v1_Value) */
  71. } google_firestore_v1_Value;
  72. typedef struct _google_firestore_v1_Document_FieldsEntry {
  73. pb_bytes_array_t *key;
  74. google_firestore_v1_Value value;
  75. std::string ToString(int indent = 0) const;
  76. /* @@protoc_insertion_point(struct:google_firestore_v1_Document_FieldsEntry) */
  77. } google_firestore_v1_Document_FieldsEntry;
  78. typedef struct _google_firestore_v1_MapValue_FieldsEntry {
  79. pb_bytes_array_t *key;
  80. google_firestore_v1_Value value;
  81. std::string ToString(int indent = 0) const;
  82. /* @@protoc_insertion_point(struct:google_firestore_v1_MapValue_FieldsEntry) */
  83. } google_firestore_v1_MapValue_FieldsEntry;
  84. /* Default values for struct fields */
  85. /* Initializer values for message structs */
  86. #define google_firestore_v1_Document_init_default {NULL, 0, NULL, google_protobuf_Timestamp_init_default, false, google_protobuf_Timestamp_init_default}
  87. #define google_firestore_v1_Document_FieldsEntry_init_default {NULL, google_firestore_v1_Value_init_default}
  88. #define google_firestore_v1_Value_init_default {0, {0}}
  89. #define google_firestore_v1_ArrayValue_init_default {0, NULL}
  90. #define google_firestore_v1_MapValue_init_default {0, NULL}
  91. #define google_firestore_v1_MapValue_FieldsEntry_init_default {NULL, google_firestore_v1_Value_init_default}
  92. #define google_firestore_v1_Document_init_zero {NULL, 0, NULL, google_protobuf_Timestamp_init_zero, false, google_protobuf_Timestamp_init_zero}
  93. #define google_firestore_v1_Document_FieldsEntry_init_zero {NULL, google_firestore_v1_Value_init_zero}
  94. #define google_firestore_v1_Value_init_zero {0, {0}}
  95. #define google_firestore_v1_ArrayValue_init_zero {0, NULL}
  96. #define google_firestore_v1_MapValue_init_zero {0, NULL}
  97. #define google_firestore_v1_MapValue_FieldsEntry_init_zero {NULL, google_firestore_v1_Value_init_zero}
  98. /* Field tags (for use in manual encoding/decoding) */
  99. #define google_firestore_v1_ArrayValue_values_tag 1
  100. #define google_firestore_v1_MapValue_fields_tag 1
  101. #define google_firestore_v1_Document_name_tag 1
  102. #define google_firestore_v1_Document_fields_tag 2
  103. #define google_firestore_v1_Document_create_time_tag 3
  104. #define google_firestore_v1_Document_update_time_tag 4
  105. #define google_firestore_v1_Value_boolean_value_tag 1
  106. #define google_firestore_v1_Value_integer_value_tag 2
  107. #define google_firestore_v1_Value_double_value_tag 3
  108. #define google_firestore_v1_Value_reference_value_tag 5
  109. #define google_firestore_v1_Value_map_value_tag 6
  110. #define google_firestore_v1_Value_geo_point_value_tag 8
  111. #define google_firestore_v1_Value_array_value_tag 9
  112. #define google_firestore_v1_Value_timestamp_value_tag 10
  113. #define google_firestore_v1_Value_null_value_tag 11
  114. #define google_firestore_v1_Value_string_value_tag 17
  115. #define google_firestore_v1_Value_bytes_value_tag 18
  116. #define google_firestore_v1_Document_FieldsEntry_key_tag 1
  117. #define google_firestore_v1_Document_FieldsEntry_value_tag 2
  118. #define google_firestore_v1_MapValue_FieldsEntry_key_tag 1
  119. #define google_firestore_v1_MapValue_FieldsEntry_value_tag 2
  120. /* Struct field encoding specification for nanopb */
  121. extern const pb_field_t google_firestore_v1_Document_fields[5];
  122. extern const pb_field_t google_firestore_v1_Document_FieldsEntry_fields[3];
  123. extern const pb_field_t google_firestore_v1_Value_fields[12];
  124. extern const pb_field_t google_firestore_v1_ArrayValue_fields[2];
  125. extern const pb_field_t google_firestore_v1_MapValue_fields[2];
  126. extern const pb_field_t google_firestore_v1_MapValue_FieldsEntry_fields[3];
  127. /* Maximum encoded size of messages (where known) */
  128. /* google_firestore_v1_Document_size depends on runtime parameters */
  129. /* google_firestore_v1_Document_FieldsEntry_size depends on runtime parameters */
  130. /* google_firestore_v1_Value_size depends on runtime parameters */
  131. /* google_firestore_v1_ArrayValue_size depends on runtime parameters */
  132. /* google_firestore_v1_MapValue_size depends on runtime parameters */
  133. /* google_firestore_v1_MapValue_FieldsEntry_size depends on runtime parameters */
  134. /* Message IDs (where set with "msgid" option) */
  135. #ifdef PB_MSGID
  136. #define DOCUMENT_MESSAGES \
  137. #endif
  138. } // namespace firestore
  139. } // namespace firebase
  140. /* @@protoc_insertion_point(eof) */
  141. #endif