write.pb.h 111 KB

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