write.pb.h 107 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667
  1. /*
  2. * Copyright 2018 Google
  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. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/write.proto
  18. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fwrite_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fwrite_2eproto
  20. #include <limits>
  21. #include <string>
  22. #include <google/protobuf/port_def.inc>
  23. #if PROTOBUF_VERSION < 3009000
  24. #error This file was generated by a newer version of protoc which is
  25. #error incompatible with your Protocol Buffer headers. Please update
  26. #error your headers.
  27. #endif
  28. #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
  29. #error This file was generated by an older version of protoc which is
  30. #error incompatible with your Protocol Buffer headers. Please
  31. #error regenerate this file with a newer version of protoc.
  32. #endif
  33. #include <google/protobuf/port_undef.inc>
  34. #include <google/protobuf/io/coded_stream.h>
  35. #include <google/protobuf/arena.h>
  36. #include <google/protobuf/arenastring.h>
  37. #include <google/protobuf/generated_message_table_driven.h>
  38. #include <google/protobuf/generated_message_util.h>
  39. #include <google/protobuf/inlined_string_field.h>
  40. #include <google/protobuf/metadata.h>
  41. #include <google/protobuf/generated_message_reflection.h>
  42. #include <google/protobuf/message.h>
  43. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  44. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  45. #include <google/protobuf/generated_enum_reflection.h>
  46. #include <google/protobuf/unknown_field_set.h>
  47. #include "google/api/annotations.pb.h"
  48. #include "google/firestore/v1/common.pb.h"
  49. #include "google/firestore/v1/document.pb.h"
  50. #include <google/protobuf/timestamp.pb.h>
  51. // @@protoc_insertion_point(includes)
  52. #include <google/protobuf/port_def.inc>
  53. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto
  54. PROTOBUF_NAMESPACE_OPEN
  55. namespace internal {
  56. class AnyMetadata;
  57. } // namespace internal
  58. PROTOBUF_NAMESPACE_CLOSE
  59. // Internal implementation detail -- do not use these members.
  60. struct TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto {
  61. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  62. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  63. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  64. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  65. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8]
  66. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  67. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  68. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  69. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  70. };
  71. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto;
  72. namespace google {
  73. namespace firestore {
  74. namespace v1 {
  75. class DocumentChange;
  76. class DocumentChangeDefaultTypeInternal;
  77. extern DocumentChangeDefaultTypeInternal _DocumentChange_default_instance_;
  78. class DocumentDelete;
  79. class DocumentDeleteDefaultTypeInternal;
  80. extern DocumentDeleteDefaultTypeInternal _DocumentDelete_default_instance_;
  81. class DocumentRemove;
  82. class DocumentRemoveDefaultTypeInternal;
  83. extern DocumentRemoveDefaultTypeInternal _DocumentRemove_default_instance_;
  84. class DocumentTransform;
  85. class DocumentTransformDefaultTypeInternal;
  86. extern DocumentTransformDefaultTypeInternal _DocumentTransform_default_instance_;
  87. class DocumentTransform_FieldTransform;
  88. class DocumentTransform_FieldTransformDefaultTypeInternal;
  89. extern DocumentTransform_FieldTransformDefaultTypeInternal _DocumentTransform_FieldTransform_default_instance_;
  90. class ExistenceFilter;
  91. class ExistenceFilterDefaultTypeInternal;
  92. extern ExistenceFilterDefaultTypeInternal _ExistenceFilter_default_instance_;
  93. class Write;
  94. class WriteDefaultTypeInternal;
  95. extern WriteDefaultTypeInternal _Write_default_instance_;
  96. class WriteResult;
  97. class WriteResultDefaultTypeInternal;
  98. extern WriteResultDefaultTypeInternal _WriteResult_default_instance_;
  99. } // namespace v1
  100. } // namespace firestore
  101. } // namespace google
  102. PROTOBUF_NAMESPACE_OPEN
  103. template<> ::google::firestore::v1::DocumentChange* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentChange>(Arena*);
  104. template<> ::google::firestore::v1::DocumentDelete* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentDelete>(Arena*);
  105. template<> ::google::firestore::v1::DocumentRemove* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentRemove>(Arena*);
  106. template<> ::google::firestore::v1::DocumentTransform* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentTransform>(Arena*);
  107. template<> ::google::firestore::v1::DocumentTransform_FieldTransform* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentTransform_FieldTransform>(Arena*);
  108. template<> ::google::firestore::v1::ExistenceFilter* Arena::CreateMaybeMessage<::google::firestore::v1::ExistenceFilter>(Arena*);
  109. template<> ::google::firestore::v1::Write* Arena::CreateMaybeMessage<::google::firestore::v1::Write>(Arena*);
  110. template<> ::google::firestore::v1::WriteResult* Arena::CreateMaybeMessage<::google::firestore::v1::WriteResult>(Arena*);
  111. PROTOBUF_NAMESPACE_CLOSE
  112. namespace google {
  113. namespace firestore {
  114. namespace v1 {
  115. enum DocumentTransform_FieldTransform_ServerValue : int {
  116. DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED = 0,
  117. DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME = 1,
  118. DocumentTransform_FieldTransform_ServerValue_DocumentTransform_FieldTransform_ServerValue_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  119. DocumentTransform_FieldTransform_ServerValue_DocumentTransform_FieldTransform_ServerValue_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  120. };
  121. bool DocumentTransform_FieldTransform_ServerValue_IsValid(int value);
  122. constexpr DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform_ServerValue_ServerValue_MIN = DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED;
  123. constexpr DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX = DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME;
  124. constexpr int DocumentTransform_FieldTransform_ServerValue_ServerValue_ARRAYSIZE = DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX + 1;
  125. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DocumentTransform_FieldTransform_ServerValue_descriptor();
  126. template<typename T>
  127. inline const std::string& DocumentTransform_FieldTransform_ServerValue_Name(T enum_t_value) {
  128. static_assert(::std::is_same<T, DocumentTransform_FieldTransform_ServerValue>::value ||
  129. ::std::is_integral<T>::value,
  130. "Incorrect type passed to function DocumentTransform_FieldTransform_ServerValue_Name.");
  131. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  132. DocumentTransform_FieldTransform_ServerValue_descriptor(), enum_t_value);
  133. }
  134. inline bool DocumentTransform_FieldTransform_ServerValue_Parse(
  135. const std::string& name, DocumentTransform_FieldTransform_ServerValue* value) {
  136. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DocumentTransform_FieldTransform_ServerValue>(
  137. DocumentTransform_FieldTransform_ServerValue_descriptor(), name, value);
  138. }
  139. // ===================================================================
  140. class Write :
  141. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Write) */ {
  142. public:
  143. Write();
  144. virtual ~Write();
  145. Write(const Write& from);
  146. Write(Write&& from) noexcept
  147. : Write() {
  148. *this = ::std::move(from);
  149. }
  150. inline Write& operator=(const Write& from) {
  151. CopyFrom(from);
  152. return *this;
  153. }
  154. inline Write& operator=(Write&& from) noexcept {
  155. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  156. if (this != &from) InternalSwap(&from);
  157. } else {
  158. CopyFrom(from);
  159. }
  160. return *this;
  161. }
  162. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  163. return GetDescriptor();
  164. }
  165. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  166. return GetMetadataStatic().descriptor;
  167. }
  168. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  169. return GetMetadataStatic().reflection;
  170. }
  171. static const Write& default_instance();
  172. enum OperationCase {
  173. kUpdate = 1,
  174. kDelete = 2,
  175. kTransform = 6,
  176. OPERATION_NOT_SET = 0,
  177. };
  178. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  179. static inline const Write* internal_default_instance() {
  180. return reinterpret_cast<const Write*>(
  181. &_Write_default_instance_);
  182. }
  183. static constexpr int kIndexInFileMessages =
  184. 0;
  185. friend void swap(Write& a, Write& b) {
  186. a.Swap(&b);
  187. }
  188. inline void Swap(Write* other) {
  189. if (other == this) return;
  190. InternalSwap(other);
  191. }
  192. // implements Message ----------------------------------------------
  193. inline Write* New() const final {
  194. return CreateMaybeMessage<Write>(nullptr);
  195. }
  196. Write* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  197. return CreateMaybeMessage<Write>(arena);
  198. }
  199. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  200. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  201. void CopyFrom(const Write& from);
  202. void MergeFrom(const Write& from);
  203. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  204. bool IsInitialized() const final;
  205. size_t ByteSizeLong() const final;
  206. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  207. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  208. #else
  209. bool MergePartialFromCodedStream(
  210. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  211. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  212. void SerializeWithCachedSizes(
  213. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  214. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  215. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  216. int GetCachedSize() const final { return _cached_size_.Get(); }
  217. private:
  218. inline void SharedCtor();
  219. inline void SharedDtor();
  220. void SetCachedSize(int size) const final;
  221. void InternalSwap(Write* other);
  222. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  223. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  224. return "google.firestore.v1.Write";
  225. }
  226. private:
  227. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  228. return nullptr;
  229. }
  230. inline void* MaybeArenaPtr() const {
  231. return nullptr;
  232. }
  233. public:
  234. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  235. private:
  236. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  237. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  238. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  239. }
  240. public:
  241. // nested types ----------------------------------------------------
  242. // accessors -------------------------------------------------------
  243. enum : int {
  244. kUpdateMaskFieldNumber = 3,
  245. kCurrentDocumentFieldNumber = 4,
  246. kUpdateFieldNumber = 1,
  247. kDeleteFieldNumber = 2,
  248. kTransformFieldNumber = 6,
  249. };
  250. // .google.firestore.v1.DocumentMask update_mask = 3;
  251. bool has_update_mask() const;
  252. void clear_update_mask();
  253. const ::google::firestore::v1::DocumentMask& update_mask() const;
  254. ::google::firestore::v1::DocumentMask* release_update_mask();
  255. ::google::firestore::v1::DocumentMask* mutable_update_mask();
  256. void set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask);
  257. // .google.firestore.v1.Precondition current_document = 4;
  258. bool has_current_document() const;
  259. void clear_current_document();
  260. const ::google::firestore::v1::Precondition& current_document() const;
  261. ::google::firestore::v1::Precondition* release_current_document();
  262. ::google::firestore::v1::Precondition* mutable_current_document();
  263. void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
  264. // .google.firestore.v1.Document update = 1;
  265. bool has_update() const;
  266. void clear_update();
  267. const ::google::firestore::v1::Document& update() const;
  268. ::google::firestore::v1::Document* release_update();
  269. ::google::firestore::v1::Document* mutable_update();
  270. void set_allocated_update(::google::firestore::v1::Document* update);
  271. // string delete = 2;
  272. private:
  273. bool has_delete_() const;
  274. public:
  275. void clear_delete_();
  276. const std::string& delete_() const;
  277. void set_delete_(const std::string& value);
  278. void set_delete_(std::string&& value);
  279. void set_delete_(const char* value);
  280. void set_delete_(const char* value, size_t size);
  281. std::string* mutable_delete_();
  282. std::string* release_delete_();
  283. void set_allocated_delete_(std::string* delete_);
  284. // .google.firestore.v1.DocumentTransform transform = 6;
  285. bool has_transform() const;
  286. void clear_transform();
  287. const ::google::firestore::v1::DocumentTransform& transform() const;
  288. ::google::firestore::v1::DocumentTransform* release_transform();
  289. ::google::firestore::v1::DocumentTransform* mutable_transform();
  290. void set_allocated_transform(::google::firestore::v1::DocumentTransform* transform);
  291. void clear_operation();
  292. OperationCase operation_case() const;
  293. // @@protoc_insertion_point(class_scope:google.firestore.v1.Write)
  294. private:
  295. class _Internal;
  296. void set_has_update();
  297. void set_has_delete_();
  298. void set_has_transform();
  299. inline bool has_operation() const;
  300. inline void clear_has_operation();
  301. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  302. ::google::firestore::v1::DocumentMask* update_mask_;
  303. ::google::firestore::v1::Precondition* current_document_;
  304. union OperationUnion {
  305. OperationUnion() {}
  306. ::google::firestore::v1::Document* update_;
  307. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__;
  308. ::google::firestore::v1::DocumentTransform* transform_;
  309. } operation_;
  310. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  311. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  312. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  313. };
  314. // -------------------------------------------------------------------
  315. class DocumentTransform_FieldTransform :
  316. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentTransform.FieldTransform) */ {
  317. public:
  318. DocumentTransform_FieldTransform();
  319. virtual ~DocumentTransform_FieldTransform();
  320. DocumentTransform_FieldTransform(const DocumentTransform_FieldTransform& from);
  321. DocumentTransform_FieldTransform(DocumentTransform_FieldTransform&& from) noexcept
  322. : DocumentTransform_FieldTransform() {
  323. *this = ::std::move(from);
  324. }
  325. inline DocumentTransform_FieldTransform& operator=(const DocumentTransform_FieldTransform& from) {
  326. CopyFrom(from);
  327. return *this;
  328. }
  329. inline DocumentTransform_FieldTransform& operator=(DocumentTransform_FieldTransform&& from) noexcept {
  330. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  331. if (this != &from) InternalSwap(&from);
  332. } else {
  333. CopyFrom(from);
  334. }
  335. return *this;
  336. }
  337. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  338. return GetDescriptor();
  339. }
  340. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  341. return GetMetadataStatic().descriptor;
  342. }
  343. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  344. return GetMetadataStatic().reflection;
  345. }
  346. static const DocumentTransform_FieldTransform& default_instance();
  347. enum TransformTypeCase {
  348. kSetToServerValue = 2,
  349. kIncrement = 3,
  350. kMaximum = 4,
  351. kMinimum = 5,
  352. kAppendMissingElements = 6,
  353. kRemoveAllFromArray = 7,
  354. TRANSFORM_TYPE_NOT_SET = 0,
  355. };
  356. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  357. static inline const DocumentTransform_FieldTransform* internal_default_instance() {
  358. return reinterpret_cast<const DocumentTransform_FieldTransform*>(
  359. &_DocumentTransform_FieldTransform_default_instance_);
  360. }
  361. static constexpr int kIndexInFileMessages =
  362. 1;
  363. friend void swap(DocumentTransform_FieldTransform& a, DocumentTransform_FieldTransform& b) {
  364. a.Swap(&b);
  365. }
  366. inline void Swap(DocumentTransform_FieldTransform* other) {
  367. if (other == this) return;
  368. InternalSwap(other);
  369. }
  370. // implements Message ----------------------------------------------
  371. inline DocumentTransform_FieldTransform* New() const final {
  372. return CreateMaybeMessage<DocumentTransform_FieldTransform>(nullptr);
  373. }
  374. DocumentTransform_FieldTransform* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  375. return CreateMaybeMessage<DocumentTransform_FieldTransform>(arena);
  376. }
  377. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  378. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  379. void CopyFrom(const DocumentTransform_FieldTransform& from);
  380. void MergeFrom(const DocumentTransform_FieldTransform& from);
  381. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  382. bool IsInitialized() const final;
  383. size_t ByteSizeLong() const final;
  384. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  385. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  386. #else
  387. bool MergePartialFromCodedStream(
  388. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  389. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  390. void SerializeWithCachedSizes(
  391. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  392. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  393. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  394. int GetCachedSize() const final { return _cached_size_.Get(); }
  395. private:
  396. inline void SharedCtor();
  397. inline void SharedDtor();
  398. void SetCachedSize(int size) const final;
  399. void InternalSwap(DocumentTransform_FieldTransform* other);
  400. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  401. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  402. return "google.firestore.v1.DocumentTransform.FieldTransform";
  403. }
  404. private:
  405. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  406. return nullptr;
  407. }
  408. inline void* MaybeArenaPtr() const {
  409. return nullptr;
  410. }
  411. public:
  412. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  413. private:
  414. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  415. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  416. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  417. }
  418. public:
  419. // nested types ----------------------------------------------------
  420. typedef DocumentTransform_FieldTransform_ServerValue ServerValue;
  421. static constexpr ServerValue SERVER_VALUE_UNSPECIFIED =
  422. DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED;
  423. static constexpr ServerValue REQUEST_TIME =
  424. DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME;
  425. static inline bool ServerValue_IsValid(int value) {
  426. return DocumentTransform_FieldTransform_ServerValue_IsValid(value);
  427. }
  428. static constexpr ServerValue ServerValue_MIN =
  429. DocumentTransform_FieldTransform_ServerValue_ServerValue_MIN;
  430. static constexpr ServerValue ServerValue_MAX =
  431. DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX;
  432. static constexpr int ServerValue_ARRAYSIZE =
  433. DocumentTransform_FieldTransform_ServerValue_ServerValue_ARRAYSIZE;
  434. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  435. ServerValue_descriptor() {
  436. return DocumentTransform_FieldTransform_ServerValue_descriptor();
  437. }
  438. template<typename T>
  439. static inline const std::string& ServerValue_Name(T enum_t_value) {
  440. static_assert(::std::is_same<T, ServerValue>::value ||
  441. ::std::is_integral<T>::value,
  442. "Incorrect type passed to function ServerValue_Name.");
  443. return DocumentTransform_FieldTransform_ServerValue_Name(enum_t_value);
  444. }
  445. static inline bool ServerValue_Parse(const std::string& name,
  446. ServerValue* value) {
  447. return DocumentTransform_FieldTransform_ServerValue_Parse(name, value);
  448. }
  449. // accessors -------------------------------------------------------
  450. enum : int {
  451. kFieldPathFieldNumber = 1,
  452. kSetToServerValueFieldNumber = 2,
  453. kIncrementFieldNumber = 3,
  454. kMaximumFieldNumber = 4,
  455. kMinimumFieldNumber = 5,
  456. kAppendMissingElementsFieldNumber = 6,
  457. kRemoveAllFromArrayFieldNumber = 7,
  458. };
  459. // string field_path = 1;
  460. void clear_field_path();
  461. const std::string& field_path() const;
  462. void set_field_path(const std::string& value);
  463. void set_field_path(std::string&& value);
  464. void set_field_path(const char* value);
  465. void set_field_path(const char* value, size_t size);
  466. std::string* mutable_field_path();
  467. std::string* release_field_path();
  468. void set_allocated_field_path(std::string* field_path);
  469. // .google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
  470. private:
  471. bool has_set_to_server_value() const;
  472. public:
  473. void clear_set_to_server_value();
  474. ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue set_to_server_value() const;
  475. void set_set_to_server_value(::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue value);
  476. // .google.firestore.v1.Value increment = 3;
  477. bool has_increment() const;
  478. void clear_increment();
  479. const ::google::firestore::v1::Value& increment() const;
  480. ::google::firestore::v1::Value* release_increment();
  481. ::google::firestore::v1::Value* mutable_increment();
  482. void set_allocated_increment(::google::firestore::v1::Value* increment);
  483. // .google.firestore.v1.Value maximum = 4;
  484. bool has_maximum() const;
  485. void clear_maximum();
  486. const ::google::firestore::v1::Value& maximum() const;
  487. ::google::firestore::v1::Value* release_maximum();
  488. ::google::firestore::v1::Value* mutable_maximum();
  489. void set_allocated_maximum(::google::firestore::v1::Value* maximum);
  490. // .google.firestore.v1.Value minimum = 5;
  491. bool has_minimum() const;
  492. void clear_minimum();
  493. const ::google::firestore::v1::Value& minimum() const;
  494. ::google::firestore::v1::Value* release_minimum();
  495. ::google::firestore::v1::Value* mutable_minimum();
  496. void set_allocated_minimum(::google::firestore::v1::Value* minimum);
  497. // .google.firestore.v1.ArrayValue append_missing_elements = 6;
  498. bool has_append_missing_elements() const;
  499. void clear_append_missing_elements();
  500. const ::google::firestore::v1::ArrayValue& append_missing_elements() const;
  501. ::google::firestore::v1::ArrayValue* release_append_missing_elements();
  502. ::google::firestore::v1::ArrayValue* mutable_append_missing_elements();
  503. void set_allocated_append_missing_elements(::google::firestore::v1::ArrayValue* append_missing_elements);
  504. // .google.firestore.v1.ArrayValue remove_all_from_array = 7;
  505. bool has_remove_all_from_array() const;
  506. void clear_remove_all_from_array();
  507. const ::google::firestore::v1::ArrayValue& remove_all_from_array() const;
  508. ::google::firestore::v1::ArrayValue* release_remove_all_from_array();
  509. ::google::firestore::v1::ArrayValue* mutable_remove_all_from_array();
  510. void set_allocated_remove_all_from_array(::google::firestore::v1::ArrayValue* remove_all_from_array);
  511. void clear_transform_type();
  512. TransformTypeCase transform_type_case() const;
  513. // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentTransform.FieldTransform)
  514. private:
  515. class _Internal;
  516. void set_has_set_to_server_value();
  517. void set_has_increment();
  518. void set_has_maximum();
  519. void set_has_minimum();
  520. void set_has_append_missing_elements();
  521. void set_has_remove_all_from_array();
  522. inline bool has_transform_type() const;
  523. inline void clear_has_transform_type();
  524. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  525. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_path_;
  526. union TransformTypeUnion {
  527. TransformTypeUnion() {}
  528. int set_to_server_value_;
  529. ::google::firestore::v1::Value* increment_;
  530. ::google::firestore::v1::Value* maximum_;
  531. ::google::firestore::v1::Value* minimum_;
  532. ::google::firestore::v1::ArrayValue* append_missing_elements_;
  533. ::google::firestore::v1::ArrayValue* remove_all_from_array_;
  534. } transform_type_;
  535. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  536. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  537. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  538. };
  539. // -------------------------------------------------------------------
  540. class DocumentTransform :
  541. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentTransform) */ {
  542. public:
  543. DocumentTransform();
  544. virtual ~DocumentTransform();
  545. DocumentTransform(const DocumentTransform& from);
  546. DocumentTransform(DocumentTransform&& from) noexcept
  547. : DocumentTransform() {
  548. *this = ::std::move(from);
  549. }
  550. inline DocumentTransform& operator=(const DocumentTransform& from) {
  551. CopyFrom(from);
  552. return *this;
  553. }
  554. inline DocumentTransform& operator=(DocumentTransform&& from) noexcept {
  555. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  556. if (this != &from) InternalSwap(&from);
  557. } else {
  558. CopyFrom(from);
  559. }
  560. return *this;
  561. }
  562. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  563. return GetDescriptor();
  564. }
  565. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  566. return GetMetadataStatic().descriptor;
  567. }
  568. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  569. return GetMetadataStatic().reflection;
  570. }
  571. static const DocumentTransform& default_instance();
  572. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  573. static inline const DocumentTransform* internal_default_instance() {
  574. return reinterpret_cast<const DocumentTransform*>(
  575. &_DocumentTransform_default_instance_);
  576. }
  577. static constexpr int kIndexInFileMessages =
  578. 2;
  579. friend void swap(DocumentTransform& a, DocumentTransform& b) {
  580. a.Swap(&b);
  581. }
  582. inline void Swap(DocumentTransform* other) {
  583. if (other == this) return;
  584. InternalSwap(other);
  585. }
  586. // implements Message ----------------------------------------------
  587. inline DocumentTransform* New() const final {
  588. return CreateMaybeMessage<DocumentTransform>(nullptr);
  589. }
  590. DocumentTransform* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  591. return CreateMaybeMessage<DocumentTransform>(arena);
  592. }
  593. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  594. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  595. void CopyFrom(const DocumentTransform& from);
  596. void MergeFrom(const DocumentTransform& from);
  597. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  598. bool IsInitialized() const final;
  599. size_t ByteSizeLong() const final;
  600. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  601. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  602. #else
  603. bool MergePartialFromCodedStream(
  604. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  605. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  606. void SerializeWithCachedSizes(
  607. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  608. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  609. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  610. int GetCachedSize() const final { return _cached_size_.Get(); }
  611. private:
  612. inline void SharedCtor();
  613. inline void SharedDtor();
  614. void SetCachedSize(int size) const final;
  615. void InternalSwap(DocumentTransform* other);
  616. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  617. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  618. return "google.firestore.v1.DocumentTransform";
  619. }
  620. private:
  621. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  622. return nullptr;
  623. }
  624. inline void* MaybeArenaPtr() const {
  625. return nullptr;
  626. }
  627. public:
  628. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  629. private:
  630. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  631. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  632. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  633. }
  634. public:
  635. // nested types ----------------------------------------------------
  636. typedef DocumentTransform_FieldTransform FieldTransform;
  637. // accessors -------------------------------------------------------
  638. enum : int {
  639. kFieldTransformsFieldNumber = 2,
  640. kDocumentFieldNumber = 1,
  641. };
  642. // repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;
  643. int field_transforms_size() const;
  644. void clear_field_transforms();
  645. ::google::firestore::v1::DocumentTransform_FieldTransform* mutable_field_transforms(int index);
  646. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >*
  647. mutable_field_transforms();
  648. const ::google::firestore::v1::DocumentTransform_FieldTransform& field_transforms(int index) const;
  649. ::google::firestore::v1::DocumentTransform_FieldTransform* add_field_transforms();
  650. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >&
  651. field_transforms() const;
  652. // string document = 1;
  653. void clear_document();
  654. const std::string& document() const;
  655. void set_document(const std::string& value);
  656. void set_document(std::string&& value);
  657. void set_document(const char* value);
  658. void set_document(const char* value, size_t size);
  659. std::string* mutable_document();
  660. std::string* release_document();
  661. void set_allocated_document(std::string* document);
  662. // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentTransform)
  663. private:
  664. class _Internal;
  665. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  666. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform > field_transforms_;
  667. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_;
  668. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  669. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  670. };
  671. // -------------------------------------------------------------------
  672. class WriteResult :
  673. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteResult) */ {
  674. public:
  675. WriteResult();
  676. virtual ~WriteResult();
  677. WriteResult(const WriteResult& from);
  678. WriteResult(WriteResult&& from) noexcept
  679. : WriteResult() {
  680. *this = ::std::move(from);
  681. }
  682. inline WriteResult& operator=(const WriteResult& from) {
  683. CopyFrom(from);
  684. return *this;
  685. }
  686. inline WriteResult& operator=(WriteResult&& from) noexcept {
  687. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  688. if (this != &from) InternalSwap(&from);
  689. } else {
  690. CopyFrom(from);
  691. }
  692. return *this;
  693. }
  694. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  695. return GetDescriptor();
  696. }
  697. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  698. return GetMetadataStatic().descriptor;
  699. }
  700. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  701. return GetMetadataStatic().reflection;
  702. }
  703. static const WriteResult& default_instance();
  704. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  705. static inline const WriteResult* internal_default_instance() {
  706. return reinterpret_cast<const WriteResult*>(
  707. &_WriteResult_default_instance_);
  708. }
  709. static constexpr int kIndexInFileMessages =
  710. 3;
  711. friend void swap(WriteResult& a, WriteResult& b) {
  712. a.Swap(&b);
  713. }
  714. inline void Swap(WriteResult* other) {
  715. if (other == this) return;
  716. InternalSwap(other);
  717. }
  718. // implements Message ----------------------------------------------
  719. inline WriteResult* New() const final {
  720. return CreateMaybeMessage<WriteResult>(nullptr);
  721. }
  722. WriteResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  723. return CreateMaybeMessage<WriteResult>(arena);
  724. }
  725. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  726. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  727. void CopyFrom(const WriteResult& from);
  728. void MergeFrom(const WriteResult& from);
  729. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  730. bool IsInitialized() const final;
  731. size_t ByteSizeLong() const final;
  732. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  733. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  734. #else
  735. bool MergePartialFromCodedStream(
  736. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  737. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  738. void SerializeWithCachedSizes(
  739. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  740. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  741. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  742. int GetCachedSize() const final { return _cached_size_.Get(); }
  743. private:
  744. inline void SharedCtor();
  745. inline void SharedDtor();
  746. void SetCachedSize(int size) const final;
  747. void InternalSwap(WriteResult* other);
  748. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  749. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  750. return "google.firestore.v1.WriteResult";
  751. }
  752. private:
  753. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  754. return nullptr;
  755. }
  756. inline void* MaybeArenaPtr() const {
  757. return nullptr;
  758. }
  759. public:
  760. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  761. private:
  762. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  763. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  764. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  765. }
  766. public:
  767. // nested types ----------------------------------------------------
  768. // accessors -------------------------------------------------------
  769. enum : int {
  770. kTransformResultsFieldNumber = 2,
  771. kUpdateTimeFieldNumber = 1,
  772. };
  773. // repeated .google.firestore.v1.Value transform_results = 2;
  774. int transform_results_size() const;
  775. void clear_transform_results();
  776. ::google::firestore::v1::Value* mutable_transform_results(int index);
  777. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >*
  778. mutable_transform_results();
  779. const ::google::firestore::v1::Value& transform_results(int index) const;
  780. ::google::firestore::v1::Value* add_transform_results();
  781. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >&
  782. transform_results() const;
  783. // .google.protobuf.Timestamp update_time = 1;
  784. bool has_update_time() const;
  785. void clear_update_time();
  786. const PROTOBUF_NAMESPACE_ID::Timestamp& update_time() const;
  787. PROTOBUF_NAMESPACE_ID::Timestamp* release_update_time();
  788. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_update_time();
  789. void set_allocated_update_time(PROTOBUF_NAMESPACE_ID::Timestamp* update_time);
  790. // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteResult)
  791. private:
  792. class _Internal;
  793. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  794. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value > transform_results_;
  795. PROTOBUF_NAMESPACE_ID::Timestamp* update_time_;
  796. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  797. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  798. };
  799. // -------------------------------------------------------------------
  800. class DocumentChange :
  801. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentChange) */ {
  802. public:
  803. DocumentChange();
  804. virtual ~DocumentChange();
  805. DocumentChange(const DocumentChange& from);
  806. DocumentChange(DocumentChange&& from) noexcept
  807. : DocumentChange() {
  808. *this = ::std::move(from);
  809. }
  810. inline DocumentChange& operator=(const DocumentChange& from) {
  811. CopyFrom(from);
  812. return *this;
  813. }
  814. inline DocumentChange& operator=(DocumentChange&& from) noexcept {
  815. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  816. if (this != &from) InternalSwap(&from);
  817. } else {
  818. CopyFrom(from);
  819. }
  820. return *this;
  821. }
  822. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  823. return GetDescriptor();
  824. }
  825. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  826. return GetMetadataStatic().descriptor;
  827. }
  828. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  829. return GetMetadataStatic().reflection;
  830. }
  831. static const DocumentChange& default_instance();
  832. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  833. static inline const DocumentChange* internal_default_instance() {
  834. return reinterpret_cast<const DocumentChange*>(
  835. &_DocumentChange_default_instance_);
  836. }
  837. static constexpr int kIndexInFileMessages =
  838. 4;
  839. friend void swap(DocumentChange& a, DocumentChange& b) {
  840. a.Swap(&b);
  841. }
  842. inline void Swap(DocumentChange* other) {
  843. if (other == this) return;
  844. InternalSwap(other);
  845. }
  846. // implements Message ----------------------------------------------
  847. inline DocumentChange* New() const final {
  848. return CreateMaybeMessage<DocumentChange>(nullptr);
  849. }
  850. DocumentChange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  851. return CreateMaybeMessage<DocumentChange>(arena);
  852. }
  853. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  854. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  855. void CopyFrom(const DocumentChange& from);
  856. void MergeFrom(const DocumentChange& from);
  857. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  858. bool IsInitialized() const final;
  859. size_t ByteSizeLong() const final;
  860. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  861. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  862. #else
  863. bool MergePartialFromCodedStream(
  864. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  865. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  866. void SerializeWithCachedSizes(
  867. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  868. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  869. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  870. int GetCachedSize() const final { return _cached_size_.Get(); }
  871. private:
  872. inline void SharedCtor();
  873. inline void SharedDtor();
  874. void SetCachedSize(int size) const final;
  875. void InternalSwap(DocumentChange* other);
  876. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  877. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  878. return "google.firestore.v1.DocumentChange";
  879. }
  880. private:
  881. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  882. return nullptr;
  883. }
  884. inline void* MaybeArenaPtr() const {
  885. return nullptr;
  886. }
  887. public:
  888. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  889. private:
  890. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  891. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  892. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  893. }
  894. public:
  895. // nested types ----------------------------------------------------
  896. // accessors -------------------------------------------------------
  897. enum : int {
  898. kTargetIdsFieldNumber = 5,
  899. kRemovedTargetIdsFieldNumber = 6,
  900. kDocumentFieldNumber = 1,
  901. };
  902. // repeated int32 target_ids = 5;
  903. int target_ids_size() const;
  904. void clear_target_ids();
  905. ::PROTOBUF_NAMESPACE_ID::int32 target_ids(int index) const;
  906. void set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  907. void add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  908. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  909. target_ids() const;
  910. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  911. mutable_target_ids();
  912. // repeated int32 removed_target_ids = 6;
  913. int removed_target_ids_size() const;
  914. void clear_removed_target_ids();
  915. ::PROTOBUF_NAMESPACE_ID::int32 removed_target_ids(int index) const;
  916. void set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  917. void add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  918. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  919. removed_target_ids() const;
  920. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  921. mutable_removed_target_ids();
  922. // .google.firestore.v1.Document document = 1;
  923. bool has_document() const;
  924. void clear_document();
  925. const ::google::firestore::v1::Document& document() const;
  926. ::google::firestore::v1::Document* release_document();
  927. ::google::firestore::v1::Document* mutable_document();
  928. void set_allocated_document(::google::firestore::v1::Document* document);
  929. // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentChange)
  930. private:
  931. class _Internal;
  932. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  933. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > target_ids_;
  934. mutable std::atomic<int> _target_ids_cached_byte_size_;
  935. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > removed_target_ids_;
  936. mutable std::atomic<int> _removed_target_ids_cached_byte_size_;
  937. ::google::firestore::v1::Document* document_;
  938. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  939. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  940. };
  941. // -------------------------------------------------------------------
  942. class DocumentDelete :
  943. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentDelete) */ {
  944. public:
  945. DocumentDelete();
  946. virtual ~DocumentDelete();
  947. DocumentDelete(const DocumentDelete& from);
  948. DocumentDelete(DocumentDelete&& from) noexcept
  949. : DocumentDelete() {
  950. *this = ::std::move(from);
  951. }
  952. inline DocumentDelete& operator=(const DocumentDelete& from) {
  953. CopyFrom(from);
  954. return *this;
  955. }
  956. inline DocumentDelete& operator=(DocumentDelete&& from) noexcept {
  957. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  958. if (this != &from) InternalSwap(&from);
  959. } else {
  960. CopyFrom(from);
  961. }
  962. return *this;
  963. }
  964. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  965. return GetDescriptor();
  966. }
  967. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  968. return GetMetadataStatic().descriptor;
  969. }
  970. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  971. return GetMetadataStatic().reflection;
  972. }
  973. static const DocumentDelete& default_instance();
  974. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  975. static inline const DocumentDelete* internal_default_instance() {
  976. return reinterpret_cast<const DocumentDelete*>(
  977. &_DocumentDelete_default_instance_);
  978. }
  979. static constexpr int kIndexInFileMessages =
  980. 5;
  981. friend void swap(DocumentDelete& a, DocumentDelete& b) {
  982. a.Swap(&b);
  983. }
  984. inline void Swap(DocumentDelete* other) {
  985. if (other == this) return;
  986. InternalSwap(other);
  987. }
  988. // implements Message ----------------------------------------------
  989. inline DocumentDelete* New() const final {
  990. return CreateMaybeMessage<DocumentDelete>(nullptr);
  991. }
  992. DocumentDelete* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  993. return CreateMaybeMessage<DocumentDelete>(arena);
  994. }
  995. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  996. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  997. void CopyFrom(const DocumentDelete& from);
  998. void MergeFrom(const DocumentDelete& from);
  999. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1000. bool IsInitialized() const final;
  1001. size_t ByteSizeLong() const final;
  1002. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1003. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1004. #else
  1005. bool MergePartialFromCodedStream(
  1006. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1007. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1008. void SerializeWithCachedSizes(
  1009. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1010. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1011. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1012. int GetCachedSize() const final { return _cached_size_.Get(); }
  1013. private:
  1014. inline void SharedCtor();
  1015. inline void SharedDtor();
  1016. void SetCachedSize(int size) const final;
  1017. void InternalSwap(DocumentDelete* other);
  1018. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1019. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1020. return "google.firestore.v1.DocumentDelete";
  1021. }
  1022. private:
  1023. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1024. return nullptr;
  1025. }
  1026. inline void* MaybeArenaPtr() const {
  1027. return nullptr;
  1028. }
  1029. public:
  1030. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1031. private:
  1032. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1033. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  1034. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  1035. }
  1036. public:
  1037. // nested types ----------------------------------------------------
  1038. // accessors -------------------------------------------------------
  1039. enum : int {
  1040. kRemovedTargetIdsFieldNumber = 6,
  1041. kDocumentFieldNumber = 1,
  1042. kReadTimeFieldNumber = 4,
  1043. };
  1044. // repeated int32 removed_target_ids = 6;
  1045. int removed_target_ids_size() const;
  1046. void clear_removed_target_ids();
  1047. ::PROTOBUF_NAMESPACE_ID::int32 removed_target_ids(int index) const;
  1048. void set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  1049. void add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  1050. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  1051. removed_target_ids() const;
  1052. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  1053. mutable_removed_target_ids();
  1054. // string document = 1;
  1055. void clear_document();
  1056. const std::string& document() const;
  1057. void set_document(const std::string& value);
  1058. void set_document(std::string&& value);
  1059. void set_document(const char* value);
  1060. void set_document(const char* value, size_t size);
  1061. std::string* mutable_document();
  1062. std::string* release_document();
  1063. void set_allocated_document(std::string* document);
  1064. // .google.protobuf.Timestamp read_time = 4;
  1065. bool has_read_time() const;
  1066. void clear_read_time();
  1067. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1068. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1069. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1070. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1071. // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentDelete)
  1072. private:
  1073. class _Internal;
  1074. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1075. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > removed_target_ids_;
  1076. mutable std::atomic<int> _removed_target_ids_cached_byte_size_;
  1077. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_;
  1078. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1079. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1080. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  1081. };
  1082. // -------------------------------------------------------------------
  1083. class DocumentRemove :
  1084. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentRemove) */ {
  1085. public:
  1086. DocumentRemove();
  1087. virtual ~DocumentRemove();
  1088. DocumentRemove(const DocumentRemove& from);
  1089. DocumentRemove(DocumentRemove&& from) noexcept
  1090. : DocumentRemove() {
  1091. *this = ::std::move(from);
  1092. }
  1093. inline DocumentRemove& operator=(const DocumentRemove& from) {
  1094. CopyFrom(from);
  1095. return *this;
  1096. }
  1097. inline DocumentRemove& operator=(DocumentRemove&& from) noexcept {
  1098. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1099. if (this != &from) InternalSwap(&from);
  1100. } else {
  1101. CopyFrom(from);
  1102. }
  1103. return *this;
  1104. }
  1105. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1106. return GetDescriptor();
  1107. }
  1108. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1109. return GetMetadataStatic().descriptor;
  1110. }
  1111. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1112. return GetMetadataStatic().reflection;
  1113. }
  1114. static const DocumentRemove& default_instance();
  1115. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1116. static inline const DocumentRemove* internal_default_instance() {
  1117. return reinterpret_cast<const DocumentRemove*>(
  1118. &_DocumentRemove_default_instance_);
  1119. }
  1120. static constexpr int kIndexInFileMessages =
  1121. 6;
  1122. friend void swap(DocumentRemove& a, DocumentRemove& b) {
  1123. a.Swap(&b);
  1124. }
  1125. inline void Swap(DocumentRemove* other) {
  1126. if (other == this) return;
  1127. InternalSwap(other);
  1128. }
  1129. // implements Message ----------------------------------------------
  1130. inline DocumentRemove* New() const final {
  1131. return CreateMaybeMessage<DocumentRemove>(nullptr);
  1132. }
  1133. DocumentRemove* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1134. return CreateMaybeMessage<DocumentRemove>(arena);
  1135. }
  1136. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1137. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1138. void CopyFrom(const DocumentRemove& from);
  1139. void MergeFrom(const DocumentRemove& from);
  1140. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1141. bool IsInitialized() const final;
  1142. size_t ByteSizeLong() const final;
  1143. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1144. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1145. #else
  1146. bool MergePartialFromCodedStream(
  1147. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1148. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1149. void SerializeWithCachedSizes(
  1150. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1151. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1152. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1153. int GetCachedSize() const final { return _cached_size_.Get(); }
  1154. private:
  1155. inline void SharedCtor();
  1156. inline void SharedDtor();
  1157. void SetCachedSize(int size) const final;
  1158. void InternalSwap(DocumentRemove* other);
  1159. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1160. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1161. return "google.firestore.v1.DocumentRemove";
  1162. }
  1163. private:
  1164. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1165. return nullptr;
  1166. }
  1167. inline void* MaybeArenaPtr() const {
  1168. return nullptr;
  1169. }
  1170. public:
  1171. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1172. private:
  1173. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1174. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  1175. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  1176. }
  1177. public:
  1178. // nested types ----------------------------------------------------
  1179. // accessors -------------------------------------------------------
  1180. enum : int {
  1181. kRemovedTargetIdsFieldNumber = 2,
  1182. kDocumentFieldNumber = 1,
  1183. kReadTimeFieldNumber = 4,
  1184. };
  1185. // repeated int32 removed_target_ids = 2;
  1186. int removed_target_ids_size() const;
  1187. void clear_removed_target_ids();
  1188. ::PROTOBUF_NAMESPACE_ID::int32 removed_target_ids(int index) const;
  1189. void set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  1190. void add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
  1191. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  1192. removed_target_ids() const;
  1193. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  1194. mutable_removed_target_ids();
  1195. // string document = 1;
  1196. void clear_document();
  1197. const std::string& document() const;
  1198. void set_document(const std::string& value);
  1199. void set_document(std::string&& value);
  1200. void set_document(const char* value);
  1201. void set_document(const char* value, size_t size);
  1202. std::string* mutable_document();
  1203. std::string* release_document();
  1204. void set_allocated_document(std::string* document);
  1205. // .google.protobuf.Timestamp read_time = 4;
  1206. bool has_read_time() const;
  1207. void clear_read_time();
  1208. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  1209. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  1210. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  1211. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  1212. // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentRemove)
  1213. private:
  1214. class _Internal;
  1215. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1216. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > removed_target_ids_;
  1217. mutable std::atomic<int> _removed_target_ids_cached_byte_size_;
  1218. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_;
  1219. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  1220. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1221. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  1222. };
  1223. // -------------------------------------------------------------------
  1224. class ExistenceFilter :
  1225. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ExistenceFilter) */ {
  1226. public:
  1227. ExistenceFilter();
  1228. virtual ~ExistenceFilter();
  1229. ExistenceFilter(const ExistenceFilter& from);
  1230. ExistenceFilter(ExistenceFilter&& from) noexcept
  1231. : ExistenceFilter() {
  1232. *this = ::std::move(from);
  1233. }
  1234. inline ExistenceFilter& operator=(const ExistenceFilter& from) {
  1235. CopyFrom(from);
  1236. return *this;
  1237. }
  1238. inline ExistenceFilter& operator=(ExistenceFilter&& from) noexcept {
  1239. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1240. if (this != &from) InternalSwap(&from);
  1241. } else {
  1242. CopyFrom(from);
  1243. }
  1244. return *this;
  1245. }
  1246. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1247. return GetDescriptor();
  1248. }
  1249. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1250. return GetMetadataStatic().descriptor;
  1251. }
  1252. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1253. return GetMetadataStatic().reflection;
  1254. }
  1255. static const ExistenceFilter& default_instance();
  1256. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1257. static inline const ExistenceFilter* internal_default_instance() {
  1258. return reinterpret_cast<const ExistenceFilter*>(
  1259. &_ExistenceFilter_default_instance_);
  1260. }
  1261. static constexpr int kIndexInFileMessages =
  1262. 7;
  1263. friend void swap(ExistenceFilter& a, ExistenceFilter& b) {
  1264. a.Swap(&b);
  1265. }
  1266. inline void Swap(ExistenceFilter* other) {
  1267. if (other == this) return;
  1268. InternalSwap(other);
  1269. }
  1270. // implements Message ----------------------------------------------
  1271. inline ExistenceFilter* New() const final {
  1272. return CreateMaybeMessage<ExistenceFilter>(nullptr);
  1273. }
  1274. ExistenceFilter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1275. return CreateMaybeMessage<ExistenceFilter>(arena);
  1276. }
  1277. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1278. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1279. void CopyFrom(const ExistenceFilter& from);
  1280. void MergeFrom(const ExistenceFilter& from);
  1281. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1282. bool IsInitialized() const final;
  1283. size_t ByteSizeLong() const final;
  1284. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1285. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1286. #else
  1287. bool MergePartialFromCodedStream(
  1288. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  1289. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  1290. void SerializeWithCachedSizes(
  1291. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  1292. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1293. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  1294. int GetCachedSize() const final { return _cached_size_.Get(); }
  1295. private:
  1296. inline void SharedCtor();
  1297. inline void SharedDtor();
  1298. void SetCachedSize(int size) const final;
  1299. void InternalSwap(ExistenceFilter* other);
  1300. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1301. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1302. return "google.firestore.v1.ExistenceFilter";
  1303. }
  1304. private:
  1305. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1306. return nullptr;
  1307. }
  1308. inline void* MaybeArenaPtr() const {
  1309. return nullptr;
  1310. }
  1311. public:
  1312. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1313. private:
  1314. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1315. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
  1316. return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
  1317. }
  1318. public:
  1319. // nested types ----------------------------------------------------
  1320. // accessors -------------------------------------------------------
  1321. enum : int {
  1322. kTargetIdFieldNumber = 1,
  1323. kCountFieldNumber = 2,
  1324. };
  1325. // int32 target_id = 1;
  1326. void clear_target_id();
  1327. ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
  1328. void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  1329. // int32 count = 2;
  1330. void clear_count();
  1331. ::PROTOBUF_NAMESPACE_ID::int32 count() const;
  1332. void set_count(::PROTOBUF_NAMESPACE_ID::int32 value);
  1333. // @@protoc_insertion_point(class_scope:google.firestore.v1.ExistenceFilter)
  1334. private:
  1335. class _Internal;
  1336. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1337. ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
  1338. ::PROTOBUF_NAMESPACE_ID::int32 count_;
  1339. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1340. friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
  1341. };
  1342. // ===================================================================
  1343. // ===================================================================
  1344. #ifdef __GNUC__
  1345. #pragma GCC diagnostic push
  1346. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1347. #endif // __GNUC__
  1348. // Write
  1349. // .google.firestore.v1.Document update = 1;
  1350. inline bool Write::has_update() const {
  1351. return operation_case() == kUpdate;
  1352. }
  1353. inline void Write::set_has_update() {
  1354. _oneof_case_[0] = kUpdate;
  1355. }
  1356. inline ::google::firestore::v1::Document* Write::release_update() {
  1357. // @@protoc_insertion_point(field_release:google.firestore.v1.Write.update)
  1358. if (has_update()) {
  1359. clear_has_operation();
  1360. ::google::firestore::v1::Document* temp = operation_.update_;
  1361. operation_.update_ = nullptr;
  1362. return temp;
  1363. } else {
  1364. return nullptr;
  1365. }
  1366. }
  1367. inline const ::google::firestore::v1::Document& Write::update() const {
  1368. // @@protoc_insertion_point(field_get:google.firestore.v1.Write.update)
  1369. return has_update()
  1370. ? *operation_.update_
  1371. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  1372. }
  1373. inline ::google::firestore::v1::Document* Write::mutable_update() {
  1374. if (!has_update()) {
  1375. clear_operation();
  1376. set_has_update();
  1377. operation_.update_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  1378. GetArenaNoVirtual());
  1379. }
  1380. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.update)
  1381. return operation_.update_;
  1382. }
  1383. // string delete = 2;
  1384. inline bool Write::has_delete_() const {
  1385. return operation_case() == kDelete;
  1386. }
  1387. inline void Write::set_has_delete_() {
  1388. _oneof_case_[0] = kDelete;
  1389. }
  1390. inline void Write::clear_delete_() {
  1391. if (has_delete_()) {
  1392. operation_.delete__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1393. clear_has_operation();
  1394. }
  1395. }
  1396. inline const std::string& Write::delete_() const {
  1397. // @@protoc_insertion_point(field_get:google.firestore.v1.Write.delete)
  1398. if (has_delete_()) {
  1399. return operation_.delete__.GetNoArena();
  1400. }
  1401. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  1402. }
  1403. inline void Write::set_delete_(const std::string& value) {
  1404. // @@protoc_insertion_point(field_set:google.firestore.v1.Write.delete)
  1405. if (!has_delete_()) {
  1406. clear_operation();
  1407. set_has_delete_();
  1408. operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1409. }
  1410. operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1411. // @@protoc_insertion_point(field_set:google.firestore.v1.Write.delete)
  1412. }
  1413. inline void Write::set_delete_(std::string&& value) {
  1414. // @@protoc_insertion_point(field_set:google.firestore.v1.Write.delete)
  1415. if (!has_delete_()) {
  1416. clear_operation();
  1417. set_has_delete_();
  1418. operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1419. }
  1420. operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1421. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Write.delete)
  1422. }
  1423. inline void Write::set_delete_(const char* value) {
  1424. GOOGLE_DCHECK(value != nullptr);
  1425. if (!has_delete_()) {
  1426. clear_operation();
  1427. set_has_delete_();
  1428. operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1429. }
  1430. operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1431. ::std::string(value));
  1432. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Write.delete)
  1433. }
  1434. inline void Write::set_delete_(const char* value, size_t size) {
  1435. if (!has_delete_()) {
  1436. clear_operation();
  1437. set_has_delete_();
  1438. operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1439. }
  1440. operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1441. reinterpret_cast<const char*>(value), size));
  1442. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Write.delete)
  1443. }
  1444. inline std::string* Write::mutable_delete_() {
  1445. if (!has_delete_()) {
  1446. clear_operation();
  1447. set_has_delete_();
  1448. operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1449. }
  1450. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.delete)
  1451. return operation_.delete__.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1452. }
  1453. inline std::string* Write::release_delete_() {
  1454. // @@protoc_insertion_point(field_release:google.firestore.v1.Write.delete)
  1455. if (has_delete_()) {
  1456. clear_has_operation();
  1457. return operation_.delete__.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1458. } else {
  1459. return nullptr;
  1460. }
  1461. }
  1462. inline void Write::set_allocated_delete_(std::string* delete_) {
  1463. if (has_operation()) {
  1464. clear_operation();
  1465. }
  1466. if (delete_ != nullptr) {
  1467. set_has_delete_();
  1468. operation_.delete__.UnsafeSetDefault(delete_);
  1469. }
  1470. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Write.delete)
  1471. }
  1472. // .google.firestore.v1.DocumentTransform transform = 6;
  1473. inline bool Write::has_transform() const {
  1474. return operation_case() == kTransform;
  1475. }
  1476. inline void Write::set_has_transform() {
  1477. _oneof_case_[0] = kTransform;
  1478. }
  1479. inline void Write::clear_transform() {
  1480. if (has_transform()) {
  1481. delete operation_.transform_;
  1482. clear_has_operation();
  1483. }
  1484. }
  1485. inline ::google::firestore::v1::DocumentTransform* Write::release_transform() {
  1486. // @@protoc_insertion_point(field_release:google.firestore.v1.Write.transform)
  1487. if (has_transform()) {
  1488. clear_has_operation();
  1489. ::google::firestore::v1::DocumentTransform* temp = operation_.transform_;
  1490. operation_.transform_ = nullptr;
  1491. return temp;
  1492. } else {
  1493. return nullptr;
  1494. }
  1495. }
  1496. inline const ::google::firestore::v1::DocumentTransform& Write::transform() const {
  1497. // @@protoc_insertion_point(field_get:google.firestore.v1.Write.transform)
  1498. return has_transform()
  1499. ? *operation_.transform_
  1500. : *reinterpret_cast< ::google::firestore::v1::DocumentTransform*>(&::google::firestore::v1::_DocumentTransform_default_instance_);
  1501. }
  1502. inline ::google::firestore::v1::DocumentTransform* Write::mutable_transform() {
  1503. if (!has_transform()) {
  1504. clear_operation();
  1505. set_has_transform();
  1506. operation_.transform_ = CreateMaybeMessage< ::google::firestore::v1::DocumentTransform >(
  1507. GetArenaNoVirtual());
  1508. }
  1509. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.transform)
  1510. return operation_.transform_;
  1511. }
  1512. // .google.firestore.v1.DocumentMask update_mask = 3;
  1513. inline bool Write::has_update_mask() const {
  1514. return this != internal_default_instance() && update_mask_ != nullptr;
  1515. }
  1516. inline const ::google::firestore::v1::DocumentMask& Write::update_mask() const {
  1517. const ::google::firestore::v1::DocumentMask* p = update_mask_;
  1518. // @@protoc_insertion_point(field_get:google.firestore.v1.Write.update_mask)
  1519. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
  1520. &::google::firestore::v1::_DocumentMask_default_instance_);
  1521. }
  1522. inline ::google::firestore::v1::DocumentMask* Write::release_update_mask() {
  1523. // @@protoc_insertion_point(field_release:google.firestore.v1.Write.update_mask)
  1524. ::google::firestore::v1::DocumentMask* temp = update_mask_;
  1525. update_mask_ = nullptr;
  1526. return temp;
  1527. }
  1528. inline ::google::firestore::v1::DocumentMask* Write::mutable_update_mask() {
  1529. if (update_mask_ == nullptr) {
  1530. auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
  1531. update_mask_ = p;
  1532. }
  1533. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.update_mask)
  1534. return update_mask_;
  1535. }
  1536. inline void Write::set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask) {
  1537. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1538. if (message_arena == nullptr) {
  1539. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask_);
  1540. }
  1541. if (update_mask) {
  1542. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  1543. if (message_arena != submessage_arena) {
  1544. update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1545. message_arena, update_mask, submessage_arena);
  1546. }
  1547. } else {
  1548. }
  1549. update_mask_ = update_mask;
  1550. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Write.update_mask)
  1551. }
  1552. // .google.firestore.v1.Precondition current_document = 4;
  1553. inline bool Write::has_current_document() const {
  1554. return this != internal_default_instance() && current_document_ != nullptr;
  1555. }
  1556. inline const ::google::firestore::v1::Precondition& Write::current_document() const {
  1557. const ::google::firestore::v1::Precondition* p = current_document_;
  1558. // @@protoc_insertion_point(field_get:google.firestore.v1.Write.current_document)
  1559. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
  1560. &::google::firestore::v1::_Precondition_default_instance_);
  1561. }
  1562. inline ::google::firestore::v1::Precondition* Write::release_current_document() {
  1563. // @@protoc_insertion_point(field_release:google.firestore.v1.Write.current_document)
  1564. ::google::firestore::v1::Precondition* temp = current_document_;
  1565. current_document_ = nullptr;
  1566. return temp;
  1567. }
  1568. inline ::google::firestore::v1::Precondition* Write::mutable_current_document() {
  1569. if (current_document_ == nullptr) {
  1570. auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
  1571. current_document_ = p;
  1572. }
  1573. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.current_document)
  1574. return current_document_;
  1575. }
  1576. inline void Write::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
  1577. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1578. if (message_arena == nullptr) {
  1579. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
  1580. }
  1581. if (current_document) {
  1582. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  1583. if (message_arena != submessage_arena) {
  1584. current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1585. message_arena, current_document, submessage_arena);
  1586. }
  1587. } else {
  1588. }
  1589. current_document_ = current_document;
  1590. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Write.current_document)
  1591. }
  1592. inline bool Write::has_operation() const {
  1593. return operation_case() != OPERATION_NOT_SET;
  1594. }
  1595. inline void Write::clear_has_operation() {
  1596. _oneof_case_[0] = OPERATION_NOT_SET;
  1597. }
  1598. inline Write::OperationCase Write::operation_case() const {
  1599. return Write::OperationCase(_oneof_case_[0]);
  1600. }
  1601. // -------------------------------------------------------------------
  1602. // DocumentTransform_FieldTransform
  1603. // string field_path = 1;
  1604. inline void DocumentTransform_FieldTransform::clear_field_path() {
  1605. field_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1606. }
  1607. inline const std::string& DocumentTransform_FieldTransform::field_path() const {
  1608. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1609. return field_path_.GetNoArena();
  1610. }
  1611. inline void DocumentTransform_FieldTransform::set_field_path(const std::string& value) {
  1612. field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1613. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1614. }
  1615. inline void DocumentTransform_FieldTransform::set_field_path(std::string&& value) {
  1616. field_path_.SetNoArena(
  1617. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1618. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1619. }
  1620. inline void DocumentTransform_FieldTransform::set_field_path(const char* value) {
  1621. GOOGLE_DCHECK(value != nullptr);
  1622. field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1623. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1624. }
  1625. inline void DocumentTransform_FieldTransform::set_field_path(const char* value, size_t size) {
  1626. field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1627. ::std::string(reinterpret_cast<const char*>(value), size));
  1628. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1629. }
  1630. inline std::string* DocumentTransform_FieldTransform::mutable_field_path() {
  1631. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1632. return field_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1633. }
  1634. inline std::string* DocumentTransform_FieldTransform::release_field_path() {
  1635. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1636. return field_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1637. }
  1638. inline void DocumentTransform_FieldTransform::set_allocated_field_path(std::string* field_path) {
  1639. if (field_path != nullptr) {
  1640. } else {
  1641. }
  1642. field_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_path);
  1643. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
  1644. }
  1645. // .google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
  1646. inline bool DocumentTransform_FieldTransform::has_set_to_server_value() const {
  1647. return transform_type_case() == kSetToServerValue;
  1648. }
  1649. inline void DocumentTransform_FieldTransform::set_has_set_to_server_value() {
  1650. _oneof_case_[0] = kSetToServerValue;
  1651. }
  1652. inline void DocumentTransform_FieldTransform::clear_set_to_server_value() {
  1653. if (has_set_to_server_value()) {
  1654. transform_type_.set_to_server_value_ = 0;
  1655. clear_has_transform_type();
  1656. }
  1657. }
  1658. inline ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform::set_to_server_value() const {
  1659. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.set_to_server_value)
  1660. if (has_set_to_server_value()) {
  1661. return static_cast< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue >(transform_type_.set_to_server_value_);
  1662. }
  1663. return static_cast< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue >(0);
  1664. }
  1665. inline void DocumentTransform_FieldTransform::set_set_to_server_value(::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue value) {
  1666. if (!has_set_to_server_value()) {
  1667. clear_transform_type();
  1668. set_has_set_to_server_value();
  1669. }
  1670. transform_type_.set_to_server_value_ = value;
  1671. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentTransform.FieldTransform.set_to_server_value)
  1672. }
  1673. // .google.firestore.v1.Value increment = 3;
  1674. inline bool DocumentTransform_FieldTransform::has_increment() const {
  1675. return transform_type_case() == kIncrement;
  1676. }
  1677. inline void DocumentTransform_FieldTransform::set_has_increment() {
  1678. _oneof_case_[0] = kIncrement;
  1679. }
  1680. inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::release_increment() {
  1681. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.increment)
  1682. if (has_increment()) {
  1683. clear_has_transform_type();
  1684. ::google::firestore::v1::Value* temp = transform_type_.increment_;
  1685. transform_type_.increment_ = nullptr;
  1686. return temp;
  1687. } else {
  1688. return nullptr;
  1689. }
  1690. }
  1691. inline const ::google::firestore::v1::Value& DocumentTransform_FieldTransform::increment() const {
  1692. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.increment)
  1693. return has_increment()
  1694. ? *transform_type_.increment_
  1695. : *reinterpret_cast< ::google::firestore::v1::Value*>(&::google::firestore::v1::_Value_default_instance_);
  1696. }
  1697. inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::mutable_increment() {
  1698. if (!has_increment()) {
  1699. clear_transform_type();
  1700. set_has_increment();
  1701. transform_type_.increment_ = CreateMaybeMessage< ::google::firestore::v1::Value >(
  1702. GetArenaNoVirtual());
  1703. }
  1704. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.increment)
  1705. return transform_type_.increment_;
  1706. }
  1707. // .google.firestore.v1.Value maximum = 4;
  1708. inline bool DocumentTransform_FieldTransform::has_maximum() const {
  1709. return transform_type_case() == kMaximum;
  1710. }
  1711. inline void DocumentTransform_FieldTransform::set_has_maximum() {
  1712. _oneof_case_[0] = kMaximum;
  1713. }
  1714. inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::release_maximum() {
  1715. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.maximum)
  1716. if (has_maximum()) {
  1717. clear_has_transform_type();
  1718. ::google::firestore::v1::Value* temp = transform_type_.maximum_;
  1719. transform_type_.maximum_ = nullptr;
  1720. return temp;
  1721. } else {
  1722. return nullptr;
  1723. }
  1724. }
  1725. inline const ::google::firestore::v1::Value& DocumentTransform_FieldTransform::maximum() const {
  1726. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.maximum)
  1727. return has_maximum()
  1728. ? *transform_type_.maximum_
  1729. : *reinterpret_cast< ::google::firestore::v1::Value*>(&::google::firestore::v1::_Value_default_instance_);
  1730. }
  1731. inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::mutable_maximum() {
  1732. if (!has_maximum()) {
  1733. clear_transform_type();
  1734. set_has_maximum();
  1735. transform_type_.maximum_ = CreateMaybeMessage< ::google::firestore::v1::Value >(
  1736. GetArenaNoVirtual());
  1737. }
  1738. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.maximum)
  1739. return transform_type_.maximum_;
  1740. }
  1741. // .google.firestore.v1.Value minimum = 5;
  1742. inline bool DocumentTransform_FieldTransform::has_minimum() const {
  1743. return transform_type_case() == kMinimum;
  1744. }
  1745. inline void DocumentTransform_FieldTransform::set_has_minimum() {
  1746. _oneof_case_[0] = kMinimum;
  1747. }
  1748. inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::release_minimum() {
  1749. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.minimum)
  1750. if (has_minimum()) {
  1751. clear_has_transform_type();
  1752. ::google::firestore::v1::Value* temp = transform_type_.minimum_;
  1753. transform_type_.minimum_ = nullptr;
  1754. return temp;
  1755. } else {
  1756. return nullptr;
  1757. }
  1758. }
  1759. inline const ::google::firestore::v1::Value& DocumentTransform_FieldTransform::minimum() const {
  1760. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.minimum)
  1761. return has_minimum()
  1762. ? *transform_type_.minimum_
  1763. : *reinterpret_cast< ::google::firestore::v1::Value*>(&::google::firestore::v1::_Value_default_instance_);
  1764. }
  1765. inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::mutable_minimum() {
  1766. if (!has_minimum()) {
  1767. clear_transform_type();
  1768. set_has_minimum();
  1769. transform_type_.minimum_ = CreateMaybeMessage< ::google::firestore::v1::Value >(
  1770. GetArenaNoVirtual());
  1771. }
  1772. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.minimum)
  1773. return transform_type_.minimum_;
  1774. }
  1775. // .google.firestore.v1.ArrayValue append_missing_elements = 6;
  1776. inline bool DocumentTransform_FieldTransform::has_append_missing_elements() const {
  1777. return transform_type_case() == kAppendMissingElements;
  1778. }
  1779. inline void DocumentTransform_FieldTransform::set_has_append_missing_elements() {
  1780. _oneof_case_[0] = kAppendMissingElements;
  1781. }
  1782. inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::release_append_missing_elements() {
  1783. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.append_missing_elements)
  1784. if (has_append_missing_elements()) {
  1785. clear_has_transform_type();
  1786. ::google::firestore::v1::ArrayValue* temp = transform_type_.append_missing_elements_;
  1787. transform_type_.append_missing_elements_ = nullptr;
  1788. return temp;
  1789. } else {
  1790. return nullptr;
  1791. }
  1792. }
  1793. inline const ::google::firestore::v1::ArrayValue& DocumentTransform_FieldTransform::append_missing_elements() const {
  1794. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.append_missing_elements)
  1795. return has_append_missing_elements()
  1796. ? *transform_type_.append_missing_elements_
  1797. : *reinterpret_cast< ::google::firestore::v1::ArrayValue*>(&::google::firestore::v1::_ArrayValue_default_instance_);
  1798. }
  1799. inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::mutable_append_missing_elements() {
  1800. if (!has_append_missing_elements()) {
  1801. clear_transform_type();
  1802. set_has_append_missing_elements();
  1803. transform_type_.append_missing_elements_ = CreateMaybeMessage< ::google::firestore::v1::ArrayValue >(
  1804. GetArenaNoVirtual());
  1805. }
  1806. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.append_missing_elements)
  1807. return transform_type_.append_missing_elements_;
  1808. }
  1809. // .google.firestore.v1.ArrayValue remove_all_from_array = 7;
  1810. inline bool DocumentTransform_FieldTransform::has_remove_all_from_array() const {
  1811. return transform_type_case() == kRemoveAllFromArray;
  1812. }
  1813. inline void DocumentTransform_FieldTransform::set_has_remove_all_from_array() {
  1814. _oneof_case_[0] = kRemoveAllFromArray;
  1815. }
  1816. inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::release_remove_all_from_array() {
  1817. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.remove_all_from_array)
  1818. if (has_remove_all_from_array()) {
  1819. clear_has_transform_type();
  1820. ::google::firestore::v1::ArrayValue* temp = transform_type_.remove_all_from_array_;
  1821. transform_type_.remove_all_from_array_ = nullptr;
  1822. return temp;
  1823. } else {
  1824. return nullptr;
  1825. }
  1826. }
  1827. inline const ::google::firestore::v1::ArrayValue& DocumentTransform_FieldTransform::remove_all_from_array() const {
  1828. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.remove_all_from_array)
  1829. return has_remove_all_from_array()
  1830. ? *transform_type_.remove_all_from_array_
  1831. : *reinterpret_cast< ::google::firestore::v1::ArrayValue*>(&::google::firestore::v1::_ArrayValue_default_instance_);
  1832. }
  1833. inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::mutable_remove_all_from_array() {
  1834. if (!has_remove_all_from_array()) {
  1835. clear_transform_type();
  1836. set_has_remove_all_from_array();
  1837. transform_type_.remove_all_from_array_ = CreateMaybeMessage< ::google::firestore::v1::ArrayValue >(
  1838. GetArenaNoVirtual());
  1839. }
  1840. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.remove_all_from_array)
  1841. return transform_type_.remove_all_from_array_;
  1842. }
  1843. inline bool DocumentTransform_FieldTransform::has_transform_type() const {
  1844. return transform_type_case() != TRANSFORM_TYPE_NOT_SET;
  1845. }
  1846. inline void DocumentTransform_FieldTransform::clear_has_transform_type() {
  1847. _oneof_case_[0] = TRANSFORM_TYPE_NOT_SET;
  1848. }
  1849. inline DocumentTransform_FieldTransform::TransformTypeCase DocumentTransform_FieldTransform::transform_type_case() const {
  1850. return DocumentTransform_FieldTransform::TransformTypeCase(_oneof_case_[0]);
  1851. }
  1852. // -------------------------------------------------------------------
  1853. // DocumentTransform
  1854. // string document = 1;
  1855. inline void DocumentTransform::clear_document() {
  1856. document_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1857. }
  1858. inline const std::string& DocumentTransform::document() const {
  1859. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.document)
  1860. return document_.GetNoArena();
  1861. }
  1862. inline void DocumentTransform::set_document(const std::string& value) {
  1863. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1864. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentTransform.document)
  1865. }
  1866. inline void DocumentTransform::set_document(std::string&& value) {
  1867. document_.SetNoArena(
  1868. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1869. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentTransform.document)
  1870. }
  1871. inline void DocumentTransform::set_document(const char* value) {
  1872. GOOGLE_DCHECK(value != nullptr);
  1873. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1874. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentTransform.document)
  1875. }
  1876. inline void DocumentTransform::set_document(const char* value, size_t size) {
  1877. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1878. ::std::string(reinterpret_cast<const char*>(value), size));
  1879. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentTransform.document)
  1880. }
  1881. inline std::string* DocumentTransform::mutable_document() {
  1882. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.document)
  1883. return document_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1884. }
  1885. inline std::string* DocumentTransform::release_document() {
  1886. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.document)
  1887. return document_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1888. }
  1889. inline void DocumentTransform::set_allocated_document(std::string* document) {
  1890. if (document != nullptr) {
  1891. } else {
  1892. }
  1893. document_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document);
  1894. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentTransform.document)
  1895. }
  1896. // repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;
  1897. inline int DocumentTransform::field_transforms_size() const {
  1898. return field_transforms_.size();
  1899. }
  1900. inline void DocumentTransform::clear_field_transforms() {
  1901. field_transforms_.Clear();
  1902. }
  1903. inline ::google::firestore::v1::DocumentTransform_FieldTransform* DocumentTransform::mutable_field_transforms(int index) {
  1904. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.field_transforms)
  1905. return field_transforms_.Mutable(index);
  1906. }
  1907. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >*
  1908. DocumentTransform::mutable_field_transforms() {
  1909. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentTransform.field_transforms)
  1910. return &field_transforms_;
  1911. }
  1912. inline const ::google::firestore::v1::DocumentTransform_FieldTransform& DocumentTransform::field_transforms(int index) const {
  1913. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.field_transforms)
  1914. return field_transforms_.Get(index);
  1915. }
  1916. inline ::google::firestore::v1::DocumentTransform_FieldTransform* DocumentTransform::add_field_transforms() {
  1917. // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentTransform.field_transforms)
  1918. return field_transforms_.Add();
  1919. }
  1920. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >&
  1921. DocumentTransform::field_transforms() const {
  1922. // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentTransform.field_transforms)
  1923. return field_transforms_;
  1924. }
  1925. // -------------------------------------------------------------------
  1926. // WriteResult
  1927. // .google.protobuf.Timestamp update_time = 1;
  1928. inline bool WriteResult::has_update_time() const {
  1929. return this != internal_default_instance() && update_time_ != nullptr;
  1930. }
  1931. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResult::update_time() const {
  1932. const PROTOBUF_NAMESPACE_ID::Timestamp* p = update_time_;
  1933. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResult.update_time)
  1934. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  1935. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  1936. }
  1937. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResult::release_update_time() {
  1938. // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResult.update_time)
  1939. PROTOBUF_NAMESPACE_ID::Timestamp* temp = update_time_;
  1940. update_time_ = nullptr;
  1941. return temp;
  1942. }
  1943. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResult::mutable_update_time() {
  1944. if (update_time_ == nullptr) {
  1945. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  1946. update_time_ = p;
  1947. }
  1948. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResult.update_time)
  1949. return update_time_;
  1950. }
  1951. inline void WriteResult::set_allocated_update_time(PROTOBUF_NAMESPACE_ID::Timestamp* update_time) {
  1952. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1953. if (message_arena == nullptr) {
  1954. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time_);
  1955. }
  1956. if (update_time) {
  1957. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1958. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time)->GetArena();
  1959. if (message_arena != submessage_arena) {
  1960. update_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1961. message_arena, update_time, submessage_arena);
  1962. }
  1963. } else {
  1964. }
  1965. update_time_ = update_time;
  1966. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResult.update_time)
  1967. }
  1968. // repeated .google.firestore.v1.Value transform_results = 2;
  1969. inline int WriteResult::transform_results_size() const {
  1970. return transform_results_.size();
  1971. }
  1972. inline ::google::firestore::v1::Value* WriteResult::mutable_transform_results(int index) {
  1973. // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResult.transform_results)
  1974. return transform_results_.Mutable(index);
  1975. }
  1976. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >*
  1977. WriteResult::mutable_transform_results() {
  1978. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteResult.transform_results)
  1979. return &transform_results_;
  1980. }
  1981. inline const ::google::firestore::v1::Value& WriteResult::transform_results(int index) const {
  1982. // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResult.transform_results)
  1983. return transform_results_.Get(index);
  1984. }
  1985. inline ::google::firestore::v1::Value* WriteResult::add_transform_results() {
  1986. // @@protoc_insertion_point(field_add:google.firestore.v1.WriteResult.transform_results)
  1987. return transform_results_.Add();
  1988. }
  1989. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >&
  1990. WriteResult::transform_results() const {
  1991. // @@protoc_insertion_point(field_list:google.firestore.v1.WriteResult.transform_results)
  1992. return transform_results_;
  1993. }
  1994. // -------------------------------------------------------------------
  1995. // DocumentChange
  1996. // .google.firestore.v1.Document document = 1;
  1997. inline bool DocumentChange::has_document() const {
  1998. return this != internal_default_instance() && document_ != nullptr;
  1999. }
  2000. inline const ::google::firestore::v1::Document& DocumentChange::document() const {
  2001. const ::google::firestore::v1::Document* p = document_;
  2002. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentChange.document)
  2003. return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
  2004. &::google::firestore::v1::_Document_default_instance_);
  2005. }
  2006. inline ::google::firestore::v1::Document* DocumentChange::release_document() {
  2007. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentChange.document)
  2008. ::google::firestore::v1::Document* temp = document_;
  2009. document_ = nullptr;
  2010. return temp;
  2011. }
  2012. inline ::google::firestore::v1::Document* DocumentChange::mutable_document() {
  2013. if (document_ == nullptr) {
  2014. auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
  2015. document_ = p;
  2016. }
  2017. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentChange.document)
  2018. return document_;
  2019. }
  2020. inline void DocumentChange::set_allocated_document(::google::firestore::v1::Document* document) {
  2021. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  2022. if (message_arena == nullptr) {
  2023. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
  2024. }
  2025. if (document) {
  2026. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  2027. if (message_arena != submessage_arena) {
  2028. document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  2029. message_arena, document, submessage_arena);
  2030. }
  2031. } else {
  2032. }
  2033. document_ = document;
  2034. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentChange.document)
  2035. }
  2036. // repeated int32 target_ids = 5;
  2037. inline int DocumentChange::target_ids_size() const {
  2038. return target_ids_.size();
  2039. }
  2040. inline void DocumentChange::clear_target_ids() {
  2041. target_ids_.Clear();
  2042. }
  2043. inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentChange::target_ids(int index) const {
  2044. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentChange.target_ids)
  2045. return target_ids_.Get(index);
  2046. }
  2047. inline void DocumentChange::set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  2048. target_ids_.Set(index, value);
  2049. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentChange.target_ids)
  2050. }
  2051. inline void DocumentChange::add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  2052. target_ids_.Add(value);
  2053. // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentChange.target_ids)
  2054. }
  2055. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  2056. DocumentChange::target_ids() const {
  2057. // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentChange.target_ids)
  2058. return target_ids_;
  2059. }
  2060. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  2061. DocumentChange::mutable_target_ids() {
  2062. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentChange.target_ids)
  2063. return &target_ids_;
  2064. }
  2065. // repeated int32 removed_target_ids = 6;
  2066. inline int DocumentChange::removed_target_ids_size() const {
  2067. return removed_target_ids_.size();
  2068. }
  2069. inline void DocumentChange::clear_removed_target_ids() {
  2070. removed_target_ids_.Clear();
  2071. }
  2072. inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentChange::removed_target_ids(int index) const {
  2073. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentChange.removed_target_ids)
  2074. return removed_target_ids_.Get(index);
  2075. }
  2076. inline void DocumentChange::set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  2077. removed_target_ids_.Set(index, value);
  2078. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentChange.removed_target_ids)
  2079. }
  2080. inline void DocumentChange::add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  2081. removed_target_ids_.Add(value);
  2082. // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentChange.removed_target_ids)
  2083. }
  2084. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  2085. DocumentChange::removed_target_ids() const {
  2086. // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentChange.removed_target_ids)
  2087. return removed_target_ids_;
  2088. }
  2089. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  2090. DocumentChange::mutable_removed_target_ids() {
  2091. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentChange.removed_target_ids)
  2092. return &removed_target_ids_;
  2093. }
  2094. // -------------------------------------------------------------------
  2095. // DocumentDelete
  2096. // string document = 1;
  2097. inline void DocumentDelete::clear_document() {
  2098. document_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2099. }
  2100. inline const std::string& DocumentDelete::document() const {
  2101. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentDelete.document)
  2102. return document_.GetNoArena();
  2103. }
  2104. inline void DocumentDelete::set_document(const std::string& value) {
  2105. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  2106. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentDelete.document)
  2107. }
  2108. inline void DocumentDelete::set_document(std::string&& value) {
  2109. document_.SetNoArena(
  2110. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2111. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentDelete.document)
  2112. }
  2113. inline void DocumentDelete::set_document(const char* value) {
  2114. GOOGLE_DCHECK(value != nullptr);
  2115. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2116. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentDelete.document)
  2117. }
  2118. inline void DocumentDelete::set_document(const char* value, size_t size) {
  2119. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2120. ::std::string(reinterpret_cast<const char*>(value), size));
  2121. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentDelete.document)
  2122. }
  2123. inline std::string* DocumentDelete::mutable_document() {
  2124. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentDelete.document)
  2125. return document_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2126. }
  2127. inline std::string* DocumentDelete::release_document() {
  2128. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentDelete.document)
  2129. return document_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2130. }
  2131. inline void DocumentDelete::set_allocated_document(std::string* document) {
  2132. if (document != nullptr) {
  2133. } else {
  2134. }
  2135. document_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document);
  2136. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentDelete.document)
  2137. }
  2138. // repeated int32 removed_target_ids = 6;
  2139. inline int DocumentDelete::removed_target_ids_size() const {
  2140. return removed_target_ids_.size();
  2141. }
  2142. inline void DocumentDelete::clear_removed_target_ids() {
  2143. removed_target_ids_.Clear();
  2144. }
  2145. inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentDelete::removed_target_ids(int index) const {
  2146. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentDelete.removed_target_ids)
  2147. return removed_target_ids_.Get(index);
  2148. }
  2149. inline void DocumentDelete::set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  2150. removed_target_ids_.Set(index, value);
  2151. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentDelete.removed_target_ids)
  2152. }
  2153. inline void DocumentDelete::add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  2154. removed_target_ids_.Add(value);
  2155. // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentDelete.removed_target_ids)
  2156. }
  2157. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  2158. DocumentDelete::removed_target_ids() const {
  2159. // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentDelete.removed_target_ids)
  2160. return removed_target_ids_;
  2161. }
  2162. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  2163. DocumentDelete::mutable_removed_target_ids() {
  2164. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentDelete.removed_target_ids)
  2165. return &removed_target_ids_;
  2166. }
  2167. // .google.protobuf.Timestamp read_time = 4;
  2168. inline bool DocumentDelete::has_read_time() const {
  2169. return this != internal_default_instance() && read_time_ != nullptr;
  2170. }
  2171. inline const PROTOBUF_NAMESPACE_ID::Timestamp& DocumentDelete::read_time() const {
  2172. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  2173. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentDelete.read_time)
  2174. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  2175. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  2176. }
  2177. inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentDelete::release_read_time() {
  2178. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentDelete.read_time)
  2179. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  2180. read_time_ = nullptr;
  2181. return temp;
  2182. }
  2183. inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentDelete::mutable_read_time() {
  2184. if (read_time_ == nullptr) {
  2185. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  2186. read_time_ = p;
  2187. }
  2188. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentDelete.read_time)
  2189. return read_time_;
  2190. }
  2191. inline void DocumentDelete::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  2192. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  2193. if (message_arena == nullptr) {
  2194. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  2195. }
  2196. if (read_time) {
  2197. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  2198. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  2199. if (message_arena != submessage_arena) {
  2200. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  2201. message_arena, read_time, submessage_arena);
  2202. }
  2203. } else {
  2204. }
  2205. read_time_ = read_time;
  2206. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentDelete.read_time)
  2207. }
  2208. // -------------------------------------------------------------------
  2209. // DocumentRemove
  2210. // string document = 1;
  2211. inline void DocumentRemove::clear_document() {
  2212. document_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2213. }
  2214. inline const std::string& DocumentRemove::document() const {
  2215. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentRemove.document)
  2216. return document_.GetNoArena();
  2217. }
  2218. inline void DocumentRemove::set_document(const std::string& value) {
  2219. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  2220. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentRemove.document)
  2221. }
  2222. inline void DocumentRemove::set_document(std::string&& value) {
  2223. document_.SetNoArena(
  2224. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2225. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentRemove.document)
  2226. }
  2227. inline void DocumentRemove::set_document(const char* value) {
  2228. GOOGLE_DCHECK(value != nullptr);
  2229. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2230. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentRemove.document)
  2231. }
  2232. inline void DocumentRemove::set_document(const char* value, size_t size) {
  2233. document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2234. ::std::string(reinterpret_cast<const char*>(value), size));
  2235. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentRemove.document)
  2236. }
  2237. inline std::string* DocumentRemove::mutable_document() {
  2238. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentRemove.document)
  2239. return document_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2240. }
  2241. inline std::string* DocumentRemove::release_document() {
  2242. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentRemove.document)
  2243. return document_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2244. }
  2245. inline void DocumentRemove::set_allocated_document(std::string* document) {
  2246. if (document != nullptr) {
  2247. } else {
  2248. }
  2249. document_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document);
  2250. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentRemove.document)
  2251. }
  2252. // repeated int32 removed_target_ids = 2;
  2253. inline int DocumentRemove::removed_target_ids_size() const {
  2254. return removed_target_ids_.size();
  2255. }
  2256. inline void DocumentRemove::clear_removed_target_ids() {
  2257. removed_target_ids_.Clear();
  2258. }
  2259. inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentRemove::removed_target_ids(int index) const {
  2260. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentRemove.removed_target_ids)
  2261. return removed_target_ids_.Get(index);
  2262. }
  2263. inline void DocumentRemove::set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  2264. removed_target_ids_.Set(index, value);
  2265. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentRemove.removed_target_ids)
  2266. }
  2267. inline void DocumentRemove::add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
  2268. removed_target_ids_.Add(value);
  2269. // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentRemove.removed_target_ids)
  2270. }
  2271. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  2272. DocumentRemove::removed_target_ids() const {
  2273. // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentRemove.removed_target_ids)
  2274. return removed_target_ids_;
  2275. }
  2276. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  2277. DocumentRemove::mutable_removed_target_ids() {
  2278. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentRemove.removed_target_ids)
  2279. return &removed_target_ids_;
  2280. }
  2281. // .google.protobuf.Timestamp read_time = 4;
  2282. inline bool DocumentRemove::has_read_time() const {
  2283. return this != internal_default_instance() && read_time_ != nullptr;
  2284. }
  2285. inline const PROTOBUF_NAMESPACE_ID::Timestamp& DocumentRemove::read_time() const {
  2286. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  2287. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentRemove.read_time)
  2288. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  2289. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  2290. }
  2291. inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentRemove::release_read_time() {
  2292. // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentRemove.read_time)
  2293. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  2294. read_time_ = nullptr;
  2295. return temp;
  2296. }
  2297. inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentRemove::mutable_read_time() {
  2298. if (read_time_ == nullptr) {
  2299. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  2300. read_time_ = p;
  2301. }
  2302. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentRemove.read_time)
  2303. return read_time_;
  2304. }
  2305. inline void DocumentRemove::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  2306. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  2307. if (message_arena == nullptr) {
  2308. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  2309. }
  2310. if (read_time) {
  2311. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  2312. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  2313. if (message_arena != submessage_arena) {
  2314. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  2315. message_arena, read_time, submessage_arena);
  2316. }
  2317. } else {
  2318. }
  2319. read_time_ = read_time;
  2320. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentRemove.read_time)
  2321. }
  2322. // -------------------------------------------------------------------
  2323. // ExistenceFilter
  2324. // int32 target_id = 1;
  2325. inline void ExistenceFilter::clear_target_id() {
  2326. target_id_ = 0;
  2327. }
  2328. inline ::PROTOBUF_NAMESPACE_ID::int32 ExistenceFilter::target_id() const {
  2329. // @@protoc_insertion_point(field_get:google.firestore.v1.ExistenceFilter.target_id)
  2330. return target_id_;
  2331. }
  2332. inline void ExistenceFilter::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  2333. target_id_ = value;
  2334. // @@protoc_insertion_point(field_set:google.firestore.v1.ExistenceFilter.target_id)
  2335. }
  2336. // int32 count = 2;
  2337. inline void ExistenceFilter::clear_count() {
  2338. count_ = 0;
  2339. }
  2340. inline ::PROTOBUF_NAMESPACE_ID::int32 ExistenceFilter::count() const {
  2341. // @@protoc_insertion_point(field_get:google.firestore.v1.ExistenceFilter.count)
  2342. return count_;
  2343. }
  2344. inline void ExistenceFilter::set_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
  2345. count_ = value;
  2346. // @@protoc_insertion_point(field_set:google.firestore.v1.ExistenceFilter.count)
  2347. }
  2348. #ifdef __GNUC__
  2349. #pragma GCC diagnostic pop
  2350. #endif // __GNUC__
  2351. // -------------------------------------------------------------------
  2352. // -------------------------------------------------------------------
  2353. // -------------------------------------------------------------------
  2354. // -------------------------------------------------------------------
  2355. // -------------------------------------------------------------------
  2356. // -------------------------------------------------------------------
  2357. // -------------------------------------------------------------------
  2358. // @@protoc_insertion_point(namespace_scope)
  2359. } // namespace v1
  2360. } // namespace firestore
  2361. } // namespace google
  2362. PROTOBUF_NAMESPACE_OPEN
  2363. template <> struct is_proto_enum< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue> : ::std::true_type {};
  2364. template <>
  2365. inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue>() {
  2366. return ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue_descriptor();
  2367. }
  2368. PROTOBUF_NAMESPACE_CLOSE
  2369. // @@protoc_insertion_point(global_scope)
  2370. #include <google/protobuf/port_undef.inc>
  2371. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fwrite_2eproto