firestore.nanopb.h 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  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_FIRESTORE_NANOPB_H_INCLUDED
  19. #define PB_GOOGLE_FIRESTORE_V1_FIRESTORE_NANOPB_H_INCLUDED
  20. #include <pb.h>
  21. #include "google/api/annotations.nanopb.h"
  22. #include "google/firestore/v1/aggregation_result.nanopb.h"
  23. #include "google/firestore/v1/common.nanopb.h"
  24. #include "google/firestore/v1/document.nanopb.h"
  25. #include "google/firestore/v1/query.nanopb.h"
  26. #include "google/firestore/v1/write.nanopb.h"
  27. #include "google/protobuf/empty.nanopb.h"
  28. #include "google/protobuf/timestamp.nanopb.h"
  29. #include "google/protobuf/wrappers.nanopb.h"
  30. #include "google/rpc/status.nanopb.h"
  31. #include <string>
  32. namespace firebase {
  33. namespace firestore {
  34. /* @@protoc_insertion_point(includes) */
  35. #if PB_PROTO_HEADER_VERSION != 30
  36. #error Regenerate this file with the current version of nanopb generator.
  37. #endif
  38. /* Enum definitions */
  39. typedef enum _google_firestore_v1_TargetChange_TargetChangeType {
  40. google_firestore_v1_TargetChange_TargetChangeType_NO_CHANGE = 0,
  41. google_firestore_v1_TargetChange_TargetChangeType_ADD = 1,
  42. google_firestore_v1_TargetChange_TargetChangeType_REMOVE = 2,
  43. google_firestore_v1_TargetChange_TargetChangeType_CURRENT = 3,
  44. google_firestore_v1_TargetChange_TargetChangeType_RESET = 4
  45. } google_firestore_v1_TargetChange_TargetChangeType;
  46. #define _google_firestore_v1_TargetChange_TargetChangeType_MIN google_firestore_v1_TargetChange_TargetChangeType_NO_CHANGE
  47. #define _google_firestore_v1_TargetChange_TargetChangeType_MAX google_firestore_v1_TargetChange_TargetChangeType_RESET
  48. #define _google_firestore_v1_TargetChange_TargetChangeType_ARRAYSIZE ((google_firestore_v1_TargetChange_TargetChangeType)(google_firestore_v1_TargetChange_TargetChangeType_RESET+1))
  49. /* Struct definitions */
  50. typedef struct _google_firestore_v1_BeginTransactionResponse {
  51. pb_bytes_array_t *transaction;
  52. std::string ToString(int indent = 0) const;
  53. /* @@protoc_insertion_point(struct:google_firestore_v1_BeginTransactionResponse) */
  54. } google_firestore_v1_BeginTransactionResponse;
  55. typedef struct _google_firestore_v1_CommitRequest {
  56. pb_bytes_array_t *database;
  57. pb_size_t writes_count;
  58. struct _google_firestore_v1_Write *writes;
  59. pb_bytes_array_t *transaction;
  60. std::string ToString(int indent = 0) const;
  61. /* @@protoc_insertion_point(struct:google_firestore_v1_CommitRequest) */
  62. } google_firestore_v1_CommitRequest;
  63. typedef struct _google_firestore_v1_ListCollectionIdsResponse {
  64. pb_size_t collection_ids_count;
  65. pb_bytes_array_t **collection_ids;
  66. pb_bytes_array_t *next_page_token;
  67. std::string ToString(int indent = 0) const;
  68. /* @@protoc_insertion_point(struct:google_firestore_v1_ListCollectionIdsResponse) */
  69. } google_firestore_v1_ListCollectionIdsResponse;
  70. typedef struct _google_firestore_v1_ListDocumentsResponse {
  71. pb_size_t documents_count;
  72. struct _google_firestore_v1_Document *documents;
  73. pb_bytes_array_t *next_page_token;
  74. std::string ToString(int indent = 0) const;
  75. /* @@protoc_insertion_point(struct:google_firestore_v1_ListDocumentsResponse) */
  76. } google_firestore_v1_ListDocumentsResponse;
  77. typedef struct _google_firestore_v1_ListenRequest_LabelsEntry {
  78. pb_bytes_array_t *key;
  79. pb_bytes_array_t *value;
  80. std::string ToString(int indent = 0) const;
  81. /* @@protoc_insertion_point(struct:google_firestore_v1_ListenRequest_LabelsEntry) */
  82. } google_firestore_v1_ListenRequest_LabelsEntry;
  83. typedef struct _google_firestore_v1_RollbackRequest {
  84. pb_bytes_array_t *database;
  85. pb_bytes_array_t *transaction;
  86. std::string ToString(int indent = 0) const;
  87. /* @@protoc_insertion_point(struct:google_firestore_v1_RollbackRequest) */
  88. } google_firestore_v1_RollbackRequest;
  89. typedef struct _google_firestore_v1_Target_DocumentsTarget {
  90. pb_size_t documents_count;
  91. pb_bytes_array_t **documents;
  92. std::string ToString(int indent = 0) const;
  93. /* @@protoc_insertion_point(struct:google_firestore_v1_Target_DocumentsTarget) */
  94. } google_firestore_v1_Target_DocumentsTarget;
  95. typedef struct _google_firestore_v1_WriteRequest {
  96. pb_bytes_array_t *database;
  97. pb_bytes_array_t *stream_id;
  98. pb_size_t writes_count;
  99. struct _google_firestore_v1_Write *writes;
  100. pb_bytes_array_t *stream_token;
  101. pb_size_t labels_count;
  102. struct _google_firestore_v1_WriteRequest_LabelsEntry *labels;
  103. std::string ToString(int indent = 0) const;
  104. /* @@protoc_insertion_point(struct:google_firestore_v1_WriteRequest) */
  105. } google_firestore_v1_WriteRequest;
  106. typedef struct _google_firestore_v1_WriteRequest_LabelsEntry {
  107. pb_bytes_array_t *key;
  108. pb_bytes_array_t *value;
  109. std::string ToString(int indent = 0) const;
  110. /* @@protoc_insertion_point(struct:google_firestore_v1_WriteRequest_LabelsEntry) */
  111. } google_firestore_v1_WriteRequest_LabelsEntry;
  112. typedef struct _google_firestore_v1_BatchGetDocumentsRequest {
  113. pb_bytes_array_t *database;
  114. pb_size_t documents_count;
  115. pb_bytes_array_t **documents;
  116. google_firestore_v1_DocumentMask mask;
  117. pb_size_t which_consistency_selector;
  118. union {
  119. pb_bytes_array_t *transaction;
  120. google_firestore_v1_TransactionOptions new_transaction;
  121. google_protobuf_Timestamp read_time;
  122. };
  123. std::string ToString(int indent = 0) const;
  124. /* @@protoc_insertion_point(struct:google_firestore_v1_BatchGetDocumentsRequest) */
  125. } google_firestore_v1_BatchGetDocumentsRequest;
  126. typedef struct _google_firestore_v1_BatchGetDocumentsResponse {
  127. pb_size_t which_result;
  128. union {
  129. google_firestore_v1_Document found;
  130. pb_bytes_array_t *missing;
  131. };
  132. pb_bytes_array_t *transaction;
  133. google_protobuf_Timestamp read_time;
  134. std::string ToString(int indent = 0) const;
  135. /* @@protoc_insertion_point(struct:google_firestore_v1_BatchGetDocumentsResponse) */
  136. } google_firestore_v1_BatchGetDocumentsResponse;
  137. typedef struct _google_firestore_v1_BeginTransactionRequest {
  138. pb_bytes_array_t *database;
  139. google_firestore_v1_TransactionOptions options;
  140. std::string ToString(int indent = 0) const;
  141. /* @@protoc_insertion_point(struct:google_firestore_v1_BeginTransactionRequest) */
  142. } google_firestore_v1_BeginTransactionRequest;
  143. typedef struct _google_firestore_v1_CommitResponse {
  144. pb_size_t write_results_count;
  145. struct _google_firestore_v1_WriteResult *write_results;
  146. google_protobuf_Timestamp commit_time;
  147. std::string ToString(int indent = 0) const;
  148. /* @@protoc_insertion_point(struct:google_firestore_v1_CommitResponse) */
  149. } google_firestore_v1_CommitResponse;
  150. typedef struct _google_firestore_v1_CreateDocumentRequest {
  151. pb_bytes_array_t *parent;
  152. pb_bytes_array_t *collection_id;
  153. pb_bytes_array_t *document_id;
  154. google_firestore_v1_Document document;
  155. google_firestore_v1_DocumentMask mask;
  156. std::string ToString(int indent = 0) const;
  157. /* @@protoc_insertion_point(struct:google_firestore_v1_CreateDocumentRequest) */
  158. } google_firestore_v1_CreateDocumentRequest;
  159. typedef struct _google_firestore_v1_DeleteDocumentRequest {
  160. pb_bytes_array_t *name;
  161. google_firestore_v1_Precondition current_document;
  162. std::string ToString(int indent = 0) const;
  163. /* @@protoc_insertion_point(struct:google_firestore_v1_DeleteDocumentRequest) */
  164. } google_firestore_v1_DeleteDocumentRequest;
  165. typedef struct _google_firestore_v1_GetDocumentRequest {
  166. pb_bytes_array_t *name;
  167. google_firestore_v1_DocumentMask mask;
  168. pb_size_t which_consistency_selector;
  169. union {
  170. pb_bytes_array_t *transaction;
  171. google_protobuf_Timestamp read_time;
  172. };
  173. std::string ToString(int indent = 0) const;
  174. /* @@protoc_insertion_point(struct:google_firestore_v1_GetDocumentRequest) */
  175. } google_firestore_v1_GetDocumentRequest;
  176. typedef struct _google_firestore_v1_ListCollectionIdsRequest {
  177. pb_bytes_array_t *parent;
  178. int32_t page_size;
  179. pb_bytes_array_t *page_token;
  180. std::string ToString(int indent = 0) const;
  181. /* @@protoc_insertion_point(struct:google_firestore_v1_ListCollectionIdsRequest) */
  182. } google_firestore_v1_ListCollectionIdsRequest;
  183. typedef struct _google_firestore_v1_ListDocumentsRequest {
  184. pb_bytes_array_t *parent;
  185. pb_bytes_array_t *collection_id;
  186. int32_t page_size;
  187. pb_bytes_array_t *page_token;
  188. pb_bytes_array_t *order_by;
  189. google_firestore_v1_DocumentMask mask;
  190. pb_size_t which_consistency_selector;
  191. union {
  192. pb_bytes_array_t *transaction;
  193. google_protobuf_Timestamp read_time;
  194. };
  195. bool show_missing;
  196. std::string ToString(int indent = 0) const;
  197. /* @@protoc_insertion_point(struct:google_firestore_v1_ListDocumentsRequest) */
  198. } google_firestore_v1_ListDocumentsRequest;
  199. typedef struct _google_firestore_v1_RunAggregationQueryRequest {
  200. pb_bytes_array_t *parent;
  201. pb_size_t which_query_type;
  202. union {
  203. google_firestore_v1_StructuredAggregationQuery structured_aggregation_query;
  204. } query_type;
  205. pb_size_t which_consistency_selector;
  206. union {
  207. pb_bytes_array_t *transaction;
  208. google_firestore_v1_TransactionOptions new_transaction;
  209. google_protobuf_Timestamp read_time;
  210. } consistency_selector;
  211. std::string ToString(int indent = 0) const;
  212. /* @@protoc_insertion_point(struct:google_firestore_v1_RunAggregationQueryRequest) */
  213. } google_firestore_v1_RunAggregationQueryRequest;
  214. typedef struct _google_firestore_v1_RunAggregationQueryResponse {
  215. google_firestore_v1_AggregationResult result;
  216. pb_bytes_array_t *transaction;
  217. google_protobuf_Timestamp read_time;
  218. std::string ToString(int indent = 0) const;
  219. /* @@protoc_insertion_point(struct:google_firestore_v1_RunAggregationQueryResponse) */
  220. } google_firestore_v1_RunAggregationQueryResponse;
  221. typedef struct _google_firestore_v1_RunQueryRequest {
  222. pb_bytes_array_t *parent;
  223. pb_size_t which_query_type;
  224. union {
  225. google_firestore_v1_StructuredQuery structured_query;
  226. } query_type;
  227. pb_size_t which_consistency_selector;
  228. union {
  229. pb_bytes_array_t *transaction;
  230. google_firestore_v1_TransactionOptions new_transaction;
  231. google_protobuf_Timestamp read_time;
  232. } consistency_selector;
  233. std::string ToString(int indent = 0) const;
  234. /* @@protoc_insertion_point(struct:google_firestore_v1_RunQueryRequest) */
  235. } google_firestore_v1_RunQueryRequest;
  236. typedef struct _google_firestore_v1_RunQueryResponse {
  237. google_firestore_v1_Document document;
  238. pb_bytes_array_t *transaction;
  239. google_protobuf_Timestamp read_time;
  240. int32_t skipped_results;
  241. std::string ToString(int indent = 0) const;
  242. /* @@protoc_insertion_point(struct:google_firestore_v1_RunQueryResponse) */
  243. } google_firestore_v1_RunQueryResponse;
  244. typedef struct _google_firestore_v1_TargetChange {
  245. google_firestore_v1_TargetChange_TargetChangeType target_change_type;
  246. pb_size_t target_ids_count;
  247. int32_t *target_ids;
  248. bool has_cause;
  249. google_rpc_Status cause;
  250. pb_bytes_array_t *resume_token;
  251. google_protobuf_Timestamp read_time;
  252. std::string ToString(int indent = 0) const;
  253. /* @@protoc_insertion_point(struct:google_firestore_v1_TargetChange) */
  254. } google_firestore_v1_TargetChange;
  255. typedef struct _google_firestore_v1_Target_QueryTarget {
  256. pb_bytes_array_t *parent;
  257. pb_size_t which_query_type;
  258. union {
  259. google_firestore_v1_StructuredQuery structured_query;
  260. };
  261. std::string ToString(int indent = 0) const;
  262. /* @@protoc_insertion_point(struct:google_firestore_v1_Target_QueryTarget) */
  263. } google_firestore_v1_Target_QueryTarget;
  264. typedef struct _google_firestore_v1_UpdateDocumentRequest {
  265. google_firestore_v1_Document document;
  266. google_firestore_v1_DocumentMask update_mask;
  267. google_firestore_v1_DocumentMask mask;
  268. google_firestore_v1_Precondition current_document;
  269. std::string ToString(int indent = 0) const;
  270. /* @@protoc_insertion_point(struct:google_firestore_v1_UpdateDocumentRequest) */
  271. } google_firestore_v1_UpdateDocumentRequest;
  272. typedef struct _google_firestore_v1_WriteResponse {
  273. pb_bytes_array_t *stream_id;
  274. pb_bytes_array_t *stream_token;
  275. pb_size_t write_results_count;
  276. struct _google_firestore_v1_WriteResult *write_results;
  277. google_protobuf_Timestamp commit_time;
  278. std::string ToString(int indent = 0) const;
  279. /* @@protoc_insertion_point(struct:google_firestore_v1_WriteResponse) */
  280. } google_firestore_v1_WriteResponse;
  281. typedef struct _google_firestore_v1_ListenResponse {
  282. pb_size_t which_response_type;
  283. union {
  284. google_firestore_v1_TargetChange target_change;
  285. google_firestore_v1_DocumentChange document_change;
  286. google_firestore_v1_DocumentDelete document_delete;
  287. google_firestore_v1_ExistenceFilter filter;
  288. google_firestore_v1_DocumentRemove document_remove;
  289. };
  290. std::string ToString(int indent = 0) const;
  291. /* @@protoc_insertion_point(struct:google_firestore_v1_ListenResponse) */
  292. } google_firestore_v1_ListenResponse;
  293. typedef struct _google_firestore_v1_Target {
  294. pb_size_t which_target_type;
  295. union {
  296. google_firestore_v1_Target_QueryTarget query;
  297. google_firestore_v1_Target_DocumentsTarget documents;
  298. } target_type;
  299. pb_size_t which_resume_type;
  300. union {
  301. pb_bytes_array_t *resume_token;
  302. google_protobuf_Timestamp read_time;
  303. } resume_type;
  304. int32_t target_id;
  305. bool once;
  306. bool has_expected_count;
  307. google_protobuf_Int32Value expected_count;
  308. std::string ToString(int indent = 0) const;
  309. /* @@protoc_insertion_point(struct:google_firestore_v1_Target) */
  310. } google_firestore_v1_Target;
  311. typedef struct _google_firestore_v1_ListenRequest {
  312. pb_bytes_array_t *database;
  313. pb_size_t which_target_change;
  314. union {
  315. google_firestore_v1_Target add_target;
  316. int32_t remove_target;
  317. };
  318. pb_size_t labels_count;
  319. struct _google_firestore_v1_ListenRequest_LabelsEntry *labels;
  320. std::string ToString(int indent = 0) const;
  321. /* @@protoc_insertion_point(struct:google_firestore_v1_ListenRequest) */
  322. } google_firestore_v1_ListenRequest;
  323. /* Default values for struct fields */
  324. /* Initializer values for message structs */
  325. #define google_firestore_v1_GetDocumentRequest_init_default {NULL, google_firestore_v1_DocumentMask_init_default, 0, {NULL}}
  326. #define google_firestore_v1_ListDocumentsRequest_init_default {NULL, NULL, 0, NULL, NULL, google_firestore_v1_DocumentMask_init_default, 0, {NULL}, 0}
  327. #define google_firestore_v1_ListDocumentsResponse_init_default {0, NULL, NULL}
  328. #define google_firestore_v1_CreateDocumentRequest_init_default {NULL, NULL, NULL, google_firestore_v1_Document_init_default, google_firestore_v1_DocumentMask_init_default}
  329. #define google_firestore_v1_UpdateDocumentRequest_init_default {google_firestore_v1_Document_init_default, google_firestore_v1_DocumentMask_init_default, google_firestore_v1_DocumentMask_init_default, google_firestore_v1_Precondition_init_default}
  330. #define google_firestore_v1_DeleteDocumentRequest_init_default {NULL, google_firestore_v1_Precondition_init_default}
  331. #define google_firestore_v1_BatchGetDocumentsRequest_init_default {NULL, 0, NULL, google_firestore_v1_DocumentMask_init_default, 0, {NULL}}
  332. #define google_firestore_v1_BatchGetDocumentsResponse_init_default {0, {google_firestore_v1_Document_init_default}, NULL, google_protobuf_Timestamp_init_default}
  333. #define google_firestore_v1_BeginTransactionRequest_init_default {NULL, google_firestore_v1_TransactionOptions_init_default}
  334. #define google_firestore_v1_BeginTransactionResponse_init_default {NULL}
  335. #define google_firestore_v1_CommitRequest_init_default {NULL, 0, NULL, NULL}
  336. #define google_firestore_v1_CommitResponse_init_default {0, NULL, google_protobuf_Timestamp_init_default}
  337. #define google_firestore_v1_RollbackRequest_init_default {NULL, NULL}
  338. #define google_firestore_v1_RunQueryRequest_init_default {NULL, 0, {google_firestore_v1_StructuredQuery_init_default}, 0, {NULL}}
  339. #define google_firestore_v1_RunQueryResponse_init_default {google_firestore_v1_Document_init_default, NULL, google_protobuf_Timestamp_init_default, 0}
  340. #define google_firestore_v1_RunAggregationQueryRequest_init_default {NULL, 0, {google_firestore_v1_StructuredAggregationQuery_init_default}, 0, {NULL}}
  341. #define google_firestore_v1_RunAggregationQueryResponse_init_default {google_firestore_v1_AggregationResult_init_default, NULL, google_protobuf_Timestamp_init_default}
  342. #define google_firestore_v1_WriteRequest_init_default {NULL, NULL, 0, NULL, NULL, 0, NULL}
  343. #define google_firestore_v1_WriteRequest_LabelsEntry_init_default {NULL, NULL}
  344. #define google_firestore_v1_WriteResponse_init_default {NULL, NULL, 0, NULL, google_protobuf_Timestamp_init_default}
  345. #define google_firestore_v1_ListenRequest_init_default {NULL, 0, {google_firestore_v1_Target_init_default}, 0, NULL}
  346. #define google_firestore_v1_ListenRequest_LabelsEntry_init_default {NULL, NULL}
  347. #define google_firestore_v1_ListenResponse_init_default {0, {google_firestore_v1_TargetChange_init_default}}
  348. #define google_firestore_v1_Target_init_default {0, {google_firestore_v1_Target_QueryTarget_init_default}, 0, {NULL}, 0, 0, false, google_protobuf_Int32Value_init_default}
  349. #define google_firestore_v1_Target_DocumentsTarget_init_default {0, NULL}
  350. #define google_firestore_v1_Target_QueryTarget_init_default {NULL, 0, {google_firestore_v1_StructuredQuery_init_default}}
  351. #define google_firestore_v1_TargetChange_init_default {_google_firestore_v1_TargetChange_TargetChangeType_MIN, 0, NULL, false, google_rpc_Status_init_default, NULL, google_protobuf_Timestamp_init_default}
  352. #define google_firestore_v1_ListCollectionIdsRequest_init_default {NULL, 0, NULL}
  353. #define google_firestore_v1_ListCollectionIdsResponse_init_default {0, NULL, NULL}
  354. #define google_firestore_v1_GetDocumentRequest_init_zero {NULL, google_firestore_v1_DocumentMask_init_zero, 0, {NULL}}
  355. #define google_firestore_v1_ListDocumentsRequest_init_zero {NULL, NULL, 0, NULL, NULL, google_firestore_v1_DocumentMask_init_zero, 0, {NULL}, 0}
  356. #define google_firestore_v1_ListDocumentsResponse_init_zero {0, NULL, NULL}
  357. #define google_firestore_v1_CreateDocumentRequest_init_zero {NULL, NULL, NULL, google_firestore_v1_Document_init_zero, google_firestore_v1_DocumentMask_init_zero}
  358. #define google_firestore_v1_UpdateDocumentRequest_init_zero {google_firestore_v1_Document_init_zero, google_firestore_v1_DocumentMask_init_zero, google_firestore_v1_DocumentMask_init_zero, google_firestore_v1_Precondition_init_zero}
  359. #define google_firestore_v1_DeleteDocumentRequest_init_zero {NULL, google_firestore_v1_Precondition_init_zero}
  360. #define google_firestore_v1_BatchGetDocumentsRequest_init_zero {NULL, 0, NULL, google_firestore_v1_DocumentMask_init_zero, 0, {NULL}}
  361. #define google_firestore_v1_BatchGetDocumentsResponse_init_zero {0, {google_firestore_v1_Document_init_zero}, NULL, google_protobuf_Timestamp_init_zero}
  362. #define google_firestore_v1_BeginTransactionRequest_init_zero {NULL, google_firestore_v1_TransactionOptions_init_zero}
  363. #define google_firestore_v1_BeginTransactionResponse_init_zero {NULL}
  364. #define google_firestore_v1_CommitRequest_init_zero {NULL, 0, NULL, NULL}
  365. #define google_firestore_v1_CommitResponse_init_zero {0, NULL, google_protobuf_Timestamp_init_zero}
  366. #define google_firestore_v1_RollbackRequest_init_zero {NULL, NULL}
  367. #define google_firestore_v1_RunQueryRequest_init_zero {NULL, 0, {google_firestore_v1_StructuredQuery_init_zero}, 0, {NULL}}
  368. #define google_firestore_v1_RunQueryResponse_init_zero {google_firestore_v1_Document_init_zero, NULL, google_protobuf_Timestamp_init_zero, 0}
  369. #define google_firestore_v1_RunAggregationQueryRequest_init_zero {NULL, 0, {google_firestore_v1_StructuredAggregationQuery_init_zero}, 0, {NULL}}
  370. #define google_firestore_v1_RunAggregationQueryResponse_init_zero {google_firestore_v1_AggregationResult_init_zero, NULL, google_protobuf_Timestamp_init_zero}
  371. #define google_firestore_v1_WriteRequest_init_zero {NULL, NULL, 0, NULL, NULL, 0, NULL}
  372. #define google_firestore_v1_WriteRequest_LabelsEntry_init_zero {NULL, NULL}
  373. #define google_firestore_v1_WriteResponse_init_zero {NULL, NULL, 0, NULL, google_protobuf_Timestamp_init_zero}
  374. #define google_firestore_v1_ListenRequest_init_zero {NULL, 0, {google_firestore_v1_Target_init_zero}, 0, NULL}
  375. #define google_firestore_v1_ListenRequest_LabelsEntry_init_zero {NULL, NULL}
  376. #define google_firestore_v1_ListenResponse_init_zero {0, {google_firestore_v1_TargetChange_init_zero}}
  377. #define google_firestore_v1_Target_init_zero {0, {google_firestore_v1_Target_QueryTarget_init_zero}, 0, {NULL}, 0, 0, false, google_protobuf_Int32Value_init_zero}
  378. #define google_firestore_v1_Target_DocumentsTarget_init_zero {0, NULL}
  379. #define google_firestore_v1_Target_QueryTarget_init_zero {NULL, 0, {google_firestore_v1_StructuredQuery_init_zero}}
  380. #define google_firestore_v1_TargetChange_init_zero {_google_firestore_v1_TargetChange_TargetChangeType_MIN, 0, NULL, false, google_rpc_Status_init_zero, NULL, google_protobuf_Timestamp_init_zero}
  381. #define google_firestore_v1_ListCollectionIdsRequest_init_zero {NULL, 0, NULL}
  382. #define google_firestore_v1_ListCollectionIdsResponse_init_zero {0, NULL, NULL}
  383. /* Field tags (for use in manual encoding/decoding) */
  384. #define google_firestore_v1_BeginTransactionResponse_transaction_tag 1
  385. #define google_firestore_v1_CommitRequest_database_tag 1
  386. #define google_firestore_v1_CommitRequest_writes_tag 2
  387. #define google_firestore_v1_CommitRequest_transaction_tag 3
  388. #define google_firestore_v1_ListCollectionIdsResponse_collection_ids_tag 1
  389. #define google_firestore_v1_ListCollectionIdsResponse_next_page_token_tag 2
  390. #define google_firestore_v1_ListDocumentsResponse_documents_tag 1
  391. #define google_firestore_v1_ListDocumentsResponse_next_page_token_tag 2
  392. #define google_firestore_v1_ListenRequest_LabelsEntry_key_tag 1
  393. #define google_firestore_v1_ListenRequest_LabelsEntry_value_tag 2
  394. #define google_firestore_v1_RollbackRequest_database_tag 1
  395. #define google_firestore_v1_RollbackRequest_transaction_tag 2
  396. #define google_firestore_v1_Target_DocumentsTarget_documents_tag 2
  397. #define google_firestore_v1_WriteRequest_database_tag 1
  398. #define google_firestore_v1_WriteRequest_stream_id_tag 2
  399. #define google_firestore_v1_WriteRequest_writes_tag 3
  400. #define google_firestore_v1_WriteRequest_stream_token_tag 4
  401. #define google_firestore_v1_WriteRequest_labels_tag 5
  402. #define google_firestore_v1_WriteRequest_LabelsEntry_key_tag 1
  403. #define google_firestore_v1_WriteRequest_LabelsEntry_value_tag 2
  404. #define google_firestore_v1_BatchGetDocumentsRequest_transaction_tag 4
  405. #define google_firestore_v1_BatchGetDocumentsRequest_new_transaction_tag 5
  406. #define google_firestore_v1_BatchGetDocumentsRequest_read_time_tag 7
  407. #define google_firestore_v1_BatchGetDocumentsRequest_database_tag 1
  408. #define google_firestore_v1_BatchGetDocumentsRequest_documents_tag 2
  409. #define google_firestore_v1_BatchGetDocumentsRequest_mask_tag 3
  410. #define google_firestore_v1_BatchGetDocumentsResponse_found_tag 1
  411. #define google_firestore_v1_BatchGetDocumentsResponse_missing_tag 2
  412. #define google_firestore_v1_BatchGetDocumentsResponse_transaction_tag 3
  413. #define google_firestore_v1_BatchGetDocumentsResponse_read_time_tag 4
  414. #define google_firestore_v1_BeginTransactionRequest_database_tag 1
  415. #define google_firestore_v1_BeginTransactionRequest_options_tag 2
  416. #define google_firestore_v1_CommitResponse_write_results_tag 1
  417. #define google_firestore_v1_CommitResponse_commit_time_tag 2
  418. #define google_firestore_v1_CreateDocumentRequest_parent_tag 1
  419. #define google_firestore_v1_CreateDocumentRequest_collection_id_tag 2
  420. #define google_firestore_v1_CreateDocumentRequest_document_id_tag 3
  421. #define google_firestore_v1_CreateDocumentRequest_document_tag 4
  422. #define google_firestore_v1_CreateDocumentRequest_mask_tag 5
  423. #define google_firestore_v1_DeleteDocumentRequest_name_tag 1
  424. #define google_firestore_v1_DeleteDocumentRequest_current_document_tag 2
  425. #define google_firestore_v1_GetDocumentRequest_transaction_tag 3
  426. #define google_firestore_v1_GetDocumentRequest_read_time_tag 5
  427. #define google_firestore_v1_GetDocumentRequest_name_tag 1
  428. #define google_firestore_v1_GetDocumentRequest_mask_tag 2
  429. #define google_firestore_v1_ListCollectionIdsRequest_parent_tag 1
  430. #define google_firestore_v1_ListCollectionIdsRequest_page_size_tag 2
  431. #define google_firestore_v1_ListCollectionIdsRequest_page_token_tag 3
  432. #define google_firestore_v1_ListDocumentsRequest_transaction_tag 8
  433. #define google_firestore_v1_ListDocumentsRequest_read_time_tag 10
  434. #define google_firestore_v1_ListDocumentsRequest_parent_tag 1
  435. #define google_firestore_v1_ListDocumentsRequest_collection_id_tag 2
  436. #define google_firestore_v1_ListDocumentsRequest_page_size_tag 3
  437. #define google_firestore_v1_ListDocumentsRequest_page_token_tag 4
  438. #define google_firestore_v1_ListDocumentsRequest_order_by_tag 6
  439. #define google_firestore_v1_ListDocumentsRequest_mask_tag 7
  440. #define google_firestore_v1_ListDocumentsRequest_show_missing_tag 12
  441. #define google_firestore_v1_RunAggregationQueryRequest_structured_aggregation_query_tag 2
  442. #define google_firestore_v1_RunAggregationQueryRequest_transaction_tag 4
  443. #define google_firestore_v1_RunAggregationQueryRequest_new_transaction_tag 5
  444. #define google_firestore_v1_RunAggregationQueryRequest_read_time_tag 6
  445. #define google_firestore_v1_RunAggregationQueryRequest_parent_tag 1
  446. #define google_firestore_v1_RunAggregationQueryResponse_result_tag 1
  447. #define google_firestore_v1_RunAggregationQueryResponse_transaction_tag 2
  448. #define google_firestore_v1_RunAggregationQueryResponse_read_time_tag 3
  449. #define google_firestore_v1_RunQueryRequest_structured_query_tag 2
  450. #define google_firestore_v1_RunQueryRequest_transaction_tag 5
  451. #define google_firestore_v1_RunQueryRequest_new_transaction_tag 6
  452. #define google_firestore_v1_RunQueryRequest_read_time_tag 7
  453. #define google_firestore_v1_RunQueryRequest_parent_tag 1
  454. #define google_firestore_v1_RunQueryResponse_transaction_tag 2
  455. #define google_firestore_v1_RunQueryResponse_document_tag 1
  456. #define google_firestore_v1_RunQueryResponse_read_time_tag 3
  457. #define google_firestore_v1_RunQueryResponse_skipped_results_tag 4
  458. #define google_firestore_v1_TargetChange_target_change_type_tag 1
  459. #define google_firestore_v1_TargetChange_target_ids_tag 2
  460. #define google_firestore_v1_TargetChange_cause_tag 3
  461. #define google_firestore_v1_TargetChange_resume_token_tag 4
  462. #define google_firestore_v1_TargetChange_read_time_tag 6
  463. #define google_firestore_v1_Target_QueryTarget_structured_query_tag 2
  464. #define google_firestore_v1_Target_QueryTarget_parent_tag 1
  465. #define google_firestore_v1_UpdateDocumentRequest_document_tag 1
  466. #define google_firestore_v1_UpdateDocumentRequest_update_mask_tag 2
  467. #define google_firestore_v1_UpdateDocumentRequest_mask_tag 3
  468. #define google_firestore_v1_UpdateDocumentRequest_current_document_tag 4
  469. #define google_firestore_v1_WriteResponse_stream_id_tag 1
  470. #define google_firestore_v1_WriteResponse_stream_token_tag 2
  471. #define google_firestore_v1_WriteResponse_write_results_tag 3
  472. #define google_firestore_v1_WriteResponse_commit_time_tag 4
  473. #define google_firestore_v1_ListenResponse_target_change_tag 2
  474. #define google_firestore_v1_ListenResponse_document_change_tag 3
  475. #define google_firestore_v1_ListenResponse_document_delete_tag 4
  476. #define google_firestore_v1_ListenResponse_filter_tag 5
  477. #define google_firestore_v1_ListenResponse_document_remove_tag 6
  478. #define google_firestore_v1_Target_query_tag 2
  479. #define google_firestore_v1_Target_documents_tag 3
  480. #define google_firestore_v1_Target_resume_token_tag 4
  481. #define google_firestore_v1_Target_read_time_tag 11
  482. #define google_firestore_v1_Target_target_id_tag 5
  483. #define google_firestore_v1_Target_once_tag 6
  484. #define google_firestore_v1_Target_expected_count_tag 12
  485. #define google_firestore_v1_ListenRequest_add_target_tag 2
  486. #define google_firestore_v1_ListenRequest_remove_target_tag 3
  487. #define google_firestore_v1_ListenRequest_database_tag 1
  488. #define google_firestore_v1_ListenRequest_labels_tag 4
  489. /* Struct field encoding specification for nanopb */
  490. extern const pb_field_t google_firestore_v1_GetDocumentRequest_fields[5];
  491. extern const pb_field_t google_firestore_v1_ListDocumentsRequest_fields[10];
  492. extern const pb_field_t google_firestore_v1_ListDocumentsResponse_fields[3];
  493. extern const pb_field_t google_firestore_v1_CreateDocumentRequest_fields[6];
  494. extern const pb_field_t google_firestore_v1_UpdateDocumentRequest_fields[5];
  495. extern const pb_field_t google_firestore_v1_DeleteDocumentRequest_fields[3];
  496. extern const pb_field_t google_firestore_v1_BatchGetDocumentsRequest_fields[7];
  497. extern const pb_field_t google_firestore_v1_BatchGetDocumentsResponse_fields[5];
  498. extern const pb_field_t google_firestore_v1_BeginTransactionRequest_fields[3];
  499. extern const pb_field_t google_firestore_v1_BeginTransactionResponse_fields[2];
  500. extern const pb_field_t google_firestore_v1_CommitRequest_fields[4];
  501. extern const pb_field_t google_firestore_v1_CommitResponse_fields[3];
  502. extern const pb_field_t google_firestore_v1_RollbackRequest_fields[3];
  503. extern const pb_field_t google_firestore_v1_RunQueryRequest_fields[6];
  504. extern const pb_field_t google_firestore_v1_RunQueryResponse_fields[5];
  505. extern const pb_field_t google_firestore_v1_RunAggregationQueryRequest_fields[6];
  506. extern const pb_field_t google_firestore_v1_RunAggregationQueryResponse_fields[4];
  507. extern const pb_field_t google_firestore_v1_WriteRequest_fields[6];
  508. extern const pb_field_t google_firestore_v1_WriteRequest_LabelsEntry_fields[3];
  509. extern const pb_field_t google_firestore_v1_WriteResponse_fields[5];
  510. extern const pb_field_t google_firestore_v1_ListenRequest_fields[5];
  511. extern const pb_field_t google_firestore_v1_ListenRequest_LabelsEntry_fields[3];
  512. extern const pb_field_t google_firestore_v1_ListenResponse_fields[6];
  513. extern const pb_field_t google_firestore_v1_Target_fields[8];
  514. extern const pb_field_t google_firestore_v1_Target_DocumentsTarget_fields[2];
  515. extern const pb_field_t google_firestore_v1_Target_QueryTarget_fields[3];
  516. extern const pb_field_t google_firestore_v1_TargetChange_fields[6];
  517. extern const pb_field_t google_firestore_v1_ListCollectionIdsRequest_fields[4];
  518. extern const pb_field_t google_firestore_v1_ListCollectionIdsResponse_fields[3];
  519. /* Maximum encoded size of messages (where known) */
  520. /* google_firestore_v1_GetDocumentRequest_size depends on runtime parameters */
  521. /* google_firestore_v1_ListDocumentsRequest_size depends on runtime parameters */
  522. /* google_firestore_v1_ListDocumentsResponse_size depends on runtime parameters */
  523. /* google_firestore_v1_CreateDocumentRequest_size depends on runtime parameters */
  524. #define google_firestore_v1_UpdateDocumentRequest_size (44 + google_firestore_v1_Document_size + google_firestore_v1_DocumentMask_size + google_firestore_v1_DocumentMask_size)
  525. /* google_firestore_v1_DeleteDocumentRequest_size depends on runtime parameters */
  526. /* google_firestore_v1_BatchGetDocumentsRequest_size depends on runtime parameters */
  527. /* google_firestore_v1_BatchGetDocumentsResponse_size depends on runtime parameters */
  528. /* google_firestore_v1_BeginTransactionRequest_size depends on runtime parameters */
  529. /* google_firestore_v1_BeginTransactionResponse_size depends on runtime parameters */
  530. /* google_firestore_v1_CommitRequest_size depends on runtime parameters */
  531. /* google_firestore_v1_CommitResponse_size depends on runtime parameters */
  532. /* google_firestore_v1_RollbackRequest_size depends on runtime parameters */
  533. /* google_firestore_v1_RunQueryRequest_size depends on runtime parameters */
  534. /* google_firestore_v1_RunQueryResponse_size depends on runtime parameters */
  535. /* google_firestore_v1_RunAggregationQueryRequest_size depends on runtime parameters */
  536. /* google_firestore_v1_RunAggregationQueryResponse_size depends on runtime parameters */
  537. /* google_firestore_v1_WriteRequest_size depends on runtime parameters */
  538. /* google_firestore_v1_WriteRequest_LabelsEntry_size depends on runtime parameters */
  539. /* google_firestore_v1_WriteResponse_size depends on runtime parameters */
  540. /* google_firestore_v1_ListenRequest_size depends on runtime parameters */
  541. /* google_firestore_v1_ListenRequest_LabelsEntry_size depends on runtime parameters */
  542. /* google_firestore_v1_ListenResponse_size depends on runtime parameters */
  543. /* google_firestore_v1_Target_size depends on runtime parameters */
  544. /* google_firestore_v1_Target_DocumentsTarget_size depends on runtime parameters */
  545. /* google_firestore_v1_Target_QueryTarget_size depends on runtime parameters */
  546. /* google_firestore_v1_TargetChange_size depends on runtime parameters */
  547. /* google_firestore_v1_ListCollectionIdsRequest_size depends on runtime parameters */
  548. /* google_firestore_v1_ListCollectionIdsResponse_size depends on runtime parameters */
  549. /* Message IDs (where set with "msgid" option) */
  550. #ifdef PB_MSGID
  551. #define FIRESTORE_MESSAGES \
  552. #endif
  553. const char* EnumToString(
  554. google_firestore_v1_TargetChange_TargetChangeType value);
  555. } // namespace firestore
  556. } // namespace firebase
  557. /* @@protoc_insertion_point(eof) */
  558. #endif