Skip to content

Commit 1297e77

Browse files
Add Last Limbo Free Snapshot Version to Proto (#4469)
1 parent 0eff505 commit 1297e77

File tree

5 files changed

+149
-16
lines changed

5 files changed

+149
-16
lines changed

Firestore/Protos/cpp/firestore/local/target.pb.cc

Lines changed: 78 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_firestore_2flocal_2ftarget_2ep
9696
PROTOBUF_FIELD_OFFSET(::firestore::client::Target, last_listen_sequence_number_),
9797
offsetof(::firestore::client::TargetDefaultTypeInternal, query_),
9898
offsetof(::firestore::client::TargetDefaultTypeInternal, documents_),
99+
PROTOBUF_FIELD_OFFSET(::firestore::client::Target, last_limbo_free_snapshot_version_),
99100
PROTOBUF_FIELD_OFFSET(::firestore::client::Target, target_type_),
100101
~0u, // no _has_bits_
101102
PROTOBUF_FIELD_OFFSET(::firestore::client::TargetGlobal, _internal_metadata_),
@@ -109,7 +110,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_firestore_2flocal_2ftarget_2ep
109110
};
110111
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
111112
{ 0, -1, sizeof(::firestore::client::Target)},
112-
{ 12, -1, sizeof(::firestore::client::TargetGlobal)},
113+
{ 13, -1, sizeof(::firestore::client::TargetGlobal)},
113114
};
114115

115116
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@@ -120,20 +121,22 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] =
120121
const char descriptor_table_protodef_firestore_2flocal_2ftarget_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
121122
"\n\034firestore/local/target.proto\022\020firestor"
122123
"e.client\032#google/firestore/v1/firestore."
123-
"proto\032\037google/protobuf/timestamp.proto\"\227"
124+
"proto\032\037google/protobuf/timestamp.proto\"\335"
124125
"\002\n\006Target\022\021\n\ttarget_id\030\001 \001(\005\0224\n\020snapshot"
125126
"_version\030\002 \001(\0132\032.google.protobuf.Timesta"
126127
"mp\022\024\n\014resume_token\030\003 \001(\014\022#\n\033last_listen_"
127128
"sequence_number\030\004 \001(\003\0228\n\005query\030\005 \001(\0132\'.g"
128129
"oogle.firestore.v1.Target.QueryTargetH\000\022"
129130
"@\n\tdocuments\030\006 \001(\0132+.google.firestore.v1"
130-
".Target.DocumentsTargetH\000B\r\n\013target_type"
131-
"\"\251\001\n\014TargetGlobal\022\031\n\021highest_target_id\030\001"
132-
" \001(\005\022&\n\036highest_listen_sequence_number\030\002"
133-
" \001(\003\022@\n\034last_remote_snapshot_version\030\003 \001"
134-
"(\0132\032.google.protobuf.Timestamp\022\024\n\014target"
135-
"_count\030\004 \001(\005B/\n#com.google.firebase.fire"
136-
"store.protoP\001\242\002\005FSTPBb\006proto3"
131+
".Target.DocumentsTargetH\000\022D\n last_limbo_"
132+
"free_snapshot_version\030\007 \001(\0132\032.google.pro"
133+
"tobuf.TimestampB\r\n\013target_type\"\251\001\n\014Targe"
134+
"tGlobal\022\031\n\021highest_target_id\030\001 \001(\005\022&\n\036hi"
135+
"ghest_listen_sequence_number\030\002 \001(\003\022@\n\034la"
136+
"st_remote_snapshot_version\030\003 \001(\0132\032.googl"
137+
"e.protobuf.Timestamp\022\024\n\014target_count\030\004 \001"
138+
"(\005B/\n#com.google.firebase.firestore.prot"
139+
"oP\001\242\002\005FSTPBb\006proto3"
137140
;
138141
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_firestore_2flocal_2ftarget_2eproto_deps[2] = {
139142
&::descriptor_table_google_2ffirestore_2fv1_2ffirestore_2eproto,
@@ -146,7 +149,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_fir
146149
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_firestore_2flocal_2ftarget_2eproto_once;
147150
static bool descriptor_table_firestore_2flocal_2ftarget_2eproto_initialized = false;
148151
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_firestore_2flocal_2ftarget_2eproto = {
149-
&descriptor_table_firestore_2flocal_2ftarget_2eproto_initialized, descriptor_table_protodef_firestore_2flocal_2ftarget_2eproto, "firestore/local/target.proto", 629,
152+
&descriptor_table_firestore_2flocal_2ftarget_2eproto_initialized, descriptor_table_protodef_firestore_2flocal_2ftarget_2eproto, "firestore/local/target.proto", 699,
150153
&descriptor_table_firestore_2flocal_2ftarget_2eproto_once, descriptor_table_firestore_2flocal_2ftarget_2eproto_sccs, descriptor_table_firestore_2flocal_2ftarget_2eproto_deps, 2, 2,
151154
schemas, file_default_instances, TableStruct_firestore_2flocal_2ftarget_2eproto::offsets,
152155
file_level_metadata_firestore_2flocal_2ftarget_2eproto, 2, file_level_enum_descriptors_firestore_2flocal_2ftarget_2eproto, file_level_service_descriptors_firestore_2flocal_2ftarget_2eproto,
@@ -166,12 +169,15 @@ void Target::InitAsDefaultInstance() {
166169
::google::firestore::v1::Target_QueryTarget::internal_default_instance());
167170
::firestore::client::_Target_default_instance_.documents_ = const_cast< ::google::firestore::v1::Target_DocumentsTarget*>(
168171
::google::firestore::v1::Target_DocumentsTarget::internal_default_instance());
172+
::firestore::client::_Target_default_instance_._instance.get_mutable()->last_limbo_free_snapshot_version_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(
173+
PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance());
169174
}
170175
class Target::_Internal {
171176
public:
172177
static const PROTOBUF_NAMESPACE_ID::Timestamp& snapshot_version(const Target* msg);
173178
static const ::google::firestore::v1::Target_QueryTarget& query(const Target* msg);
174179
static const ::google::firestore::v1::Target_DocumentsTarget& documents(const Target* msg);
180+
static const PROTOBUF_NAMESPACE_ID::Timestamp& last_limbo_free_snapshot_version(const Target* msg);
175181
};
176182

177183
const PROTOBUF_NAMESPACE_ID::Timestamp&
@@ -186,6 +192,10 @@ const ::google::firestore::v1::Target_DocumentsTarget&
186192
Target::_Internal::documents(const Target* msg) {
187193
return *msg->target_type_.documents_;
188194
}
195+
const PROTOBUF_NAMESPACE_ID::Timestamp&
196+
Target::_Internal::last_limbo_free_snapshot_version(const Target* msg) {
197+
return *msg->last_limbo_free_snapshot_version_;
198+
}
189199
void Target::clear_snapshot_version() {
190200
if (GetArenaNoVirtual() == nullptr && snapshot_version_ != nullptr) {
191201
delete snapshot_version_;
@@ -232,6 +242,12 @@ void Target::clear_documents() {
232242
clear_has_target_type();
233243
}
234244
}
245+
void Target::clear_last_limbo_free_snapshot_version() {
246+
if (GetArenaNoVirtual() == nullptr && last_limbo_free_snapshot_version_ != nullptr) {
247+
delete last_limbo_free_snapshot_version_;
248+
}
249+
last_limbo_free_snapshot_version_ = nullptr;
250+
}
235251
Target::Target()
236252
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
237253
SharedCtor();
@@ -250,6 +266,11 @@ Target::Target(const Target& from)
250266
} else {
251267
snapshot_version_ = nullptr;
252268
}
269+
if (from.has_last_limbo_free_snapshot_version()) {
270+
last_limbo_free_snapshot_version_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_limbo_free_snapshot_version_);
271+
} else {
272+
last_limbo_free_snapshot_version_ = nullptr;
273+
}
253274
::memcpy(&last_listen_sequence_number_, &from.last_listen_sequence_number_,
254275
static_cast<size_t>(reinterpret_cast<char*>(&target_id_) -
255276
reinterpret_cast<char*>(&last_listen_sequence_number_)) + sizeof(target_id_));
@@ -287,6 +308,7 @@ Target::~Target() {
287308
void Target::SharedDtor() {
288309
resume_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
289310
if (this != internal_default_instance()) delete snapshot_version_;
311+
if (this != internal_default_instance()) delete last_limbo_free_snapshot_version_;
290312
if (has_target_type()) {
291313
clear_target_type();
292314
}
@@ -331,6 +353,10 @@ void Target::Clear() {
331353
delete snapshot_version_;
332354
}
333355
snapshot_version_ = nullptr;
356+
if (GetArenaNoVirtual() == nullptr && last_limbo_free_snapshot_version_ != nullptr) {
357+
delete last_limbo_free_snapshot_version_;
358+
}
359+
last_limbo_free_snapshot_version_ = nullptr;
334360
::memset(&last_listen_sequence_number_, 0, static_cast<size_t>(
335361
reinterpret_cast<char*>(&target_id_) -
336362
reinterpret_cast<char*>(&last_listen_sequence_number_)) + sizeof(target_id_));
@@ -388,6 +414,13 @@ const char* Target::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int
388414
CHK_(ptr);
389415
} else goto handle_unusual;
390416
continue;
417+
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
418+
case 7:
419+
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
420+
ptr = ctx->ParseMessage(mutable_last_limbo_free_snapshot_version(), ptr);
421+
CHK_(ptr);
422+
} else goto handle_unusual;
423+
continue;
391424
default: {
392425
handle_unusual:
393426
if ((tag & 7) == 4 || tag == 0) {
@@ -488,6 +521,17 @@ bool Target::MergePartialFromCodedStream(
488521
break;
489522
}
490523

524+
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
525+
case 7: {
526+
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
527+
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
528+
input, mutable_last_limbo_free_snapshot_version()));
529+
} else {
530+
goto handle_unusual;
531+
}
532+
break;
533+
}
534+
491535
default: {
492536
handle_unusual:
493537
if (tag == 0) {
@@ -549,6 +593,12 @@ void Target::SerializeWithCachedSizes(
549593
6, _Internal::documents(this), output);
550594
}
551595

596+
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
597+
if (this->has_last_limbo_free_snapshot_version()) {
598+
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
599+
7, _Internal::last_limbo_free_snapshot_version(this), output);
600+
}
601+
552602
if (_internal_metadata_.have_unknown_fields()) {
553603
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
554604
_internal_metadata_.unknown_fields(), output);
@@ -600,6 +650,13 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Target::InternalSerializeWithCachedSizesToArray(
600650
6, _Internal::documents(this), target);
601651
}
602652

653+
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
654+
if (this->has_last_limbo_free_snapshot_version()) {
655+
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
656+
InternalWriteMessageToArray(
657+
7, _Internal::last_limbo_free_snapshot_version(this), target);
658+
}
659+
603660
if (_internal_metadata_.have_unknown_fields()) {
604661
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
605662
_internal_metadata_.unknown_fields(), target);
@@ -635,6 +692,13 @@ size_t Target::ByteSizeLong() const {
635692
*snapshot_version_);
636693
}
637694

695+
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
696+
if (this->has_last_limbo_free_snapshot_version()) {
697+
total_size += 1 +
698+
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
699+
*last_limbo_free_snapshot_version_);
700+
}
701+
638702
// int64 last_listen_sequence_number = 4;
639703
if (this->last_listen_sequence_number() != 0) {
640704
total_size += 1 +
@@ -702,6 +766,9 @@ void Target::MergeFrom(const Target& from) {
702766
if (from.has_snapshot_version()) {
703767
mutable_snapshot_version()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from.snapshot_version());
704768
}
769+
if (from.has_last_limbo_free_snapshot_version()) {
770+
mutable_last_limbo_free_snapshot_version()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from.last_limbo_free_snapshot_version());
771+
}
705772
if (from.last_listen_sequence_number() != 0) {
706773
set_last_listen_sequence_number(from.last_listen_sequence_number());
707774
}
@@ -747,6 +814,7 @@ void Target::InternalSwap(Target* other) {
747814
resume_token_.Swap(&other->resume_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
748815
GetArenaNoVirtual());
749816
swap(snapshot_version_, other->snapshot_version_);
817+
swap(last_limbo_free_snapshot_version_, other->last_limbo_free_snapshot_version_);
750818
swap(last_listen_sequence_number_, other->last_listen_sequence_number_);
751819
swap(target_id_, other->target_id_);
752820
swap(target_type_, other->target_type_);

Firestore/Protos/cpp/firestore/local/target.pb.h

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ class Target :
212212
enum : int {
213213
kResumeTokenFieldNumber = 3,
214214
kSnapshotVersionFieldNumber = 2,
215+
kLastLimboFreeSnapshotVersionFieldNumber = 7,
215216
kLastListenSequenceNumberFieldNumber = 4,
216217
kTargetIdFieldNumber = 1,
217218
kQueryFieldNumber = 5,
@@ -236,6 +237,14 @@ class Target :
236237
PROTOBUF_NAMESPACE_ID::Timestamp* mutable_snapshot_version();
237238
void set_allocated_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version);
238239

240+
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
241+
bool has_last_limbo_free_snapshot_version() const;
242+
void clear_last_limbo_free_snapshot_version();
243+
const PROTOBUF_NAMESPACE_ID::Timestamp& last_limbo_free_snapshot_version() const;
244+
PROTOBUF_NAMESPACE_ID::Timestamp* release_last_limbo_free_snapshot_version();
245+
PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_limbo_free_snapshot_version();
246+
void set_allocated_last_limbo_free_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version);
247+
239248
// int64 last_listen_sequence_number = 4;
240249
void clear_last_listen_sequence_number();
241250
::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number() const;
@@ -276,6 +285,7 @@ class Target :
276285
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
277286
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
278287
PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version_;
288+
PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version_;
279289
::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number_;
280290
::PROTOBUF_NAMESPACE_ID::int32 target_id_;
281291
union TargetTypeUnion {
@@ -649,6 +659,52 @@ inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_document
649659
return target_type_.documents_;
650660
}
651661

662+
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
663+
inline bool Target::has_last_limbo_free_snapshot_version() const {
664+
return this != internal_default_instance() && last_limbo_free_snapshot_version_ != nullptr;
665+
}
666+
inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::last_limbo_free_snapshot_version() const {
667+
const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_limbo_free_snapshot_version_;
668+
// @@protoc_insertion_point(field_get:firestore.client.Target.last_limbo_free_snapshot_version)
669+
return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
670+
&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
671+
}
672+
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_last_limbo_free_snapshot_version() {
673+
// @@protoc_insertion_point(field_release:firestore.client.Target.last_limbo_free_snapshot_version)
674+
675+
PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_limbo_free_snapshot_version_;
676+
last_limbo_free_snapshot_version_ = nullptr;
677+
return temp;
678+
}
679+
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_last_limbo_free_snapshot_version() {
680+
681+
if (last_limbo_free_snapshot_version_ == nullptr) {
682+
auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
683+
last_limbo_free_snapshot_version_ = p;
684+
}
685+
// @@protoc_insertion_point(field_mutable:firestore.client.Target.last_limbo_free_snapshot_version)
686+
return last_limbo_free_snapshot_version_;
687+
}
688+
inline void Target::set_allocated_last_limbo_free_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version) {
689+
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
690+
if (message_arena == nullptr) {
691+
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_limbo_free_snapshot_version_);
692+
}
693+
if (last_limbo_free_snapshot_version) {
694+
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
695+
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_limbo_free_snapshot_version)->GetArena();
696+
if (message_arena != submessage_arena) {
697+
last_limbo_free_snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
698+
message_arena, last_limbo_free_snapshot_version, submessage_arena);
699+
}
700+
701+
} else {
702+
703+
}
704+
last_limbo_free_snapshot_version_ = last_limbo_free_snapshot_version;
705+
// @@protoc_insertion_point(field_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
706+
}
707+
652708
inline bool Target::has_target_type() const {
653709
return target_type_case() != TARGET_TYPE_NOT_SET;
654710
}

Firestore/Protos/nanopb/firestore/local/target.nanopb.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ using nanopb::PrintTail;
3737

3838

3939

40-
const pb_field_t firestore_client_Target_fields[7] = {
40+
const pb_field_t firestore_client_Target_fields[8] = {
4141
PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, firestore_client_Target, target_id, target_id, 0),
4242
PB_FIELD( 2, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_Target, snapshot_version, target_id, &google_protobuf_Timestamp_fields),
4343
PB_FIELD( 3, BYTES , SINGULAR, POINTER , OTHER, firestore_client_Target, resume_token, snapshot_version, 0),
4444
PB_FIELD( 4, INT64 , SINGULAR, STATIC , OTHER, firestore_client_Target, last_listen_sequence_number, resume_token, 0),
4545
PB_ANONYMOUS_ONEOF_FIELD(target_type, 5, MESSAGE , ONEOF, STATIC , OTHER, firestore_client_Target, query, last_listen_sequence_number, &google_firestore_v1_Target_QueryTarget_fields),
4646
PB_ANONYMOUS_ONEOF_FIELD(target_type, 6, MESSAGE , ONEOF, STATIC , UNION, firestore_client_Target, documents, last_listen_sequence_number, &google_firestore_v1_Target_DocumentsTarget_fields),
47+
PB_FIELD( 7, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_Target, last_limbo_free_snapshot_version, documents, &google_protobuf_Timestamp_fields),
4748
PB_LAST_FIELD
4849
};
4950

@@ -65,7 +66,7 @@ const pb_field_t firestore_client_TargetGlobal_fields[5] = {
6566
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
6667
* field descriptors.
6768
*/
68-
PB_STATIC_ASSERT((pb_membersize(firestore_client_Target, query) < 65536 && pb_membersize(firestore_client_Target, documents) < 65536 && pb_membersize(firestore_client_Target, snapshot_version) < 65536 && pb_membersize(firestore_client_TargetGlobal, last_remote_snapshot_version) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_firestore_client_Target_firestore_client_TargetGlobal)
69+
PB_STATIC_ASSERT((pb_membersize(firestore_client_Target, query) < 65536 && pb_membersize(firestore_client_Target, documents) < 65536 && pb_membersize(firestore_client_Target, snapshot_version) < 65536 && pb_membersize(firestore_client_Target, last_limbo_free_snapshot_version) < 65536 && pb_membersize(firestore_client_TargetGlobal, last_remote_snapshot_version) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_firestore_client_Target_firestore_client_TargetGlobal)
6970
#endif
7071

7172
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
@@ -76,7 +77,7 @@ PB_STATIC_ASSERT((pb_membersize(firestore_client_Target, query) < 65536 && pb_me
7677
* numbers or field sizes that are larger than what can fit in the default
7778
* 8 bit descriptors.
7879
*/
79-
PB_STATIC_ASSERT((pb_membersize(firestore_client_Target, query) < 256 && pb_membersize(firestore_client_Target, documents) < 256 && pb_membersize(firestore_client_Target, snapshot_version) < 256 && pb_membersize(firestore_client_TargetGlobal, last_remote_snapshot_version) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_firestore_client_Target_firestore_client_TargetGlobal)
80+
PB_STATIC_ASSERT((pb_membersize(firestore_client_Target, query) < 256 && pb_membersize(firestore_client_Target, documents) < 256 && pb_membersize(firestore_client_Target, snapshot_version) < 256 && pb_membersize(firestore_client_Target, last_limbo_free_snapshot_version) < 256 && pb_membersize(firestore_client_TargetGlobal, last_remote_snapshot_version) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_firestore_client_Target_firestore_client_TargetGlobal)
8081
#endif
8182

8283

@@ -99,6 +100,8 @@ std::string firestore_client_Target::ToString(int indent) const {
99100
result += PrintMessageField("documents ", documents, indent + 1, true);
100101
break;
101102
}
103+
result += PrintMessageField("last_limbo_free_snapshot_version ",
104+
last_limbo_free_snapshot_version, indent + 1, false);
102105

103106
std::string tail = PrintTail(indent);
104107
return header + result + tail;

0 commit comments

Comments
 (0)