mutation.nanopb.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED
  19. #define PB_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED
  20. #include <pb.h>
  21. #include "google/firestore/v1/write.nanopb.h"
  22. #include "google/protobuf/timestamp.nanopb.h"
  23. #include <string>
  24. namespace firebase {
  25. namespace firestore {
  26. /* @@protoc_insertion_point(includes) */
  27. #if PB_PROTO_HEADER_VERSION != 30
  28. #error Regenerate this file with the current version of nanopb generator.
  29. #endif
  30. /* Struct definitions */
  31. typedef struct _firestore_client_MutationQueue {
  32. int32_t last_acknowledged_batch_id;
  33. pb_bytes_array_t *last_stream_token;
  34. std::string ToString(int indent = 0) const;
  35. /* @@protoc_insertion_point(struct:firestore_client_MutationQueue) */
  36. } firestore_client_MutationQueue;
  37. typedef struct _firestore_client_WriteBatch {
  38. int32_t batch_id;
  39. pb_size_t writes_count;
  40. struct _google_firestore_v1_Write *writes;
  41. google_protobuf_Timestamp local_write_time;
  42. pb_size_t base_writes_count;
  43. struct _google_firestore_v1_Write *base_writes;
  44. std::string ToString(int indent = 0) const;
  45. /* @@protoc_insertion_point(struct:firestore_client_WriteBatch) */
  46. } firestore_client_WriteBatch;
  47. /* Default values for struct fields */
  48. /* Initializer values for message structs */
  49. #define firestore_client_MutationQueue_init_default {0, NULL}
  50. #define firestore_client_WriteBatch_init_default {0, 0, NULL, google_protobuf_Timestamp_init_default, 0, NULL}
  51. #define firestore_client_MutationQueue_init_zero {0, NULL}
  52. #define firestore_client_WriteBatch_init_zero {0, 0, NULL, google_protobuf_Timestamp_init_zero, 0, NULL}
  53. /* Field tags (for use in manual encoding/decoding) */
  54. #define firestore_client_MutationQueue_last_acknowledged_batch_id_tag 1
  55. #define firestore_client_MutationQueue_last_stream_token_tag 2
  56. #define firestore_client_WriteBatch_batch_id_tag 1
  57. #define firestore_client_WriteBatch_writes_tag 2
  58. #define firestore_client_WriteBatch_local_write_time_tag 3
  59. #define firestore_client_WriteBatch_base_writes_tag 4
  60. /* Struct field encoding specification for nanopb */
  61. extern const pb_field_t firestore_client_MutationQueue_fields[3];
  62. extern const pb_field_t firestore_client_WriteBatch_fields[5];
  63. /* Maximum encoded size of messages (where known) */
  64. /* firestore_client_MutationQueue_size depends on runtime parameters */
  65. /* firestore_client_WriteBatch_size depends on runtime parameters */
  66. /* Message IDs (where set with "msgid" option) */
  67. #ifdef PB_MSGID
  68. #define MUTATION_MESSAGES \
  69. #endif
  70. } // namespace firestore
  71. } // namespace firebase
  72. /* @@protoc_insertion_point(eof) */
  73. #endif