resource.nanopb.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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_API_RESOURCE_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_API_RESOURCE_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_api_ResourceDescriptor_History {
  30. google_api_ResourceDescriptor_History_HISTORY_UNSPECIFIED = 0,
  31. google_api_ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN = 1,
  32. google_api_ResourceDescriptor_History_FUTURE_MULTI_PATTERN = 2
  33. } google_api_ResourceDescriptor_History;
  34. #define _google_api_ResourceDescriptor_History_MIN google_api_ResourceDescriptor_History_HISTORY_UNSPECIFIED
  35. #define _google_api_ResourceDescriptor_History_MAX google_api_ResourceDescriptor_History_FUTURE_MULTI_PATTERN
  36. #define _google_api_ResourceDescriptor_History_ARRAYSIZE ((google_api_ResourceDescriptor_History)(google_api_ResourceDescriptor_History_FUTURE_MULTI_PATTERN+1))
  37. /* Struct definitions */
  38. typedef struct _google_api_ResourceReference {
  39. pb_bytes_array_t *type;
  40. pb_bytes_array_t *child_type;
  41. std::string ToString(int indent = 0) const;
  42. /* @@protoc_insertion_point(struct:google_api_ResourceReference) */
  43. } google_api_ResourceReference;
  44. typedef struct _google_api_ResourceDescriptor {
  45. pb_bytes_array_t *type;
  46. pb_size_t pattern_count;
  47. pb_bytes_array_t **pattern;
  48. pb_bytes_array_t *name_field;
  49. google_api_ResourceDescriptor_History history;
  50. pb_bytes_array_t *plural;
  51. pb_bytes_array_t *singular;
  52. std::string ToString(int indent = 0) const;
  53. /* @@protoc_insertion_point(struct:google_api_ResourceDescriptor) */
  54. } google_api_ResourceDescriptor;
  55. /* Extensions */
  56. /* Extension field google_api_resource_reference was skipped because only "optional"
  57. type of extension fields is currently supported. */
  58. /* Extension field google_api_resource_definition was skipped because only "optional"
  59. type of extension fields is currently supported. */
  60. /* Extension field google_api_resource was skipped because only "optional"
  61. type of extension fields is currently supported. */
  62. /* Default values for struct fields */
  63. /* Initializer values for message structs */
  64. #define google_api_ResourceDescriptor_init_default {NULL, 0, NULL, NULL, _google_api_ResourceDescriptor_History_MIN, NULL, NULL}
  65. #define google_api_ResourceReference_init_default {NULL, NULL}
  66. #define google_api_ResourceDescriptor_init_zero {NULL, 0, NULL, NULL, _google_api_ResourceDescriptor_History_MIN, NULL, NULL}
  67. #define google_api_ResourceReference_init_zero {NULL, NULL}
  68. /* Field tags (for use in manual encoding/decoding) */
  69. #define google_api_ResourceReference_type_tag 1
  70. #define google_api_ResourceReference_child_type_tag 2
  71. #define google_api_ResourceDescriptor_type_tag 1
  72. #define google_api_ResourceDescriptor_pattern_tag 2
  73. #define google_api_ResourceDescriptor_name_field_tag 3
  74. #define google_api_ResourceDescriptor_history_tag 4
  75. #define google_api_ResourceDescriptor_plural_tag 5
  76. #define google_api_ResourceDescriptor_singular_tag 6
  77. #define google_api_resource_reference_tag 1055
  78. #define google_api_resource_definition_tag 1053
  79. #define google_api_resource_tag 1053
  80. /* Struct field encoding specification for nanopb */
  81. extern const pb_field_t google_api_ResourceDescriptor_fields[7];
  82. extern const pb_field_t google_api_ResourceReference_fields[3];
  83. /* Maximum encoded size of messages (where known) */
  84. /* google_api_ResourceDescriptor_size depends on runtime parameters */
  85. /* google_api_ResourceReference_size depends on runtime parameters */
  86. /* Message IDs (where set with "msgid" option) */
  87. #ifdef PB_MSGID
  88. #define RESOURCE_MESSAGES \
  89. #endif
  90. const char* EnumToString(google_api_ResourceDescriptor_History value);
  91. } // namespace firestore
  92. } // namespace firebase
  93. /* @@protoc_insertion_point(eof) */
  94. #endif