http.nanopb.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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_HTTP_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_API_HTTP_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. /* Struct definitions */
  29. typedef struct _google_api_CustomHttpPattern {
  30. pb_bytes_array_t *kind;
  31. pb_bytes_array_t *path;
  32. std::string ToString(int indent = 0) const;
  33. /* @@protoc_insertion_point(struct:google_api_CustomHttpPattern) */
  34. } google_api_CustomHttpPattern;
  35. typedef struct _google_api_Http {
  36. pb_size_t rules_count;
  37. struct _google_api_HttpRule *rules;
  38. bool fully_decode_reserved_expansion;
  39. std::string ToString(int indent = 0) const;
  40. /* @@protoc_insertion_point(struct:google_api_Http) */
  41. } google_api_Http;
  42. typedef struct _google_api_HttpRule {
  43. pb_bytes_array_t *selector;
  44. pb_size_t which_pattern;
  45. union {
  46. pb_bytes_array_t *get;
  47. pb_bytes_array_t *put;
  48. pb_bytes_array_t *post;
  49. pb_bytes_array_t *delete_;
  50. pb_bytes_array_t *patch;
  51. google_api_CustomHttpPattern custom;
  52. };
  53. pb_bytes_array_t *body;
  54. pb_size_t additional_bindings_count;
  55. struct _google_api_HttpRule *additional_bindings;
  56. std::string ToString(int indent = 0) const;
  57. /* @@protoc_insertion_point(struct:google_api_HttpRule) */
  58. } google_api_HttpRule;
  59. /* Default values for struct fields */
  60. /* Initializer values for message structs */
  61. #define google_api_Http_init_default {0, NULL, 0}
  62. #define google_api_HttpRule_init_default {NULL, 0, {NULL}, NULL, 0, NULL}
  63. #define google_api_CustomHttpPattern_init_default {NULL, NULL}
  64. #define google_api_Http_init_zero {0, NULL, 0}
  65. #define google_api_HttpRule_init_zero {NULL, 0, {NULL}, NULL, 0, NULL}
  66. #define google_api_CustomHttpPattern_init_zero {NULL, NULL}
  67. /* Field tags (for use in manual encoding/decoding) */
  68. #define google_api_CustomHttpPattern_kind_tag 1
  69. #define google_api_CustomHttpPattern_path_tag 2
  70. #define google_api_Http_rules_tag 1
  71. #define google_api_Http_fully_decode_reserved_expansion_tag 2
  72. #define google_api_HttpRule_get_tag 2
  73. #define google_api_HttpRule_put_tag 3
  74. #define google_api_HttpRule_post_tag 4
  75. #define google_api_HttpRule_delete_tag 5
  76. #define google_api_HttpRule_patch_tag 6
  77. #define google_api_HttpRule_custom_tag 8
  78. #define google_api_HttpRule_selector_tag 1
  79. #define google_api_HttpRule_body_tag 7
  80. #define google_api_HttpRule_additional_bindings_tag 11
  81. /* Struct field encoding specification for nanopb */
  82. extern const pb_field_t google_api_Http_fields[3];
  83. extern const pb_field_t google_api_HttpRule_fields[10];
  84. extern const pb_field_t google_api_CustomHttpPattern_fields[3];
  85. /* Maximum encoded size of messages (where known) */
  86. /* google_api_Http_size depends on runtime parameters */
  87. /* google_api_HttpRule_size depends on runtime parameters */
  88. /* google_api_CustomHttpPattern_size depends on runtime parameters */
  89. /* Message IDs (where set with "msgid" option) */
  90. #ifdef PB_MSGID
  91. #define HTTP_MESSAGES \
  92. #endif
  93. } // namespace firestore
  94. } // namespace firebase
  95. /* @@protoc_insertion_point(eof) */
  96. #endif