struct.nanopb.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. * Copyright 2023 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_PROTOBUF_STRUCT_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_PROTOBUF_STRUCT_NANOPB_H_INCLUDED
  20. #include <pb.h>
  21. #include <string>
  22. namespace firebase {
  23. namespace firestore {
  24. /* @@protoc_insertion_point(includes) */
  25. #if PB_PROTO_HEADER_VERSION != 30
  26. #error Regenerate this file with the current version of nanopb generator.
  27. #endif
  28. /* Enum definitions */
  29. typedef enum _google_protobuf_NullValue {
  30. google_protobuf_NullValue_NULL_VALUE = 0
  31. } google_protobuf_NullValue;
  32. #define _google_protobuf_NullValue_MIN google_protobuf_NullValue_NULL_VALUE
  33. #define _google_protobuf_NullValue_MAX google_protobuf_NullValue_NULL_VALUE
  34. #define _google_protobuf_NullValue_ARRAYSIZE ((google_protobuf_NullValue)(google_protobuf_NullValue_NULL_VALUE+1))
  35. /* Struct definitions */
  36. typedef struct _google_protobuf_ListValue {
  37. pb_size_t values_count;
  38. struct _google_protobuf_Value *values;
  39. std::string ToString(int indent = 0) const;
  40. /* @@protoc_insertion_point(struct:google_protobuf_ListValue) */
  41. } google_protobuf_ListValue;
  42. typedef struct _google_protobuf_Struct {
  43. pb_size_t fields_count;
  44. struct _google_protobuf_Struct_FieldsEntry *fields;
  45. std::string ToString(int indent = 0) const;
  46. /* @@protoc_insertion_point(struct:google_protobuf_Struct) */
  47. } google_protobuf_Struct;
  48. typedef struct _google_protobuf_Value {
  49. pb_size_t which_kind;
  50. union {
  51. google_protobuf_NullValue null_value;
  52. double number_value;
  53. pb_bytes_array_t *string_value;
  54. bool bool_value;
  55. google_protobuf_Struct struct_value;
  56. google_protobuf_ListValue list_value;
  57. };
  58. std::string ToString(int indent = 0) const;
  59. /* @@protoc_insertion_point(struct:google_protobuf_Value) */
  60. } google_protobuf_Value;
  61. typedef struct _google_protobuf_Struct_FieldsEntry {
  62. pb_bytes_array_t *key;
  63. google_protobuf_Value value;
  64. std::string ToString(int indent = 0) const;
  65. /* @@protoc_insertion_point(struct:google_protobuf_Struct_FieldsEntry) */
  66. } google_protobuf_Struct_FieldsEntry;
  67. /* Default values for struct fields */
  68. /* Initializer values for message structs */
  69. #define google_protobuf_Struct_init_default {0, NULL}
  70. #define google_protobuf_Struct_FieldsEntry_init_default {NULL, google_protobuf_Value_init_default}
  71. #define google_protobuf_Value_init_default {0, {_google_protobuf_NullValue_MIN}}
  72. #define google_protobuf_ListValue_init_default {0, NULL}
  73. #define google_protobuf_Struct_init_zero {0, NULL}
  74. #define google_protobuf_Struct_FieldsEntry_init_zero {NULL, google_protobuf_Value_init_zero}
  75. #define google_protobuf_Value_init_zero {0, {_google_protobuf_NullValue_MIN}}
  76. #define google_protobuf_ListValue_init_zero {0, NULL}
  77. /* Field tags (for use in manual encoding/decoding) */
  78. #define google_protobuf_ListValue_values_tag 1
  79. #define google_protobuf_Struct_fields_tag 1
  80. #define google_protobuf_Value_null_value_tag 1
  81. #define google_protobuf_Value_number_value_tag 2
  82. #define google_protobuf_Value_string_value_tag 3
  83. #define google_protobuf_Value_bool_value_tag 4
  84. #define google_protobuf_Value_struct_value_tag 5
  85. #define google_protobuf_Value_list_value_tag 6
  86. #define google_protobuf_Struct_FieldsEntry_key_tag 1
  87. #define google_protobuf_Struct_FieldsEntry_value_tag 2
  88. /* Struct field encoding specification for nanopb */
  89. extern const pb_field_t google_protobuf_Struct_fields[2];
  90. extern const pb_field_t google_protobuf_Struct_FieldsEntry_fields[3];
  91. extern const pb_field_t google_protobuf_Value_fields[7];
  92. extern const pb_field_t google_protobuf_ListValue_fields[2];
  93. /* Maximum encoded size of messages (where known) */
  94. /* google_protobuf_Struct_size depends on runtime parameters */
  95. /* google_protobuf_Struct_FieldsEntry_size depends on runtime parameters */
  96. /* google_protobuf_Value_size depends on runtime parameters */
  97. /* google_protobuf_ListValue_size depends on runtime parameters */
  98. /* Message IDs (where set with "msgid" option) */
  99. #ifdef PB_MSGID
  100. #define STRUCT_MESSAGES \
  101. #endif
  102. const char* EnumToString(google_protobuf_NullValue value);
  103. } // namespace firestore
  104. } // namespace firebase
  105. /* @@protoc_insertion_point(eof) */
  106. #endif