common.nanopb.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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_COMMON_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_FIRESTORE_V1_COMMON_NANOPB_H_INCLUDED
  20. #include <pb.h>
  21. #include "google/protobuf/timestamp.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_DocumentMask {
  31. pb_size_t field_paths_count;
  32. pb_bytes_array_t **field_paths;
  33. std::string ToString(int indent = 0) const;
  34. /* @@protoc_insertion_point(struct:google_firestore_v1_DocumentMask) */
  35. } google_firestore_v1_DocumentMask;
  36. typedef struct _google_firestore_v1_TransactionOptions_ReadWrite {
  37. pb_bytes_array_t *retry_transaction;
  38. std::string ToString(int indent = 0) const;
  39. /* @@protoc_insertion_point(struct:google_firestore_v1_TransactionOptions_ReadWrite) */
  40. } google_firestore_v1_TransactionOptions_ReadWrite;
  41. typedef struct _google_firestore_v1_Precondition {
  42. pb_size_t which_condition_type;
  43. union {
  44. bool exists;
  45. google_protobuf_Timestamp update_time;
  46. };
  47. std::string ToString(int indent = 0) const;
  48. /* @@protoc_insertion_point(struct:google_firestore_v1_Precondition) */
  49. } google_firestore_v1_Precondition;
  50. typedef struct _google_firestore_v1_TransactionOptions_ReadOnly {
  51. pb_size_t which_consistency_selector;
  52. union {
  53. google_protobuf_Timestamp read_time;
  54. };
  55. std::string ToString(int indent = 0) const;
  56. /* @@protoc_insertion_point(struct:google_firestore_v1_TransactionOptions_ReadOnly) */
  57. } google_firestore_v1_TransactionOptions_ReadOnly;
  58. typedef struct _google_firestore_v1_TransactionOptions {
  59. pb_size_t which_mode;
  60. union {
  61. google_firestore_v1_TransactionOptions_ReadOnly read_only;
  62. google_firestore_v1_TransactionOptions_ReadWrite read_write;
  63. };
  64. std::string ToString(int indent = 0) const;
  65. /* @@protoc_insertion_point(struct:google_firestore_v1_TransactionOptions) */
  66. } google_firestore_v1_TransactionOptions;
  67. /* Default values for struct fields */
  68. /* Initializer values for message structs */
  69. #define google_firestore_v1_DocumentMask_init_default {0, NULL}
  70. #define google_firestore_v1_Precondition_init_default {0, {0}}
  71. #define google_firestore_v1_TransactionOptions_init_default {0, {google_firestore_v1_TransactionOptions_ReadOnly_init_default}}
  72. #define google_firestore_v1_TransactionOptions_ReadWrite_init_default {NULL}
  73. #define google_firestore_v1_TransactionOptions_ReadOnly_init_default {0, {google_protobuf_Timestamp_init_default}}
  74. #define google_firestore_v1_DocumentMask_init_zero {0, NULL}
  75. #define google_firestore_v1_Precondition_init_zero {0, {0}}
  76. #define google_firestore_v1_TransactionOptions_init_zero {0, {google_firestore_v1_TransactionOptions_ReadOnly_init_zero}}
  77. #define google_firestore_v1_TransactionOptions_ReadWrite_init_zero {NULL}
  78. #define google_firestore_v1_TransactionOptions_ReadOnly_init_zero {0, {google_protobuf_Timestamp_init_zero}}
  79. /* Field tags (for use in manual encoding/decoding) */
  80. #define google_firestore_v1_DocumentMask_field_paths_tag 1
  81. #define google_firestore_v1_TransactionOptions_ReadWrite_retry_transaction_tag 1
  82. #define google_firestore_v1_Precondition_exists_tag 1
  83. #define google_firestore_v1_Precondition_update_time_tag 2
  84. #define google_firestore_v1_TransactionOptions_ReadOnly_read_time_tag 2
  85. #define google_firestore_v1_TransactionOptions_read_only_tag 2
  86. #define google_firestore_v1_TransactionOptions_read_write_tag 3
  87. /* Struct field encoding specification for nanopb */
  88. extern const pb_field_t google_firestore_v1_DocumentMask_fields[2];
  89. extern const pb_field_t google_firestore_v1_Precondition_fields[3];
  90. extern const pb_field_t google_firestore_v1_TransactionOptions_fields[3];
  91. extern const pb_field_t google_firestore_v1_TransactionOptions_ReadWrite_fields[2];
  92. extern const pb_field_t google_firestore_v1_TransactionOptions_ReadOnly_fields[2];
  93. /* Maximum encoded size of messages (where known) */
  94. /* google_firestore_v1_DocumentMask_size depends on runtime parameters */
  95. #define google_firestore_v1_Precondition_size 24
  96. /* google_firestore_v1_TransactionOptions_size depends on runtime parameters */
  97. /* google_firestore_v1_TransactionOptions_ReadWrite_size depends on runtime parameters */
  98. #define google_firestore_v1_TransactionOptions_ReadOnly_size 24
  99. /* Message IDs (where set with "msgid" option) */
  100. #ifdef PB_MSGID
  101. #define COMMON_MESSAGES \
  102. #endif
  103. } // namespace firestore
  104. } // namespace firebase
  105. /* @@protoc_insertion_point(eof) */
  106. #endif