aggregation_result.nanopb.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_AGGREGATION_RESULT_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_FIRESTORE_V1_AGGREGATION_RESULT_NANOPB_H_INCLUDED
  20. #include <pb.h>
  21. #include "google/firestore/v1/document.nanopb.h"
  22. #include <string>
  23. namespace firebase {
  24. namespace firestore {
  25. /* @@protoc_insertion_point(includes) */
  26. #if PB_PROTO_HEADER_VERSION != 30
  27. #error Regenerate this file with the current version of nanopb generator.
  28. #endif
  29. /* Struct definitions */
  30. typedef struct _google_firestore_v1_AggregationResult {
  31. pb_size_t aggregate_fields_count;
  32. struct _google_firestore_v1_AggregationResult_AggregateFieldsEntry *aggregate_fields;
  33. std::string ToString(int indent = 0) const;
  34. /* @@protoc_insertion_point(struct:google_firestore_v1_AggregationResult) */
  35. } google_firestore_v1_AggregationResult;
  36. typedef struct _google_firestore_v1_AggregationResult_AggregateFieldsEntry {
  37. pb_bytes_array_t *key;
  38. google_firestore_v1_Value value;
  39. std::string ToString(int indent = 0) const;
  40. /* @@protoc_insertion_point(struct:google_firestore_v1_AggregationResult_AggregateFieldsEntry) */
  41. } google_firestore_v1_AggregationResult_AggregateFieldsEntry;
  42. /* Default values for struct fields */
  43. /* Initializer values for message structs */
  44. #define google_firestore_v1_AggregationResult_init_default {0, NULL}
  45. #define google_firestore_v1_AggregationResult_AggregateFieldsEntry_init_default {NULL, google_firestore_v1_Value_init_default}
  46. #define google_firestore_v1_AggregationResult_init_zero {0, NULL}
  47. #define google_firestore_v1_AggregationResult_AggregateFieldsEntry_init_zero {NULL, google_firestore_v1_Value_init_zero}
  48. /* Field tags (for use in manual encoding/decoding) */
  49. #define google_firestore_v1_AggregationResult_aggregate_fields_tag 2
  50. #define google_firestore_v1_AggregationResult_AggregateFieldsEntry_key_tag 1
  51. #define google_firestore_v1_AggregationResult_AggregateFieldsEntry_value_tag 2
  52. /* Struct field encoding specification for nanopb */
  53. extern const pb_field_t google_firestore_v1_AggregationResult_fields[2];
  54. extern const pb_field_t google_firestore_v1_AggregationResult_AggregateFieldsEntry_fields[3];
  55. /* Maximum encoded size of messages (where known) */
  56. /* google_firestore_v1_AggregationResult_size depends on runtime parameters */
  57. /* google_firestore_v1_AggregationResult_AggregateFieldsEntry_size depends on runtime parameters */
  58. /* Message IDs (where set with "msgid" option) */
  59. #ifdef PB_MSGID
  60. #define AGGREGATION_RESULT_MESSAGES \
  61. #endif
  62. } // namespace firestore
  63. } // namespace firebase
  64. /* @@protoc_insertion_point(eof) */
  65. #endif