| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487 |
- /*
- * Copyright 2024 Google LLC
- *
- * 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/common.proto
- #include "google/firestore/v1/common.pb.h"
- #include <algorithm>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- #include "google/protobuf/generated_message_tctable_impl.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::google::protobuf;
- namespace _pbi = ::google::protobuf::internal;
- namespace _fl = ::google::protobuf::internal::field_layout;
- namespace google {
- namespace firestore {
- namespace v1 {
- inline constexpr TransactionOptions_ReadWrite::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : retry_transaction_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR TransactionOptions_ReadWrite::TransactionOptions_ReadWrite(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct TransactionOptions_ReadWriteDefaultTypeInternal {
- PROTOBUF_CONSTEXPR TransactionOptions_ReadWriteDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~TransactionOptions_ReadWriteDefaultTypeInternal() {}
- union {
- TransactionOptions_ReadWrite _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionOptions_ReadWriteDefaultTypeInternal _TransactionOptions_ReadWrite_default_instance_;
- inline constexpr DocumentMask::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : field_paths_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR DocumentMask::DocumentMask(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct DocumentMaskDefaultTypeInternal {
- PROTOBUF_CONSTEXPR DocumentMaskDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~DocumentMaskDefaultTypeInternal() {}
- union {
- DocumentMask _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DocumentMaskDefaultTypeInternal _DocumentMask_default_instance_;
- inline constexpr TransactionOptions_ReadOnly::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : consistency_selector_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR TransactionOptions_ReadOnly::TransactionOptions_ReadOnly(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct TransactionOptions_ReadOnlyDefaultTypeInternal {
- PROTOBUF_CONSTEXPR TransactionOptions_ReadOnlyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~TransactionOptions_ReadOnlyDefaultTypeInternal() {}
- union {
- TransactionOptions_ReadOnly _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionOptions_ReadOnlyDefaultTypeInternal _TransactionOptions_ReadOnly_default_instance_;
- inline constexpr Precondition::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : condition_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR Precondition::Precondition(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct PreconditionDefaultTypeInternal {
- PROTOBUF_CONSTEXPR PreconditionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~PreconditionDefaultTypeInternal() {}
- union {
- Precondition _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionDefaultTypeInternal _Precondition_default_instance_;
- inline constexpr TransactionOptions::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : mode_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR TransactionOptions::TransactionOptions(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct TransactionOptionsDefaultTypeInternal {
- PROTOBUF_CONSTEXPR TransactionOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~TransactionOptionsDefaultTypeInternal() {}
- union {
- TransactionOptions _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionOptionsDefaultTypeInternal _TransactionOptions_default_instance_;
- } // namespace v1
- } // namespace firestore
- } // namespace google
- static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fv1_2fcommon_2eproto[5];
- static constexpr const ::_pb::EnumDescriptor**
- file_level_enum_descriptors_google_2ffirestore_2fv1_2fcommon_2eproto = nullptr;
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_google_2ffirestore_2fv1_2fcommon_2eproto = nullptr;
- const ::uint32_t TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
- protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::DocumentMask, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::DocumentMask, _impl_.field_paths_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Precondition, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Precondition, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Precondition, _impl_.condition_type_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions_ReadWrite, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions_ReadWrite, _impl_.retry_transaction_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions_ReadOnly, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions_ReadOnly, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions_ReadOnly, _impl_.consistency_selector_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions, _impl_.mode_),
- };
- static const ::_pbi::MigrationSchema
- schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::google::firestore::v1::DocumentMask)},
- {9, -1, -1, sizeof(::google::firestore::v1::Precondition)},
- {20, -1, -1, sizeof(::google::firestore::v1::TransactionOptions_ReadWrite)},
- {29, -1, -1, sizeof(::google::firestore::v1::TransactionOptions_ReadOnly)},
- {39, -1, -1, sizeof(::google::firestore::v1::TransactionOptions)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::google::firestore::v1::_DocumentMask_default_instance_._instance,
- &::google::firestore::v1::_Precondition_default_instance_._instance,
- &::google::firestore::v1::_TransactionOptions_ReadWrite_default_instance_._instance,
- &::google::firestore::v1::_TransactionOptions_ReadOnly_default_instance_._instance,
- &::google::firestore::v1::_TransactionOptions_default_instance_._instance,
- };
- const char descriptor_table_protodef_google_2ffirestore_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n google/firestore/v1/common.proto\022\023goog"
- "le.firestore.v1\032\037google/protobuf/timesta"
- "mp.proto\"#\n\014DocumentMask\022\023\n\013field_paths\030"
- "\001 \003(\t\"e\n\014Precondition\022\020\n\006exists\030\001 \001(\010H\000\022"
- "1\n\013update_time\030\002 \001(\0132\032.google.protobuf.T"
- "imestampH\000B\020\n\016condition_type\"\251\002\n\022Transac"
- "tionOptions\022E\n\tread_only\030\002 \001(\01320.google."
- "firestore.v1.TransactionOptions.ReadOnly"
- "H\000\022G\n\nread_write\030\003 \001(\01321.google.firestor"
- "e.v1.TransactionOptions.ReadWriteH\000\032&\n\tR"
- "eadWrite\022\031\n\021retry_transaction\030\001 \001(\014\032S\n\010R"
- "eadOnly\022/\n\tread_time\030\002 \001(\0132\032.google.prot"
- "obuf.TimestampH\000B\026\n\024consistency_selector"
- "B\006\n\004modeB\257\001\n\027com.google.firestore.v1B\013Co"
- "mmonProtoP\001Z<google.golang.org/genproto/"
- "googleapis/firestore/v1;firestore\242\002\004GCFS"
- "\252\002\036Google.Cloud.Firestore.V1Beta1\312\002\036Goog"
- "le\\Cloud\\Firestore\\V1beta1b\006proto3"
- };
- static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_deps[1] =
- {
- &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
- };
- static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto = {
- false,
- false,
- 714,
- descriptor_table_protodef_google_2ffirestore_2fv1_2fcommon_2eproto,
- "google/firestore/v1/common.proto",
- &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_once,
- descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_deps,
- 1,
- 5,
- schemas,
- file_default_instances,
- TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto::offsets,
- file_level_metadata_google_2ffirestore_2fv1_2fcommon_2eproto,
- file_level_enum_descriptors_google_2ffirestore_2fv1_2fcommon_2eproto,
- file_level_service_descriptors_google_2ffirestore_2fv1_2fcommon_2eproto,
- };
- // This function exists to be marked as weak.
- // It can significantly speed up compilation by breaking up LLVM's SCC
- // in the .pb.cc translation units. Large translation units see a
- // reduction of more than 35% of walltime for optimized builds. Without
- // the weak attribute all the messages in the file, including all the
- // vtables and everything they use become part of the same SCC through
- // a cycle like:
- // GetMetadata -> descriptor table -> default instances ->
- // vtables -> GetMetadata
- // By adding a weak function here we break the connection from the
- // individual vtables back into the descriptor table.
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_getter() {
- return &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
- static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fv1_2fcommon_2eproto(&descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto);
- namespace google {
- namespace firestore {
- namespace v1 {
- // ===================================================================
- class DocumentMask::_Internal {
- public:
- };
- DocumentMask::DocumentMask(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.DocumentMask)
- }
- inline PROTOBUF_NDEBUG_INLINE DocumentMask::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : field_paths_{visibility, arena, from.field_paths_},
- _cached_size_{0} {}
- DocumentMask::DocumentMask(
- ::google::protobuf::Arena* arena,
- const DocumentMask& from)
- : ::google::protobuf::Message(arena) {
- DocumentMask* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.DocumentMask)
- }
- inline PROTOBUF_NDEBUG_INLINE DocumentMask::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : field_paths_{visibility, arena},
- _cached_size_{0} {}
- inline void DocumentMask::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- DocumentMask::~DocumentMask() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.DocumentMask)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void DocumentMask::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void DocumentMask::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.DocumentMask)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.field_paths_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* DocumentMask::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 0, 52, 2> DocumentMask::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- &_DocumentMask_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated string field_paths = 1;
- {::_pbi::TcParser::FastUR1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(DocumentMask, _impl_.field_paths_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // repeated string field_paths = 1;
- {PROTOBUF_FIELD_OFFSET(DocumentMask, _impl_.field_paths_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
- }},
- // no aux_entries
- {{
- "\40\13\0\0\0\0\0\0"
- "google.firestore.v1.DocumentMask"
- "field_paths"
- }},
- };
- ::uint8_t* DocumentMask::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.DocumentMask)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // repeated string field_paths = 1;
- for (int i = 0, n = this->_internal_field_paths_size(); i < n; ++i) {
- const auto& s = this->_internal_field_paths().Get(i);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.DocumentMask.field_paths");
- target = stream->WriteString(1, s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.DocumentMask)
- return target;
- }
- ::size_t DocumentMask::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.DocumentMask)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated string field_paths = 1;
- total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_field_paths().size());
- for (int i = 0, n = _internal_field_paths().size(); i < n; ++i) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- _internal_field_paths().Get(i));
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData DocumentMask::_class_data_ = {
- DocumentMask::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* DocumentMask::GetClassData() const {
- return &_class_data_;
- }
- void DocumentMask::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<DocumentMask*>(&to_msg);
- auto& from = static_cast<const DocumentMask&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.DocumentMask)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_field_paths()->MergeFrom(from._internal_field_paths());
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void DocumentMask::CopyFrom(const DocumentMask& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.DocumentMask)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool DocumentMask::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* DocumentMask::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void DocumentMask::InternalSwap(DocumentMask* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.field_paths_.InternalSwap(&other->_impl_.field_paths_);
- }
- ::google::protobuf::Metadata DocumentMask::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fcommon_2eproto[0]);
- }
- // ===================================================================
- class Precondition::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Precondition, _impl_._oneof_case_);
- static const ::google::protobuf::Timestamp& update_time(const Precondition* msg);
- };
- const ::google::protobuf::Timestamp& Precondition::_Internal::update_time(const Precondition* msg) {
- return *msg->_impl_.condition_type_.update_time_;
- }
- void Precondition::set_allocated_update_time(::google::protobuf::Timestamp* update_time) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_condition_type();
- if (update_time) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(update_time)->GetArena();
- if (message_arena != submessage_arena) {
- update_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, update_time, submessage_arena);
- }
- set_has_update_time();
- _impl_.condition_type_.update_time_ = update_time;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Precondition.update_time)
- }
- void Precondition::clear_update_time() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (condition_type_case() == kUpdateTime) {
- if (GetArena() == nullptr) {
- delete _impl_.condition_type_.update_time_;
- }
- clear_has_condition_type();
- }
- }
- Precondition::Precondition(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Precondition)
- }
- inline PROTOBUF_NDEBUG_INLINE Precondition::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : condition_type_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- Precondition::Precondition(
- ::google::protobuf::Arena* arena,
- const Precondition& from)
- : ::google::protobuf::Message(arena) {
- Precondition* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (condition_type_case()) {
- case CONDITION_TYPE_NOT_SET:
- break;
- case kExists:
- _impl_.condition_type_.exists_ = from._impl_.condition_type_.exists_;
- break;
- case kUpdateTime:
- _impl_.condition_type_.update_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.condition_type_.update_time_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Precondition)
- }
- inline PROTOBUF_NDEBUG_INLINE Precondition::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : condition_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void Precondition::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- Precondition::~Precondition() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Precondition)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Precondition::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_condition_type()) {
- clear_condition_type();
- }
- _impl_.~Impl_();
- }
- void Precondition::clear_condition_type() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Precondition)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (condition_type_case()) {
- case kExists: {
- // No need to clear
- break;
- }
- case kUpdateTime: {
- if (GetArena() == nullptr) {
- delete _impl_.condition_type_.update_time_;
- }
- break;
- }
- case CONDITION_TYPE_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = CONDITION_TYPE_NOT_SET;
- }
- PROTOBUF_NOINLINE void Precondition::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Precondition)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- clear_condition_type();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Precondition::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 2, 1, 0, 2> Precondition::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967292, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Precondition_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // bool exists = 1;
- {PROTOBUF_FIELD_OFFSET(Precondition, _impl_.condition_type_.exists_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kBool)},
- // .google.protobuf.Timestamp update_time = 2;
- {PROTOBUF_FIELD_OFFSET(Precondition, _impl_.condition_type_.update_time_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- }}, {{
- }},
- };
- ::uint8_t* Precondition::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Precondition)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- switch (condition_type_case()) {
- case kExists: {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 1, this->_internal_exists(), target);
- break;
- }
- case kUpdateTime: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 2, _Internal::update_time(this),
- _Internal::update_time(this).GetCachedSize(), target, stream);
- break;
- }
- default:
- break;
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Precondition)
- return target;
- }
- ::size_t Precondition::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Precondition)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- switch (condition_type_case()) {
- // bool exists = 1;
- case kExists: {
- total_size += 2;
- break;
- }
- // .google.protobuf.Timestamp update_time = 2;
- case kUpdateTime: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.condition_type_.update_time_);
- break;
- }
- case CONDITION_TYPE_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Precondition::_class_data_ = {
- Precondition::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Precondition::GetClassData() const {
- return &_class_data_;
- }
- void Precondition::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Precondition*>(&to_msg);
- auto& from = static_cast<const Precondition&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Precondition)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- switch (from.condition_type_case()) {
- case kExists: {
- _this->_internal_set_exists(from._internal_exists());
- break;
- }
- case kUpdateTime: {
- _this->_internal_mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_update_time());
- break;
- }
- case CONDITION_TYPE_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Precondition::CopyFrom(const Precondition& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Precondition)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Precondition::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Precondition::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Precondition::InternalSwap(Precondition* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.condition_type_, other->_impl_.condition_type_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata Precondition::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fcommon_2eproto[1]);
- }
- // ===================================================================
- class TransactionOptions_ReadWrite::_Internal {
- public:
- };
- TransactionOptions_ReadWrite::TransactionOptions_ReadWrite(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.TransactionOptions.ReadWrite)
- }
- inline PROTOBUF_NDEBUG_INLINE TransactionOptions_ReadWrite::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : retry_transaction_(arena, from.retry_transaction_),
- _cached_size_{0} {}
- TransactionOptions_ReadWrite::TransactionOptions_ReadWrite(
- ::google::protobuf::Arena* arena,
- const TransactionOptions_ReadWrite& from)
- : ::google::protobuf::Message(arena) {
- TransactionOptions_ReadWrite* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.TransactionOptions.ReadWrite)
- }
- inline PROTOBUF_NDEBUG_INLINE TransactionOptions_ReadWrite::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : retry_transaction_(arena),
- _cached_size_{0} {}
- inline void TransactionOptions_ReadWrite::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- TransactionOptions_ReadWrite::~TransactionOptions_ReadWrite() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.TransactionOptions.ReadWrite)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void TransactionOptions_ReadWrite::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.retry_transaction_.Destroy();
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void TransactionOptions_ReadWrite::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.TransactionOptions.ReadWrite)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.retry_transaction_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* TransactionOptions_ReadWrite::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TransactionOptions_ReadWrite::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- &_TransactionOptions_ReadWrite_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // bytes retry_transaction = 1;
- {::_pbi::TcParser::FastBS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOptions_ReadWrite, _impl_.retry_transaction_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // bytes retry_transaction = 1;
- {PROTOBUF_FIELD_OFFSET(TransactionOptions_ReadWrite, _impl_.retry_transaction_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
- }},
- // no aux_entries
- {{
- }},
- };
- ::uint8_t* TransactionOptions_ReadWrite::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.TransactionOptions.ReadWrite)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // bytes retry_transaction = 1;
- if (!this->_internal_retry_transaction().empty()) {
- const std::string& _s = this->_internal_retry_transaction();
- target = stream->WriteBytesMaybeAliased(1, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.TransactionOptions.ReadWrite)
- return target;
- }
- ::size_t TransactionOptions_ReadWrite::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.TransactionOptions.ReadWrite)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // bytes retry_transaction = 1;
- if (!this->_internal_retry_transaction().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->_internal_retry_transaction());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData TransactionOptions_ReadWrite::_class_data_ = {
- TransactionOptions_ReadWrite::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* TransactionOptions_ReadWrite::GetClassData() const {
- return &_class_data_;
- }
- void TransactionOptions_ReadWrite::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<TransactionOptions_ReadWrite*>(&to_msg);
- auto& from = static_cast<const TransactionOptions_ReadWrite&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.TransactionOptions.ReadWrite)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_retry_transaction().empty()) {
- _this->_internal_set_retry_transaction(from._internal_retry_transaction());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void TransactionOptions_ReadWrite::CopyFrom(const TransactionOptions_ReadWrite& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.TransactionOptions.ReadWrite)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool TransactionOptions_ReadWrite::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* TransactionOptions_ReadWrite::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void TransactionOptions_ReadWrite::InternalSwap(TransactionOptions_ReadWrite* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.retry_transaction_, &other->_impl_.retry_transaction_, arena);
- }
- ::google::protobuf::Metadata TransactionOptions_ReadWrite::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fcommon_2eproto[2]);
- }
- // ===================================================================
- class TransactionOptions_ReadOnly::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions_ReadOnly, _impl_._oneof_case_);
- static const ::google::protobuf::Timestamp& read_time(const TransactionOptions_ReadOnly* msg);
- };
- const ::google::protobuf::Timestamp& TransactionOptions_ReadOnly::_Internal::read_time(const TransactionOptions_ReadOnly* msg) {
- return *msg->_impl_.consistency_selector_.read_time_;
- }
- void TransactionOptions_ReadOnly::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_consistency_selector();
- if (read_time) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(read_time)->GetArena();
- if (message_arena != submessage_arena) {
- read_time = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_time, submessage_arena);
- }
- set_has_read_time();
- _impl_.consistency_selector_.read_time_ = read_time;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
- }
- void TransactionOptions_ReadOnly::clear_read_time() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (consistency_selector_case() == kReadTime) {
- if (GetArena() == nullptr) {
- delete _impl_.consistency_selector_.read_time_;
- }
- clear_has_consistency_selector();
- }
- }
- TransactionOptions_ReadOnly::TransactionOptions_ReadOnly(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.TransactionOptions.ReadOnly)
- }
- inline PROTOBUF_NDEBUG_INLINE TransactionOptions_ReadOnly::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : consistency_selector_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- TransactionOptions_ReadOnly::TransactionOptions_ReadOnly(
- ::google::protobuf::Arena* arena,
- const TransactionOptions_ReadOnly& from)
- : ::google::protobuf::Message(arena) {
- TransactionOptions_ReadOnly* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (consistency_selector_case()) {
- case CONSISTENCY_SELECTOR_NOT_SET:
- break;
- case kReadTime:
- _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.consistency_selector_.read_time_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.TransactionOptions.ReadOnly)
- }
- inline PROTOBUF_NDEBUG_INLINE TransactionOptions_ReadOnly::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : consistency_selector_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void TransactionOptions_ReadOnly::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- TransactionOptions_ReadOnly::~TransactionOptions_ReadOnly() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.TransactionOptions.ReadOnly)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void TransactionOptions_ReadOnly::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_consistency_selector()) {
- clear_consistency_selector();
- }
- _impl_.~Impl_();
- }
- void TransactionOptions_ReadOnly::clear_consistency_selector() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.TransactionOptions.ReadOnly)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (consistency_selector_case()) {
- case kReadTime: {
- if (GetArena() == nullptr) {
- delete _impl_.consistency_selector_.read_time_;
- }
- break;
- }
- case CONSISTENCY_SELECTOR_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
- }
- PROTOBUF_NOINLINE void TransactionOptions_ReadOnly::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.TransactionOptions.ReadOnly)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- clear_consistency_selector();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* TransactionOptions_ReadOnly::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionOptions_ReadOnly::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967293, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_TransactionOptions_ReadOnly_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.protobuf.Timestamp read_time = 2;
- {PROTOBUF_FIELD_OFFSET(TransactionOptions_ReadOnly, _impl_.consistency_selector_.read_time_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- }}, {{
- }},
- };
- ::uint8_t* TransactionOptions_ReadOnly::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.TransactionOptions.ReadOnly)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // .google.protobuf.Timestamp read_time = 2;
- if (consistency_selector_case() == kReadTime) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 2, _Internal::read_time(this),
- _Internal::read_time(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.TransactionOptions.ReadOnly)
- return target;
- }
- ::size_t TransactionOptions_ReadOnly::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.TransactionOptions.ReadOnly)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- switch (consistency_selector_case()) {
- // .google.protobuf.Timestamp read_time = 2;
- case kReadTime: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.consistency_selector_.read_time_);
- break;
- }
- case CONSISTENCY_SELECTOR_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData TransactionOptions_ReadOnly::_class_data_ = {
- TransactionOptions_ReadOnly::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* TransactionOptions_ReadOnly::GetClassData() const {
- return &_class_data_;
- }
- void TransactionOptions_ReadOnly::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<TransactionOptions_ReadOnly*>(&to_msg);
- auto& from = static_cast<const TransactionOptions_ReadOnly&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.TransactionOptions.ReadOnly)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- switch (from.consistency_selector_case()) {
- case kReadTime: {
- _this->_internal_mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_read_time());
- break;
- }
- case CONSISTENCY_SELECTOR_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void TransactionOptions_ReadOnly::CopyFrom(const TransactionOptions_ReadOnly& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.TransactionOptions.ReadOnly)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool TransactionOptions_ReadOnly::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* TransactionOptions_ReadOnly::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void TransactionOptions_ReadOnly::InternalSwap(TransactionOptions_ReadOnly* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.consistency_selector_, other->_impl_.consistency_selector_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata TransactionOptions_ReadOnly::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fcommon_2eproto[3]);
- }
- // ===================================================================
- class TransactionOptions::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::TransactionOptions, _impl_._oneof_case_);
- static const ::google::firestore::v1::TransactionOptions_ReadOnly& read_only(const TransactionOptions* msg);
- static const ::google::firestore::v1::TransactionOptions_ReadWrite& read_write(const TransactionOptions* msg);
- };
- const ::google::firestore::v1::TransactionOptions_ReadOnly& TransactionOptions::_Internal::read_only(const TransactionOptions* msg) {
- return *msg->_impl_.mode_.read_only_;
- }
- const ::google::firestore::v1::TransactionOptions_ReadWrite& TransactionOptions::_Internal::read_write(const TransactionOptions* msg) {
- return *msg->_impl_.mode_.read_write_;
- }
- void TransactionOptions::set_allocated_read_only(::google::firestore::v1::TransactionOptions_ReadOnly* read_only) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_mode();
- if (read_only) {
- ::google::protobuf::Arena* submessage_arena = read_only->GetArena();
- if (message_arena != submessage_arena) {
- read_only = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_only, submessage_arena);
- }
- set_has_read_only();
- _impl_.mode_.read_only_ = read_only;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TransactionOptions.read_only)
- }
- void TransactionOptions::set_allocated_read_write(::google::firestore::v1::TransactionOptions_ReadWrite* read_write) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_mode();
- if (read_write) {
- ::google::protobuf::Arena* submessage_arena = read_write->GetArena();
- if (message_arena != submessage_arena) {
- read_write = ::google::protobuf::internal::GetOwnedMessage(message_arena, read_write, submessage_arena);
- }
- set_has_read_write();
- _impl_.mode_.read_write_ = read_write;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TransactionOptions.read_write)
- }
- TransactionOptions::TransactionOptions(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.TransactionOptions)
- }
- inline PROTOBUF_NDEBUG_INLINE TransactionOptions::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : mode_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- TransactionOptions::TransactionOptions(
- ::google::protobuf::Arena* arena,
- const TransactionOptions& from)
- : ::google::protobuf::Message(arena) {
- TransactionOptions* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (mode_case()) {
- case MODE_NOT_SET:
- break;
- case kReadOnly:
- _impl_.mode_.read_only_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions_ReadOnly>(arena, *from._impl_.mode_.read_only_);
- break;
- case kReadWrite:
- _impl_.mode_.read_write_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions_ReadWrite>(arena, *from._impl_.mode_.read_write_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.TransactionOptions)
- }
- inline PROTOBUF_NDEBUG_INLINE TransactionOptions::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : mode_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void TransactionOptions::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- TransactionOptions::~TransactionOptions() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.TransactionOptions)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void TransactionOptions::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_mode()) {
- clear_mode();
- }
- _impl_.~Impl_();
- }
- void TransactionOptions::clear_mode() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.TransactionOptions)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (mode_case()) {
- case kReadOnly: {
- if (GetArena() == nullptr) {
- delete _impl_.mode_.read_only_;
- }
- break;
- }
- case kReadWrite: {
- if (GetArena() == nullptr) {
- delete _impl_.mode_.read_write_;
- }
- break;
- }
- case MODE_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = MODE_NOT_SET;
- }
- PROTOBUF_NOINLINE void TransactionOptions::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.TransactionOptions)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- clear_mode();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* TransactionOptions::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 2, 2, 0, 2> TransactionOptions::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 3, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967289, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 2, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_TransactionOptions_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
- {PROTOBUF_FIELD_OFFSET(TransactionOptions, _impl_.mode_.read_only_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
- {PROTOBUF_FIELD_OFFSET(TransactionOptions, _impl_.mode_.read_write_), _Internal::kOneofCaseOffset + 0, 1,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::TransactionOptions_ReadOnly>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::TransactionOptions_ReadWrite>()},
- }}, {{
- }},
- };
- ::uint8_t* TransactionOptions::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.TransactionOptions)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- switch (mode_case()) {
- case kReadOnly: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 2, _Internal::read_only(this),
- _Internal::read_only(this).GetCachedSize(), target, stream);
- break;
- }
- case kReadWrite: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 3, _Internal::read_write(this),
- _Internal::read_write(this).GetCachedSize(), target, stream);
- break;
- }
- default:
- break;
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.TransactionOptions)
- return target;
- }
- ::size_t TransactionOptions::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.TransactionOptions)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- switch (mode_case()) {
- // .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
- case kReadOnly: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mode_.read_only_);
- break;
- }
- // .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
- case kReadWrite: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mode_.read_write_);
- break;
- }
- case MODE_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData TransactionOptions::_class_data_ = {
- TransactionOptions::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* TransactionOptions::GetClassData() const {
- return &_class_data_;
- }
- void TransactionOptions::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<TransactionOptions*>(&to_msg);
- auto& from = static_cast<const TransactionOptions&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.TransactionOptions)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- switch (from.mode_case()) {
- case kReadOnly: {
- _this->_internal_mutable_read_only()->::google::firestore::v1::TransactionOptions_ReadOnly::MergeFrom(
- from._internal_read_only());
- break;
- }
- case kReadWrite: {
- _this->_internal_mutable_read_write()->::google::firestore::v1::TransactionOptions_ReadWrite::MergeFrom(
- from._internal_read_write());
- break;
- }
- case MODE_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void TransactionOptions::CopyFrom(const TransactionOptions& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.TransactionOptions)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool TransactionOptions::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* TransactionOptions::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void TransactionOptions::InternalSwap(TransactionOptions* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.mode_, other->_impl_.mode_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata TransactionOptions::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fcommon_2eproto[4]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace v1
- } // namespace firestore
- } // namespace google
- namespace google {
- namespace protobuf {
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
|