@@ -112,6 +112,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
112
112
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET (::firestore::client::WriteBatch, batch_id_),
113
113
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET (::firestore::client::WriteBatch, writes_),
114
114
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET (::firestore::client::WriteBatch, local_write_time_),
115
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET (::firestore::client::WriteBatch, base_writes_),
115
116
};
116
117
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
117
118
{ 0 , -1 , sizeof (::firestore::client::MutationQueue)},
@@ -150,14 +151,16 @@ void AddDescriptorsImpl() {
150
151
" te.proto\032\037 google/protobuf/timestamp.prot"
151
152
" o\" N\n\r MutationQueue\022\"\n\032 last_acknowledged_"
152
153
" batch_id\030\001 \001 (\005\022\031\n\021 last_stream_token\030\002 \001 ("
153
- " \014\"\205 \001\n\n WriteBatch\022\020\n\010 batch_id\030\001 \001 (\005\022 /\n\006 wr"
154
+ " \014\"\273 \001\n\n WriteBatch\022\020\n\010 batch_id\030\001 \001 (\005\022 /\n\006 wr"
154
155
" ites\030\002 \003 (\013 2\037 .google.firestore.v1beta1.Wr"
155
156
" ite\022 4\n\020 local_write_time\030\003 \001 (\013 2\032 .google.p"
156
- " rotobuf.TimestampB/\n #com.google.firebase"
157
- " .firestore.protoP\001\242\002\005 FSTPBb\006 proto3"
157
+ " rotobuf.Timestamp\022 4\n\013 base_writes\030\004 \003 (\013 2\037 "
158
+ " .google.firestore.v1beta1.WriteB/\n #com.g"
159
+ " oogle.firebase.firestore.protoP\001\242\002\005 FSTPB"
160
+ " b\006 proto3"
158
161
};
159
162
::google::protobuf::DescriptorPool::InternalAddGeneratedFile (
160
- descriptor, 394 );
163
+ descriptor, 448 );
161
164
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile (
162
165
" firestore/local/mutation.proto" , &protobuf_RegisterTypes);
163
166
::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::AddDescriptors ();
@@ -476,10 +479,14 @@ void WriteBatch::clear_local_write_time() {
476
479
}
477
480
local_write_time_ = NULL ;
478
481
}
482
+ void WriteBatch::clear_base_writes () {
483
+ base_writes_.Clear ();
484
+ }
479
485
#if !defined(_MSC_VER) || _MSC_VER >= 1900
480
486
const int WriteBatch::kBatchIdFieldNumber ;
481
487
const int WriteBatch::kWritesFieldNumber ;
482
488
const int WriteBatch::kLocalWriteTimeFieldNumber ;
489
+ const int WriteBatch::kBaseWritesFieldNumber ;
483
490
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
484
491
485
492
WriteBatch::WriteBatch ()
@@ -494,6 +501,7 @@ WriteBatch::WriteBatch(const WriteBatch& from)
494
501
: ::google::protobuf::Message(),
495
502
_internal_metadata_(NULL ),
496
503
writes_(from.writes_),
504
+ base_writes_(from.base_writes_),
497
505
_cached_size_(0 ) {
498
506
_internal_metadata_.MergeFrom (from._internal_metadata_ );
499
507
if (from.has_local_write_time ()) {
@@ -551,6 +559,7 @@ void WriteBatch::Clear() {
551
559
(void ) cached_has_bits;
552
560
553
561
writes_.Clear ();
562
+ base_writes_.Clear ();
554
563
if (GetArenaNoVirtual () == NULL && local_write_time_ != NULL ) {
555
564
delete local_write_time_;
556
565
}
@@ -606,6 +615,17 @@ bool WriteBatch::MergePartialFromCodedStream(
606
615
break ;
607
616
}
608
617
618
+ // repeated .google.firestore.v1beta1.Write base_writes = 4;
619
+ case 4 : {
620
+ if (static_cast < ::google::protobuf::uint8>(tag) ==
621
+ static_cast < ::google::protobuf::uint8>(34u /* 34 & 0xFF */ )) {
622
+ DO_ (::google::protobuf::internal::WireFormatLite::ReadMessage (input, add_base_writes ()));
623
+ } else {
624
+ goto handle_unusual;
625
+ }
626
+ break ;
627
+ }
628
+
609
629
default : {
610
630
handle_unusual:
611
631
if (tag == 0 ) {
@@ -650,6 +670,13 @@ void WriteBatch::SerializeWithCachedSizes(
650
670
3 , *this ->local_write_time_, output);
651
671
}
652
672
673
+ // repeated .google.firestore.v1beta1.Write base_writes = 4;
674
+ for (unsigned int i = 0 ,
675
+ n = static_cast <unsigned int >(this ->base_writes_size ()); i < n; i++) {
676
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray (
677
+ 4 , this ->base_writes (static_cast <int >(i)), output);
678
+ }
679
+
653
680
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
654
681
::google::protobuf::internal::WireFormat::SerializeUnknownFields (
655
682
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
@@ -684,6 +711,14 @@ ::google::protobuf::uint8* WriteBatch::InternalSerializeWithCachedSizesToArray(
684
711
3 , *this ->local_write_time_ , deterministic, target);
685
712
}
686
713
714
+ // repeated .google.firestore.v1beta1.Write base_writes = 4;
715
+ for (unsigned int i = 0 ,
716
+ n = static_cast <unsigned int >(this ->base_writes_size ()); i < n; i++) {
717
+ target = ::google::protobuf::internal::WireFormatLite::
718
+ InternalWriteMessageToArray (
719
+ 4 , this ->base_writes (static_cast <int >(i)), deterministic, target);
720
+ }
721
+
687
722
if ((_internal_metadata_.have_unknown_fields () && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault ())) {
688
723
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray (
689
724
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault () ? _internal_metadata_.unknown_fields () : _internal_metadata_.default_instance ()), target);
@@ -712,6 +747,17 @@ size_t WriteBatch::ByteSizeLong() const {
712
747
}
713
748
}
714
749
750
+ // repeated .google.firestore.v1beta1.Write base_writes = 4;
751
+ {
752
+ unsigned int count = static_cast <unsigned int >(this ->base_writes_size ());
753
+ total_size += 1UL * count;
754
+ for (unsigned int i = 0 ; i < count; i++) {
755
+ total_size +=
756
+ ::google::protobuf::internal::WireFormatLite::MessageSize (
757
+ this ->base_writes (static_cast <int >(i)));
758
+ }
759
+ }
760
+
715
761
// .google.protobuf.Timestamp local_write_time = 3;
716
762
if (this ->has_local_write_time ()) {
717
763
total_size += 1 +
@@ -756,6 +802,7 @@ void WriteBatch::MergeFrom(const WriteBatch& from) {
756
802
(void ) cached_has_bits;
757
803
758
804
writes_.MergeFrom (from.writes_ );
805
+ base_writes_.MergeFrom (from.base_writes_ );
759
806
if (from.has_local_write_time ()) {
760
807
mutable_local_write_time ()->::google::protobuf::Timestamp::MergeFrom (from.local_write_time ());
761
808
}
@@ -789,6 +836,7 @@ void WriteBatch::Swap(WriteBatch* other) {
789
836
void WriteBatch::InternalSwap (WriteBatch* other) {
790
837
using std::swap;
791
838
writes_.InternalSwap (&other->writes_ );
839
+ base_writes_.InternalSwap (&other->base_writes_ );
792
840
swap (local_write_time_, other->local_write_time_ );
793
841
swap (batch_id_, other->batch_id_ );
794
842
_internal_metadata_.Swap (&other->_internal_metadata_ );
0 commit comments