| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775 |
- /*
- * Copyright 2018 Google
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/firestore/v1/write.proto
- #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fwrite_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fwrite_2eproto
- #include <limits>
- #include <string>
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3009000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/port_undef.inc>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/inlined_string_field.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/generated_enum_reflection.h>
- #include <google/protobuf/unknown_field_set.h>
- #include "google/api/annotations.pb.h"
- #include "google/firestore/v1/common.pb.h"
- #include "google/firestore/v1/document.pb.h"
- #include <google/protobuf/timestamp.pb.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto
- PROTOBUF_NAMESPACE_OPEN
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
- // Internal implementation detail -- do not use these members.
- struct TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto {
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
- static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
- static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
- };
- extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto;
- namespace google {
- namespace firestore {
- namespace v1 {
- class DocumentChange;
- class DocumentChangeDefaultTypeInternal;
- extern DocumentChangeDefaultTypeInternal _DocumentChange_default_instance_;
- class DocumentDelete;
- class DocumentDeleteDefaultTypeInternal;
- extern DocumentDeleteDefaultTypeInternal _DocumentDelete_default_instance_;
- class DocumentRemove;
- class DocumentRemoveDefaultTypeInternal;
- extern DocumentRemoveDefaultTypeInternal _DocumentRemove_default_instance_;
- class DocumentTransform;
- class DocumentTransformDefaultTypeInternal;
- extern DocumentTransformDefaultTypeInternal _DocumentTransform_default_instance_;
- class DocumentTransform_FieldTransform;
- class DocumentTransform_FieldTransformDefaultTypeInternal;
- extern DocumentTransform_FieldTransformDefaultTypeInternal _DocumentTransform_FieldTransform_default_instance_;
- class ExistenceFilter;
- class ExistenceFilterDefaultTypeInternal;
- extern ExistenceFilterDefaultTypeInternal _ExistenceFilter_default_instance_;
- class Write;
- class WriteDefaultTypeInternal;
- extern WriteDefaultTypeInternal _Write_default_instance_;
- class WriteResult;
- class WriteResultDefaultTypeInternal;
- extern WriteResultDefaultTypeInternal _WriteResult_default_instance_;
- } // namespace v1
- } // namespace firestore
- } // namespace google
- PROTOBUF_NAMESPACE_OPEN
- template<> ::google::firestore::v1::DocumentChange* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentChange>(Arena*);
- template<> ::google::firestore::v1::DocumentDelete* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentDelete>(Arena*);
- template<> ::google::firestore::v1::DocumentRemove* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentRemove>(Arena*);
- template<> ::google::firestore::v1::DocumentTransform* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentTransform>(Arena*);
- template<> ::google::firestore::v1::DocumentTransform_FieldTransform* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentTransform_FieldTransform>(Arena*);
- template<> ::google::firestore::v1::ExistenceFilter* Arena::CreateMaybeMessage<::google::firestore::v1::ExistenceFilter>(Arena*);
- template<> ::google::firestore::v1::Write* Arena::CreateMaybeMessage<::google::firestore::v1::Write>(Arena*);
- template<> ::google::firestore::v1::WriteResult* Arena::CreateMaybeMessage<::google::firestore::v1::WriteResult>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- namespace google {
- namespace firestore {
- namespace v1 {
- enum DocumentTransform_FieldTransform_ServerValue : int {
- DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED = 0,
- DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME = 1,
- DocumentTransform_FieldTransform_ServerValue_DocumentTransform_FieldTransform_ServerValue_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
- DocumentTransform_FieldTransform_ServerValue_DocumentTransform_FieldTransform_ServerValue_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
- };
- bool DocumentTransform_FieldTransform_ServerValue_IsValid(int value);
- constexpr DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform_ServerValue_ServerValue_MIN = DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED;
- constexpr DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX = DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME;
- constexpr int DocumentTransform_FieldTransform_ServerValue_ServerValue_ARRAYSIZE = DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX + 1;
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DocumentTransform_FieldTransform_ServerValue_descriptor();
- template<typename T>
- inline const std::string& DocumentTransform_FieldTransform_ServerValue_Name(T enum_t_value) {
- static_assert(::std::is_same<T, DocumentTransform_FieldTransform_ServerValue>::value ||
- ::std::is_integral<T>::value,
- "Incorrect type passed to function DocumentTransform_FieldTransform_ServerValue_Name.");
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
- DocumentTransform_FieldTransform_ServerValue_descriptor(), enum_t_value);
- }
- inline bool DocumentTransform_FieldTransform_ServerValue_Parse(
- const std::string& name, DocumentTransform_FieldTransform_ServerValue* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DocumentTransform_FieldTransform_ServerValue>(
- DocumentTransform_FieldTransform_ServerValue_descriptor(), name, value);
- }
- // ===================================================================
- class Write :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Write) */ {
- public:
- Write();
- virtual ~Write();
- Write(const Write& from);
- Write(Write&& from) noexcept
- : Write() {
- *this = ::std::move(from);
- }
- inline Write& operator=(const Write& from) {
- CopyFrom(from);
- return *this;
- }
- inline Write& operator=(Write&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Write& default_instance();
- enum OperationCase {
- kUpdate = 1,
- kDelete = 2,
- kVerify = 5,
- kTransform = 6,
- OPERATION_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Write* internal_default_instance() {
- return reinterpret_cast<const Write*>(
- &_Write_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(Write& a, Write& b) {
- a.Swap(&b);
- }
- inline void Swap(Write* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Write* New() const final {
- return CreateMaybeMessage<Write>(nullptr);
- }
- Write* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Write>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Write& from);
- void MergeFrom(const Write& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Write* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.Write";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kUpdateMaskFieldNumber = 3,
- kCurrentDocumentFieldNumber = 4,
- kUpdateFieldNumber = 1,
- kDeleteFieldNumber = 2,
- kVerifyFieldNumber = 5,
- kTransformFieldNumber = 6,
- };
- // .google.firestore.v1.DocumentMask update_mask = 3;
- bool has_update_mask() const;
- void clear_update_mask();
- const ::google::firestore::v1::DocumentMask& update_mask() const;
- ::google::firestore::v1::DocumentMask* release_update_mask();
- ::google::firestore::v1::DocumentMask* mutable_update_mask();
- void set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask);
- // .google.firestore.v1.Precondition current_document = 4;
- bool has_current_document() const;
- void clear_current_document();
- const ::google::firestore::v1::Precondition& current_document() const;
- ::google::firestore::v1::Precondition* release_current_document();
- ::google::firestore::v1::Precondition* mutable_current_document();
- void set_allocated_current_document(::google::firestore::v1::Precondition* current_document);
- // .google.firestore.v1.Document update = 1;
- bool has_update() const;
- void clear_update();
- const ::google::firestore::v1::Document& update() const;
- ::google::firestore::v1::Document* release_update();
- ::google::firestore::v1::Document* mutable_update();
- void set_allocated_update(::google::firestore::v1::Document* update);
- // string delete = 2;
- private:
- bool has_delete_() const;
- public:
- void clear_delete_();
- const std::string& delete_() const;
- void set_delete_(const std::string& value);
- void set_delete_(std::string&& value);
- void set_delete_(const char* value);
- void set_delete_(const char* value, size_t size);
- std::string* mutable_delete_();
- std::string* release_delete_();
- void set_allocated_delete_(std::string* delete_);
- // string verify = 5;
- private:
- bool has_verify() const;
- public:
- void clear_verify();
- const std::string& verify() const;
- void set_verify(const std::string& value);
- void set_verify(std::string&& value);
- void set_verify(const char* value);
- void set_verify(const char* value, size_t size);
- std::string* mutable_verify();
- std::string* release_verify();
- void set_allocated_verify(std::string* verify);
- // .google.firestore.v1.DocumentTransform transform = 6;
- bool has_transform() const;
- void clear_transform();
- const ::google::firestore::v1::DocumentTransform& transform() const;
- ::google::firestore::v1::DocumentTransform* release_transform();
- ::google::firestore::v1::DocumentTransform* mutable_transform();
- void set_allocated_transform(::google::firestore::v1::DocumentTransform* transform);
- void clear_operation();
- OperationCase operation_case() const;
- // @@protoc_insertion_point(class_scope:google.firestore.v1.Write)
- private:
- class _Internal;
- void set_has_update();
- void set_has_delete_();
- void set_has_verify();
- void set_has_transform();
- inline bool has_operation() const;
- inline void clear_has_operation();
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::firestore::v1::DocumentMask* update_mask_;
- ::google::firestore::v1::Precondition* current_document_;
- union OperationUnion {
- OperationUnion() {}
- ::google::firestore::v1::Document* update_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr verify_;
- ::google::firestore::v1::DocumentTransform* transform_;
- } operation_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // -------------------------------------------------------------------
- class DocumentTransform_FieldTransform :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentTransform.FieldTransform) */ {
- public:
- DocumentTransform_FieldTransform();
- virtual ~DocumentTransform_FieldTransform();
- DocumentTransform_FieldTransform(const DocumentTransform_FieldTransform& from);
- DocumentTransform_FieldTransform(DocumentTransform_FieldTransform&& from) noexcept
- : DocumentTransform_FieldTransform() {
- *this = ::std::move(from);
- }
- inline DocumentTransform_FieldTransform& operator=(const DocumentTransform_FieldTransform& from) {
- CopyFrom(from);
- return *this;
- }
- inline DocumentTransform_FieldTransform& operator=(DocumentTransform_FieldTransform&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const DocumentTransform_FieldTransform& default_instance();
- enum TransformTypeCase {
- kSetToServerValue = 2,
- kIncrement = 3,
- kMaximum = 4,
- kMinimum = 5,
- kAppendMissingElements = 6,
- kRemoveAllFromArray = 7,
- TRANSFORM_TYPE_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const DocumentTransform_FieldTransform* internal_default_instance() {
- return reinterpret_cast<const DocumentTransform_FieldTransform*>(
- &_DocumentTransform_FieldTransform_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- friend void swap(DocumentTransform_FieldTransform& a, DocumentTransform_FieldTransform& b) {
- a.Swap(&b);
- }
- inline void Swap(DocumentTransform_FieldTransform* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline DocumentTransform_FieldTransform* New() const final {
- return CreateMaybeMessage<DocumentTransform_FieldTransform>(nullptr);
- }
- DocumentTransform_FieldTransform* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<DocumentTransform_FieldTransform>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const DocumentTransform_FieldTransform& from);
- void MergeFrom(const DocumentTransform_FieldTransform& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(DocumentTransform_FieldTransform* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.DocumentTransform.FieldTransform";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- typedef DocumentTransform_FieldTransform_ServerValue ServerValue;
- static constexpr ServerValue SERVER_VALUE_UNSPECIFIED =
- DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED;
- static constexpr ServerValue REQUEST_TIME =
- DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME;
- static inline bool ServerValue_IsValid(int value) {
- return DocumentTransform_FieldTransform_ServerValue_IsValid(value);
- }
- static constexpr ServerValue ServerValue_MIN =
- DocumentTransform_FieldTransform_ServerValue_ServerValue_MIN;
- static constexpr ServerValue ServerValue_MAX =
- DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX;
- static constexpr int ServerValue_ARRAYSIZE =
- DocumentTransform_FieldTransform_ServerValue_ServerValue_ARRAYSIZE;
- static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
- ServerValue_descriptor() {
- return DocumentTransform_FieldTransform_ServerValue_descriptor();
- }
- template<typename T>
- static inline const std::string& ServerValue_Name(T enum_t_value) {
- static_assert(::std::is_same<T, ServerValue>::value ||
- ::std::is_integral<T>::value,
- "Incorrect type passed to function ServerValue_Name.");
- return DocumentTransform_FieldTransform_ServerValue_Name(enum_t_value);
- }
- static inline bool ServerValue_Parse(const std::string& name,
- ServerValue* value) {
- return DocumentTransform_FieldTransform_ServerValue_Parse(name, value);
- }
- // accessors -------------------------------------------------------
- enum : int {
- kFieldPathFieldNumber = 1,
- kSetToServerValueFieldNumber = 2,
- kIncrementFieldNumber = 3,
- kMaximumFieldNumber = 4,
- kMinimumFieldNumber = 5,
- kAppendMissingElementsFieldNumber = 6,
- kRemoveAllFromArrayFieldNumber = 7,
- };
- // string field_path = 1;
- void clear_field_path();
- const std::string& field_path() const;
- void set_field_path(const std::string& value);
- void set_field_path(std::string&& value);
- void set_field_path(const char* value);
- void set_field_path(const char* value, size_t size);
- std::string* mutable_field_path();
- std::string* release_field_path();
- void set_allocated_field_path(std::string* field_path);
- // .google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
- private:
- bool has_set_to_server_value() const;
- public:
- void clear_set_to_server_value();
- ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue set_to_server_value() const;
- void set_set_to_server_value(::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue value);
- // .google.firestore.v1.Value increment = 3;
- bool has_increment() const;
- void clear_increment();
- const ::google::firestore::v1::Value& increment() const;
- ::google::firestore::v1::Value* release_increment();
- ::google::firestore::v1::Value* mutable_increment();
- void set_allocated_increment(::google::firestore::v1::Value* increment);
- // .google.firestore.v1.Value maximum = 4;
- bool has_maximum() const;
- void clear_maximum();
- const ::google::firestore::v1::Value& maximum() const;
- ::google::firestore::v1::Value* release_maximum();
- ::google::firestore::v1::Value* mutable_maximum();
- void set_allocated_maximum(::google::firestore::v1::Value* maximum);
- // .google.firestore.v1.Value minimum = 5;
- bool has_minimum() const;
- void clear_minimum();
- const ::google::firestore::v1::Value& minimum() const;
- ::google::firestore::v1::Value* release_minimum();
- ::google::firestore::v1::Value* mutable_minimum();
- void set_allocated_minimum(::google::firestore::v1::Value* minimum);
- // .google.firestore.v1.ArrayValue append_missing_elements = 6;
- bool has_append_missing_elements() const;
- void clear_append_missing_elements();
- const ::google::firestore::v1::ArrayValue& append_missing_elements() const;
- ::google::firestore::v1::ArrayValue* release_append_missing_elements();
- ::google::firestore::v1::ArrayValue* mutable_append_missing_elements();
- void set_allocated_append_missing_elements(::google::firestore::v1::ArrayValue* append_missing_elements);
- // .google.firestore.v1.ArrayValue remove_all_from_array = 7;
- bool has_remove_all_from_array() const;
- void clear_remove_all_from_array();
- const ::google::firestore::v1::ArrayValue& remove_all_from_array() const;
- ::google::firestore::v1::ArrayValue* release_remove_all_from_array();
- ::google::firestore::v1::ArrayValue* mutable_remove_all_from_array();
- void set_allocated_remove_all_from_array(::google::firestore::v1::ArrayValue* remove_all_from_array);
- void clear_transform_type();
- TransformTypeCase transform_type_case() const;
- // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentTransform.FieldTransform)
- private:
- class _Internal;
- void set_has_set_to_server_value();
- void set_has_increment();
- void set_has_maximum();
- void set_has_minimum();
- void set_has_append_missing_elements();
- void set_has_remove_all_from_array();
- inline bool has_transform_type() const;
- inline void clear_has_transform_type();
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_path_;
- union TransformTypeUnion {
- TransformTypeUnion() {}
- int set_to_server_value_;
- ::google::firestore::v1::Value* increment_;
- ::google::firestore::v1::Value* maximum_;
- ::google::firestore::v1::Value* minimum_;
- ::google::firestore::v1::ArrayValue* append_missing_elements_;
- ::google::firestore::v1::ArrayValue* remove_all_from_array_;
- } transform_type_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // -------------------------------------------------------------------
- class DocumentTransform :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentTransform) */ {
- public:
- DocumentTransform();
- virtual ~DocumentTransform();
- DocumentTransform(const DocumentTransform& from);
- DocumentTransform(DocumentTransform&& from) noexcept
- : DocumentTransform() {
- *this = ::std::move(from);
- }
- inline DocumentTransform& operator=(const DocumentTransform& from) {
- CopyFrom(from);
- return *this;
- }
- inline DocumentTransform& operator=(DocumentTransform&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const DocumentTransform& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const DocumentTransform* internal_default_instance() {
- return reinterpret_cast<const DocumentTransform*>(
- &_DocumentTransform_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- friend void swap(DocumentTransform& a, DocumentTransform& b) {
- a.Swap(&b);
- }
- inline void Swap(DocumentTransform* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline DocumentTransform* New() const final {
- return CreateMaybeMessage<DocumentTransform>(nullptr);
- }
- DocumentTransform* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<DocumentTransform>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const DocumentTransform& from);
- void MergeFrom(const DocumentTransform& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(DocumentTransform* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.DocumentTransform";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- typedef DocumentTransform_FieldTransform FieldTransform;
- // accessors -------------------------------------------------------
- enum : int {
- kFieldTransformsFieldNumber = 2,
- kDocumentFieldNumber = 1,
- };
- // repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;
- int field_transforms_size() const;
- void clear_field_transforms();
- ::google::firestore::v1::DocumentTransform_FieldTransform* mutable_field_transforms(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >*
- mutable_field_transforms();
- const ::google::firestore::v1::DocumentTransform_FieldTransform& field_transforms(int index) const;
- ::google::firestore::v1::DocumentTransform_FieldTransform* add_field_transforms();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >&
- field_transforms() const;
- // string document = 1;
- void clear_document();
- const std::string& document() const;
- void set_document(const std::string& value);
- void set_document(std::string&& value);
- void set_document(const char* value);
- void set_document(const char* value, size_t size);
- std::string* mutable_document();
- std::string* release_document();
- void set_allocated_document(std::string* document);
- // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentTransform)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform > field_transforms_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // -------------------------------------------------------------------
- class WriteResult :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.WriteResult) */ {
- public:
- WriteResult();
- virtual ~WriteResult();
- WriteResult(const WriteResult& from);
- WriteResult(WriteResult&& from) noexcept
- : WriteResult() {
- *this = ::std::move(from);
- }
- inline WriteResult& operator=(const WriteResult& from) {
- CopyFrom(from);
- return *this;
- }
- inline WriteResult& operator=(WriteResult&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const WriteResult& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const WriteResult* internal_default_instance() {
- return reinterpret_cast<const WriteResult*>(
- &_WriteResult_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 3;
- friend void swap(WriteResult& a, WriteResult& b) {
- a.Swap(&b);
- }
- inline void Swap(WriteResult* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline WriteResult* New() const final {
- return CreateMaybeMessage<WriteResult>(nullptr);
- }
- WriteResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<WriteResult>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const WriteResult& from);
- void MergeFrom(const WriteResult& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(WriteResult* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.WriteResult";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kTransformResultsFieldNumber = 2,
- kUpdateTimeFieldNumber = 1,
- };
- // repeated .google.firestore.v1.Value transform_results = 2;
- int transform_results_size() const;
- void clear_transform_results();
- ::google::firestore::v1::Value* mutable_transform_results(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >*
- mutable_transform_results();
- const ::google::firestore::v1::Value& transform_results(int index) const;
- ::google::firestore::v1::Value* add_transform_results();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >&
- transform_results() const;
- // .google.protobuf.Timestamp update_time = 1;
- bool has_update_time() const;
- void clear_update_time();
- const PROTOBUF_NAMESPACE_ID::Timestamp& update_time() const;
- PROTOBUF_NAMESPACE_ID::Timestamp* release_update_time();
- PROTOBUF_NAMESPACE_ID::Timestamp* mutable_update_time();
- void set_allocated_update_time(PROTOBUF_NAMESPACE_ID::Timestamp* update_time);
- // @@protoc_insertion_point(class_scope:google.firestore.v1.WriteResult)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value > transform_results_;
- PROTOBUF_NAMESPACE_ID::Timestamp* update_time_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // -------------------------------------------------------------------
- class DocumentChange :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentChange) */ {
- public:
- DocumentChange();
- virtual ~DocumentChange();
- DocumentChange(const DocumentChange& from);
- DocumentChange(DocumentChange&& from) noexcept
- : DocumentChange() {
- *this = ::std::move(from);
- }
- inline DocumentChange& operator=(const DocumentChange& from) {
- CopyFrom(from);
- return *this;
- }
- inline DocumentChange& operator=(DocumentChange&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const DocumentChange& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const DocumentChange* internal_default_instance() {
- return reinterpret_cast<const DocumentChange*>(
- &_DocumentChange_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 4;
- friend void swap(DocumentChange& a, DocumentChange& b) {
- a.Swap(&b);
- }
- inline void Swap(DocumentChange* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline DocumentChange* New() const final {
- return CreateMaybeMessage<DocumentChange>(nullptr);
- }
- DocumentChange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<DocumentChange>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const DocumentChange& from);
- void MergeFrom(const DocumentChange& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(DocumentChange* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.DocumentChange";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kTargetIdsFieldNumber = 5,
- kRemovedTargetIdsFieldNumber = 6,
- kDocumentFieldNumber = 1,
- };
- // repeated int32 target_ids = 5;
- int target_ids_size() const;
- void clear_target_ids();
- ::PROTOBUF_NAMESPACE_ID::int32 target_ids(int index) const;
- void set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
- void add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- target_ids() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- mutable_target_ids();
- // repeated int32 removed_target_ids = 6;
- int removed_target_ids_size() const;
- void clear_removed_target_ids();
- ::PROTOBUF_NAMESPACE_ID::int32 removed_target_ids(int index) const;
- void set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
- void add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- removed_target_ids() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- mutable_removed_target_ids();
- // .google.firestore.v1.Document document = 1;
- bool has_document() const;
- void clear_document();
- const ::google::firestore::v1::Document& document() const;
- ::google::firestore::v1::Document* release_document();
- ::google::firestore::v1::Document* mutable_document();
- void set_allocated_document(::google::firestore::v1::Document* document);
- // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentChange)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > target_ids_;
- mutable std::atomic<int> _target_ids_cached_byte_size_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > removed_target_ids_;
- mutable std::atomic<int> _removed_target_ids_cached_byte_size_;
- ::google::firestore::v1::Document* document_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // -------------------------------------------------------------------
- class DocumentDelete :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentDelete) */ {
- public:
- DocumentDelete();
- virtual ~DocumentDelete();
- DocumentDelete(const DocumentDelete& from);
- DocumentDelete(DocumentDelete&& from) noexcept
- : DocumentDelete() {
- *this = ::std::move(from);
- }
- inline DocumentDelete& operator=(const DocumentDelete& from) {
- CopyFrom(from);
- return *this;
- }
- inline DocumentDelete& operator=(DocumentDelete&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const DocumentDelete& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const DocumentDelete* internal_default_instance() {
- return reinterpret_cast<const DocumentDelete*>(
- &_DocumentDelete_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 5;
- friend void swap(DocumentDelete& a, DocumentDelete& b) {
- a.Swap(&b);
- }
- inline void Swap(DocumentDelete* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline DocumentDelete* New() const final {
- return CreateMaybeMessage<DocumentDelete>(nullptr);
- }
- DocumentDelete* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<DocumentDelete>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const DocumentDelete& from);
- void MergeFrom(const DocumentDelete& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(DocumentDelete* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.DocumentDelete";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kRemovedTargetIdsFieldNumber = 6,
- kDocumentFieldNumber = 1,
- kReadTimeFieldNumber = 4,
- };
- // repeated int32 removed_target_ids = 6;
- int removed_target_ids_size() const;
- void clear_removed_target_ids();
- ::PROTOBUF_NAMESPACE_ID::int32 removed_target_ids(int index) const;
- void set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
- void add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- removed_target_ids() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- mutable_removed_target_ids();
- // string document = 1;
- void clear_document();
- const std::string& document() const;
- void set_document(const std::string& value);
- void set_document(std::string&& value);
- void set_document(const char* value);
- void set_document(const char* value, size_t size);
- std::string* mutable_document();
- std::string* release_document();
- void set_allocated_document(std::string* document);
- // .google.protobuf.Timestamp read_time = 4;
- bool has_read_time() const;
- void clear_read_time();
- const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
- PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
- PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
- void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
- // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentDelete)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > removed_target_ids_;
- mutable std::atomic<int> _removed_target_ids_cached_byte_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_;
- PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // -------------------------------------------------------------------
- class DocumentRemove :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentRemove) */ {
- public:
- DocumentRemove();
- virtual ~DocumentRemove();
- DocumentRemove(const DocumentRemove& from);
- DocumentRemove(DocumentRemove&& from) noexcept
- : DocumentRemove() {
- *this = ::std::move(from);
- }
- inline DocumentRemove& operator=(const DocumentRemove& from) {
- CopyFrom(from);
- return *this;
- }
- inline DocumentRemove& operator=(DocumentRemove&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const DocumentRemove& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const DocumentRemove* internal_default_instance() {
- return reinterpret_cast<const DocumentRemove*>(
- &_DocumentRemove_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 6;
- friend void swap(DocumentRemove& a, DocumentRemove& b) {
- a.Swap(&b);
- }
- inline void Swap(DocumentRemove* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline DocumentRemove* New() const final {
- return CreateMaybeMessage<DocumentRemove>(nullptr);
- }
- DocumentRemove* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<DocumentRemove>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const DocumentRemove& from);
- void MergeFrom(const DocumentRemove& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(DocumentRemove* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.DocumentRemove";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kRemovedTargetIdsFieldNumber = 2,
- kDocumentFieldNumber = 1,
- kReadTimeFieldNumber = 4,
- };
- // repeated int32 removed_target_ids = 2;
- int removed_target_ids_size() const;
- void clear_removed_target_ids();
- ::PROTOBUF_NAMESPACE_ID::int32 removed_target_ids(int index) const;
- void set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
- void add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- removed_target_ids() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- mutable_removed_target_ids();
- // string document = 1;
- void clear_document();
- const std::string& document() const;
- void set_document(const std::string& value);
- void set_document(std::string&& value);
- void set_document(const char* value);
- void set_document(const char* value, size_t size);
- std::string* mutable_document();
- std::string* release_document();
- void set_allocated_document(std::string* document);
- // .google.protobuf.Timestamp read_time = 4;
- bool has_read_time() const;
- void clear_read_time();
- const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
- PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
- PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
- void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
- // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentRemove)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > removed_target_ids_;
- mutable std::atomic<int> _removed_target_ids_cached_byte_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr document_;
- PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // -------------------------------------------------------------------
- class ExistenceFilter :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ExistenceFilter) */ {
- public:
- ExistenceFilter();
- virtual ~ExistenceFilter();
- ExistenceFilter(const ExistenceFilter& from);
- ExistenceFilter(ExistenceFilter&& from) noexcept
- : ExistenceFilter() {
- *this = ::std::move(from);
- }
- inline ExistenceFilter& operator=(const ExistenceFilter& from) {
- CopyFrom(from);
- return *this;
- }
- inline ExistenceFilter& operator=(ExistenceFilter&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const ExistenceFilter& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const ExistenceFilter* internal_default_instance() {
- return reinterpret_cast<const ExistenceFilter*>(
- &_ExistenceFilter_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 7;
- friend void swap(ExistenceFilter& a, ExistenceFilter& b) {
- a.Swap(&b);
- }
- inline void Swap(ExistenceFilter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline ExistenceFilter* New() const final {
- return CreateMaybeMessage<ExistenceFilter>(nullptr);
- }
- ExistenceFilter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<ExistenceFilter>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const ExistenceFilter& from);
- void MergeFrom(const ExistenceFilter& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(ExistenceFilter* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.firestore.v1.ExistenceFilter";
- }
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return nullptr;
- }
- inline void* MaybeArenaPtr() const {
- return nullptr;
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto);
- return ::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kTargetIdFieldNumber = 1,
- kCountFieldNumber = 2,
- };
- // int32 target_id = 1;
- void clear_target_id();
- ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
- void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- // int32 count = 2;
- void clear_count();
- ::PROTOBUF_NAMESPACE_ID::int32 count() const;
- void set_count(::PROTOBUF_NAMESPACE_ID::int32 value);
- // @@protoc_insertion_point(class_scope:google.firestore.v1.ExistenceFilter)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
- ::PROTOBUF_NAMESPACE_ID::int32 count_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2ffirestore_2fv1_2fwrite_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Write
- // .google.firestore.v1.Document update = 1;
- inline bool Write::has_update() const {
- return operation_case() == kUpdate;
- }
- inline void Write::set_has_update() {
- _oneof_case_[0] = kUpdate;
- }
- inline ::google::firestore::v1::Document* Write::release_update() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Write.update)
- if (has_update()) {
- clear_has_operation();
- ::google::firestore::v1::Document* temp = operation_.update_;
- operation_.update_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::Document& Write::update() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Write.update)
- return has_update()
- ? *operation_.update_
- : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
- }
- inline ::google::firestore::v1::Document* Write::mutable_update() {
- if (!has_update()) {
- clear_operation();
- set_has_update();
- operation_.update_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.update)
- return operation_.update_;
- }
- // string delete = 2;
- inline bool Write::has_delete_() const {
- return operation_case() == kDelete;
- }
- inline void Write::set_has_delete_() {
- _oneof_case_[0] = kDelete;
- }
- inline void Write::clear_delete_() {
- if (has_delete_()) {
- operation_.delete__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- clear_has_operation();
- }
- }
- inline const std::string& Write::delete_() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Write.delete)
- if (has_delete_()) {
- return operation_.delete__.GetNoArena();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void Write::set_delete_(const std::string& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Write.delete)
- if (!has_delete_()) {
- clear_operation();
- set_has_delete_();
- operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.Write.delete)
- }
- inline void Write::set_delete_(std::string&& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Write.delete)
- if (!has_delete_()) {
- clear_operation();
- set_has_delete_();
- operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Write.delete)
- }
- inline void Write::set_delete_(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- if (!has_delete_()) {
- clear_operation();
- set_has_delete_();
- operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.Write.delete)
- }
- inline void Write::set_delete_(const char* value, size_t size) {
- if (!has_delete_()) {
- clear_operation();
- set_has_delete_();
- operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.delete__.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Write.delete)
- }
- inline std::string* Write::mutable_delete_() {
- if (!has_delete_()) {
- clear_operation();
- set_has_delete_();
- operation_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.delete)
- return operation_.delete__.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline std::string* Write::release_delete_() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Write.delete)
- if (has_delete_()) {
- clear_has_operation();
- return operation_.delete__.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- } else {
- return nullptr;
- }
- }
- inline void Write::set_allocated_delete_(std::string* delete_) {
- if (has_operation()) {
- clear_operation();
- }
- if (delete_ != nullptr) {
- set_has_delete_();
- operation_.delete__.UnsafeSetDefault(delete_);
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Write.delete)
- }
- // string verify = 5;
- inline bool Write::has_verify() const {
- return operation_case() == kVerify;
- }
- inline void Write::set_has_verify() {
- _oneof_case_[0] = kVerify;
- }
- inline void Write::clear_verify() {
- if (has_verify()) {
- operation_.verify_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- clear_has_operation();
- }
- }
- inline const std::string& Write::verify() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Write.verify)
- if (has_verify()) {
- return operation_.verify_.GetNoArena();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void Write::set_verify(const std::string& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Write.verify)
- if (!has_verify()) {
- clear_operation();
- set_has_verify();
- operation_.verify_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.verify_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.Write.verify)
- }
- inline void Write::set_verify(std::string&& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Write.verify)
- if (!has_verify()) {
- clear_operation();
- set_has_verify();
- operation_.verify_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.verify_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Write.verify)
- }
- inline void Write::set_verify(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- if (!has_verify()) {
- clear_operation();
- set_has_verify();
- operation_.verify_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.verify_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.Write.verify)
- }
- inline void Write::set_verify(const char* value, size_t size) {
- if (!has_verify()) {
- clear_operation();
- set_has_verify();
- operation_.verify_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- operation_.verify_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Write.verify)
- }
- inline std::string* Write::mutable_verify() {
- if (!has_verify()) {
- clear_operation();
- set_has_verify();
- operation_.verify_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.verify)
- return operation_.verify_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline std::string* Write::release_verify() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Write.verify)
- if (has_verify()) {
- clear_has_operation();
- return operation_.verify_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- } else {
- return nullptr;
- }
- }
- inline void Write::set_allocated_verify(std::string* verify) {
- if (has_operation()) {
- clear_operation();
- }
- if (verify != nullptr) {
- set_has_verify();
- operation_.verify_.UnsafeSetDefault(verify);
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Write.verify)
- }
- // .google.firestore.v1.DocumentTransform transform = 6;
- inline bool Write::has_transform() const {
- return operation_case() == kTransform;
- }
- inline void Write::set_has_transform() {
- _oneof_case_[0] = kTransform;
- }
- inline void Write::clear_transform() {
- if (has_transform()) {
- delete operation_.transform_;
- clear_has_operation();
- }
- }
- inline ::google::firestore::v1::DocumentTransform* Write::release_transform() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Write.transform)
- if (has_transform()) {
- clear_has_operation();
- ::google::firestore::v1::DocumentTransform* temp = operation_.transform_;
- operation_.transform_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::DocumentTransform& Write::transform() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Write.transform)
- return has_transform()
- ? *operation_.transform_
- : *reinterpret_cast< ::google::firestore::v1::DocumentTransform*>(&::google::firestore::v1::_DocumentTransform_default_instance_);
- }
- inline ::google::firestore::v1::DocumentTransform* Write::mutable_transform() {
- if (!has_transform()) {
- clear_operation();
- set_has_transform();
- operation_.transform_ = CreateMaybeMessage< ::google::firestore::v1::DocumentTransform >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.transform)
- return operation_.transform_;
- }
- // .google.firestore.v1.DocumentMask update_mask = 3;
- inline bool Write::has_update_mask() const {
- return this != internal_default_instance() && update_mask_ != nullptr;
- }
- inline const ::google::firestore::v1::DocumentMask& Write::update_mask() const {
- const ::google::firestore::v1::DocumentMask* p = update_mask_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.Write.update_mask)
- return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::DocumentMask*>(
- &::google::firestore::v1::_DocumentMask_default_instance_);
- }
- inline ::google::firestore::v1::DocumentMask* Write::release_update_mask() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Write.update_mask)
-
- ::google::firestore::v1::DocumentMask* temp = update_mask_;
- update_mask_ = nullptr;
- return temp;
- }
- inline ::google::firestore::v1::DocumentMask* Write::mutable_update_mask() {
-
- if (update_mask_ == nullptr) {
- auto* p = CreateMaybeMessage<::google::firestore::v1::DocumentMask>(GetArenaNoVirtual());
- update_mask_ = p;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.update_mask)
- return update_mask_;
- }
- inline void Write::set_allocated_update_mask(::google::firestore::v1::DocumentMask* update_mask) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask_);
- }
- if (update_mask) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
- if (message_arena != submessage_arena) {
- update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, update_mask, submessage_arena);
- }
-
- } else {
-
- }
- update_mask_ = update_mask;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Write.update_mask)
- }
- // .google.firestore.v1.Precondition current_document = 4;
- inline bool Write::has_current_document() const {
- return this != internal_default_instance() && current_document_ != nullptr;
- }
- inline const ::google::firestore::v1::Precondition& Write::current_document() const {
- const ::google::firestore::v1::Precondition* p = current_document_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.Write.current_document)
- return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Precondition*>(
- &::google::firestore::v1::_Precondition_default_instance_);
- }
- inline ::google::firestore::v1::Precondition* Write::release_current_document() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Write.current_document)
-
- ::google::firestore::v1::Precondition* temp = current_document_;
- current_document_ = nullptr;
- return temp;
- }
- inline ::google::firestore::v1::Precondition* Write::mutable_current_document() {
-
- if (current_document_ == nullptr) {
- auto* p = CreateMaybeMessage<::google::firestore::v1::Precondition>(GetArenaNoVirtual());
- current_document_ = p;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Write.current_document)
- return current_document_;
- }
- inline void Write::set_allocated_current_document(::google::firestore::v1::Precondition* current_document) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_document_);
- }
- if (current_document) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
- if (message_arena != submessage_arena) {
- current_document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, current_document, submessage_arena);
- }
-
- } else {
-
- }
- current_document_ = current_document;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Write.current_document)
- }
- inline bool Write::has_operation() const {
- return operation_case() != OPERATION_NOT_SET;
- }
- inline void Write::clear_has_operation() {
- _oneof_case_[0] = OPERATION_NOT_SET;
- }
- inline Write::OperationCase Write::operation_case() const {
- return Write::OperationCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // DocumentTransform_FieldTransform
- // string field_path = 1;
- inline void DocumentTransform_FieldTransform::clear_field_path() {
- field_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline const std::string& DocumentTransform_FieldTransform::field_path() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
- return field_path_.GetNoArena();
- }
- inline void DocumentTransform_FieldTransform::set_field_path(const std::string& value) {
-
- field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
- }
- inline void DocumentTransform_FieldTransform::set_field_path(std::string&& value) {
-
- field_path_.SetNoArena(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
- }
- inline void DocumentTransform_FieldTransform::set_field_path(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
- }
- inline void DocumentTransform_FieldTransform::set_field_path(const char* value, size_t size) {
-
- field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
- }
- inline std::string* DocumentTransform_FieldTransform::mutable_field_path() {
-
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
- return field_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline std::string* DocumentTransform_FieldTransform::release_field_path() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
-
- return field_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline void DocumentTransform_FieldTransform::set_allocated_field_path(std::string* field_path) {
- if (field_path != nullptr) {
-
- } else {
-
- }
- field_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_path);
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentTransform.FieldTransform.field_path)
- }
- // .google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
- inline bool DocumentTransform_FieldTransform::has_set_to_server_value() const {
- return transform_type_case() == kSetToServerValue;
- }
- inline void DocumentTransform_FieldTransform::set_has_set_to_server_value() {
- _oneof_case_[0] = kSetToServerValue;
- }
- inline void DocumentTransform_FieldTransform::clear_set_to_server_value() {
- if (has_set_to_server_value()) {
- transform_type_.set_to_server_value_ = 0;
- clear_has_transform_type();
- }
- }
- inline ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform::set_to_server_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.set_to_server_value)
- if (has_set_to_server_value()) {
- return static_cast< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue >(transform_type_.set_to_server_value_);
- }
- return static_cast< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue >(0);
- }
- inline void DocumentTransform_FieldTransform::set_set_to_server_value(::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue value) {
- if (!has_set_to_server_value()) {
- clear_transform_type();
- set_has_set_to_server_value();
- }
- transform_type_.set_to_server_value_ = value;
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentTransform.FieldTransform.set_to_server_value)
- }
- // .google.firestore.v1.Value increment = 3;
- inline bool DocumentTransform_FieldTransform::has_increment() const {
- return transform_type_case() == kIncrement;
- }
- inline void DocumentTransform_FieldTransform::set_has_increment() {
- _oneof_case_[0] = kIncrement;
- }
- inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::release_increment() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.increment)
- if (has_increment()) {
- clear_has_transform_type();
- ::google::firestore::v1::Value* temp = transform_type_.increment_;
- transform_type_.increment_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::Value& DocumentTransform_FieldTransform::increment() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.increment)
- return has_increment()
- ? *transform_type_.increment_
- : *reinterpret_cast< ::google::firestore::v1::Value*>(&::google::firestore::v1::_Value_default_instance_);
- }
- inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::mutable_increment() {
- if (!has_increment()) {
- clear_transform_type();
- set_has_increment();
- transform_type_.increment_ = CreateMaybeMessage< ::google::firestore::v1::Value >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.increment)
- return transform_type_.increment_;
- }
- // .google.firestore.v1.Value maximum = 4;
- inline bool DocumentTransform_FieldTransform::has_maximum() const {
- return transform_type_case() == kMaximum;
- }
- inline void DocumentTransform_FieldTransform::set_has_maximum() {
- _oneof_case_[0] = kMaximum;
- }
- inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::release_maximum() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.maximum)
- if (has_maximum()) {
- clear_has_transform_type();
- ::google::firestore::v1::Value* temp = transform_type_.maximum_;
- transform_type_.maximum_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::Value& DocumentTransform_FieldTransform::maximum() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.maximum)
- return has_maximum()
- ? *transform_type_.maximum_
- : *reinterpret_cast< ::google::firestore::v1::Value*>(&::google::firestore::v1::_Value_default_instance_);
- }
- inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::mutable_maximum() {
- if (!has_maximum()) {
- clear_transform_type();
- set_has_maximum();
- transform_type_.maximum_ = CreateMaybeMessage< ::google::firestore::v1::Value >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.maximum)
- return transform_type_.maximum_;
- }
- // .google.firestore.v1.Value minimum = 5;
- inline bool DocumentTransform_FieldTransform::has_minimum() const {
- return transform_type_case() == kMinimum;
- }
- inline void DocumentTransform_FieldTransform::set_has_minimum() {
- _oneof_case_[0] = kMinimum;
- }
- inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::release_minimum() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.minimum)
- if (has_minimum()) {
- clear_has_transform_type();
- ::google::firestore::v1::Value* temp = transform_type_.minimum_;
- transform_type_.minimum_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::Value& DocumentTransform_FieldTransform::minimum() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.minimum)
- return has_minimum()
- ? *transform_type_.minimum_
- : *reinterpret_cast< ::google::firestore::v1::Value*>(&::google::firestore::v1::_Value_default_instance_);
- }
- inline ::google::firestore::v1::Value* DocumentTransform_FieldTransform::mutable_minimum() {
- if (!has_minimum()) {
- clear_transform_type();
- set_has_minimum();
- transform_type_.minimum_ = CreateMaybeMessage< ::google::firestore::v1::Value >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.minimum)
- return transform_type_.minimum_;
- }
- // .google.firestore.v1.ArrayValue append_missing_elements = 6;
- inline bool DocumentTransform_FieldTransform::has_append_missing_elements() const {
- return transform_type_case() == kAppendMissingElements;
- }
- inline void DocumentTransform_FieldTransform::set_has_append_missing_elements() {
- _oneof_case_[0] = kAppendMissingElements;
- }
- inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::release_append_missing_elements() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.append_missing_elements)
- if (has_append_missing_elements()) {
- clear_has_transform_type();
- ::google::firestore::v1::ArrayValue* temp = transform_type_.append_missing_elements_;
- transform_type_.append_missing_elements_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::ArrayValue& DocumentTransform_FieldTransform::append_missing_elements() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.append_missing_elements)
- return has_append_missing_elements()
- ? *transform_type_.append_missing_elements_
- : *reinterpret_cast< ::google::firestore::v1::ArrayValue*>(&::google::firestore::v1::_ArrayValue_default_instance_);
- }
- inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::mutable_append_missing_elements() {
- if (!has_append_missing_elements()) {
- clear_transform_type();
- set_has_append_missing_elements();
- transform_type_.append_missing_elements_ = CreateMaybeMessage< ::google::firestore::v1::ArrayValue >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.append_missing_elements)
- return transform_type_.append_missing_elements_;
- }
- // .google.firestore.v1.ArrayValue remove_all_from_array = 7;
- inline bool DocumentTransform_FieldTransform::has_remove_all_from_array() const {
- return transform_type_case() == kRemoveAllFromArray;
- }
- inline void DocumentTransform_FieldTransform::set_has_remove_all_from_array() {
- _oneof_case_[0] = kRemoveAllFromArray;
- }
- inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::release_remove_all_from_array() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.FieldTransform.remove_all_from_array)
- if (has_remove_all_from_array()) {
- clear_has_transform_type();
- ::google::firestore::v1::ArrayValue* temp = transform_type_.remove_all_from_array_;
- transform_type_.remove_all_from_array_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::ArrayValue& DocumentTransform_FieldTransform::remove_all_from_array() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.FieldTransform.remove_all_from_array)
- return has_remove_all_from_array()
- ? *transform_type_.remove_all_from_array_
- : *reinterpret_cast< ::google::firestore::v1::ArrayValue*>(&::google::firestore::v1::_ArrayValue_default_instance_);
- }
- inline ::google::firestore::v1::ArrayValue* DocumentTransform_FieldTransform::mutable_remove_all_from_array() {
- if (!has_remove_all_from_array()) {
- clear_transform_type();
- set_has_remove_all_from_array();
- transform_type_.remove_all_from_array_ = CreateMaybeMessage< ::google::firestore::v1::ArrayValue >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.FieldTransform.remove_all_from_array)
- return transform_type_.remove_all_from_array_;
- }
- inline bool DocumentTransform_FieldTransform::has_transform_type() const {
- return transform_type_case() != TRANSFORM_TYPE_NOT_SET;
- }
- inline void DocumentTransform_FieldTransform::clear_has_transform_type() {
- _oneof_case_[0] = TRANSFORM_TYPE_NOT_SET;
- }
- inline DocumentTransform_FieldTransform::TransformTypeCase DocumentTransform_FieldTransform::transform_type_case() const {
- return DocumentTransform_FieldTransform::TransformTypeCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // DocumentTransform
- // string document = 1;
- inline void DocumentTransform::clear_document() {
- document_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline const std::string& DocumentTransform::document() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.document)
- return document_.GetNoArena();
- }
- inline void DocumentTransform::set_document(const std::string& value) {
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentTransform.document)
- }
- inline void DocumentTransform::set_document(std::string&& value) {
-
- document_.SetNoArena(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentTransform.document)
- }
- inline void DocumentTransform::set_document(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentTransform.document)
- }
- inline void DocumentTransform::set_document(const char* value, size_t size) {
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentTransform.document)
- }
- inline std::string* DocumentTransform::mutable_document() {
-
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.document)
- return document_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline std::string* DocumentTransform::release_document() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentTransform.document)
-
- return document_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline void DocumentTransform::set_allocated_document(std::string* document) {
- if (document != nullptr) {
-
- } else {
-
- }
- document_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document);
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentTransform.document)
- }
- // repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;
- inline int DocumentTransform::field_transforms_size() const {
- return field_transforms_.size();
- }
- inline void DocumentTransform::clear_field_transforms() {
- field_transforms_.Clear();
- }
- inline ::google::firestore::v1::DocumentTransform_FieldTransform* DocumentTransform::mutable_field_transforms(int index) {
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentTransform.field_transforms)
- return field_transforms_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >*
- DocumentTransform::mutable_field_transforms() {
- // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentTransform.field_transforms)
- return &field_transforms_;
- }
- inline const ::google::firestore::v1::DocumentTransform_FieldTransform& DocumentTransform::field_transforms(int index) const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentTransform.field_transforms)
- return field_transforms_.Get(index);
- }
- inline ::google::firestore::v1::DocumentTransform_FieldTransform* DocumentTransform::add_field_transforms() {
- // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentTransform.field_transforms)
- return field_transforms_.Add();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::DocumentTransform_FieldTransform >&
- DocumentTransform::field_transforms() const {
- // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentTransform.field_transforms)
- return field_transforms_;
- }
- // -------------------------------------------------------------------
- // WriteResult
- // .google.protobuf.Timestamp update_time = 1;
- inline bool WriteResult::has_update_time() const {
- return this != internal_default_instance() && update_time_ != nullptr;
- }
- inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteResult::update_time() const {
- const PROTOBUF_NAMESPACE_ID::Timestamp* p = update_time_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResult.update_time)
- return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
- &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
- }
- inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResult::release_update_time() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.WriteResult.update_time)
-
- PROTOBUF_NAMESPACE_ID::Timestamp* temp = update_time_;
- update_time_ = nullptr;
- return temp;
- }
- inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteResult::mutable_update_time() {
-
- if (update_time_ == nullptr) {
- auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
- update_time_ = p;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResult.update_time)
- return update_time_;
- }
- inline void WriteResult::set_allocated_update_time(PROTOBUF_NAMESPACE_ID::Timestamp* update_time) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time_);
- }
- if (update_time) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time)->GetArena();
- if (message_arena != submessage_arena) {
- update_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, update_time, submessage_arena);
- }
-
- } else {
-
- }
- update_time_ = update_time;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.WriteResult.update_time)
- }
- // repeated .google.firestore.v1.Value transform_results = 2;
- inline int WriteResult::transform_results_size() const {
- return transform_results_.size();
- }
- inline ::google::firestore::v1::Value* WriteResult::mutable_transform_results(int index) {
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.WriteResult.transform_results)
- return transform_results_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >*
- WriteResult::mutable_transform_results() {
- // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.WriteResult.transform_results)
- return &transform_results_;
- }
- inline const ::google::firestore::v1::Value& WriteResult::transform_results(int index) const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.WriteResult.transform_results)
- return transform_results_.Get(index);
- }
- inline ::google::firestore::v1::Value* WriteResult::add_transform_results() {
- // @@protoc_insertion_point(field_add:google.firestore.v1.WriteResult.transform_results)
- return transform_results_.Add();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Value >&
- WriteResult::transform_results() const {
- // @@protoc_insertion_point(field_list:google.firestore.v1.WriteResult.transform_results)
- return transform_results_;
- }
- // -------------------------------------------------------------------
- // DocumentChange
- // .google.firestore.v1.Document document = 1;
- inline bool DocumentChange::has_document() const {
- return this != internal_default_instance() && document_ != nullptr;
- }
- inline const ::google::firestore::v1::Document& DocumentChange::document() const {
- const ::google::firestore::v1::Document* p = document_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentChange.document)
- return p != nullptr ? *p : *reinterpret_cast<const ::google::firestore::v1::Document*>(
- &::google::firestore::v1::_Document_default_instance_);
- }
- inline ::google::firestore::v1::Document* DocumentChange::release_document() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentChange.document)
-
- ::google::firestore::v1::Document* temp = document_;
- document_ = nullptr;
- return temp;
- }
- inline ::google::firestore::v1::Document* DocumentChange::mutable_document() {
-
- if (document_ == nullptr) {
- auto* p = CreateMaybeMessage<::google::firestore::v1::Document>(GetArenaNoVirtual());
- document_ = p;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentChange.document)
- return document_;
- }
- inline void DocumentChange::set_allocated_document(::google::firestore::v1::Document* document) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(document_);
- }
- if (document) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
- if (message_arena != submessage_arena) {
- document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, document, submessage_arena);
- }
-
- } else {
-
- }
- document_ = document;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentChange.document)
- }
- // repeated int32 target_ids = 5;
- inline int DocumentChange::target_ids_size() const {
- return target_ids_.size();
- }
- inline void DocumentChange::clear_target_ids() {
- target_ids_.Clear();
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentChange::target_ids(int index) const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentChange.target_ids)
- return target_ids_.Get(index);
- }
- inline void DocumentChange::set_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
- target_ids_.Set(index, value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentChange.target_ids)
- }
- inline void DocumentChange::add_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
- target_ids_.Add(value);
- // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentChange.target_ids)
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- DocumentChange::target_ids() const {
- // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentChange.target_ids)
- return target_ids_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- DocumentChange::mutable_target_ids() {
- // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentChange.target_ids)
- return &target_ids_;
- }
- // repeated int32 removed_target_ids = 6;
- inline int DocumentChange::removed_target_ids_size() const {
- return removed_target_ids_.size();
- }
- inline void DocumentChange::clear_removed_target_ids() {
- removed_target_ids_.Clear();
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentChange::removed_target_ids(int index) const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentChange.removed_target_ids)
- return removed_target_ids_.Get(index);
- }
- inline void DocumentChange::set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
- removed_target_ids_.Set(index, value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentChange.removed_target_ids)
- }
- inline void DocumentChange::add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
- removed_target_ids_.Add(value);
- // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentChange.removed_target_ids)
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- DocumentChange::removed_target_ids() const {
- // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentChange.removed_target_ids)
- return removed_target_ids_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- DocumentChange::mutable_removed_target_ids() {
- // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentChange.removed_target_ids)
- return &removed_target_ids_;
- }
- // -------------------------------------------------------------------
- // DocumentDelete
- // string document = 1;
- inline void DocumentDelete::clear_document() {
- document_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline const std::string& DocumentDelete::document() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentDelete.document)
- return document_.GetNoArena();
- }
- inline void DocumentDelete::set_document(const std::string& value) {
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentDelete.document)
- }
- inline void DocumentDelete::set_document(std::string&& value) {
-
- document_.SetNoArena(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentDelete.document)
- }
- inline void DocumentDelete::set_document(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentDelete.document)
- }
- inline void DocumentDelete::set_document(const char* value, size_t size) {
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentDelete.document)
- }
- inline std::string* DocumentDelete::mutable_document() {
-
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentDelete.document)
- return document_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline std::string* DocumentDelete::release_document() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentDelete.document)
-
- return document_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline void DocumentDelete::set_allocated_document(std::string* document) {
- if (document != nullptr) {
-
- } else {
-
- }
- document_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document);
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentDelete.document)
- }
- // repeated int32 removed_target_ids = 6;
- inline int DocumentDelete::removed_target_ids_size() const {
- return removed_target_ids_.size();
- }
- inline void DocumentDelete::clear_removed_target_ids() {
- removed_target_ids_.Clear();
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentDelete::removed_target_ids(int index) const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentDelete.removed_target_ids)
- return removed_target_ids_.Get(index);
- }
- inline void DocumentDelete::set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
- removed_target_ids_.Set(index, value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentDelete.removed_target_ids)
- }
- inline void DocumentDelete::add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
- removed_target_ids_.Add(value);
- // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentDelete.removed_target_ids)
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- DocumentDelete::removed_target_ids() const {
- // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentDelete.removed_target_ids)
- return removed_target_ids_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- DocumentDelete::mutable_removed_target_ids() {
- // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentDelete.removed_target_ids)
- return &removed_target_ids_;
- }
- // .google.protobuf.Timestamp read_time = 4;
- inline bool DocumentDelete::has_read_time() const {
- return this != internal_default_instance() && read_time_ != nullptr;
- }
- inline const PROTOBUF_NAMESPACE_ID::Timestamp& DocumentDelete::read_time() const {
- const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentDelete.read_time)
- return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
- &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
- }
- inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentDelete::release_read_time() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentDelete.read_time)
-
- PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
- read_time_ = nullptr;
- return temp;
- }
- inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentDelete::mutable_read_time() {
-
- if (read_time_ == nullptr) {
- auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
- read_time_ = p;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentDelete.read_time)
- return read_time_;
- }
- inline void DocumentDelete::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
- }
- if (read_time) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
- if (message_arena != submessage_arena) {
- read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, read_time, submessage_arena);
- }
-
- } else {
-
- }
- read_time_ = read_time;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentDelete.read_time)
- }
- // -------------------------------------------------------------------
- // DocumentRemove
- // string document = 1;
- inline void DocumentRemove::clear_document() {
- document_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline const std::string& DocumentRemove::document() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentRemove.document)
- return document_.GetNoArena();
- }
- inline void DocumentRemove::set_document(const std::string& value) {
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentRemove.document)
- }
- inline void DocumentRemove::set_document(std::string&& value) {
-
- document_.SetNoArena(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.DocumentRemove.document)
- }
- inline void DocumentRemove::set_document(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentRemove.document)
- }
- inline void DocumentRemove::set_document(const char* value, size_t size) {
-
- document_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentRemove.document)
- }
- inline std::string* DocumentRemove::mutable_document() {
-
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentRemove.document)
- return document_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline std::string* DocumentRemove::release_document() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentRemove.document)
-
- return document_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- inline void DocumentRemove::set_allocated_document(std::string* document) {
- if (document != nullptr) {
-
- } else {
-
- }
- document_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), document);
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentRemove.document)
- }
- // repeated int32 removed_target_ids = 2;
- inline int DocumentRemove::removed_target_ids_size() const {
- return removed_target_ids_.size();
- }
- inline void DocumentRemove::clear_removed_target_ids() {
- removed_target_ids_.Clear();
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 DocumentRemove::removed_target_ids(int index) const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentRemove.removed_target_ids)
- return removed_target_ids_.Get(index);
- }
- inline void DocumentRemove::set_removed_target_ids(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
- removed_target_ids_.Set(index, value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentRemove.removed_target_ids)
- }
- inline void DocumentRemove::add_removed_target_ids(::PROTOBUF_NAMESPACE_ID::int32 value) {
- removed_target_ids_.Add(value);
- // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentRemove.removed_target_ids)
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
- DocumentRemove::removed_target_ids() const {
- // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentRemove.removed_target_ids)
- return removed_target_ids_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
- DocumentRemove::mutable_removed_target_ids() {
- // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentRemove.removed_target_ids)
- return &removed_target_ids_;
- }
- // .google.protobuf.Timestamp read_time = 4;
- inline bool DocumentRemove::has_read_time() const {
- return this != internal_default_instance() && read_time_ != nullptr;
- }
- inline const PROTOBUF_NAMESPACE_ID::Timestamp& DocumentRemove::read_time() const {
- const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentRemove.read_time)
- return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
- &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
- }
- inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentRemove::release_read_time() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.DocumentRemove.read_time)
-
- PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
- read_time_ = nullptr;
- return temp;
- }
- inline PROTOBUF_NAMESPACE_ID::Timestamp* DocumentRemove::mutable_read_time() {
-
- if (read_time_ == nullptr) {
- auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
- read_time_ = p;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentRemove.read_time)
- return read_time_;
- }
- inline void DocumentRemove::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
- }
- if (read_time) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
- if (message_arena != submessage_arena) {
- read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, read_time, submessage_arena);
- }
-
- } else {
-
- }
- read_time_ = read_time;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.DocumentRemove.read_time)
- }
- // -------------------------------------------------------------------
- // ExistenceFilter
- // int32 target_id = 1;
- inline void ExistenceFilter::clear_target_id() {
- target_id_ = 0;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 ExistenceFilter::target_id() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.ExistenceFilter.target_id)
- return target_id_;
- }
- inline void ExistenceFilter::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
-
- target_id_ = value;
- // @@protoc_insertion_point(field_set:google.firestore.v1.ExistenceFilter.target_id)
- }
- // int32 count = 2;
- inline void ExistenceFilter::clear_count() {
- count_ = 0;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 ExistenceFilter::count() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.ExistenceFilter.count)
- return count_;
- }
- inline void ExistenceFilter::set_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
-
- count_ = value;
- // @@protoc_insertion_point(field_set:google.firestore.v1.ExistenceFilter.count)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace v1
- } // namespace firestore
- } // namespace google
- PROTOBUF_NAMESPACE_OPEN
- template <> struct is_proto_enum< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue>() {
- return ::google::firestore::v1::DocumentTransform_FieldTransform_ServerValue_descriptor();
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fwrite_2eproto
|