From 5f1f0f739b2d05b7f7d063e2084ffe35888446a1 Mon Sep 17 00:00:00 2001 From: milaGGL <107142260+milaGGL@users.noreply.github.com> Date: Wed, 15 Feb 2023 12:29:01 -0800 Subject: [PATCH 1/3] add bloomFilter to proto --- .../google/firestore/v1/bloom_filter.pb.cc | 608 ++++++++++++++++++ .../cpp/google/firestore/v1/bloom_filter.pb.h | 574 +++++++++++++++++ .../cpp/google/firestore/v1/firestore.pb.cc | 457 +++++++------ .../cpp/google/firestore/v1/firestore.pb.h | 73 +++ .../cpp/google/firestore/v1/write.pb.cc | 85 ++- .../Protos/cpp/google/firestore/v1/write.pb.h | 72 +++ .../firestore/v1/bloom_filter.nanopb.cc | 110 ++++ .../google/firestore/v1/bloom_filter.nanopb.h | 87 +++ .../google/firestore/v1/firestore.nanopb.cc | 18 +- .../google/firestore/v1/firestore.nanopb.h | 10 +- .../google/firestore/v1/write.nanopb.cc | 18 +- .../nanopb/google/firestore/v1/write.nanopb.h | 12 +- .../google/firestore/v1/bloom_filter.proto | 73 +++ .../google/firestore/v1/firestore.proto | 9 + .../protos/google/firestore/v1/write.proto | 15 + 15 files changed, 1979 insertions(+), 242 deletions(-) create mode 100644 Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.cc create mode 100644 Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.h create mode 100644 Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.cc create mode 100644 Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.h create mode 100644 Firestore/Protos/protos/google/firestore/v1/bloom_filter.proto diff --git a/Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.cc b/Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.cc new file mode 100644 index 00000000000..1a918a4b688 --- /dev/null +++ b/Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.cc @@ -0,0 +1,608 @@ +/* + * Copyright 2023 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/bloom_filter.proto + +#include "google/firestore/v1/bloom_filter.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BitSequence_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto; +namespace google { +namespace firestore { +namespace v1 { +class BitSequenceDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BitSequence_default_instance_; +class BloomFilterDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BloomFilter_default_instance_; +} // namespace v1 +} // namespace firestore +} // namespace google +static void InitDefaultsscc_info_BitSequence_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::google::firestore::v1::_BitSequence_default_instance_; + new (ptr) ::google::firestore::v1::BitSequence(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::google::firestore::v1::BitSequence::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BitSequence_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_BitSequence_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto}, {}}; + +static void InitDefaultsscc_info_BloomFilter_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::google::firestore::v1::_BloomFilter_default_instance_; + new (ptr) ::google::firestore::v1::BloomFilter(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::google::firestore::v1::BloomFilter::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BloomFilter_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_BloomFilter_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto}, { + &scc_info_BitSequence_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto.base,}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto[2]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BitSequence, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BitSequence, bitmap_), + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BitSequence, padding_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BloomFilter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BloomFilter, bits_), + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::BloomFilter, hash_count_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::google::firestore::v1::BitSequence)}, + { 7, -1, sizeof(::google::firestore::v1::BloomFilter)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::google::firestore::v1::_BitSequence_default_instance_), + reinterpret_cast(&::google::firestore::v1::_BloomFilter_default_instance_), +}; + +const char descriptor_table_protodef_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n&google/firestore/v1/bloom_filter.proto" + "\022\023google.firestore.v1\".\n\013BitSequence\022\016\n\006" + "bitmap\030\001 \001(\014\022\017\n\007padding\030\002 \001(\005\"Q\n\013BloomFi" + "lter\022.\n\004bits\030\001 \001(\0132 .google.firestore.v1" + ".BitSequence\022\022\n\nhash_count\030\002 \001(\005B\311\001\n\027com" + ".google.firestore.v1B\020BloomFilterProtoP\001" + "ZDone(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // bytes bitmap = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_bitmap(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 padding = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + padding_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* BitSequence::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.BitSequence) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes bitmap = 1; + if (this->bitmap().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_bitmap(), target); + } + + // int32 padding = 2; + if (this->padding() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_padding(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.BitSequence) + return target; +} + +size_t BitSequence::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.BitSequence) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes bitmap = 1; + if (this->bitmap().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bitmap()); + } + + // int32 padding = 2; + if (this->padding() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_padding()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BitSequence::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1.BitSequence) + GOOGLE_DCHECK_NE(&from, this); + const BitSequence* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1.BitSequence) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1.BitSequence) + MergeFrom(*source); + } +} + +void BitSequence::MergeFrom(const BitSequence& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.BitSequence) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.bitmap().size() > 0) { + + bitmap_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.bitmap_); + } + if (from.padding() != 0) { + _internal_set_padding(from._internal_padding()); + } +} + +void BitSequence::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1.BitSequence) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BitSequence::CopyFrom(const BitSequence& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.BitSequence) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BitSequence::IsInitialized() const { + return true; +} + +void BitSequence::InternalSwap(BitSequence* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + bitmap_.Swap(&other->bitmap_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(padding_, other->padding_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BitSequence::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void BloomFilter::InitAsDefaultInstance() { + ::google::firestore::v1::_BloomFilter_default_instance_._instance.get_mutable()->bits_ = const_cast< ::google::firestore::v1::BitSequence*>( + ::google::firestore::v1::BitSequence::internal_default_instance()); +} +class BloomFilter::_Internal { + public: + static const ::google::firestore::v1::BitSequence& bits(const BloomFilter* msg); +}; + +const ::google::firestore::v1::BitSequence& +BloomFilter::_Internal::bits(const BloomFilter* msg) { + return *msg->bits_; +} +BloomFilter::BloomFilter() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:google.firestore.v1.BloomFilter) +} +BloomFilter::BloomFilter(const BloomFilter& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_bits()) { + bits_ = new ::google::firestore::v1::BitSequence(*from.bits_); + } else { + bits_ = nullptr; + } + hash_count_ = from.hash_count_; + // @@protoc_insertion_point(copy_constructor:google.firestore.v1.BloomFilter) +} + +void BloomFilter::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BloomFilter_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto.base); + ::memset(&bits_, 0, static_cast( + reinterpret_cast(&hash_count_) - + reinterpret_cast(&bits_)) + sizeof(hash_count_)); +} + +BloomFilter::~BloomFilter() { + // @@protoc_insertion_point(destructor:google.firestore.v1.BloomFilter) + SharedDtor(); +} + +void BloomFilter::SharedDtor() { + if (this != internal_default_instance()) delete bits_; +} + +void BloomFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BloomFilter& BloomFilter::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BloomFilter_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto.base); + return *internal_default_instance(); +} + + +void BloomFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:google.firestore.v1.BloomFilter) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && bits_ != nullptr) { + delete bits_; + } + bits_ = nullptr; + hash_count_ = 0; + _internal_metadata_.Clear(); +} + +const char* BloomFilter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .google.firestore.v1.BitSequence bits = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_bits(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 hash_count = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + hash_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* BloomFilter::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.BloomFilter) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.firestore.v1.BitSequence bits = 1; + if (this->has_bits()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::bits(this), target, stream); + } + + // int32 hash_count = 2; + if (this->hash_count() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_hash_count(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.BloomFilter) + return target; +} + +size_t BloomFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.BloomFilter) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.firestore.v1.BitSequence bits = 1; + if (this->has_bits()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *bits_); + } + + // int32 hash_count = 2; + if (this->hash_count() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_hash_count()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BloomFilter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1.BloomFilter) + GOOGLE_DCHECK_NE(&from, this); + const BloomFilter* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1.BloomFilter) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1.BloomFilter) + MergeFrom(*source); + } +} + +void BloomFilter::MergeFrom(const BloomFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.BloomFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_bits()) { + _internal_mutable_bits()->::google::firestore::v1::BitSequence::MergeFrom(from._internal_bits()); + } + if (from.hash_count() != 0) { + _internal_set_hash_count(from._internal_hash_count()); + } +} + +void BloomFilter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1.BloomFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BloomFilter::CopyFrom(const BloomFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.BloomFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BloomFilter::IsInitialized() const { + return true; +} + +void BloomFilter::InternalSwap(BloomFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(bits_, other->bits_); + swap(hash_count_, other->hash_count_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BloomFilter::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace firestore +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::firestore::v1::BitSequence* Arena::CreateMaybeMessage< ::google::firestore::v1::BitSequence >(Arena* arena) { + return Arena::CreateInternal< ::google::firestore::v1::BitSequence >(arena); +} +template<> PROTOBUF_NOINLINE ::google::firestore::v1::BloomFilter* Arena::CreateMaybeMessage< ::google::firestore::v1::BloomFilter >(Arena* arena) { + return Arena::CreateInternal< ::google::firestore::v1::BloomFilter >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.h b/Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.h new file mode 100644 index 00000000000..ae26449641f --- /dev/null +++ b/Firestore/Protos/cpp/google/firestore/v1/bloom_filter.pb.h @@ -0,0 +1,574 @@ +/* + * Copyright 2023 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/bloom_filter.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3011000 +#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 3011002 < 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fbloom_5ffilter_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_2fbloom_5ffilter_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[2] + 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_2fbloom_5ffilter_2eproto; +namespace google { +namespace firestore { +namespace v1 { +class BitSequence; +class BitSequenceDefaultTypeInternal; +extern BitSequenceDefaultTypeInternal _BitSequence_default_instance_; +class BloomFilter; +class BloomFilterDefaultTypeInternal; +extern BloomFilterDefaultTypeInternal _BloomFilter_default_instance_; +} // namespace v1 +} // namespace firestore +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::firestore::v1::BitSequence* Arena::CreateMaybeMessage<::google::firestore::v1::BitSequence>(Arena*); +template<> ::google::firestore::v1::BloomFilter* Arena::CreateMaybeMessage<::google::firestore::v1::BloomFilter>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace firestore { +namespace v1 { + +// =================================================================== + +class BitSequence : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BitSequence) */ { + public: + BitSequence(); + virtual ~BitSequence(); + + BitSequence(const BitSequence& from); + BitSequence(BitSequence&& from) noexcept + : BitSequence() { + *this = ::std::move(from); + } + + inline BitSequence& operator=(const BitSequence& from) { + CopyFrom(from); + return *this; + } + inline BitSequence& operator=(BitSequence&& 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 BitSequence& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BitSequence* internal_default_instance() { + return reinterpret_cast( + &_BitSequence_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(BitSequence& a, BitSequence& b) { + a.Swap(&b); + } + inline void Swap(BitSequence* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BitSequence* New() const final { + return CreateMaybeMessage(nullptr); + } + + BitSequence* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BitSequence& from); + void MergeFrom(const BitSequence& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(BitSequence* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.firestore.v1.BitSequence"; + } + 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_2fbloom_5ffilter_2eproto); + return ::descriptor_table_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBitmapFieldNumber = 1, + kPaddingFieldNumber = 2, + }; + // bytes bitmap = 1; + void clear_bitmap(); + const std::string& bitmap() const; + void set_bitmap(const std::string& value); + void set_bitmap(std::string&& value); + void set_bitmap(const char* value); + void set_bitmap(const void* value, size_t size); + std::string* mutable_bitmap(); + std::string* release_bitmap(); + void set_allocated_bitmap(std::string* bitmap); + private: + const std::string& _internal_bitmap() const; + void _internal_set_bitmap(const std::string& value); + std::string* _internal_mutable_bitmap(); + public: + + // int32 padding = 2; + void clear_padding(); + ::PROTOBUF_NAMESPACE_ID::int32 padding() const; + void set_padding(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_padding() const; + void _internal_set_padding(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // @@protoc_insertion_point(class_scope:google.firestore.v1.BitSequence) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bitmap_; + ::PROTOBUF_NAMESPACE_ID::int32 padding_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto; +}; +// ------------------------------------------------------------------- + +class BloomFilter : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.BloomFilter) */ { + public: + BloomFilter(); + virtual ~BloomFilter(); + + BloomFilter(const BloomFilter& from); + BloomFilter(BloomFilter&& from) noexcept + : BloomFilter() { + *this = ::std::move(from); + } + + inline BloomFilter& operator=(const BloomFilter& from) { + CopyFrom(from); + return *this; + } + inline BloomFilter& operator=(BloomFilter&& 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 BloomFilter& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BloomFilter* internal_default_instance() { + return reinterpret_cast( + &_BloomFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(BloomFilter& a, BloomFilter& b) { + a.Swap(&b); + } + inline void Swap(BloomFilter* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BloomFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + BloomFilter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BloomFilter& from); + void MergeFrom(const BloomFilter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(BloomFilter* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.firestore.v1.BloomFilter"; + } + 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_2fbloom_5ffilter_2eproto); + return ::descriptor_table_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBitsFieldNumber = 1, + kHashCountFieldNumber = 2, + }; + // .google.firestore.v1.BitSequence bits = 1; + bool has_bits() const; + private: + bool _internal_has_bits() const; + public: + void clear_bits(); + const ::google::firestore::v1::BitSequence& bits() const; + ::google::firestore::v1::BitSequence* release_bits(); + ::google::firestore::v1::BitSequence* mutable_bits(); + void set_allocated_bits(::google::firestore::v1::BitSequence* bits); + private: + const ::google::firestore::v1::BitSequence& _internal_bits() const; + ::google::firestore::v1::BitSequence* _internal_mutable_bits(); + public: + + // int32 hash_count = 2; + void clear_hash_count(); + ::PROTOBUF_NAMESPACE_ID::int32 hash_count() const; + void set_hash_count(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_hash_count() const; + void _internal_set_hash_count(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // @@protoc_insertion_point(class_scope:google.firestore.v1.BloomFilter) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::firestore::v1::BitSequence* bits_; + ::PROTOBUF_NAMESPACE_ID::int32 hash_count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// BitSequence + +// bytes bitmap = 1; +inline void BitSequence::clear_bitmap() { + bitmap_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& BitSequence::bitmap() const { + // @@protoc_insertion_point(field_get:google.firestore.v1.BitSequence.bitmap) + return _internal_bitmap(); +} +inline void BitSequence::set_bitmap(const std::string& value) { + _internal_set_bitmap(value); + // @@protoc_insertion_point(field_set:google.firestore.v1.BitSequence.bitmap) +} +inline std::string* BitSequence::mutable_bitmap() { + // @@protoc_insertion_point(field_mutable:google.firestore.v1.BitSequence.bitmap) + return _internal_mutable_bitmap(); +} +inline const std::string& BitSequence::_internal_bitmap() const { + return bitmap_.GetNoArena(); +} +inline void BitSequence::_internal_set_bitmap(const std::string& value) { + + bitmap_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void BitSequence::set_bitmap(std::string&& value) { + + bitmap_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.BitSequence.bitmap) +} +inline void BitSequence::set_bitmap(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + bitmap_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:google.firestore.v1.BitSequence.bitmap) +} +inline void BitSequence::set_bitmap(const void* value, size_t size) { + + bitmap_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.BitSequence.bitmap) +} +inline std::string* BitSequence::_internal_mutable_bitmap() { + + return bitmap_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* BitSequence::release_bitmap() { + // @@protoc_insertion_point(field_release:google.firestore.v1.BitSequence.bitmap) + + return bitmap_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void BitSequence::set_allocated_bitmap(std::string* bitmap) { + if (bitmap != nullptr) { + + } else { + + } + bitmap_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bitmap); + // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BitSequence.bitmap) +} + +// int32 padding = 2; +inline void BitSequence::clear_padding() { + padding_ = 0; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 BitSequence::_internal_padding() const { + return padding_; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 BitSequence::padding() const { + // @@protoc_insertion_point(field_get:google.firestore.v1.BitSequence.padding) + return _internal_padding(); +} +inline void BitSequence::_internal_set_padding(::PROTOBUF_NAMESPACE_ID::int32 value) { + + padding_ = value; +} +inline void BitSequence::set_padding(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_padding(value); + // @@protoc_insertion_point(field_set:google.firestore.v1.BitSequence.padding) +} + +// ------------------------------------------------------------------- + +// BloomFilter + +// .google.firestore.v1.BitSequence bits = 1; +inline bool BloomFilter::_internal_has_bits() const { + return this != internal_default_instance() && bits_ != nullptr; +} +inline bool BloomFilter::has_bits() const { + return _internal_has_bits(); +} +inline void BloomFilter::clear_bits() { + if (GetArenaNoVirtual() == nullptr && bits_ != nullptr) { + delete bits_; + } + bits_ = nullptr; +} +inline const ::google::firestore::v1::BitSequence& BloomFilter::_internal_bits() const { + const ::google::firestore::v1::BitSequence* p = bits_; + return p != nullptr ? *p : *reinterpret_cast( + &::google::firestore::v1::_BitSequence_default_instance_); +} +inline const ::google::firestore::v1::BitSequence& BloomFilter::bits() const { + // @@protoc_insertion_point(field_get:google.firestore.v1.BloomFilter.bits) + return _internal_bits(); +} +inline ::google::firestore::v1::BitSequence* BloomFilter::release_bits() { + // @@protoc_insertion_point(field_release:google.firestore.v1.BloomFilter.bits) + + ::google::firestore::v1::BitSequence* temp = bits_; + bits_ = nullptr; + return temp; +} +inline ::google::firestore::v1::BitSequence* BloomFilter::_internal_mutable_bits() { + + if (bits_ == nullptr) { + auto* p = CreateMaybeMessage<::google::firestore::v1::BitSequence>(GetArenaNoVirtual()); + bits_ = p; + } + return bits_; +} +inline ::google::firestore::v1::BitSequence* BloomFilter::mutable_bits() { + // @@protoc_insertion_point(field_mutable:google.firestore.v1.BloomFilter.bits) + return _internal_mutable_bits(); +} +inline void BloomFilter::set_allocated_bits(::google::firestore::v1::BitSequence* bits) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete bits_; + } + if (bits) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + bits = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bits, submessage_arena); + } + + } else { + + } + bits_ = bits; + // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.BloomFilter.bits) +} + +// int32 hash_count = 2; +inline void BloomFilter::clear_hash_count() { + hash_count_ = 0; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 BloomFilter::_internal_hash_count() const { + return hash_count_; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 BloomFilter::hash_count() const { + // @@protoc_insertion_point(field_get:google.firestore.v1.BloomFilter.hash_count) + return _internal_hash_count(); +} +inline void BloomFilter::_internal_set_hash_count(::PROTOBUF_NAMESPACE_ID::int32 value) { + + hash_count_ = value; +} +inline void BloomFilter::set_hash_count(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_hash_count(value); + // @@protoc_insertion_point(field_set:google.firestore.v1.BloomFilter.hash_count) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace firestore +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto diff --git a/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.cc b/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.cc index e4d0ada2ac7..9bf5b20075b 100644 --- a/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.cc +++ b/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.cc @@ -36,12 +36,12 @@ extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOB extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DocumentDelete_google_2ffirestore_2fv1_2fwrite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fcommon_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DocumentMask_google_2ffirestore_2fv1_2fcommon_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DocumentRemove_google_2ffirestore_2fv1_2fwrite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListenRequest_LabelsEntry_DoNotUse_google_2ffirestore_2fv1_2ffirestore_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fcommon_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Precondition_google_2ffirestore_2fv1_2fcommon_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fquery_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_StructuredAggregationQuery_google_2ffirestore_2fv1_2fquery_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fquery_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_StructuredQuery_google_2ffirestore_2fv1_2fquery_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Target_google_2ffirestore_2fv1_2ffirestore_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Target_google_2ffirestore_2fv1_2ffirestore_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Target_DocumentsTarget_google_2ffirestore_2fv1_2ffirestore_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Target_QueryTarget_google_2ffirestore_2fv1_2ffirestore_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TargetChange_google_2ffirestore_2fv1_2ffirestore_2eproto; @@ -49,6 +49,7 @@ extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fcommon_2eproto ::PROTO extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_Write_google_2ffirestore_2fv1_2fwrite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2ffirestore_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WriteRequest_LabelsEntry_DoNotUse_google_2ffirestore_2fv1_2ffirestore_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_WriteResult_google_2ffirestore_2fv1_2fwrite_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Int32Value_google_2fprotobuf_2fwrappers_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fstatus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Status_google_2frpc_2fstatus_2eproto; namespace google { @@ -540,11 +541,12 @@ static void InitDefaultsscc_info_Target_google_2ffirestore_2fv1_2ffirestore_2epr ::google::firestore::v1::Target::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Target_google_2ffirestore_2fv1_2ffirestore_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Target_google_2ffirestore_2fv1_2ffirestore_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Target_google_2ffirestore_2fv1_2ffirestore_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_Target_google_2ffirestore_2fv1_2ffirestore_2eproto}, { &scc_info_Target_QueryTarget_google_2ffirestore_2fv1_2ffirestore_2eproto.base, &scc_info_Target_DocumentsTarget_google_2ffirestore_2fv1_2ffirestore_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Int32Value_google_2fprotobuf_2fwrappers_2eproto.base,}}; static void InitDefaultsscc_info_Target_DocumentsTarget_google_2ffirestore_2fv1_2ffirestore_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -897,6 +899,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2ffirestore_2fv1_2ffire offsetof(::google::firestore::v1::TargetDefaultTypeInternal, read_time_), PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, target_id_), PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, once_), + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, expected_count_), PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, target_type_), PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Target, resume_type_), ~0u, // no _has_bits_ @@ -952,9 +955,9 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 214, -1, sizeof(::google::firestore::v1::Target_DocumentsTarget)}, { 220, -1, sizeof(::google::firestore::v1::Target_QueryTarget)}, { 228, -1, sizeof(::google::firestore::v1::Target)}, - { 241, -1, sizeof(::google::firestore::v1::TargetChange)}, - { 251, -1, sizeof(::google::firestore::v1::ListCollectionIdsRequest)}, - { 259, -1, sizeof(::google::firestore::v1::ListCollectionIdsResponse)}, + { 242, -1, sizeof(::google::firestore::v1::TargetChange)}, + { 252, -1, sizeof(::google::firestore::v1::ListCollectionIdsRequest)}, + { 260, -1, sizeof(::google::firestore::v1::ListCollectionIdsResponse)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -998,198 +1001,200 @@ const char descriptor_table_protodef_google_2ffirestore_2fv1_2ffirestore_2eproto "roto\032\037google/firestore/v1/query.proto\032\037g" "oogle/firestore/v1/write.proto\032\033google/p" "rotobuf/empty.proto\032\037google/protobuf/tim" - "estamp.proto\032\027google/rpc/status.proto\"\263\001" - "\n\022GetDocumentRequest\022\014\n\004name\030\001 \001(\t\022/\n\004ma" - "sk\030\002 \001(\0132!.google.firestore.v1.DocumentM" - "ask\022\025\n\013transaction\030\003 \001(\014H\000\022/\n\tread_time\030" - "\005 \001(\0132\032.google.protobuf.TimestampH\000B\026\n\024c" - "onsistency_selector\"\235\002\n\024ListDocumentsReq" - "uest\022\016\n\006parent\030\001 \001(\t\022\025\n\rcollection_id\030\002 " - "\001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001" - "(\t\022\020\n\010order_by\030\006 \001(\t\022/\n\004mask\030\007 \001(\0132!.goo" - "gle.firestore.v1.DocumentMask\022\025\n\013transac" - "tion\030\010 \001(\014H\000\022/\n\tread_time\030\n \001(\0132\032.google" - ".protobuf.TimestampH\000\022\024\n\014show_missing\030\014 " - "\001(\010B\026\n\024consistency_selector\"b\n\025ListDocum" - "entsResponse\0220\n\tdocuments\030\001 \003(\0132\035.google" - ".firestore.v1.Document\022\027\n\017next_page_toke" - "n\030\002 \001(\t\"\265\001\n\025CreateDocumentRequest\022\016\n\006par" - "ent\030\001 \001(\t\022\025\n\rcollection_id\030\002 \001(\t\022\023\n\013docu" - "ment_id\030\003 \001(\t\022/\n\010document\030\004 \001(\0132\035.google" - ".firestore.v1.Document\022/\n\004mask\030\005 \001(\0132!.g" - "oogle.firestore.v1.DocumentMask\"\356\001\n\025Upda" - "teDocumentRequest\022/\n\010document\030\001 \001(\0132\035.go" - "ogle.firestore.v1.Document\0226\n\013update_mas" - "k\030\002 \001(\0132!.google.firestore.v1.DocumentMa" - "sk\022/\n\004mask\030\003 \001(\0132!.google.firestore.v1.D" - "ocumentMask\022;\n\020current_document\030\004 \001(\0132!." - "google.firestore.v1.Precondition\"b\n\025Dele" - "teDocumentRequest\022\014\n\004name\030\001 \001(\t\022;\n\020curre" - "nt_document\030\002 \001(\0132!.google.firestore.v1." - "Precondition\"\224\002\n\030BatchGetDocumentsReques" - "t\022\020\n\010database\030\001 \001(\t\022\021\n\tdocuments\030\002 \003(\t\022/" - "\n\004mask\030\003 \001(\0132!.google.firestore.v1.Docum" - "entMask\022\025\n\013transaction\030\004 \001(\014H\000\022B\n\017new_tr" - "ansaction\030\005 \001(\0132\'.google.firestore.v1.Tr" - "ansactionOptionsH\000\022/\n\tread_time\030\007 \001(\0132\032." + "estamp.proto\032\036google/protobuf/wrappers.p" + "roto\032\027google/rpc/status.proto\"\263\001\n\022GetDoc" + "umentRequest\022\014\n\004name\030\001 \001(\t\022/\n\004mask\030\002 \001(\013" + "2!.google.firestore.v1.DocumentMask\022\025\n\013t" + "ransaction\030\003 \001(\014H\000\022/\n\tread_time\030\005 \001(\0132\032." "google.protobuf.TimestampH\000B\026\n\024consisten" - "cy_selector\"\254\001\n\031BatchGetDocumentsRespons" - "e\022.\n\005found\030\001 \001(\0132\035.google.firestore.v1.D" - "ocumentH\000\022\021\n\007missing\030\002 \001(\tH\000\022\023\n\013transact" - "ion\030\003 \001(\014\022-\n\tread_time\030\004 \001(\0132\032.google.pr" - "otobuf.TimestampB\010\n\006result\"e\n\027BeginTrans" - "actionRequest\022\020\n\010database\030\001 \001(\t\0228\n\007optio" - "ns\030\002 \001(\0132\'.google.firestore.v1.Transacti" - "onOptions\"/\n\030BeginTransactionResponse\022\023\n" - "\013transaction\030\001 \001(\014\"b\n\rCommitRequest\022\020\n\010d" - "atabase\030\001 \001(\t\022*\n\006writes\030\002 \003(\0132\032.google.f" - "irestore.v1.Write\022\023\n\013transaction\030\003 \001(\014\"z" - "\n\016CommitResponse\0227\n\rwrite_results\030\001 \003(\0132" - " .google.firestore.v1.WriteResult\022/\n\013com" - "mit_time\030\002 \001(\0132\032.google.protobuf.Timesta" - "mp\"8\n\017RollbackRequest\022\020\n\010database\030\001 \001(\t\022" - "\023\n\013transaction\030\002 \001(\014\"\225\002\n\017RunQueryRequest" - "\022\016\n\006parent\030\001 \001(\t\022@\n\020structured_query\030\002 \001" - "(\0132$.google.firestore.v1.StructuredQuery" - "H\000\022\025\n\013transaction\030\005 \001(\014H\001\022B\n\017new_transac" - "tion\030\006 \001(\0132\'.google.firestore.v1.Transac" - "tionOptionsH\001\022/\n\tread_time\030\007 \001(\0132\032.googl" - "e.protobuf.TimestampH\001B\014\n\nquery_typeB\026\n\024" - "consistency_selector\"\240\001\n\020RunQueryRespons" - "e\022\023\n\013transaction\030\002 \001(\014\022/\n\010document\030\001 \001(\013" - "2\035.google.firestore.v1.Document\022-\n\tread_" - "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022\027" - "\n\017skipped_results\030\004 \001(\005\"\267\002\n\032RunAggregati" - "onQueryRequest\022\016\n\006parent\030\001 \001(\t\022W\n\034struct" - "ured_aggregation_query\030\002 \001(\0132/.google.fi" - "restore.v1.StructuredAggregationQueryH\000\022" - "\025\n\013transaction\030\004 \001(\014H\001\022B\n\017new_transactio" + "cy_selector\"\235\002\n\024ListDocumentsRequest\022\016\n\006" + "parent\030\001 \001(\t\022\025\n\rcollection_id\030\002 \001(\t\022\021\n\tp" + "age_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020\n\010or" + "der_by\030\006 \001(\t\022/\n\004mask\030\007 \001(\0132!.google.fire" + "store.v1.DocumentMask\022\025\n\013transaction\030\010 \001" + "(\014H\000\022/\n\tread_time\030\n \001(\0132\032.google.protobu" + "f.TimestampH\000\022\024\n\014show_missing\030\014 \001(\010B\026\n\024c" + "onsistency_selector\"b\n\025ListDocumentsResp" + "onse\0220\n\tdocuments\030\001 \003(\0132\035.google.firesto" + "re.v1.Document\022\027\n\017next_page_token\030\002 \001(\t\"" + "\265\001\n\025CreateDocumentRequest\022\016\n\006parent\030\001 \001(" + "\t\022\025\n\rcollection_id\030\002 \001(\t\022\023\n\013document_id\030" + "\003 \001(\t\022/\n\010document\030\004 \001(\0132\035.google.firesto" + "re.v1.Document\022/\n\004mask\030\005 \001(\0132!.google.fi" + "restore.v1.DocumentMask\"\356\001\n\025UpdateDocume" + "ntRequest\022/\n\010document\030\001 \001(\0132\035.google.fir" + "estore.v1.Document\0226\n\013update_mask\030\002 \001(\0132" + "!.google.firestore.v1.DocumentMask\022/\n\004ma" + "sk\030\003 \001(\0132!.google.firestore.v1.DocumentM" + "ask\022;\n\020current_document\030\004 \001(\0132!.google.f" + "irestore.v1.Precondition\"b\n\025DeleteDocume" + "ntRequest\022\014\n\004name\030\001 \001(\t\022;\n\020current_docum" + "ent\030\002 \001(\0132!.google.firestore.v1.Precondi" + "tion\"\224\002\n\030BatchGetDocumentsRequest\022\020\n\010dat" + "abase\030\001 \001(\t\022\021\n\tdocuments\030\002 \003(\t\022/\n\004mask\030\003" + " \001(\0132!.google.firestore.v1.DocumentMask\022" + "\025\n\013transaction\030\004 \001(\014H\000\022B\n\017new_transactio" "n\030\005 \001(\0132\'.google.firestore.v1.Transactio" - "nOptionsH\001\022/\n\tread_time\030\006 \001(\0132\032.google.p" - "rotobuf.TimestampH\001B\014\n\nquery_typeB\026\n\024con" - "sistency_selector\"\231\001\n\033RunAggregationQuer" - "yResponse\0226\n\006result\030\001 \001(\0132&.google.fires" - "tore.v1.AggregationResult\022\023\n\013transaction" - "\030\002 \001(\014\022-\n\tread_time\030\003 \001(\0132\032.google.proto" - "buf.Timestamp\"\343\001\n\014WriteRequest\022\020\n\010databa" - "se\030\001 \001(\t\022\021\n\tstream_id\030\002 \001(\t\022*\n\006writes\030\003 " - "\003(\0132\032.google.firestore.v1.Write\022\024\n\014strea" - "m_token\030\004 \001(\014\022=\n\006labels\030\005 \003(\0132-.google.f" - "irestore.v1.WriteRequest.LabelsEntry\032-\n\013" - "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - "\0028\001\"\242\001\n\rWriteResponse\022\021\n\tstream_id\030\001 \001(\t" - "\022\024\n\014stream_token\030\002 \001(\014\0227\n\rwrite_results\030" - "\003 \003(\0132 .google.firestore.v1.WriteResult\022" - "/\n\013commit_time\030\004 \001(\0132\032.google.protobuf.T" - "imestamp\"\355\001\n\rListenRequest\022\020\n\010database\030\001" - " \001(\t\0221\n\nadd_target\030\002 \001(\0132\033.google.firest" - "ore.v1.TargetH\000\022\027\n\rremove_target\030\003 \001(\005H\000" - "\022>\n\006labels\030\004 \003(\0132..google.firestore.v1.L" - "istenRequest.LabelsEntry\032-\n\013LabelsEntry\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\017\n\rtarge" - "t_change\"\325\002\n\016ListenResponse\022:\n\rtarget_ch" - "ange\030\002 \001(\0132!.google.firestore.v1.TargetC" - "hangeH\000\022>\n\017document_change\030\003 \001(\0132#.googl" - "e.firestore.v1.DocumentChangeH\000\022>\n\017docum" - "ent_delete\030\004 \001(\0132#.google.firestore.v1.D" - "ocumentDeleteH\000\022>\n\017document_remove\030\006 \001(\013" - "2#.google.firestore.v1.DocumentRemoveH\000\022" - "6\n\006filter\030\005 \001(\0132$.google.firestore.v1.Ex" - "istenceFilterH\000B\017\n\rresponse_type\"\241\003\n\006Tar" - "get\0228\n\005query\030\002 \001(\0132\'.google.firestore.v1" - ".Target.QueryTargetH\000\022@\n\tdocuments\030\003 \001(\013" - "2+.google.firestore.v1.Target.DocumentsT" - "argetH\000\022\026\n\014resume_token\030\004 \001(\014H\001\022/\n\tread_" - "time\030\013 \001(\0132\032.google.protobuf.TimestampH\001" - "\022\021\n\ttarget_id\030\005 \001(\005\022\014\n\004once\030\006 \001(\010\032$\n\017Doc" - "umentsTarget\022\021\n\tdocuments\030\002 \003(\t\032m\n\013Query" - "Target\022\016\n\006parent\030\001 \001(\t\022@\n\020structured_que" - "ry\030\002 \001(\0132$.google.firestore.v1.Structure" - "dQueryH\000B\014\n\nquery_typeB\r\n\013target_typeB\r\n" - "\013resume_type\"\252\002\n\014TargetChange\022N\n\022target_" - "change_type\030\001 \001(\01622.google.firestore.v1." - "TargetChange.TargetChangeType\022\022\n\ntarget_" - "ids\030\002 \003(\005\022!\n\005cause\030\003 \001(\0132\022.google.rpc.St" - "atus\022\024\n\014resume_token\030\004 \001(\014\022-\n\tread_time\030" - "\006 \001(\0132\032.google.protobuf.Timestamp\"N\n\020Tar" - "getChangeType\022\r\n\tNO_CHANGE\020\000\022\007\n\003ADD\020\001\022\n\n" - "\006REMOVE\020\002\022\013\n\007CURRENT\020\003\022\t\n\005RESET\020\004\"Q\n\030Lis" - "tCollectionIdsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n" - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"L\n\031" - "ListCollectionIdsResponse\022\026\n\016collection_" - "ids\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\236\024\n\tF" - "irestore\022\217\001\n\013GetDocument\022\'.google.firest" - "ore.v1.GetDocumentRequest\032\035.google.fires" - "tore.v1.Document\"8\202\323\344\223\0022\0220/v1/{name=proj" - "ects/*/databases/*/documents/*/**}\022\262\001\n\rL" - "istDocuments\022).google.firestore.v1.ListD" - "ocumentsRequest\032*.google.firestore.v1.Li" - "stDocumentsResponse\"J\202\323\344\223\002D\022B/v1/{parent" - "=projects/*/databases/*/documents/*/**}/" - "{collection_id}\022\257\001\n\016CreateDocument\022*.goo" - "gle.firestore.v1.CreateDocumentRequest\032\035" - ".google.firestore.v1.Document\"R\202\323\344\223\002L\"@/" - "v1/{parent=projects/*/databases/*/docume" - "nts/**}/{collection_id}:\010document\022\250\001\n\016Up" - "dateDocument\022*.google.firestore.v1.Updat" - "eDocumentRequest\032\035.google.firestore.v1.D" - "ocument\"K\202\323\344\223\002E29/v1/{document.name=proj" - "ects/*/databases/*/documents/*/**}:\010docu" - "ment\022\216\001\n\016DeleteDocument\022*.google.firesto" - "re.v1.DeleteDocumentRequest\032\026.google.pro" - "tobuf.Empty\"8\202\323\344\223\0022*0/v1/{name=projects/" - "*/databases/*/documents/*/**}\022\271\001\n\021BatchG" - "etDocuments\022-.google.firestore.v1.BatchG" - "etDocumentsRequest\032..google.firestore.v1" - ".BatchGetDocumentsResponse\"C\202\323\344\223\002=\"8/v1/" - "{database=projects/*/databases/*}/docume" - "nts:batchGet:\001*0\001\022\274\001\n\020BeginTransaction\022," - ".google.firestore.v1.BeginTransactionReq" - "uest\032-.google.firestore.v1.BeginTransact" - "ionResponse\"K\202\323\344\223\002E\"@/v1/{database=proje" - "cts/*/databases/*}/documents:beginTransa" - "ction:\001*\022\224\001\n\006Commit\022\".google.firestore.v" - "1.CommitRequest\032#.google.firestore.v1.Co" - "mmitResponse\"A\202\323\344\223\002;\"6/v1/{database=proj" - "ects/*/databases/*}/documents:commit:\001*\022" - "\215\001\n\010Rollback\022$.google.firestore.v1.Rollb" - "ackRequest\032\026.google.protobuf.Empty\"C\202\323\344\223" - "\002=\"8/v1/{database=projects/*/databases/*" - "}/documents:rollback:\001*\022\337\001\n\010RunQuery\022$.g" - "oogle.firestore.v1.RunQueryRequest\032%.goo" - "gle.firestore.v1.RunQueryResponse\"\203\001\202\323\344\223" - "\002}\"6/v1/{parent=projects/*/databases/*/d" - "ocuments}:runQuery:\001*Z@\";/v1/{parent=pro" - "jects/*/databases/*/documents/*/**}:runQ" - "uery:\001*0\001\022\227\002\n\023RunAggregationQuery\022/.goog" - "le.firestore.v1.RunAggregationQueryReque" - "st\0320.google.firestore.v1.RunAggregationQ" - "ueryResponse\"\232\001\202\323\344\223\002\223\001\"A/v1/{parent=proj" - "ects/*/databases/*/documents}:runAggrega" - "tionQuery:\001*ZK\"F/v1/{parent=projects/*/d" - "atabases/*/documents/*/**}:runAggregatio" - "nQuery:\001*0\001\022\224\001\n\005Write\022!.google.firestore" - ".v1.WriteRequest\032\".google.firestore.v1.W" - "riteResponse\"@\202\323\344\223\002:\"5/v1/{database=proj" - "ects/*/databases/*}/documents:write:\001*(\001" - "0\001\022\230\001\n\006Listen\022\".google.firestore.v1.List" - "enRequest\032#.google.firestore.v1.ListenRe" - "sponse\"A\202\323\344\223\002;\"6/v1/{database=projects/*" - "/databases/*}/documents:listen:\001*(\0010\001\022\213\002" - "\n\021ListCollectionIds\022-.google.firestore.v" - "1.ListCollectionIdsRequest\032..google.fire" - "store.v1.ListCollectionIdsResponse\"\226\001\202\323\344" - "\223\002\217\001\"\?/v1/{parent=projects/*/databases/*" - "/documents}:listCollectionIds:\001*ZI\"D/v1/" - "{parent=projects/*/databases/*/documents" - "/*/**}:listCollectionIds:\001*B\262\001\n\027com.goog" - "le.firestore.v1B\016FirestoreProtoP\001Z\n\006labe" + "ls\030\004 \003(\0132..google.firestore.v1.ListenReq" + "uest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\017\n\rtarget_change" + "\"\325\002\n\016ListenResponse\022:\n\rtarget_change\030\002 \001" + "(\0132!.google.firestore.v1.TargetChangeH\000\022" + ">\n\017document_change\030\003 \001(\0132#.google.firest" + "ore.v1.DocumentChangeH\000\022>\n\017document_dele" + "te\030\004 \001(\0132#.google.firestore.v1.DocumentD" + "eleteH\000\022>\n\017document_remove\030\006 \001(\0132#.googl" + "e.firestore.v1.DocumentRemoveH\000\0226\n\006filte" + "r\030\005 \001(\0132$.google.firestore.v1.ExistenceF" + "ilterH\000B\017\n\rresponse_type\"\326\003\n\006Target\0228\n\005q" + "uery\030\002 \001(\0132\'.google.firestore.v1.Target." + "QueryTargetH\000\022@\n\tdocuments\030\003 \001(\0132+.googl" + "e.firestore.v1.Target.DocumentsTargetH\000\022" + "\026\n\014resume_token\030\004 \001(\014H\001\022/\n\tread_time\030\013 \001" + "(\0132\032.google.protobuf.TimestampH\001\022\021\n\ttarg" + "et_id\030\005 \001(\005\022\014\n\004once\030\006 \001(\010\0223\n\016expected_co" + "unt\030\014 \001(\0132\033.google.protobuf.Int32Value\032$" + "\n\017DocumentsTarget\022\021\n\tdocuments\030\002 \003(\t\032m\n\013" + "QueryTarget\022\016\n\006parent\030\001 \001(\t\022@\n\020structure" + "d_query\030\002 \001(\0132$.google.firestore.v1.Stru" + "cturedQueryH\000B\014\n\nquery_typeB\r\n\013target_ty" + "peB\r\n\013resume_type\"\252\002\n\014TargetChange\022N\n\022ta" + "rget_change_type\030\001 \001(\01622.google.firestor" + "e.v1.TargetChange.TargetChangeType\022\022\n\nta" + "rget_ids\030\002 \003(\005\022!\n\005cause\030\003 \001(\0132\022.google.r" + "pc.Status\022\024\n\014resume_token\030\004 \001(\014\022-\n\tread_" + "time\030\006 \001(\0132\032.google.protobuf.Timestamp\"N" + "\n\020TargetChangeType\022\r\n\tNO_CHANGE\020\000\022\007\n\003ADD" + "\020\001\022\n\n\006REMOVE\020\002\022\013\n\007CURRENT\020\003\022\t\n\005RESET\020\004\"Q" + "\n\030ListCollectionIdsRequest\022\016\n\006parent\030\001 \001" + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + "\t\"L\n\031ListCollectionIdsResponse\022\026\n\016collec" + "tion_ids\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2" + "\236\024\n\tFirestore\022\217\001\n\013GetDocument\022\'.google.f" + "irestore.v1.GetDocumentRequest\032\035.google." + "firestore.v1.Document\"8\202\323\344\223\0022\0220/v1/{name" + "=projects/*/databases/*/documents/*/**}\022" + "\262\001\n\rListDocuments\022).google.firestore.v1." + "ListDocumentsRequest\032*.google.firestore." + "v1.ListDocumentsResponse\"J\202\323\344\223\002D\022B/v1/{p" + "arent=projects/*/databases/*/documents/*" + "/**}/{collection_id}\022\257\001\n\016CreateDocument\022" + "*.google.firestore.v1.CreateDocumentRequ" + "est\032\035.google.firestore.v1.Document\"R\202\323\344\223" + "\002L\"@/v1/{parent=projects/*/databases/*/d" + "ocuments/**}/{collection_id}:\010document\022\250" + "\001\n\016UpdateDocument\022*.google.firestore.v1." + "UpdateDocumentRequest\032\035.google.firestore" + ".v1.Document\"K\202\323\344\223\002E29/v1/{document.name" + "=projects/*/databases/*/documents/*/**}:" + "\010document\022\216\001\n\016DeleteDocument\022*.google.fi" + "restore.v1.DeleteDocumentRequest\032\026.googl" + "e.protobuf.Empty\"8\202\323\344\223\0022*0/v1/{name=proj" + "ects/*/databases/*/documents/*/**}\022\271\001\n\021B" + "atchGetDocuments\022-.google.firestore.v1.B" + "atchGetDocumentsRequest\032..google.firesto" + "re.v1.BatchGetDocumentsResponse\"C\202\323\344\223\002=\"" + "8/v1/{database=projects/*/databases/*}/d" + "ocuments:batchGet:\001*0\001\022\274\001\n\020BeginTransact" + "ion\022,.google.firestore.v1.BeginTransacti" + "onRequest\032-.google.firestore.v1.BeginTra" + "nsactionResponse\"K\202\323\344\223\002E\"@/v1/{database=" + "projects/*/databases/*}/documents:beginT" + "ransaction:\001*\022\224\001\n\006Commit\022\".google.firest" + "ore.v1.CommitRequest\032#.google.firestore." + "v1.CommitResponse\"A\202\323\344\223\002;\"6/v1/{database" + "=projects/*/databases/*}/documents:commi" + "t:\001*\022\215\001\n\010Rollback\022$.google.firestore.v1." + "RollbackRequest\032\026.google.protobuf.Empty\"" + "C\202\323\344\223\002=\"8/v1/{database=projects/*/databa" + "ses/*}/documents:rollback:\001*\022\337\001\n\010RunQuer" + "y\022$.google.firestore.v1.RunQueryRequest\032" + "%.google.firestore.v1.RunQueryResponse\"\203" + "\001\202\323\344\223\002}\"6/v1/{parent=projects/*/database" + "s/*/documents}:runQuery:\001*Z@\";/v1/{paren" + "t=projects/*/databases/*/documents/*/**}" + ":runQuery:\001*0\001\022\227\002\n\023RunAggregationQuery\022/" + ".google.firestore.v1.RunAggregationQuery" + "Request\0320.google.firestore.v1.RunAggrega" + "tionQueryResponse\"\232\001\202\323\344\223\002\223\001\"A/v1/{parent" + "=projects/*/databases/*/documents}:runAg" + "gregationQuery:\001*ZK\"F/v1/{parent=project" + "s/*/databases/*/documents/*/**}:runAggre" + "gationQuery:\001*0\001\022\224\001\n\005Write\022!.google.fire" + "store.v1.WriteRequest\032\".google.firestore" + ".v1.WriteResponse\"@\202\323\344\223\002:\"5/v1/{database" + "=projects/*/databases/*}/documents:write" + ":\001*(\0010\001\022\230\001\n\006Listen\022\".google.firestore.v1" + ".ListenRequest\032#.google.firestore.v1.Lis" + "tenResponse\"A\202\323\344\223\002;\"6/v1/{database=proje" + "cts/*/databases/*}/documents:listen:\001*(\001" + "0\001\022\213\002\n\021ListCollectionIds\022-.google.firest" + "ore.v1.ListCollectionIdsRequest\032..google" + ".firestore.v1.ListCollectionIdsResponse\"" + "\226\001\202\323\344\223\002\217\001\"\?/v1/{parent=projects/*/databa" + "ses/*/documents}:listCollectionIds:\001*ZI\"" + "D/v1/{parent=projects/*/databases/*/docu" + "ments/*/**}:listCollectionIds:\001*B\262\001\n\027com" + ".google.firestore.v1B\016FirestoreProtoP\001Z<" + "google.golang.org/genproto/googleapis/fi" + "restore/v1;firestore\242\002\004GCFS\252\002\036Google.Clo" + "ud.Firestore.V1Beta1\312\002\036Google\\Cloud\\Fire" + "store\\V1beta1b\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_deps[9] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_deps[10] = { &::descriptor_table_google_2fapi_2fannotations_2eproto, &::descriptor_table_google_2ffirestore_2fv1_2faggregation_5fresult_2eproto, &::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto, @@ -1198,6 +1203,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor &::descriptor_table_google_2ffirestore_2fv1_2fwrite_2eproto, &::descriptor_table_google_2fprotobuf_2fempty_2eproto, &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + &::descriptor_table_google_2fprotobuf_2fwrappers_2eproto, &::descriptor_table_google_2frpc_2fstatus_2eproto, }; static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_sccs[29] = { @@ -1234,8 +1240,8 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_goo static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once; static bool descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto = { - &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_initialized, descriptor_table_protodef_google_2ffirestore_2fv1_2ffirestore_2eproto, "google/firestore/v1/firestore.proto", 7896, - &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once, descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_sccs, descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_deps, 29, 9, + &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_initialized, descriptor_table_protodef_google_2ffirestore_2fv1_2ffirestore_2eproto, "google/firestore/v1/firestore.proto", 7981, + &descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_once, descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_sccs, descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto_deps, 29, 10, schemas, file_default_instances, TableStruct_google_2ffirestore_2fv1_2ffirestore_2eproto::offsets, file_level_metadata_google_2ffirestore_2fv1_2ffirestore_2eproto, 29, file_level_enum_descriptors_google_2ffirestore_2fv1_2ffirestore_2eproto, file_level_service_descriptors_google_2ffirestore_2fv1_2ffirestore_2eproto, }; @@ -9164,12 +9170,15 @@ void Target::InitAsDefaultInstance() { &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::google::firestore::v1::_Target_default_instance_.read_time_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); + ::google::firestore::v1::_Target_default_instance_._instance.get_mutable()->expected_count_ = const_cast< PROTOBUF_NAMESPACE_ID::Int32Value*>( + PROTOBUF_NAMESPACE_ID::Int32Value::internal_default_instance()); } class Target::_Internal { public: static const ::google::firestore::v1::Target_QueryTarget& query(const Target* msg); static const ::google::firestore::v1::Target_DocumentsTarget& documents(const Target* msg); static const PROTOBUF_NAMESPACE_ID::Timestamp& read_time(const Target* msg); + static const PROTOBUF_NAMESPACE_ID::Int32Value& expected_count(const Target* msg); }; const ::google::firestore::v1::Target_QueryTarget& @@ -9184,6 +9193,10 @@ const PROTOBUF_NAMESPACE_ID::Timestamp& Target::_Internal::read_time(const Target* msg) { return *msg->resume_type_.read_time_; } +const PROTOBUF_NAMESPACE_ID::Int32Value& +Target::_Internal::expected_count(const Target* msg) { + return *msg->expected_count_; +} void Target::set_allocated_query(::google::firestore::v1::Target_QueryTarget* query) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_target_type(); @@ -9233,6 +9246,12 @@ void Target::clear_read_time() { clear_has_resume_type(); } } +void Target::clear_expected_count() { + if (GetArenaNoVirtual() == nullptr && expected_count_ != nullptr) { + delete expected_count_; + } + expected_count_ = nullptr; +} Target::Target() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -9242,6 +9261,11 @@ Target::Target(const Target& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_expected_count()) { + expected_count_ = new PROTOBUF_NAMESPACE_ID::Int32Value(*from.expected_count_); + } else { + expected_count_ = nullptr; + } ::memcpy(&target_id_, &from.target_id_, static_cast(reinterpret_cast(&once_) - reinterpret_cast(&target_id_)) + sizeof(once_)); @@ -9278,9 +9302,9 @@ Target::Target(const Target& from) void Target::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Target_google_2ffirestore_2fv1_2ffirestore_2eproto.base); - ::memset(&target_id_, 0, static_cast( + ::memset(&expected_count_, 0, static_cast( reinterpret_cast(&once_) - - reinterpret_cast(&target_id_)) + sizeof(once_)); + reinterpret_cast(&expected_count_)) + sizeof(once_)); clear_has_target_type(); clear_has_resume_type(); } @@ -9291,6 +9315,7 @@ Target::~Target() { } void Target::SharedDtor() { + if (this != internal_default_instance()) delete expected_count_; if (has_target_type()) { clear_target_type(); } @@ -9351,6 +9376,10 @@ void Target::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + if (GetArenaNoVirtual() == nullptr && expected_count_ != nullptr) { + delete expected_count_; + } + expected_count_ = nullptr; ::memset(&target_id_, 0, static_cast( reinterpret_cast(&once_) - reinterpret_cast(&target_id_)) + sizeof(once_)); @@ -9409,6 +9438,13 @@ const char* Target::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int CHK_(ptr); } else goto handle_unusual; continue; + // .google.protobuf.Int32Value expected_count = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_expected_count(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -9477,6 +9513,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Target::_InternalSerialize( 11, _Internal::read_time(this), target, stream); } + // .google.protobuf.Int32Value expected_count = 12; + if (this->has_expected_count()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 12, _Internal::expected_count(this), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target, stream); @@ -9493,6 +9537,13 @@ size_t Target::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // .google.protobuf.Int32Value expected_count = 12; + if (this->has_expected_count()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expected_count_); + } + // int32 target_id = 5; if (this->target_id() != 0) { total_size += 1 + @@ -9574,6 +9625,9 @@ void Target::MergeFrom(const Target& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.has_expected_count()) { + _internal_mutable_expected_count()->PROTOBUF_NAMESPACE_ID::Int32Value::MergeFrom(from._internal_expected_count()); + } if (from.target_id() != 0) { _internal_set_target_id(from._internal_target_id()); } @@ -9629,6 +9683,7 @@ bool Target::IsInitialized() const { void Target::InternalSwap(Target* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); + swap(expected_count_, other->expected_count_); swap(target_id_, other->target_id_); swap(once_, other->once_); swap(target_type_, other->target_type_); diff --git a/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.h b/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.h index ca9ee65d692..3f1c9adee68 100644 --- a/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.h +++ b/Firestore/Protos/cpp/google/firestore/v1/firestore.pb.h @@ -60,6 +60,7 @@ #include "google/firestore/v1/write.pb.h" #include #include +#include #include "google/rpc/status.pb.h" // @@protoc_insertion_point(includes) #include @@ -4830,6 +4831,7 @@ class Target : // accessors ------------------------------------------------------- enum : int { + kExpectedCountFieldNumber = 12, kTargetIdFieldNumber = 5, kOnceFieldNumber = 6, kQueryFieldNumber = 2, @@ -4837,6 +4839,21 @@ class Target : kResumeTokenFieldNumber = 4, kReadTimeFieldNumber = 11, }; + // .google.protobuf.Int32Value expected_count = 12; + bool has_expected_count() const; + private: + bool _internal_has_expected_count() const; + public: + void clear_expected_count(); + const PROTOBUF_NAMESPACE_ID::Int32Value& expected_count() const; + PROTOBUF_NAMESPACE_ID::Int32Value* release_expected_count(); + PROTOBUF_NAMESPACE_ID::Int32Value* mutable_expected_count(); + void set_allocated_expected_count(PROTOBUF_NAMESPACE_ID::Int32Value* expected_count); + private: + const PROTOBUF_NAMESPACE_ID::Int32Value& _internal_expected_count() const; + PROTOBUF_NAMESPACE_ID::Int32Value* _internal_mutable_expected_count(); + public: + // int32 target_id = 5; void clear_target_id(); ::PROTOBUF_NAMESPACE_ID::int32 target_id() const; @@ -4938,6 +4955,7 @@ class Target : inline void clear_has_resume_type(); ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + PROTOBUF_NAMESPACE_ID::Int32Value* expected_count_; ::PROTOBUF_NAMESPACE_ID::int32 target_id_; bool once_; union TargetTypeUnion { @@ -10599,6 +10617,61 @@ inline void Target::set_once(bool value) { // @@protoc_insertion_point(field_set:google.firestore.v1.Target.once) } +// .google.protobuf.Int32Value expected_count = 12; +inline bool Target::_internal_has_expected_count() const { + return this != internal_default_instance() && expected_count_ != nullptr; +} +inline bool Target::has_expected_count() const { + return _internal_has_expected_count(); +} +inline const PROTOBUF_NAMESPACE_ID::Int32Value& Target::_internal_expected_count() const { + const PROTOBUF_NAMESPACE_ID::Int32Value* p = expected_count_; + return p != nullptr ? *p : *reinterpret_cast( + &PROTOBUF_NAMESPACE_ID::_Int32Value_default_instance_); +} +inline const PROTOBUF_NAMESPACE_ID::Int32Value& Target::expected_count() const { + // @@protoc_insertion_point(field_get:google.firestore.v1.Target.expected_count) + return _internal_expected_count(); +} +inline PROTOBUF_NAMESPACE_ID::Int32Value* Target::release_expected_count() { + // @@protoc_insertion_point(field_release:google.firestore.v1.Target.expected_count) + + PROTOBUF_NAMESPACE_ID::Int32Value* temp = expected_count_; + expected_count_ = nullptr; + return temp; +} +inline PROTOBUF_NAMESPACE_ID::Int32Value* Target::_internal_mutable_expected_count() { + + if (expected_count_ == nullptr) { + auto* p = CreateMaybeMessage(GetArenaNoVirtual()); + expected_count_ = p; + } + return expected_count_; +} +inline PROTOBUF_NAMESPACE_ID::Int32Value* Target::mutable_expected_count() { + // @@protoc_insertion_point(field_mutable:google.firestore.v1.Target.expected_count) + return _internal_mutable_expected_count(); +} +inline void Target::set_allocated_expected_count(PROTOBUF_NAMESPACE_ID::Int32Value* expected_count) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(expected_count_); + } + if (expected_count) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expected_count)->GetArena(); + if (message_arena != submessage_arena) { + expected_count = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expected_count, submessage_arena); + } + + } else { + + } + expected_count_ = expected_count; + // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Target.expected_count) +} + inline bool Target::has_target_type() const { return target_type_case() != TARGET_TYPE_NOT_SET; } diff --git a/Firestore/Protos/cpp/google/firestore/v1/write.pb.cc b/Firestore/Protos/cpp/google/firestore/v1/write.pb.cc index f331081b05d..9cd2f3fd3c1 100644 --- a/Firestore/Protos/cpp/google/firestore/v1/write.pb.cc +++ b/Firestore/Protos/cpp/google/firestore/v1/write.pb.cc @@ -31,6 +31,7 @@ // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fdocument_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BloomFilter_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fdocument_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Document_google_2ffirestore_2fv1_2fdocument_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fcommon_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DocumentMask_google_2ffirestore_2fv1_2fcommon_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fwrite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DocumentTransform_google_2ffirestore_2fv1_2fwrite_2eproto; @@ -171,8 +172,9 @@ static void InitDefaultsscc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite ::google::firestore::v1::ExistenceFilter::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite_2eproto}, { + &scc_info_BloomFilter_google_2ffirestore_2fv1_2fbloom_5ffilter_2eproto.base,}}; static void InitDefaultsscc_info_Write_google_2ffirestore_2fv1_2fwrite_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -285,6 +287,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2ffirestore_2fv1_2fwrit ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ExistenceFilter, target_id_), PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ExistenceFilter, count_), + PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ExistenceFilter, unchanged_names_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::google::firestore::v1::Write)}, @@ -310,7 +313,8 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = const char descriptor_table_protodef_google_2ffirestore_2fv1_2fwrite_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\037google/firestore/v1/write.proto\022\023googl" - "e.firestore.v1\032 google/firestore/v1/comm" + "e.firestore.v1\032&google/firestore/v1/bloo" + "m_filter.proto\032 google/firestore/v1/comm" "on.proto\032\"google/firestore/v1/document.p" "roto\032\037google/protobuf/timestamp.proto\"\355\002" "\n\005Write\022/\n\006update\030\001 \001(\0132\035.google.firesto" @@ -348,15 +352,18 @@ const char descriptor_table_protodef_google_2ffirestore_2fv1_2fwrite_2eproto[] P "-\n\tread_time\030\004 \001(\0132\032.google.protobuf.Tim" "estamp\"m\n\016DocumentRemove\022\020\n\010document\030\001 \001" "(\t\022\032\n\022removed_target_ids\030\002 \003(\005\022-\n\tread_t" - "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\"3\n" + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\"n\n" "\017ExistenceFilter\022\021\n\ttarget_id\030\001 \001(\005\022\r\n\005c" - "ount\030\002 \001(\005B\256\001\n\027com.google.firestore.v1B\n" - "WriteProtoP\001Zunchanged_names_ = const_cast< ::google::firestore::v1::BloomFilter*>( + ::google::firestore::v1::BloomFilter::internal_default_instance()); } class ExistenceFilter::_Internal { public: + static const ::google::firestore::v1::BloomFilter& unchanged_names(const ExistenceFilter* msg); }; +const ::google::firestore::v1::BloomFilter& +ExistenceFilter::_Internal::unchanged_names(const ExistenceFilter* msg) { + return *msg->unchanged_names_; +} +void ExistenceFilter::clear_unchanged_names() { + if (GetArenaNoVirtual() == nullptr && unchanged_names_ != nullptr) { + delete unchanged_names_; + } + unchanged_names_ = nullptr; +} ExistenceFilter::ExistenceFilter() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); @@ -2852,6 +2872,11 @@ ExistenceFilter::ExistenceFilter(const ExistenceFilter& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_unchanged_names()) { + unchanged_names_ = new ::google::firestore::v1::BloomFilter(*from.unchanged_names_); + } else { + unchanged_names_ = nullptr; + } ::memcpy(&target_id_, &from.target_id_, static_cast(reinterpret_cast(&count_) - reinterpret_cast(&target_id_)) + sizeof(count_)); @@ -2859,9 +2884,10 @@ ExistenceFilter::ExistenceFilter(const ExistenceFilter& from) } void ExistenceFilter::SharedCtor() { - ::memset(&target_id_, 0, static_cast( + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExistenceFilter_google_2ffirestore_2fv1_2fwrite_2eproto.base); + ::memset(&unchanged_names_, 0, static_cast( reinterpret_cast(&count_) - - reinterpret_cast(&target_id_)) + sizeof(count_)); + reinterpret_cast(&unchanged_names_)) + sizeof(count_)); } ExistenceFilter::~ExistenceFilter() { @@ -2870,6 +2896,7 @@ ExistenceFilter::~ExistenceFilter() { } void ExistenceFilter::SharedDtor() { + if (this != internal_default_instance()) delete unchanged_names_; } void ExistenceFilter::SetCachedSize(int size) const { @@ -2887,6 +2914,10 @@ void ExistenceFilter::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + if (GetArenaNoVirtual() == nullptr && unchanged_names_ != nullptr) { + delete unchanged_names_; + } + unchanged_names_ = nullptr; ::memset(&target_id_, 0, static_cast( reinterpret_cast(&count_) - reinterpret_cast(&target_id_)) + sizeof(count_)); @@ -2914,6 +2945,13 @@ const char* ExistenceFilter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr); } else goto handle_unusual; continue; + // .google.firestore.v1.BloomFilter unchanged_names = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_unchanged_names(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -2952,6 +2990,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* ExistenceFilter::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_count(), target); } + // .google.firestore.v1.BloomFilter unchanged_names = 3; + if (this->has_unchanged_names()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::unchanged_names(this), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target, stream); @@ -2968,6 +3014,13 @@ size_t ExistenceFilter::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // .google.firestore.v1.BloomFilter unchanged_names = 3; + if (this->has_unchanged_names()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *unchanged_names_); + } + // int32 target_id = 1; if (this->target_id() != 0) { total_size += 1 + @@ -3013,6 +3066,9 @@ void ExistenceFilter::MergeFrom(const ExistenceFilter& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.has_unchanged_names()) { + _internal_mutable_unchanged_names()->::google::firestore::v1::BloomFilter::MergeFrom(from._internal_unchanged_names()); + } if (from.target_id() != 0) { _internal_set_target_id(from._internal_target_id()); } @@ -3042,6 +3098,7 @@ bool ExistenceFilter::IsInitialized() const { void ExistenceFilter::InternalSwap(ExistenceFilter* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); + swap(unchanged_names_, other->unchanged_names_); swap(target_id_, other->target_id_); swap(count_, other->count_); } diff --git a/Firestore/Protos/cpp/google/firestore/v1/write.pb.h b/Firestore/Protos/cpp/google/firestore/v1/write.pb.h index f5e7d251cd5..ee2a2ee48b5 100644 --- a/Firestore/Protos/cpp/google/firestore/v1/write.pb.h +++ b/Firestore/Protos/cpp/google/firestore/v1/write.pb.h @@ -49,6 +49,7 @@ #include // IWYU pragma: export #include #include +#include "google/firestore/v1/bloom_filter.pb.h" #include "google/firestore/v1/common.pb.h" #include "google/firestore/v1/document.pb.h" #include @@ -1659,9 +1660,25 @@ class ExistenceFilter : // accessors ------------------------------------------------------- enum : int { + kUnchangedNamesFieldNumber = 3, kTargetIdFieldNumber = 1, kCountFieldNumber = 2, }; + // .google.firestore.v1.BloomFilter unchanged_names = 3; + bool has_unchanged_names() const; + private: + bool _internal_has_unchanged_names() const; + public: + void clear_unchanged_names(); + const ::google::firestore::v1::BloomFilter& unchanged_names() const; + ::google::firestore::v1::BloomFilter* release_unchanged_names(); + ::google::firestore::v1::BloomFilter* mutable_unchanged_names(); + void set_allocated_unchanged_names(::google::firestore::v1::BloomFilter* unchanged_names); + private: + const ::google::firestore::v1::BloomFilter& _internal_unchanged_names() const; + ::google::firestore::v1::BloomFilter* _internal_mutable_unchanged_names(); + public: + // int32 target_id = 1; void clear_target_id(); ::PROTOBUF_NAMESPACE_ID::int32 target_id() const; @@ -1685,6 +1702,7 @@ class ExistenceFilter : class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::firestore::v1::BloomFilter* unchanged_names_; ::PROTOBUF_NAMESPACE_ID::int32 target_id_; ::PROTOBUF_NAMESPACE_ID::int32 count_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -3201,6 +3219,60 @@ inline void ExistenceFilter::set_count(::PROTOBUF_NAMESPACE_ID::int32 value) { // @@protoc_insertion_point(field_set:google.firestore.v1.ExistenceFilter.count) } +// .google.firestore.v1.BloomFilter unchanged_names = 3; +inline bool ExistenceFilter::_internal_has_unchanged_names() const { + return this != internal_default_instance() && unchanged_names_ != nullptr; +} +inline bool ExistenceFilter::has_unchanged_names() const { + return _internal_has_unchanged_names(); +} +inline const ::google::firestore::v1::BloomFilter& ExistenceFilter::_internal_unchanged_names() const { + const ::google::firestore::v1::BloomFilter* p = unchanged_names_; + return p != nullptr ? *p : *reinterpret_cast( + &::google::firestore::v1::_BloomFilter_default_instance_); +} +inline const ::google::firestore::v1::BloomFilter& ExistenceFilter::unchanged_names() const { + // @@protoc_insertion_point(field_get:google.firestore.v1.ExistenceFilter.unchanged_names) + return _internal_unchanged_names(); +} +inline ::google::firestore::v1::BloomFilter* ExistenceFilter::release_unchanged_names() { + // @@protoc_insertion_point(field_release:google.firestore.v1.ExistenceFilter.unchanged_names) + + ::google::firestore::v1::BloomFilter* temp = unchanged_names_; + unchanged_names_ = nullptr; + return temp; +} +inline ::google::firestore::v1::BloomFilter* ExistenceFilter::_internal_mutable_unchanged_names() { + + if (unchanged_names_ == nullptr) { + auto* p = CreateMaybeMessage<::google::firestore::v1::BloomFilter>(GetArenaNoVirtual()); + unchanged_names_ = p; + } + return unchanged_names_; +} +inline ::google::firestore::v1::BloomFilter* ExistenceFilter::mutable_unchanged_names() { + // @@protoc_insertion_point(field_mutable:google.firestore.v1.ExistenceFilter.unchanged_names) + return _internal_mutable_unchanged_names(); +} +inline void ExistenceFilter::set_allocated_unchanged_names(::google::firestore::v1::BloomFilter* unchanged_names) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(unchanged_names_); + } + if (unchanged_names) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + unchanged_names = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unchanged_names, submessage_arena); + } + + } else { + + } + unchanged_names_ = unchanged_names; + // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.ExistenceFilter.unchanged_names) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.cc b/Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.cc new file mode 100644 index 00000000000..2050bc400fd --- /dev/null +++ b/Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2023 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. + */ + +/* Automatically generated nanopb constant definitions */ +/* Generated by nanopb-0.3.9.8 */ + +#include "bloom_filter.nanopb.h" + +#include "Firestore/core/src/nanopb/pretty_printing.h" + +namespace firebase { +namespace firestore { + +using nanopb::PrintEnumField; +using nanopb::PrintHeader; +using nanopb::PrintMessageField; +using nanopb::PrintPrimitiveField; +using nanopb::PrintTail; + +/* @@protoc_insertion_point(includes) */ +#if PB_PROTO_HEADER_VERSION != 30 +#error Regenerate this file with the current version of nanopb generator. +#endif + + + +const pb_field_t google_firestore_v1_BitSequence_fields[3] = { + PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, google_firestore_v1_BitSequence, bitmap, bitmap, 0), + PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, google_firestore_v1_BitSequence, padding, bitmap, 0), + PB_LAST_FIELD +}; + +const pb_field_t google_firestore_v1_BloomFilter_fields[3] = { + PB_FIELD( 1, MESSAGE , SINGULAR, STATIC , FIRST, google_firestore_v1_BloomFilter, bits, bits, &google_firestore_v1_BitSequence_fields), + PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, google_firestore_v1_BloomFilter, hash_count, bits, 0), + PB_LAST_FIELD +}; + + +/* Check that field information fits in pb_field_t */ +#if !defined(PB_FIELD_32BIT) +/* If you get an error here, it means that you need to define PB_FIELD_32BIT + * compile-time option. You can do that in pb.h or on compiler command line. + * + * The reason you need to do this is that some of your messages contain tag + * numbers or field sizes that are larger than what can fit in 8 or 16 bit + * field descriptors. + */ +PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_BloomFilter, bits) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_firestore_v1_BitSequence_google_firestore_v1_BloomFilter) +#endif + +#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) +/* If you get an error here, it means that you need to define PB_FIELD_16BIT + * compile-time option. You can do that in pb.h or on compiler command line. + * + * The reason you need to do this is that some of your messages contain tag + * numbers or field sizes that are larger than what can fit in the default + * 8 bit descriptors. + */ +PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_BloomFilter, bits) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_firestore_v1_BitSequence_google_firestore_v1_BloomFilter) +#endif + + +std::string google_firestore_v1_BitSequence::ToString(int indent) const { + std::string tostring_header = PrintHeader(indent, "BitSequence", this); + std::string tostring_result; + + tostring_result += PrintPrimitiveField("bitmap: ", + bitmap, indent + 1, false); + tostring_result += PrintPrimitiveField("padding: ", + padding, indent + 1, false); + + bool is_root = indent == 0; + if (!tostring_result.empty() || is_root) { + std::string tostring_tail = PrintTail(indent); + return tostring_header + tostring_result + tostring_tail; + } else { + return ""; + } +} + +std::string google_firestore_v1_BloomFilter::ToString(int indent) const { + std::string tostring_header = PrintHeader(indent, "BloomFilter", this); + std::string tostring_result; + + tostring_result += PrintMessageField("bits ", bits, indent + 1, false); + tostring_result += PrintPrimitiveField("hash_count: ", + hash_count, indent + 1, false); + + std::string tostring_tail = PrintTail(indent); + return tostring_header + tostring_result + tostring_tail; +} + +} // namespace firestore +} // namespace firebase + +/* @@protoc_insertion_point(eof) */ diff --git a/Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.h b/Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.h new file mode 100644 index 00000000000..e0347c466a5 --- /dev/null +++ b/Firestore/Protos/nanopb/google/firestore/v1/bloom_filter.nanopb.h @@ -0,0 +1,87 @@ +/* + * Copyright 2023 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. + */ + +/* Automatically generated nanopb header */ +/* Generated by nanopb-0.3.9.8 */ + +#ifndef PB_GOOGLE_FIRESTORE_V1_BLOOM_FILTER_NANOPB_H_INCLUDED +#define PB_GOOGLE_FIRESTORE_V1_BLOOM_FILTER_NANOPB_H_INCLUDED +#include + +#include + +namespace firebase { +namespace firestore { + +/* @@protoc_insertion_point(includes) */ +#if PB_PROTO_HEADER_VERSION != 30 +#error Regenerate this file with the current version of nanopb generator. +#endif + + +/* Struct definitions */ +typedef struct _google_firestore_v1_BitSequence { + pb_bytes_array_t *bitmap; + int32_t padding; + + std::string ToString(int indent = 0) const; +/* @@protoc_insertion_point(struct:google_firestore_v1_BitSequence) */ +} google_firestore_v1_BitSequence; + +typedef struct _google_firestore_v1_BloomFilter { + google_firestore_v1_BitSequence bits; + int32_t hash_count; + + std::string ToString(int indent = 0) const; +/* @@protoc_insertion_point(struct:google_firestore_v1_BloomFilter) */ +} google_firestore_v1_BloomFilter; + +/* Default values for struct fields */ + +/* Initializer values for message structs */ +#define google_firestore_v1_BitSequence_init_default {NULL, 0} +#define google_firestore_v1_BloomFilter_init_default {google_firestore_v1_BitSequence_init_default, 0} +#define google_firestore_v1_BitSequence_init_zero {NULL, 0} +#define google_firestore_v1_BloomFilter_init_zero {google_firestore_v1_BitSequence_init_zero, 0} + +/* Field tags (for use in manual encoding/decoding) */ +#define google_firestore_v1_BitSequence_bitmap_tag 1 +#define google_firestore_v1_BitSequence_padding_tag 2 +#define google_firestore_v1_BloomFilter_bits_tag 1 +#define google_firestore_v1_BloomFilter_hash_count_tag 2 + +/* Struct field encoding specification for nanopb */ +extern const pb_field_t google_firestore_v1_BitSequence_fields[3]; +extern const pb_field_t google_firestore_v1_BloomFilter_fields[3]; + +/* Maximum encoded size of messages (where known) */ +/* google_firestore_v1_BitSequence_size depends on runtime parameters */ +/* google_firestore_v1_BloomFilter_size depends on runtime parameters */ + +/* Message IDs (where set with "msgid" option) */ +#ifdef PB_MSGID + +#define BLOOM_FILTER_MESSAGES \ + + +#endif + +} // namespace firestore +} // namespace firebase + +/* @@protoc_insertion_point(eof) */ + +#endif diff --git a/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.cc b/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.cc index 5004cfa9193..2d6f479416c 100644 --- a/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.cc +++ b/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.cc @@ -214,13 +214,14 @@ const pb_field_t google_firestore_v1_ListenResponse_fields[6] = { PB_LAST_FIELD }; -const pb_field_t google_firestore_v1_Target_fields[7] = { +const pb_field_t google_firestore_v1_Target_fields[8] = { PB_ONEOF_FIELD(target_type, 2, MESSAGE , ONEOF, STATIC , FIRST, google_firestore_v1_Target, query, query, &google_firestore_v1_Target_QueryTarget_fields), PB_ONEOF_FIELD(target_type, 3, MESSAGE , ONEOF, STATIC , UNION, google_firestore_v1_Target, documents, documents, &google_firestore_v1_Target_DocumentsTarget_fields), PB_ONEOF_FIELD(resume_type, 4, BYTES , ONEOF, POINTER , OTHER, google_firestore_v1_Target, resume_token, target_type.documents, 0), PB_ONEOF_FIELD(resume_type, 11, MESSAGE , ONEOF, STATIC , UNION, google_firestore_v1_Target, read_time, target_type.documents, &google_protobuf_Timestamp_fields), PB_FIELD( 5, INT32 , SINGULAR, STATIC , OTHER, google_firestore_v1_Target, target_id, resume_type.read_time, 0), PB_FIELD( 6, BOOL , SINGULAR, STATIC , OTHER, google_firestore_v1_Target, once, target_id, 0), + PB_FIELD( 12, MESSAGE , SINGULAR, STATIC , OTHER, google_firestore_v1_Target, expected_count, once, &google_protobuf_Int32Value_fields), PB_LAST_FIELD }; @@ -268,7 +269,7 @@ const pb_field_t google_firestore_v1_ListCollectionIdsResponse_fields[3] = { * numbers or field sizes that are larger than what can fit in 8 or 16 bit * field descriptors. */ -PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_GetDocumentRequest, read_time) < 65536 && pb_membersize(google_firestore_v1_GetDocumentRequest, mask) < 65536 && pb_membersize(google_firestore_v1_ListDocumentsRequest, read_time) < 65536 && pb_membersize(google_firestore_v1_ListDocumentsRequest, mask) < 65536 && pb_membersize(google_firestore_v1_CreateDocumentRequest, document) < 65536 && pb_membersize(google_firestore_v1_CreateDocumentRequest, mask) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, document) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, update_mask) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, mask) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, current_document) < 65536 && pb_membersize(google_firestore_v1_DeleteDocumentRequest, current_document) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, new_transaction) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, read_time) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, mask) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, found) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, read_time) < 65536 && pb_membersize(google_firestore_v1_BeginTransactionRequest, options) < 65536 && pb_membersize(google_firestore_v1_CommitResponse, commit_time) < 65536 && pb_membersize(google_firestore_v1_RunQueryRequest, query_type.structured_query) < 65536 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.new_transaction) < 65536 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.read_time) < 65536 && pb_membersize(google_firestore_v1_RunQueryResponse, document) < 65536 && pb_membersize(google_firestore_v1_RunQueryResponse, read_time) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, query_type.structured_aggregation_query) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.new_transaction) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.read_time) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, result) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, read_time) < 65536 && pb_membersize(google_firestore_v1_WriteResponse, commit_time) < 65536 && pb_membersize(google_firestore_v1_ListenRequest, add_target) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, target_change) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, document_change) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, document_delete) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, filter) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, document_remove) < 65536 && pb_membersize(google_firestore_v1_Target, target_type.query) < 65536 && pb_membersize(google_firestore_v1_Target, target_type.documents) < 65536 && pb_membersize(google_firestore_v1_Target, resume_type.read_time) < 65536 && pb_membersize(google_firestore_v1_Target_QueryTarget, structured_query) < 65536 && pb_membersize(google_firestore_v1_TargetChange, cause) < 65536 && pb_membersize(google_firestore_v1_TargetChange, read_time) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_firestore_v1_GetDocumentRequest_google_firestore_v1_ListDocumentsRequest_google_firestore_v1_ListDocumentsResponse_google_firestore_v1_CreateDocumentRequest_google_firestore_v1_UpdateDocumentRequest_google_firestore_v1_DeleteDocumentRequest_google_firestore_v1_BatchGetDocumentsRequest_google_firestore_v1_BatchGetDocumentsResponse_google_firestore_v1_BeginTransactionRequest_google_firestore_v1_BeginTransactionResponse_google_firestore_v1_CommitRequest_google_firestore_v1_CommitResponse_google_firestore_v1_RollbackRequest_google_firestore_v1_RunQueryRequest_google_firestore_v1_RunQueryResponse_google_firestore_v1_RunAggregationQueryRequest_google_firestore_v1_RunAggregationQueryResponse_google_firestore_v1_WriteRequest_google_firestore_v1_WriteRequest_LabelsEntry_google_firestore_v1_WriteResponse_google_firestore_v1_ListenRequest_google_firestore_v1_ListenRequest_LabelsEntry_google_firestore_v1_ListenResponse_google_firestore_v1_Target_google_firestore_v1_Target_DocumentsTarget_google_firestore_v1_Target_QueryTarget_google_firestore_v1_TargetChange_google_firestore_v1_ListCollectionIdsRequest_google_firestore_v1_ListCollectionIdsResponse) +PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_GetDocumentRequest, read_time) < 65536 && pb_membersize(google_firestore_v1_GetDocumentRequest, mask) < 65536 && pb_membersize(google_firestore_v1_ListDocumentsRequest, read_time) < 65536 && pb_membersize(google_firestore_v1_ListDocumentsRequest, mask) < 65536 && pb_membersize(google_firestore_v1_CreateDocumentRequest, document) < 65536 && pb_membersize(google_firestore_v1_CreateDocumentRequest, mask) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, document) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, update_mask) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, mask) < 65536 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, current_document) < 65536 && pb_membersize(google_firestore_v1_DeleteDocumentRequest, current_document) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, new_transaction) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, read_time) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, mask) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, found) < 65536 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, read_time) < 65536 && pb_membersize(google_firestore_v1_BeginTransactionRequest, options) < 65536 && pb_membersize(google_firestore_v1_CommitResponse, commit_time) < 65536 && pb_membersize(google_firestore_v1_RunQueryRequest, query_type.structured_query) < 65536 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.new_transaction) < 65536 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.read_time) < 65536 && pb_membersize(google_firestore_v1_RunQueryResponse, document) < 65536 && pb_membersize(google_firestore_v1_RunQueryResponse, read_time) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, query_type.structured_aggregation_query) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.new_transaction) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.read_time) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, result) < 65536 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, read_time) < 65536 && pb_membersize(google_firestore_v1_WriteResponse, commit_time) < 65536 && pb_membersize(google_firestore_v1_ListenRequest, add_target) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, target_change) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, document_change) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, document_delete) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, filter) < 65536 && pb_membersize(google_firestore_v1_ListenResponse, document_remove) < 65536 && pb_membersize(google_firestore_v1_Target, target_type.query) < 65536 && pb_membersize(google_firestore_v1_Target, target_type.documents) < 65536 && pb_membersize(google_firestore_v1_Target, resume_type.read_time) < 65536 && pb_membersize(google_firestore_v1_Target, expected_count) < 65536 && pb_membersize(google_firestore_v1_Target_QueryTarget, structured_query) < 65536 && pb_membersize(google_firestore_v1_TargetChange, cause) < 65536 && pb_membersize(google_firestore_v1_TargetChange, read_time) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_firestore_v1_GetDocumentRequest_google_firestore_v1_ListDocumentsRequest_google_firestore_v1_ListDocumentsResponse_google_firestore_v1_CreateDocumentRequest_google_firestore_v1_UpdateDocumentRequest_google_firestore_v1_DeleteDocumentRequest_google_firestore_v1_BatchGetDocumentsRequest_google_firestore_v1_BatchGetDocumentsResponse_google_firestore_v1_BeginTransactionRequest_google_firestore_v1_BeginTransactionResponse_google_firestore_v1_CommitRequest_google_firestore_v1_CommitResponse_google_firestore_v1_RollbackRequest_google_firestore_v1_RunQueryRequest_google_firestore_v1_RunQueryResponse_google_firestore_v1_RunAggregationQueryRequest_google_firestore_v1_RunAggregationQueryResponse_google_firestore_v1_WriteRequest_google_firestore_v1_WriteRequest_LabelsEntry_google_firestore_v1_WriteResponse_google_firestore_v1_ListenRequest_google_firestore_v1_ListenRequest_LabelsEntry_google_firestore_v1_ListenResponse_google_firestore_v1_Target_google_firestore_v1_Target_DocumentsTarget_google_firestore_v1_Target_QueryTarget_google_firestore_v1_TargetChange_google_firestore_v1_ListCollectionIdsRequest_google_firestore_v1_ListCollectionIdsResponse) #endif #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) @@ -279,7 +280,7 @@ PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_GetDocumentRequest, read_tim * numbers or field sizes that are larger than what can fit in the default * 8 bit descriptors. */ -PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_GetDocumentRequest, read_time) < 256 && pb_membersize(google_firestore_v1_GetDocumentRequest, mask) < 256 && pb_membersize(google_firestore_v1_ListDocumentsRequest, read_time) < 256 && pb_membersize(google_firestore_v1_ListDocumentsRequest, mask) < 256 && pb_membersize(google_firestore_v1_CreateDocumentRequest, document) < 256 && pb_membersize(google_firestore_v1_CreateDocumentRequest, mask) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, document) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, update_mask) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, mask) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, current_document) < 256 && pb_membersize(google_firestore_v1_DeleteDocumentRequest, current_document) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, new_transaction) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, read_time) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, mask) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, found) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, read_time) < 256 && pb_membersize(google_firestore_v1_BeginTransactionRequest, options) < 256 && pb_membersize(google_firestore_v1_CommitResponse, commit_time) < 256 && pb_membersize(google_firestore_v1_RunQueryRequest, query_type.structured_query) < 256 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.new_transaction) < 256 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.read_time) < 256 && pb_membersize(google_firestore_v1_RunQueryResponse, document) < 256 && pb_membersize(google_firestore_v1_RunQueryResponse, read_time) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, query_type.structured_aggregation_query) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.new_transaction) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.read_time) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, result) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, read_time) < 256 && pb_membersize(google_firestore_v1_WriteResponse, commit_time) < 256 && pb_membersize(google_firestore_v1_ListenRequest, add_target) < 256 && pb_membersize(google_firestore_v1_ListenResponse, target_change) < 256 && pb_membersize(google_firestore_v1_ListenResponse, document_change) < 256 && pb_membersize(google_firestore_v1_ListenResponse, document_delete) < 256 && pb_membersize(google_firestore_v1_ListenResponse, filter) < 256 && pb_membersize(google_firestore_v1_ListenResponse, document_remove) < 256 && pb_membersize(google_firestore_v1_Target, target_type.query) < 256 && pb_membersize(google_firestore_v1_Target, target_type.documents) < 256 && pb_membersize(google_firestore_v1_Target, resume_type.read_time) < 256 && pb_membersize(google_firestore_v1_Target_QueryTarget, structured_query) < 256 && pb_membersize(google_firestore_v1_TargetChange, cause) < 256 && pb_membersize(google_firestore_v1_TargetChange, read_time) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_firestore_v1_GetDocumentRequest_google_firestore_v1_ListDocumentsRequest_google_firestore_v1_ListDocumentsResponse_google_firestore_v1_CreateDocumentRequest_google_firestore_v1_UpdateDocumentRequest_google_firestore_v1_DeleteDocumentRequest_google_firestore_v1_BatchGetDocumentsRequest_google_firestore_v1_BatchGetDocumentsResponse_google_firestore_v1_BeginTransactionRequest_google_firestore_v1_BeginTransactionResponse_google_firestore_v1_CommitRequest_google_firestore_v1_CommitResponse_google_firestore_v1_RollbackRequest_google_firestore_v1_RunQueryRequest_google_firestore_v1_RunQueryResponse_google_firestore_v1_RunAggregationQueryRequest_google_firestore_v1_RunAggregationQueryResponse_google_firestore_v1_WriteRequest_google_firestore_v1_WriteRequest_LabelsEntry_google_firestore_v1_WriteResponse_google_firestore_v1_ListenRequest_google_firestore_v1_ListenRequest_LabelsEntry_google_firestore_v1_ListenResponse_google_firestore_v1_Target_google_firestore_v1_Target_DocumentsTarget_google_firestore_v1_Target_QueryTarget_google_firestore_v1_TargetChange_google_firestore_v1_ListCollectionIdsRequest_google_firestore_v1_ListCollectionIdsResponse) +PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_GetDocumentRequest, read_time) < 256 && pb_membersize(google_firestore_v1_GetDocumentRequest, mask) < 256 && pb_membersize(google_firestore_v1_ListDocumentsRequest, read_time) < 256 && pb_membersize(google_firestore_v1_ListDocumentsRequest, mask) < 256 && pb_membersize(google_firestore_v1_CreateDocumentRequest, document) < 256 && pb_membersize(google_firestore_v1_CreateDocumentRequest, mask) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, document) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, update_mask) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, mask) < 256 && pb_membersize(google_firestore_v1_UpdateDocumentRequest, current_document) < 256 && pb_membersize(google_firestore_v1_DeleteDocumentRequest, current_document) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, new_transaction) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, read_time) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsRequest, mask) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, found) < 256 && pb_membersize(google_firestore_v1_BatchGetDocumentsResponse, read_time) < 256 && pb_membersize(google_firestore_v1_BeginTransactionRequest, options) < 256 && pb_membersize(google_firestore_v1_CommitResponse, commit_time) < 256 && pb_membersize(google_firestore_v1_RunQueryRequest, query_type.structured_query) < 256 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.new_transaction) < 256 && pb_membersize(google_firestore_v1_RunQueryRequest, consistency_selector.read_time) < 256 && pb_membersize(google_firestore_v1_RunQueryResponse, document) < 256 && pb_membersize(google_firestore_v1_RunQueryResponse, read_time) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, query_type.structured_aggregation_query) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.new_transaction) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryRequest, consistency_selector.read_time) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, result) < 256 && pb_membersize(google_firestore_v1_RunAggregationQueryResponse, read_time) < 256 && pb_membersize(google_firestore_v1_WriteResponse, commit_time) < 256 && pb_membersize(google_firestore_v1_ListenRequest, add_target) < 256 && pb_membersize(google_firestore_v1_ListenResponse, target_change) < 256 && pb_membersize(google_firestore_v1_ListenResponse, document_change) < 256 && pb_membersize(google_firestore_v1_ListenResponse, document_delete) < 256 && pb_membersize(google_firestore_v1_ListenResponse, filter) < 256 && pb_membersize(google_firestore_v1_ListenResponse, document_remove) < 256 && pb_membersize(google_firestore_v1_Target, target_type.query) < 256 && pb_membersize(google_firestore_v1_Target, target_type.documents) < 256 && pb_membersize(google_firestore_v1_Target, resume_type.read_time) < 256 && pb_membersize(google_firestore_v1_Target, expected_count) < 256 && pb_membersize(google_firestore_v1_Target_QueryTarget, structured_query) < 256 && pb_membersize(google_firestore_v1_TargetChange, cause) < 256 && pb_membersize(google_firestore_v1_TargetChange, read_time) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_firestore_v1_GetDocumentRequest_google_firestore_v1_ListDocumentsRequest_google_firestore_v1_ListDocumentsResponse_google_firestore_v1_CreateDocumentRequest_google_firestore_v1_UpdateDocumentRequest_google_firestore_v1_DeleteDocumentRequest_google_firestore_v1_BatchGetDocumentsRequest_google_firestore_v1_BatchGetDocumentsResponse_google_firestore_v1_BeginTransactionRequest_google_firestore_v1_BeginTransactionResponse_google_firestore_v1_CommitRequest_google_firestore_v1_CommitResponse_google_firestore_v1_RollbackRequest_google_firestore_v1_RunQueryRequest_google_firestore_v1_RunQueryResponse_google_firestore_v1_RunAggregationQueryRequest_google_firestore_v1_RunAggregationQueryResponse_google_firestore_v1_WriteRequest_google_firestore_v1_WriteRequest_LabelsEntry_google_firestore_v1_WriteResponse_google_firestore_v1_ListenRequest_google_firestore_v1_ListenRequest_LabelsEntry_google_firestore_v1_ListenResponse_google_firestore_v1_Target_google_firestore_v1_Target_DocumentsTarget_google_firestore_v1_Target_QueryTarget_google_firestore_v1_TargetChange_google_firestore_v1_ListCollectionIdsRequest_google_firestore_v1_ListCollectionIdsResponse) #endif @@ -833,14 +834,11 @@ std::string google_firestore_v1_Target::ToString(int indent) const { tostring_result += PrintPrimitiveField("target_id: ", target_id, indent + 1, false); tostring_result += PrintPrimitiveField("once: ", once, indent + 1, false); + tostring_result += PrintMessageField("expected_count ", + expected_count, indent + 1, false); - bool is_root = indent == 0; - if (!tostring_result.empty() || is_root) { - std::string tostring_tail = PrintTail(indent); - return tostring_header + tostring_result + tostring_tail; - } else { - return ""; - } + std::string tostring_tail = PrintTail(indent); + return tostring_header + tostring_result + tostring_tail; } std::string google_firestore_v1_Target_DocumentsTarget::ToString(int indent) const { diff --git a/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.h b/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.h index fe5e523164d..513a2fe5064 100644 --- a/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.h +++ b/Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.h @@ -37,6 +37,8 @@ #include "google/protobuf/timestamp.nanopb.h" +#include "google/protobuf/wrappers.nanopb.h" + #include "google/rpc/status.nanopb.h" #include @@ -373,6 +375,7 @@ typedef struct _google_firestore_v1_Target { } resume_type; int32_t target_id; bool once; + google_protobuf_Int32Value expected_count; std::string ToString(int indent = 0) const; /* @@protoc_insertion_point(struct:google_firestore_v1_Target) */ @@ -418,7 +421,7 @@ typedef struct _google_firestore_v1_ListenRequest { #define google_firestore_v1_ListenRequest_init_default {NULL, 0, {google_firestore_v1_Target_init_default}, 0, NULL} #define google_firestore_v1_ListenRequest_LabelsEntry_init_default {NULL, NULL} #define google_firestore_v1_ListenResponse_init_default {0, {google_firestore_v1_TargetChange_init_default}} -#define google_firestore_v1_Target_init_default {0, {google_firestore_v1_Target_QueryTarget_init_default}, 0, {NULL}, 0, 0} +#define google_firestore_v1_Target_init_default {0, {google_firestore_v1_Target_QueryTarget_init_default}, 0, {NULL}, 0, 0, google_protobuf_Int32Value_init_default} #define google_firestore_v1_Target_DocumentsTarget_init_default {0, NULL} #define google_firestore_v1_Target_QueryTarget_init_default {NULL, 0, {google_firestore_v1_StructuredQuery_init_default}} #define google_firestore_v1_TargetChange_init_default {_google_firestore_v1_TargetChange_TargetChangeType_MIN, 0, NULL, false, google_rpc_Status_init_default, NULL, google_protobuf_Timestamp_init_default} @@ -447,7 +450,7 @@ typedef struct _google_firestore_v1_ListenRequest { #define google_firestore_v1_ListenRequest_init_zero {NULL, 0, {google_firestore_v1_Target_init_zero}, 0, NULL} #define google_firestore_v1_ListenRequest_LabelsEntry_init_zero {NULL, NULL} #define google_firestore_v1_ListenResponse_init_zero {0, {google_firestore_v1_TargetChange_init_zero}} -#define google_firestore_v1_Target_init_zero {0, {google_firestore_v1_Target_QueryTarget_init_zero}, 0, {NULL}, 0, 0} +#define google_firestore_v1_Target_init_zero {0, {google_firestore_v1_Target_QueryTarget_init_zero}, 0, {NULL}, 0, 0, google_protobuf_Int32Value_init_zero} #define google_firestore_v1_Target_DocumentsTarget_init_zero {0, NULL} #define google_firestore_v1_Target_QueryTarget_init_zero {NULL, 0, {google_firestore_v1_StructuredQuery_init_zero}} #define google_firestore_v1_TargetChange_init_zero {_google_firestore_v1_TargetChange_TargetChangeType_MIN, 0, NULL, false, google_rpc_Status_init_zero, NULL, google_protobuf_Timestamp_init_zero} @@ -555,6 +558,7 @@ typedef struct _google_firestore_v1_ListenRequest { #define google_firestore_v1_Target_read_time_tag 11 #define google_firestore_v1_Target_target_id_tag 5 #define google_firestore_v1_Target_once_tag 6 +#define google_firestore_v1_Target_expected_count_tag 12 #define google_firestore_v1_ListenRequest_add_target_tag 2 #define google_firestore_v1_ListenRequest_remove_target_tag 3 #define google_firestore_v1_ListenRequest_database_tag 1 @@ -584,7 +588,7 @@ extern const pb_field_t google_firestore_v1_WriteResponse_fields[5]; extern const pb_field_t google_firestore_v1_ListenRequest_fields[5]; extern const pb_field_t google_firestore_v1_ListenRequest_LabelsEntry_fields[3]; extern const pb_field_t google_firestore_v1_ListenResponse_fields[6]; -extern const pb_field_t google_firestore_v1_Target_fields[7]; +extern const pb_field_t google_firestore_v1_Target_fields[8]; extern const pb_field_t google_firestore_v1_Target_DocumentsTarget_fields[2]; extern const pb_field_t google_firestore_v1_Target_QueryTarget_fields[3]; extern const pb_field_t google_firestore_v1_TargetChange_fields[6]; diff --git a/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.cc b/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.cc index c0d352bf75a..56275531bd4 100644 --- a/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.cc +++ b/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.cc @@ -92,9 +92,10 @@ const pb_field_t google_firestore_v1_DocumentRemove_fields[4] = { PB_LAST_FIELD }; -const pb_field_t google_firestore_v1_ExistenceFilter_fields[3] = { +const pb_field_t google_firestore_v1_ExistenceFilter_fields[4] = { PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, google_firestore_v1_ExistenceFilter, target_id, target_id, 0), PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, google_firestore_v1_ExistenceFilter, count, target_id, 0), + PB_FIELD( 3, MESSAGE , SINGULAR, STATIC , OTHER, google_firestore_v1_ExistenceFilter, unchanged_names, count, &google_firestore_v1_BloomFilter_fields), PB_LAST_FIELD }; @@ -109,7 +110,7 @@ const pb_field_t google_firestore_v1_ExistenceFilter_fields[3] = { * numbers or field sizes that are larger than what can fit in 8 or 16 bit * field descriptors. */ -PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_Write, update) < 65536 && pb_membersize(google_firestore_v1_Write, transform) < 65536 && pb_membersize(google_firestore_v1_Write, update_mask) < 65536 && pb_membersize(google_firestore_v1_Write, current_document) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, increment) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, maximum) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, minimum) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, append_missing_elements) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, remove_all_from_array) < 65536 && pb_membersize(google_firestore_v1_WriteResult, update_time) < 65536 && pb_membersize(google_firestore_v1_DocumentChange, document) < 65536 && pb_membersize(google_firestore_v1_DocumentDelete, read_time) < 65536 && pb_membersize(google_firestore_v1_DocumentRemove, read_time) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_firestore_v1_Write_google_firestore_v1_DocumentTransform_google_firestore_v1_DocumentTransform_FieldTransform_google_firestore_v1_WriteResult_google_firestore_v1_DocumentChange_google_firestore_v1_DocumentDelete_google_firestore_v1_DocumentRemove_google_firestore_v1_ExistenceFilter) +PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_Write, update) < 65536 && pb_membersize(google_firestore_v1_Write, transform) < 65536 && pb_membersize(google_firestore_v1_Write, update_mask) < 65536 && pb_membersize(google_firestore_v1_Write, current_document) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, increment) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, maximum) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, minimum) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, append_missing_elements) < 65536 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, remove_all_from_array) < 65536 && pb_membersize(google_firestore_v1_WriteResult, update_time) < 65536 && pb_membersize(google_firestore_v1_DocumentChange, document) < 65536 && pb_membersize(google_firestore_v1_DocumentDelete, read_time) < 65536 && pb_membersize(google_firestore_v1_DocumentRemove, read_time) < 65536 && pb_membersize(google_firestore_v1_ExistenceFilter, unchanged_names) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_firestore_v1_Write_google_firestore_v1_DocumentTransform_google_firestore_v1_DocumentTransform_FieldTransform_google_firestore_v1_WriteResult_google_firestore_v1_DocumentChange_google_firestore_v1_DocumentDelete_google_firestore_v1_DocumentRemove_google_firestore_v1_ExistenceFilter) #endif #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) @@ -120,7 +121,7 @@ PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_Write, update) < 65536 && pb * numbers or field sizes that are larger than what can fit in the default * 8 bit descriptors. */ -PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_Write, update) < 256 && pb_membersize(google_firestore_v1_Write, transform) < 256 && pb_membersize(google_firestore_v1_Write, update_mask) < 256 && pb_membersize(google_firestore_v1_Write, current_document) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, increment) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, maximum) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, minimum) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, append_missing_elements) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, remove_all_from_array) < 256 && pb_membersize(google_firestore_v1_WriteResult, update_time) < 256 && pb_membersize(google_firestore_v1_DocumentChange, document) < 256 && pb_membersize(google_firestore_v1_DocumentDelete, read_time) < 256 && pb_membersize(google_firestore_v1_DocumentRemove, read_time) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_firestore_v1_Write_google_firestore_v1_DocumentTransform_google_firestore_v1_DocumentTransform_FieldTransform_google_firestore_v1_WriteResult_google_firestore_v1_DocumentChange_google_firestore_v1_DocumentDelete_google_firestore_v1_DocumentRemove_google_firestore_v1_ExistenceFilter) +PB_STATIC_ASSERT((pb_membersize(google_firestore_v1_Write, update) < 256 && pb_membersize(google_firestore_v1_Write, transform) < 256 && pb_membersize(google_firestore_v1_Write, update_mask) < 256 && pb_membersize(google_firestore_v1_Write, current_document) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, increment) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, maximum) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, minimum) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, append_missing_elements) < 256 && pb_membersize(google_firestore_v1_DocumentTransform_FieldTransform, remove_all_from_array) < 256 && pb_membersize(google_firestore_v1_WriteResult, update_time) < 256 && pb_membersize(google_firestore_v1_DocumentChange, document) < 256 && pb_membersize(google_firestore_v1_DocumentDelete, read_time) < 256 && pb_membersize(google_firestore_v1_DocumentRemove, read_time) < 256 && pb_membersize(google_firestore_v1_ExistenceFilter, unchanged_names) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_firestore_v1_Write_google_firestore_v1_DocumentTransform_google_firestore_v1_DocumentTransform_FieldTransform_google_firestore_v1_WriteResult_google_firestore_v1_DocumentChange_google_firestore_v1_DocumentDelete_google_firestore_v1_DocumentRemove_google_firestore_v1_ExistenceFilter) #endif @@ -316,14 +317,11 @@ std::string google_firestore_v1_ExistenceFilter::ToString(int indent) const { target_id, indent + 1, false); tostring_result += PrintPrimitiveField("count: ", count, indent + 1, false); + tostring_result += PrintMessageField("unchanged_names ", + unchanged_names, indent + 1, false); - bool is_root = indent == 0; - if (!tostring_result.empty() || is_root) { - std::string tostring_tail = PrintTail(indent); - return tostring_header + tostring_result + tostring_tail; - } else { - return ""; - } + std::string tostring_tail = PrintTail(indent); + return tostring_header + tostring_result + tostring_tail; } } // namespace firestore diff --git a/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.h b/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.h index 0669ae182c5..3e22c2bc42a 100644 --- a/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.h +++ b/Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.h @@ -21,6 +21,8 @@ #define PB_GOOGLE_FIRESTORE_V1_WRITE_NANOPB_H_INCLUDED #include +#include "google/firestore/v1/bloom_filter.nanopb.h" + #include "google/firestore/v1/common.nanopb.h" #include "google/firestore/v1/document.nanopb.h" @@ -108,6 +110,7 @@ typedef struct _google_firestore_v1_DocumentTransform_FieldTransform { typedef struct _google_firestore_v1_ExistenceFilter { int32_t target_id; int32_t count; + google_firestore_v1_BloomFilter unchanged_names; std::string ToString(int indent = 0) const; /* @@protoc_insertion_point(struct:google_firestore_v1_ExistenceFilter) */ @@ -152,7 +155,7 @@ typedef struct _google_firestore_v1_WriteResult { #define google_firestore_v1_DocumentChange_init_default {google_firestore_v1_Document_init_default, 0, NULL, 0, NULL} #define google_firestore_v1_DocumentDelete_init_default {NULL, false, google_protobuf_Timestamp_init_default, 0, NULL} #define google_firestore_v1_DocumentRemove_init_default {NULL, 0, NULL, google_protobuf_Timestamp_init_default} -#define google_firestore_v1_ExistenceFilter_init_default {0, 0} +#define google_firestore_v1_ExistenceFilter_init_default {0, 0, google_firestore_v1_BloomFilter_init_default} #define google_firestore_v1_Write_init_zero {0, {google_firestore_v1_Document_init_zero}, false, google_firestore_v1_DocumentMask_init_zero, false, google_firestore_v1_Precondition_init_zero, 0, NULL} #define google_firestore_v1_DocumentTransform_init_zero {NULL, 0, NULL} #define google_firestore_v1_DocumentTransform_FieldTransform_init_zero {NULL, 0, {_google_firestore_v1_DocumentTransform_FieldTransform_ServerValue_MIN}} @@ -160,7 +163,7 @@ typedef struct _google_firestore_v1_WriteResult { #define google_firestore_v1_DocumentChange_init_zero {google_firestore_v1_Document_init_zero, 0, NULL, 0, NULL} #define google_firestore_v1_DocumentDelete_init_zero {NULL, false, google_protobuf_Timestamp_init_zero, 0, NULL} #define google_firestore_v1_DocumentRemove_init_zero {NULL, 0, NULL, google_protobuf_Timestamp_init_zero} -#define google_firestore_v1_ExistenceFilter_init_zero {0, 0} +#define google_firestore_v1_ExistenceFilter_init_zero {0, 0, google_firestore_v1_BloomFilter_init_zero} /* Field tags (for use in manual encoding/decoding) */ #define google_firestore_v1_DocumentTransform_document_tag 1 @@ -183,6 +186,7 @@ typedef struct _google_firestore_v1_WriteResult { #define google_firestore_v1_DocumentTransform_FieldTransform_field_path_tag 1 #define google_firestore_v1_ExistenceFilter_target_id_tag 1 #define google_firestore_v1_ExistenceFilter_count_tag 2 +#define google_firestore_v1_ExistenceFilter_unchanged_names_tag 3 #define google_firestore_v1_Write_update_tag 1 #define google_firestore_v1_Write_delete_tag 2 #define google_firestore_v1_Write_verify_tag 5 @@ -201,7 +205,7 @@ extern const pb_field_t google_firestore_v1_WriteResult_fields[3]; extern const pb_field_t google_firestore_v1_DocumentChange_fields[4]; extern const pb_field_t google_firestore_v1_DocumentDelete_fields[4]; extern const pb_field_t google_firestore_v1_DocumentRemove_fields[4]; -extern const pb_field_t google_firestore_v1_ExistenceFilter_fields[3]; +extern const pb_field_t google_firestore_v1_ExistenceFilter_fields[4]; /* Maximum encoded size of messages (where known) */ /* google_firestore_v1_Write_size depends on runtime parameters */ @@ -211,7 +215,7 @@ extern const pb_field_t google_firestore_v1_ExistenceFilter_fields[3]; /* google_firestore_v1_DocumentChange_size depends on runtime parameters */ /* google_firestore_v1_DocumentDelete_size depends on runtime parameters */ /* google_firestore_v1_DocumentRemove_size depends on runtime parameters */ -#define google_firestore_v1_ExistenceFilter_size 22 +#define google_firestore_v1_ExistenceFilter_size (28 + google_firestore_v1_BloomFilter_size) /* Message IDs (where set with "msgid" option) */ #ifdef PB_MSGID diff --git a/Firestore/Protos/protos/google/firestore/v1/bloom_filter.proto b/Firestore/Protos/protos/google/firestore/v1/bloom_filter.proto new file mode 100644 index 00000000000..a417bee5ec1 --- /dev/null +++ b/Firestore/Protos/protos/google/firestore/v1/bloom_filter.proto @@ -0,0 +1,73 @@ +// Copyright 2023 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. + +syntax = "proto3"; + +package google.firestore.v1; + +option csharp_namespace = "Google.Cloud.Firestore.V1"; +option go_package = "google.golang.org/genproto/googleapis/firestore/v1;firestore"; +option java_multiple_files = true; +option java_outer_classname = "BloomFilterProto"; +option java_package = "com.google.firestore.v1"; +option objc_class_prefix = "GCFS"; +option php_namespace = "Google\\Cloud\\Firestore\\V1"; +option ruby_package = "Google::Cloud::Firestore::V1"; + +// A sequence of bits, encoded in a byte array. +// +// Each byte in the `bitmap` byte array stores 8 bits of the sequence. The only +// exception is the last byte, which may store 8 _or fewer_ bits. The `padding` +// defines the number of bits of the last byte to be ignored as "padding". The +// values of these "padding" bits are unspecified and must be ignored. +// +// To retrieve the first bit, bit 0, calculate: (bitmap[0] & 0x01) != 0. +// To retrieve the second bit, bit 1, calculate: (bitmap[0] & 0x02) != 0. +// To retrieve the third bit, bit 2, calculate: (bitmap[0] & 0x04) != 0. +// To retrieve the fourth bit, bit 3, calculate: (bitmap[0] & 0x08) != 0. +// To retrieve bit n, calculate: (bitmap[n / 8] & (0x01 << (n % 8))) != 0. +// +// The "size" of a `BitSequence` (the number of bits it contains) is calculated +// by this formula: (bitmap.length * 8) - padding. +message BitSequence { + // The bytes that encode the bit sequence. + // May have a length of zero. + bytes bitmap = 1; + + // The number of bits of the last byte in `bitmap` to ignore as "padding". + // If the length of `bitmap` is zero, then this value must be 0. + // Otherwise, this value must be between 0 and 7, inclusive. + int32 padding = 2; +} + +// A bloom filter (https://en.wikipedia.org/wiki/Bloom_filter). +// +// The bloom filter hashes the entries with MD5 and treats the resulting 128-bit +// hash as 2 distinct 64-bit hash values, interpreted as unsigned integers +// using 2's complement encoding. +// +// These two hash values, named h1 and h2, are then used to compute the +// `hash_count` hash values using the formula, starting at i=0: +// +// h(i) = h1 + (i * h2) +// +// These resulting values are then taken modulo the number of bits in the bloom +// filter to get the bits of the bloom filter to test for the given entry. +message BloomFilter { + // The bloom filter data. + BitSequence bits = 1; + + // The number of hashes used by the algorithm. + int32 hash_count = 2; +} diff --git a/Firestore/Protos/protos/google/firestore/v1/firestore.proto b/Firestore/Protos/protos/google/firestore/v1/firestore.proto index 79944816bba..9dafa8858c3 100644 --- a/Firestore/Protos/protos/google/firestore/v1/firestore.proto +++ b/Firestore/Protos/protos/google/firestore/v1/firestore.proto @@ -25,6 +25,7 @@ import "google/firestore/v1/query.proto"; import "google/firestore/v1/write.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Firestore.V1Beta1"; @@ -746,6 +747,14 @@ message Target { // If the target should be removed once it is current and consistent. bool once = 6; + + // The number of documents that last matched the query at the resume token or + // read time. + // + // This value is only relevant when a `resume_type` is provided. This value + // being present and greater than zero signals that the client wants + // `ExistenceFilter.unchanged_names` to be included in the response. + google.protobuf.Int32Value expected_count = 12; } // Targets being watched have changed. diff --git a/Firestore/Protos/protos/google/firestore/v1/write.proto b/Firestore/Protos/protos/google/firestore/v1/write.proto index 0d85b4953ad..9fe53f7bdd1 100644 --- a/Firestore/Protos/protos/google/firestore/v1/write.proto +++ b/Firestore/Protos/protos/google/firestore/v1/write.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.firestore.v1; +import "google/firestore/v1/bloom_filter.proto"; import "google/firestore/v1/common.proto"; import "google/firestore/v1/document.proto"; import "google/protobuf/timestamp.proto"; @@ -260,4 +261,18 @@ message ExistenceFilter { // If different from the count of documents in the client that match, the // client must manually determine which documents no longer match the target. int32 count = 2; + + // A bloom filter that contains the UTF-8 byte encodings of the resource names + // of the documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id], in the + // form `projects/{project_id}/databases/{database_id}/documents/{document_path}` + // that have NOT changed since the query results indicated by the resume token + // or timestamp given in `Target.resume_type`. + // + // This bloom filter may be omitted at the server's discretion, such as if it + // is deemed that the client will not make use of it or if it is too + // computationally expensive to calculate or transmit. Clients must gracefully + // handle this field being absent by falling back to the logic used before + // this field existed; that is, re-add the target without a resume token to + // figure out which documents in the client's cache are out of sync. + BloomFilter unchanged_names = 3; } From d05653a3f9497c3f464435c90447b1195bef41ba Mon Sep 17 00:00:00 2001 From: milaGGL <107142260+milaGGL@users.noreply.github.com> Date: Wed, 15 Feb 2023 12:43:14 -0800 Subject: [PATCH 2/3] add the new proto file to CMakeLists --- Firestore/Protos/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Firestore/Protos/CMakeLists.txt b/Firestore/Protos/CMakeLists.txt index 48310bbfe9b..8b1174c0880 100644 --- a/Firestore/Protos/CMakeLists.txt +++ b/Firestore/Protos/CMakeLists.txt @@ -45,6 +45,7 @@ set( google/api/http google/firestore/admin/index google/firestore/v1/aggregation_result + google/firestore/v1/bloom_filter google/firestore/v1/common google/firestore/v1/document google/firestore/v1/firestore From b10287ed0c099dc23cf263af9a64a49431641172 Mon Sep 17 00:00:00 2001 From: milaGGL <107142260+milaGGL@users.noreply.github.com> Date: Wed, 15 Feb 2023 15:37:07 -0800 Subject: [PATCH 3/3] Update project.pbxproj --- .../Example/Firestore.xcodeproj/project.pbxproj | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Firestore/Example/Firestore.xcodeproj/project.pbxproj b/Firestore/Example/Firestore.xcodeproj/project.pbxproj index 9003d232284..601a3e602e7 100644 --- a/Firestore/Example/Firestore.xcodeproj/project.pbxproj +++ b/Firestore/Example/Firestore.xcodeproj/project.pbxproj @@ -201,6 +201,7 @@ 227CFA0B2A01884C277E4F1D /* hashing_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 54511E8D209805F8005BD28F /* hashing_test.cc */; }; 229D1A9381F698D71F229471 /* string_win_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 79507DF8378D3C42F5B36268 /* string_win_test.cc */; }; 22A00AC39CAB3426A943E037 /* query.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 544129D621C2DDC800EFB9CC /* query.pb.cc */; }; + 22FC2BEE59BEDE4CFF0FAA7E /* bloom_filter.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */; }; 23C04A637090E438461E4E70 /* latlng.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 618BBE9220B89AAC00B5BCE7 /* latlng.pb.cc */; }; 23EFC681986488B033C2B318 /* leveldb_opener_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 75860CD13AF47EB1EA39EC2F /* leveldb_opener_test.cc */; }; 2428E92E063EBAEA44BA5913 /* target_index_matcher_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 63136A2371C0C013EC7A540C /* target_index_matcher_test.cc */; }; @@ -295,6 +296,7 @@ 358DBA8B2560C65D9EB23C35 /* Pods_Firestore_IntegrationTests_macOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 39B832380209CC5BAF93BC52 /* Pods_Firestore_IntegrationTests_macOS.framework */; }; 35C330499D50AC415B24C580 /* async_testing.cc in Sources */ = {isa = PBXBuildFile; fileRef = 872C92ABD71B12784A1C5520 /* async_testing.cc */; }; 35DB74DFB2F174865BCCC264 /* leveldb_transaction_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 88CF09277CFA45EE1273E3BA /* leveldb_transaction_test.cc */; }; + 35F32BDF43950B4E715A1BDB /* bloom_filter.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */; }; 35FEB53E165518C0DE155CB0 /* target_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 526D755F65AC676234F57125 /* target_test.cc */; }; 36999FC1F37930E8C9B6DA25 /* stream_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 5B5414D28802BC76FDADABD6 /* stream_test.cc */; }; 36E174A66C323891AEA16A2A /* FIRTimestampTest.m in Sources */ = {isa = PBXBuildFile; fileRef = B65D34A7203C99090076A5E1 /* FIRTimestampTest.m */; }; @@ -1046,6 +1048,7 @@ B6FB4690208F9BB300554BA2 /* executor_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = B6FB4688208F9B9100554BA2 /* executor_test.cc */; }; B6FDE6F91D3F81D045E962A0 /* bits_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = AB380D01201BC69F00D97691 /* bits_test.cc */; }; B743F4E121E879EF34536A51 /* leveldb_index_manager_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 166CE73C03AB4366AAC5201C /* leveldb_index_manager_test.cc */; }; + B79DDA1869EE15B93C5231F6 /* bloom_filter.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */; }; B7DD5FC63A78FF00E80332C0 /* grpc_stream_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = B6BBE42F21262CF400C6A53E /* grpc_stream_test.cc */; }; B8062EBDB8E5B680E46A6DD1 /* geo_point_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = AB7BAB332012B519001E0872 /* geo_point_test.cc */; }; B81B6F327B5E3FE820DC3FB3 /* aggregation_result.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = D872D754B8AD88E28AF28B28 /* aggregation_result.pb.cc */; }; @@ -1150,6 +1153,7 @@ CE2962775B42BDEEE8108567 /* leveldb_lru_garbage_collector_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = B629525F7A1AAC1AB765C74F /* leveldb_lru_garbage_collector_test.cc */; }; CE411D4B70353823DE63C0D5 /* bundle_loader_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = A853C81A6A5A51C9D0389EDA /* bundle_loader_test.cc */; }; CEA91CE103B42533C54DBAD6 /* memory_remote_document_cache_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 1CA9800A53669EFBFFB824E3 /* memory_remote_document_cache_test.cc */; }; + CEA99E72C941969C54BE3248 /* bloom_filter.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */; }; CF1FB026CCB901F92B4B2C73 /* watch_change_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 2D7472BC70C024D736FF74D9 /* watch_change_test.cc */; }; CF5DE1ED21DD0A9783383A35 /* CodableIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 124C932B22C1642C00CA8C2D /* CodableIntegrationTests.swift */; }; CFCDC4670C61E034021F400B /* perf_spec_test.json in Resources */ = {isa = PBXBuildFile; fileRef = D5B2593BCB52957D62F1C9D3 /* perf_spec_test.json */; }; @@ -1343,6 +1347,7 @@ F800F48743D3CB31BA1EBAE7 /* random_access_queue_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 014C60628830D95031574D15 /* random_access_queue_test.cc */; }; F8126CD7308A4B8AEC0F30A8 /* bundle.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = A366F6AE1A5A77548485C091 /* bundle.pb.cc */; }; F8BD2F61EFA35C2D5120D9EB /* field_index_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = BF76A8DA34B5B67B4DD74666 /* field_index_test.cc */; }; + F8EC78289E8FBC73AC640435 /* bloom_filter.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */; }; F924DF3D9DCD2720C315A372 /* logic_utils_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 28B45B2104E2DAFBBF86DBB7 /* logic_utils_test.cc */; }; F950A371FADCA2F0B73683E0 /* remote_document_cache_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 7EB299CF85034F09CFD6F3FD /* remote_document_cache_test.cc */; }; F9705E595FC3818F13F6375A /* to_string_apple_test.mm in Sources */ = {isa = PBXBuildFile; fileRef = B68B1E002213A764008977EF /* to_string_apple_test.mm */; }; @@ -1357,6 +1362,7 @@ FB2111D9205822CC8E7368C2 /* FIRDocumentReferenceTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E049202154AA00B64F25 /* FIRDocumentReferenceTests.mm */; }; FB2D5208A6B5816A7244D77A /* query_engine_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = B8A853940305237AFDA8050B /* query_engine_test.cc */; }; FB3D9E01547436163C456A3C /* message_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = CE37875365497FFA8687B745 /* message_test.cc */; }; + FBA8282F8E99C878E4B9E87F /* bloom_filter.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */; }; FBBB13329D3B5827C21AE7AB /* reference_set_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 132E32997D781B896672D30A /* reference_set_test.cc */; }; FC1D22B6EC4E5F089AE39B8C /* memory_target_cache_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 2286F308EFB0534B1BDE05B9 /* memory_target_cache_test.cc */; }; FCA48FB54FC50BFDFDA672CD /* array_sorted_map_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = 54EB764C202277B30088B8F3 /* array_sorted_map_test.cc */; }; @@ -1492,6 +1498,7 @@ 48D0915834C3D234E5A875A9 /* grpc_stream_tester.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = grpc_stream_tester.h; sourceTree = ""; }; 4C73C0CC6F62A90D8573F383 /* string_apple_benchmark.mm */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.objcpp; path = string_apple_benchmark.mm; sourceTree = ""; }; 4F5B96F3ABCD2CA901DB1CD4 /* bundle_builder.cc */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.cpp; path = bundle_builder.cc; sourceTree = ""; }; + 507001BA93284310C1DFF32F /* bloom_filter.pb.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = bloom_filter.pb.h; sourceTree = ""; }; 526D755F65AC676234F57125 /* target_test.cc */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.cpp; path = target_test.cc; sourceTree = ""; }; 52756B7624904C36FBB56000 /* fake_target_metadata_provider.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = fake_target_metadata_provider.h; sourceTree = ""; }; 5342CDDB137B4E93E2E85CCA /* byte_string_test.cc */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.cpp; name = byte_string_test.cc; path = nanopb/byte_string_test.cc; sourceTree = ""; }; @@ -1798,6 +1805,7 @@ E592181BFD7C53C305123739 /* Pods-Firestore_Tests_iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Firestore_Tests_iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Firestore_Tests_iOS/Pods-Firestore_Tests_iOS.debug.xcconfig"; sourceTree = ""; }; E76F0CDF28E5FA62D21DE648 /* leveldb_target_cache_test.cc */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.cpp; path = leveldb_target_cache_test.cc; sourceTree = ""; }; ECEBABC7E7B693BE808A1052 /* Pods_Firestore_IntegrationTests_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Firestore_IntegrationTests_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */ = {isa = PBXFileReference; includeInIndex = 1; path = bloom_filter.pb.cc; sourceTree = ""; }; EF83ACD5E1E9F25845A9ACED /* leveldb_migrations_test.cc */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.cpp; path = leveldb_migrations_test.cc; sourceTree = ""; }; F02F734F272C3C70D1307076 /* filter_test.cc */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.cpp; path = filter_test.cc; sourceTree = ""; }; F119BDDF2F06B3C0883B8297 /* firebase_app_check_credentials_provider_test.mm */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.cpp.objcpp; name = firebase_app_check_credentials_provider_test.mm; path = credentials/firebase_app_check_credentials_provider_test.mm; sourceTree = ""; }; @@ -1966,6 +1974,8 @@ children = ( D872D754B8AD88E28AF28B28 /* aggregation_result.pb.cc */, B9ED38DA914BDCD2E3A0714D /* aggregation_result.pb.h */, + EF79BDA33A25371CD72BCE94 /* bloom_filter.pb.cc */, + 507001BA93284310C1DFF32F /* bloom_filter.pb.h */, 544129D221C2DDC800EFB9CC /* common.pb.cc */, 544129D121C2DDC800EFB9CC /* common.pb.h */, 544129D821C2DDC800EFB9CC /* document.pb.cc */, @@ -3638,6 +3648,7 @@ B28ACC69EB1F232AE612E77B /* async_testing.cc in Sources */, 1733601ECCEA33E730DEAF45 /* autoid_test.cc in Sources */, 0DAA255C2FEB387895ADEE12 /* bits_test.cc in Sources */, + FBA8282F8E99C878E4B9E87F /* bloom_filter.pb.cc in Sources */, 394259BB091E1DB5994B91A2 /* bundle.pb.cc in Sources */, EBAC5E8D0E2ECD9FBEDB7DAE /* bundle_builder.cc in Sources */, 5150E9F256E6E82D6F3CB3F1 /* bundle_cache_test.cc in Sources */, @@ -3845,6 +3856,7 @@ F73471529D36DD48ABD8AAE8 /* async_testing.cc in Sources */, 5D5E24E3FA1128145AA117D2 /* autoid_test.cc in Sources */, B6FDE6F91D3F81D045E962A0 /* bits_test.cc in Sources */, + F8EC78289E8FBC73AC640435 /* bloom_filter.pb.cc in Sources */, 4D1775B7916D4CDAD1BF1876 /* bundle.pb.cc in Sources */, 474DF520B9859479845C8A4D /* bundle_builder.cc in Sources */, 04D7D9DB95E66FECF2C0A412 /* bundle_cache_test.cc in Sources */, @@ -4068,6 +4080,7 @@ 08E3D48B3651E4908D75B23A /* async_testing.cc in Sources */, B842780CF42361ACBBB381A9 /* autoid_test.cc in Sources */, 146C140B254F3837A4DD7AE8 /* bits_test.cc in Sources */, + B79DDA1869EE15B93C5231F6 /* bloom_filter.pb.cc in Sources */, 3DDC57212ADBA9AD498EAA4C /* bundle.pb.cc in Sources */, F3DEF2DB11FADAABDAA4C8BB /* bundle_builder.cc in Sources */, 392966346DA5EB3165E16A22 /* bundle_cache_test.cc in Sources */, @@ -4291,6 +4304,7 @@ 2C5E4D9FDE7615AD0F63909E /* async_testing.cc in Sources */, 6AF739DDA9D33DF756DE7CDE /* autoid_test.cc in Sources */, C1B4621C0820EEB0AC9CCD22 /* bits_test.cc in Sources */, + CEA99E72C941969C54BE3248 /* bloom_filter.pb.cc in Sources */, 01C66732ECCB83AB1D896026 /* bundle.pb.cc in Sources */, EAA1962BFBA0EBFBA53B343F /* bundle_builder.cc in Sources */, C901A1BFD553B6DD70BB7CC7 /* bundle_cache_test.cc in Sources */, @@ -4508,6 +4522,7 @@ 11BC867491A6631D37DE56A8 /* async_testing.cc in Sources */, 54740A581FC914F000713A1A /* autoid_test.cc in Sources */, AB380D02201BC69F00D97691 /* bits_test.cc in Sources */, + 22FC2BEE59BEDE4CFF0FAA7E /* bloom_filter.pb.cc in Sources */, 784FCB02C76096DACCBA11F2 /* bundle.pb.cc in Sources */, 856A1EAAD674ADBDAAEDAC37 /* bundle_builder.cc in Sources */, BB3F35B1510FE5449E50EC8A /* bundle_cache_test.cc in Sources */, @@ -4750,6 +4765,7 @@ 35C330499D50AC415B24C580 /* async_testing.cc in Sources */, 8F781F527ED72DC6C123689E /* autoid_test.cc in Sources */, 0B9BD73418289EFF91917934 /* bits_test.cc in Sources */, + 35F32BDF43950B4E715A1BDB /* bloom_filter.pb.cc in Sources */, F8126CD7308A4B8AEC0F30A8 /* bundle.pb.cc in Sources */, 5AFA1055E8F6B4E4B1CCE2C4 /* bundle_builder.cc in Sources */, AE5E5E4A7BF12C2337AFA13B /* bundle_cache_test.cc in Sources */,