From 7bb9c9813396aec1a1eedd2b07b60575e0c91cd1 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Sat, 6 Jan 2024 00:23:07 +0000 Subject: [PATCH] Auto-generate files after cl/596105029 --- src/google/protobuf/api.pb.cc | 56 ++++++++++++--------- src/google/protobuf/struct.pb.cc | 14 +++--- src/google/protobuf/type.pb.cc | 84 ++++++++++++++++++-------------- 3 files changed, 88 insertions(+), 66 deletions(-) diff --git a/src/google/protobuf/api.pb.cc b/src/google/protobuf/api.pb.cc index 10ce6495b8..4e42b5e49f 100644 --- a/src/google/protobuf/api.pb.cc +++ b/src/google/protobuf/api.pb.cc @@ -459,19 +459,25 @@ const ::_pbi::TcParseTable<3, 7, 4, 39, 2> Api::_table_ = { } // repeated .google.protobuf.Method methods = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_methods_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_methods_size()); + i < n; i++) { const auto& repfield = this->_internal_methods().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); } // repeated .google.protobuf.Option options = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_options_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_options_size()); + i < n; i++) { const auto& repfield = this->_internal_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } // string version = 4; @@ -490,11 +496,14 @@ const ::_pbi::TcParseTable<3, 7, 4, 39, 2> Api::_table_ = { } // repeated .google.protobuf.Mixin mixins = 6; - for (unsigned i = 0, - n = static_cast(this->_internal_mixins_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_mixins_size()); + i < n; i++) { const auto& repfield = this->_internal_mixins().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, repfield, repfield.GetCachedSize(), + target, stream); } // .google.protobuf.Syntax syntax = 7; @@ -524,20 +533,17 @@ const ::_pbi::TcParseTable<3, 7, 4, 39, 2> Api::_table_ = { // repeated .google.protobuf.Method methods = 2; total_size += 1UL * this->_internal_methods_size(); for (const auto& msg : this->_internal_methods()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // repeated .google.protobuf.Option options = 3; total_size += 1UL * this->_internal_options_size(); for (const auto& msg : this->_internal_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // repeated .google.protobuf.Mixin mixins = 6; total_size += 1UL * this->_internal_mixins_size(); for (const auto& msg : this->_internal_mixins()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string name = 1; if (!this->_internal_name().empty()) { @@ -874,11 +880,14 @@ const ::_pbi::TcParseTable<3, 7, 1, 68, 2> Method::_table_ = { } // repeated .google.protobuf.Option options = 6; - for (unsigned i = 0, - n = static_cast(this->_internal_options_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_options_size()); + i < n; i++) { const auto& repfield = this->_internal_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, repfield, repfield.GetCachedSize(), + target, stream); } // .google.protobuf.Syntax syntax = 7; @@ -908,8 +917,7 @@ const ::_pbi::TcParseTable<3, 7, 1, 68, 2> Method::_table_ = { // repeated .google.protobuf.Option options = 6; total_size += 1UL * this->_internal_options_size(); for (const auto& msg : this->_internal_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string name = 1; if (!this->_internal_name().empty()) { diff --git a/src/google/protobuf/struct.pb.cc b/src/google/protobuf/struct.pb.cc index 8fbfe1ada6..b7db8e2408 100644 --- a/src/google/protobuf/struct.pb.cc +++ b/src/google/protobuf/struct.pb.cc @@ -989,11 +989,14 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListValue::_table_ = { (void)cached_has_bits; // repeated .google.protobuf.Value values = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_values_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_values_size()); + i < n; i++) { const auto& repfield = this->_internal_values().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1016,8 +1019,7 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListValue::_table_ = { // repeated .google.protobuf.Value values = 1; total_size += 1UL * this->_internal_values_size(); for (const auto& msg : this->_internal_values()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } diff --git a/src/google/protobuf/type.pb.cc b/src/google/protobuf/type.pb.cc index fac84937f1..acab7dac5f 100644 --- a/src/google/protobuf/type.pb.cc +++ b/src/google/protobuf/type.pb.cc @@ -639,11 +639,14 @@ const ::_pbi::TcParseTable<3, 7, 3, 46, 2> Type::_table_ = { } // repeated .google.protobuf.Field fields = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_fields_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_fields_size()); + i < n; i++) { const auto& repfield = this->_internal_fields().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); } // repeated string oneofs = 3; @@ -655,11 +658,14 @@ const ::_pbi::TcParseTable<3, 7, 3, 46, 2> Type::_table_ = { } // repeated .google.protobuf.Option options = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_options_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_options_size()); + i < n; i++) { const auto& repfield = this->_internal_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); } cached_has_bits = _impl_._has_bits_[0]; @@ -704,8 +710,7 @@ const ::_pbi::TcParseTable<3, 7, 3, 46, 2> Type::_table_ = { // repeated .google.protobuf.Field fields = 2; total_size += 1UL * this->_internal_fields_size(); for (const auto& msg : this->_internal_fields()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // repeated string oneofs = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_oneofs().size()); @@ -716,8 +721,7 @@ const ::_pbi::TcParseTable<3, 7, 3, 46, 2> Type::_table_ = { // repeated .google.protobuf.Option options = 4; total_size += 1UL * this->_internal_options_size(); for (const auto& msg : this->_internal_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string name = 1; if (!this->_internal_name().empty()) { @@ -1090,11 +1094,14 @@ const ::_pbi::TcParseTable<4, 10, 1, 72, 2> Field::_table_ = { } // repeated .google.protobuf.Option options = 9; - for (unsigned i = 0, - n = static_cast(this->_internal_options_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_options_size()); + i < n; i++) { const auto& repfield = this->_internal_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, repfield, repfield.GetCachedSize(), + target, stream); } // string json_name = 10; @@ -1133,8 +1140,7 @@ const ::_pbi::TcParseTable<4, 10, 1, 72, 2> Field::_table_ = { // repeated .google.protobuf.Option options = 9; total_size += 1UL * this->_internal_options_size(); for (const auto& msg : this->_internal_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string name = 4; if (!this->_internal_name().empty()) { @@ -1473,19 +1479,25 @@ const ::_pbi::TcParseTable<3, 6, 3, 40, 2> Enum::_table_ = { } // repeated .google.protobuf.EnumValue enumvalue = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_enumvalue_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_enumvalue_size()); + i < n; i++) { const auto& repfield = this->_internal_enumvalue().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); } // repeated .google.protobuf.Option options = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_options_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_options_size()); + i < n; i++) { const auto& repfield = this->_internal_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } cached_has_bits = _impl_._has_bits_[0]; @@ -1530,14 +1542,12 @@ const ::_pbi::TcParseTable<3, 6, 3, 40, 2> Enum::_table_ = { // repeated .google.protobuf.EnumValue enumvalue = 2; total_size += 1UL * this->_internal_enumvalue_size(); for (const auto& msg : this->_internal_enumvalue()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // repeated .google.protobuf.Option options = 3; total_size += 1UL * this->_internal_options_size(); for (const auto& msg : this->_internal_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string name = 1; if (!this->_internal_name().empty()) { @@ -1797,11 +1807,14 @@ const ::_pbi::TcParseTable<2, 3, 1, 38, 2> EnumValue::_table_ = { } // repeated .google.protobuf.Option options = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_options_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_options_size()); + i < n; i++) { const auto& repfield = this->_internal_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1824,8 +1837,7 @@ const ::_pbi::TcParseTable<2, 3, 1, 38, 2> EnumValue::_table_ = { // repeated .google.protobuf.Option options = 3; total_size += 1UL * this->_internal_options_size(); for (const auto& msg : this->_internal_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string name = 1; if (!this->_internal_name().empty()) {