From 59bbdb8d3f93213550809f0538a88dce3249c191 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 30 Jan 2025 12:12:50 -0800 Subject: [PATCH] Add no-op condition change in preparation for adding branch hints. PiperOrigin-RevId: 721476135 --- .../golden/compare_cpp_codegen_failure.txt | 4 +- .../golden/compare_cpp_codegen_failure.xml | 2 +- src/google/protobuf/compiler/cpp/message.cc | 16 +- .../compiler/java/java_features.pb.cc | 18 +- src/google/protobuf/compiler/plugin.pb.cc | 128 +- src/google/protobuf/cpp_features.pb.cc | 18 +- src/google/protobuf/descriptor.pb.cc | 1074 ++++++++--------- 7 files changed, 630 insertions(+), 630 deletions(-) diff --git a/editions/golden/compare_cpp_codegen_failure.txt b/editions/golden/compare_cpp_codegen_failure.txt index fdbc5525e8767..4c4403d9ca5df 100644 --- a/editions/golden/compare_cpp_codegen_failure.txt +++ b/editions/golden/compare_cpp_codegen_failure.txt @@ -21,7 +21,7 @@ cached_has_bits = this_._impl_._has_bits_[0]; - // optional int32 int32_field = 1; + // int32 int32_field = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::proto2::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( @@ @@ @@ -31,7 +31,7 @@ - // optional int32 int32_field = 1; + // int32 int32_field = 1; cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( [ FAILED ] third_party/protobuf/editions/golden/simple_proto3.pb.cc [ RUN ] third_party/protobuf/editions/golden/simple_proto3.pb.h diff --git a/editions/golden/compare_cpp_codegen_failure.xml b/editions/golden/compare_cpp_codegen_failure.xml index b897c0e51856c..5c14825cbf189 100644 --- a/editions/golden/compare_cpp_codegen_failure.xml +++ b/editions/golden/compare_cpp_codegen_failure.xml @@ -2,7 +2,7 @@ - + diff --git a/src/google/protobuf/compiler/cpp/message.cc b/src/google/protobuf/compiler/cpp/message.cc index b1650111082c4..73bfa9b119410 100644 --- a/src/google/protobuf/compiler/cpp/message.cc +++ b/src/google/protobuf/compiler/cpp/message.cc @@ -109,7 +109,7 @@ void PrintPresenceCheck(const FieldDescriptor* field, } p->Emit({{"mask", absl::StrFormat("0x%08xu", 1u << (has_bit_index % 32))}}, R"cc( - if (cached_has_bits & $mask$) { + if ((cached_has_bits & $mask$) != 0) { )cc"); } else { p->Emit(R"cc( @@ -1330,7 +1330,7 @@ void MessageGenerator::EmitCheckAndUpdateByteSizeForField( /*with_enclosing_braces_always=*/false); }}}, R"cc( - if (cached_has_bits & $mask$) { + if ((cached_has_bits & $mask$) != 0) { $check_nondefault_and_emit_body$; } )cc"); @@ -3188,7 +3188,7 @@ void MessageGenerator::GenerateCopyInitFields(io::Printer* p) const { } else { int index = has_bit_indices_[field->index()]; std::string mask = absl::StrFormat("0x%08xu", 1u << (index % 32)); - p->Emit({{"mask", mask}}, "cached_has_bits & $mask$"); + p->Emit({{"mask", mask}}, "(cached_has_bits & $mask$) != 0"); } }; @@ -3619,7 +3619,7 @@ void MessageGenerator::GenerateClear(io::Printer* p) { cached_has_word_index = HasWordIndex(fields.front()); format("cached_has_bits = $has_bits$[$1$];\n", cached_has_word_index); } - format("if (cached_has_bits & 0x$1$u) {\n", chunk_mask_str); + format("if ((cached_has_bits & 0x$1$u) != 0) {\n", chunk_mask_str); format.Indent(); } @@ -4285,7 +4285,7 @@ void MessageGenerator::GenerateClassSpecificMergeImpl(io::Printer* p) { ABSL_DCHECK_LE(2, popcnt(chunk_mask)); ABSL_DCHECK_GE(8, popcnt(chunk_mask)); - format("if (cached_has_bits & 0x$1$u) {\n", chunk_mask_str); + format("if ((cached_has_bits & 0x$1$u) != 0) {\n", chunk_mask_str); format.Indent(); } @@ -4319,7 +4319,7 @@ void MessageGenerator::GenerateClassSpecificMergeImpl(io::Printer* p) { int has_bit_index = has_bit_indices_[field->index()]; const std::string mask = absl::StrCat( absl::Hex(1u << (has_bit_index % 32), absl::kZeroPad8)); - format("if (cached_has_bits & 0x$1$u) {\n", mask); + format("if ((cached_has_bits & 0x$1$u) != 0) {\n", mask); format.Indent(); if (GetFieldHasbitMode(field) == HasbitMode::kHintHasbit) { @@ -4570,7 +4570,7 @@ void MessageGenerator::GenerateSerializeOneField(io::Printer* p, auto v = p->WithVars(HasBitVars(field)); // Attempt to use the state of cached_has_bits, if possible. if (cached_has_bits_index == has_bit_index / 32) { - p->Emit("cached_has_bits & $has_mask$"); + p->Emit("(cached_has_bits & $has_mask$) != 0"); } else { p->Emit( "(this_.$has_bits$[$has_array_index$] & $has_mask$) != 0"); @@ -5223,7 +5223,7 @@ void MessageGenerator::GenerateByteSize(io::Printer* p) { p->Emit( {{"mask", absl::StrFormat("0x%08xu", chunk_mask)}}, - "if (cached_has_bits & $mask$)"); + "if ((cached_has_bits & $mask$) != 0)"); }}}, R"cc( $may_update_cached_has_word_index$; diff --git a/src/google/protobuf/compiler/java/java_features.pb.cc b/src/google/protobuf/compiler/java/java_features.pb.cc index 322cff2cff8ad..6d9c466358ad0 100644 --- a/src/google/protobuf/compiler/java/java_features.pb.cc +++ b/src/google/protobuf/compiler/java/java_features.pb.cc @@ -291,7 +291,7 @@ PROTOBUF_NOINLINE void JavaFeatures::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if ((cached_has_bits & 0x00000007u) != 0) { ::memset(&_impl_.utf8_validation_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.use_old_outer_classname_default_) - reinterpret_cast(&_impl_.utf8_validation_)) + sizeof(_impl_.use_old_outer_classname_default_)); @@ -317,21 +317,21 @@ ::uint8_t* PROTOBUF_NONNULL JavaFeatures::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_legacy_closed_enum(), target); } // optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this_._internal_utf8_validation(), target); } // optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 4, this_._internal_use_old_outer_classname_default(), target); @@ -365,7 +365,7 @@ ::size_t JavaFeatures::ByteSizeLong() const { total_size += ::absl::popcount(0x00000006u & cached_has_bits) * 2; { // optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_utf8_validation()); } @@ -383,14 +383,14 @@ void JavaFeatures::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_impl_.utf8_validation_ = from._impl_.utf8_validation_; } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.legacy_closed_enum_ = from._impl_.legacy_closed_enum_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.use_old_outer_classname_default_ = from._impl_.use_old_outer_classname_default_; } } diff --git a/src/google/protobuf/compiler/plugin.pb.cc b/src/google/protobuf/compiler/plugin.pb.cc index ed543be95066b..38362e9c228af 100644 --- a/src/google/protobuf/compiler/plugin.pb.cc +++ b/src/google/protobuf/compiler/plugin.pb.cc @@ -485,10 +485,10 @@ PROTOBUF_NOINLINE void Version::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.suffix_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000000eu) { + if ((cached_has_bits & 0x0000000eu) != 0) { ::memset(&_impl_.major_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.patch_) - reinterpret_cast(&_impl_.major_)) + sizeof(_impl_.patch_)); @@ -514,28 +514,28 @@ ::uint8_t* PROTOBUF_NONNULL Version::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 major = 1; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( stream, this_._internal_major(), target); } // optional int32 minor = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( stream, this_._internal_minor(), target); } // optional int32 patch = 3; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( stream, this_._internal_patch(), target); } // optional string suffix = 4; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_suffix(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.compiler.Version.suffix"); @@ -567,24 +567,24 @@ ::size_t Version::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if ((cached_has_bits & 0x0000000fu) != 0) { // optional string suffix = 4; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_suffix()); } // optional int32 major = 1; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_major()); } // optional int32 minor = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_minor()); } // optional int32 patch = 3; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_patch()); } @@ -602,17 +602,17 @@ void Version::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_suffix(from._internal_suffix()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.major_ = from._impl_.major_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.minor_ = from._impl_.minor_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.patch_ = from._impl_.patch_; } } @@ -698,7 +698,7 @@ CodeGeneratorRequest::CodeGeneratorRequest( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.compiler_version_ = (cached_has_bits & 0x00000002u) + _impl_.compiler_version_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.compiler_version_) : nullptr; @@ -870,11 +870,11 @@ PROTOBUF_NOINLINE void CodeGeneratorRequest::Clear() { _impl_.proto_file_.Clear(); _impl_.source_file_descriptors_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.parameter_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.compiler_version_ != nullptr); _impl_.compiler_version_->Clear(); } @@ -908,7 +908,7 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorRequest::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string parameter = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_parameter(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.compiler.CodeGeneratorRequest.parameter"); @@ -916,7 +916,7 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorRequest::_InternalSerialize( } // optional .google.protobuf.compiler.Version compiler_version = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.compiler_version_, this_._impl_.compiler_version_->GetCachedSize(), target, stream); @@ -994,14 +994,14 @@ ::size_t CodeGeneratorRequest::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional string parameter = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_parameter()); } // optional .google.protobuf.compiler.Version compiler_version = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.compiler_version_); } @@ -1025,11 +1025,11 @@ void CodeGeneratorRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, co _this->_internal_mutable_source_file_descriptors()->MergeFrom( from._internal_source_file_descriptors()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_parameter(from._internal_parameter()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.compiler_version_ != nullptr); if (_this->_impl_.compiler_version_ == nullptr) { _this->_impl_.compiler_version_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.compiler_version_); @@ -1123,7 +1123,7 @@ CodeGeneratorResponse_File::CodeGeneratorResponse_File( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.generated_code_info_ = (cached_has_bits & 0x00000008u) + _impl_.generated_code_info_ = ((cached_has_bits & 0x00000008u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.generated_code_info_) : nullptr; @@ -1265,17 +1265,17 @@ PROTOBUF_NOINLINE void CodeGeneratorResponse_File::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.insertion_point_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.content_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(_impl_.generated_code_info_ != nullptr); _impl_.generated_code_info_->Clear(); } @@ -1301,7 +1301,7 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse_File::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.compiler.CodeGeneratorResponse.File.name"); @@ -1309,7 +1309,7 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse_File::_InternalSerialize( } // optional string insertion_point = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_insertion_point(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point"); @@ -1317,7 +1317,7 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse_File::_InternalSerialize( } // optional string content = 15; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { const std::string& _s = this_._internal_content(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.compiler.CodeGeneratorResponse.File.content"); @@ -1325,7 +1325,7 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse_File::_InternalSerialize( } // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 16, *this_._impl_.generated_code_info_, this_._impl_.generated_code_info_->GetCachedSize(), target, stream); @@ -1356,24 +1356,24 @@ ::size_t CodeGeneratorResponse_File::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if ((cached_has_bits & 0x0000000fu) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional string insertion_point = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_insertion_point()); } // optional string content = 15; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_content()); } // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.generated_code_info_); } @@ -1392,17 +1392,17 @@ void CodeGeneratorResponse_File::MergeImpl(::google::protobuf::MessageLite& to_m (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_insertion_point(from._internal_insertion_point()); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_internal_set_content(from._internal_content()); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(from._impl_.generated_code_info_ != nullptr); if (_this->_impl_.generated_code_info_ == nullptr) { _this->_impl_.generated_code_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.generated_code_info_); @@ -1646,10 +1646,10 @@ PROTOBUF_NOINLINE void CodeGeneratorResponse::Clear() { _impl_.file_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.error_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000000eu) { + if ((cached_has_bits & 0x0000000eu) != 0) { ::memset(&_impl_.supported_features_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.maximum_edition_) - reinterpret_cast(&_impl_.supported_features_)) + sizeof(_impl_.maximum_edition_)); @@ -1675,7 +1675,7 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string error = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_error(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.compiler.CodeGeneratorResponse.error"); @@ -1683,21 +1683,21 @@ ::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse::_InternalSerialize( } // optional uint64 supported_features = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( 2, this_._internal_supported_features(), target); } // optional int32 minimum_edition = 3; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( stream, this_._internal_minimum_edition(), target); } // optional int32 maximum_edition = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( stream, this_._internal_maximum_edition(), target); @@ -1748,24 +1748,24 @@ ::size_t CodeGeneratorResponse::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if ((cached_has_bits & 0x0000000fu) != 0) { // optional string error = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_error()); } // optional uint64 supported_features = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_supported_features()); } // optional int32 minimum_edition = 3; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_minimum_edition()); } // optional int32 maximum_edition = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_maximum_edition()); } @@ -1785,17 +1785,17 @@ void CodeGeneratorResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, c _this->_internal_mutable_file()->MergeFrom( from._internal_file()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_error(from._internal_error()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.supported_features_ = from._impl_.supported_features_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.minimum_edition_ = from._impl_.minimum_edition_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.maximum_edition_ = from._impl_.maximum_edition_; } } diff --git a/src/google/protobuf/cpp_features.pb.cc b/src/google/protobuf/cpp_features.pb.cc index 678338f715e4d..85c671a9cb69f 100644 --- a/src/google/protobuf/cpp_features.pb.cc +++ b/src/google/protobuf/cpp_features.pb.cc @@ -285,7 +285,7 @@ PROTOBUF_NOINLINE void CppFeatures::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if ((cached_has_bits & 0x00000007u) != 0) { ::memset(&_impl_.string_type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.enum_name_uses_string_view_) - reinterpret_cast(&_impl_.string_type_)) + sizeof(_impl_.enum_name_uses_string_view_)); @@ -311,21 +311,21 @@ ::uint8_t* PROTOBUF_NONNULL CppFeatures::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_legacy_closed_enum(), target); } // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this_._internal_string_type(), target); } // optional bool enum_name_uses_string_view = 3 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 3, this_._internal_enum_name_uses_string_view(), target); @@ -359,7 +359,7 @@ ::size_t CppFeatures::ByteSizeLong() const { total_size += ::absl::popcount(0x00000006u & cached_has_bits) * 2; { // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_string_type()); } @@ -377,14 +377,14 @@ void CppFeatures::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_impl_.string_type_ = from._impl_.string_type_; } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.legacy_closed_enum_ = from._impl_.legacy_closed_enum_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.enum_name_uses_string_view_ = from._impl_.enum_name_uses_string_view_; } } diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index 38fcb3141f1bf..069eaea88ec8b 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc @@ -2675,10 +2675,10 @@ FileDescriptorProto::FileDescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000008u) + _impl_.options_ = ((cached_has_bits & 0x00000008u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; - _impl_.source_code_info_ = (cached_has_bits & 0x00000010u) + _impl_.source_code_info_ = ((cached_has_bits & 0x00000010u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.source_code_info_) : nullptr; _impl_.edition_ = from._impl_.edition_; @@ -2940,21 +2940,21 @@ PROTOBUF_NOINLINE void FileDescriptorProto::Clear() { _impl_.public_dependency_.Clear(); _impl_.weak_dependency_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.package_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.syntax_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(_impl_.source_code_info_ != nullptr); _impl_.source_code_info_->Clear(); } @@ -2981,7 +2981,7 @@ ::uint8_t* PROTOBUF_NONNULL FileDescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileDescriptorProto.name"); @@ -2989,7 +2989,7 @@ ::uint8_t* PROTOBUF_NONNULL FileDescriptorProto::_InternalSerialize( } // optional string package = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_package(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileDescriptorProto.package"); @@ -3049,14 +3049,14 @@ ::uint8_t* PROTOBUF_NONNULL FileDescriptorProto::_InternalSerialize( } // optional .google.protobuf.FileOptions options = 8; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 8, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); } // optional .google.protobuf.SourceCodeInfo source_code_info = 9; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 9, *this_._impl_.source_code_info_, this_._impl_.source_code_info_->GetCachedSize(), target, stream); @@ -3077,7 +3077,7 @@ ::uint8_t* PROTOBUF_NONNULL FileDescriptorProto::_InternalSerialize( } // optional string syntax = 12; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { const std::string& _s = this_._internal_syntax(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileDescriptorProto.syntax"); @@ -3085,7 +3085,7 @@ ::uint8_t* PROTOBUF_NONNULL FileDescriptorProto::_InternalSerialize( } // optional .google.protobuf.Edition edition = 14; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 14, this_._internal_edition(), target); @@ -3171,34 +3171,34 @@ ::size_t FileDescriptorProto::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { + if ((cached_has_bits & 0x0000003fu) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional string package = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_package()); } // optional string syntax = 12; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_syntax()); } // optional .google.protobuf.FileOptions options = 8; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } // optional .google.protobuf.SourceCodeInfo source_code_info = 9; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.source_code_info_); } // optional .google.protobuf.Edition edition = 14; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_edition()); } @@ -3228,17 +3228,17 @@ void FileDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, con _this->_internal_mutable_public_dependency()->MergeFrom(from._internal_public_dependency()); _this->_internal_mutable_weak_dependency()->MergeFrom(from._internal_weak_dependency()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_package(from._internal_package()); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_internal_set_syntax(from._internal_syntax()); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -3246,7 +3246,7 @@ void FileDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, con _this->_impl_.options_->MergeFrom(*from._impl_.options_); } } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(from._impl_.source_code_info_ != nullptr); if (_this->_impl_.source_code_info_ == nullptr) { _this->_impl_.source_code_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.source_code_info_); @@ -3254,7 +3254,7 @@ void FileDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, con _this->_impl_.source_code_info_->MergeFrom(*from._impl_.source_code_info_); } } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _this->_impl_.edition_ = from._impl_.edition_; } } @@ -3356,7 +3356,7 @@ DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000001u) + _impl_.options_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -3493,11 +3493,11 @@ PROTOBUF_NOINLINE void DescriptorProto_ExtensionRange::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } - if (cached_has_bits & 0x00000006u) { + if ((cached_has_bits & 0x00000006u) != 0) { ::memset(&_impl_.start_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.end_) - reinterpret_cast(&_impl_.start_)) + sizeof(_impl_.end_)); @@ -3523,21 +3523,21 @@ ::uint8_t* PROTOBUF_NONNULL DescriptorProto_ExtensionRange::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 start = 1; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( stream, this_._internal_start(), target); } // optional int32 end = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( stream, this_._internal_end(), target); } // optional .google.protobuf.ExtensionRangeOptions options = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); @@ -3568,19 +3568,19 @@ ::size_t DescriptorProto_ExtensionRange::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if ((cached_has_bits & 0x00000007u) != 0) { // optional .google.protobuf.ExtensionRangeOptions options = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } // optional int32 start = 1; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_start()); } // optional int32 end = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_end()); } @@ -3599,8 +3599,8 @@ void DescriptorProto_ExtensionRange::MergeImpl(::google::protobuf::MessageLite& (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -3608,10 +3608,10 @@ void DescriptorProto_ExtensionRange::MergeImpl(::google::protobuf::MessageLite& _this->_impl_.options_->MergeFrom(*from._impl_.options_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.start_ = from._impl_.start_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.end_ = from._impl_.end_; } } @@ -3794,7 +3794,7 @@ PROTOBUF_NOINLINE void DescriptorProto_ReservedRange::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { ::memset(&_impl_.start_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.end_) - reinterpret_cast(&_impl_.start_)) + sizeof(_impl_.end_)); @@ -3820,14 +3820,14 @@ ::uint8_t* PROTOBUF_NONNULL DescriptorProto_ReservedRange::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 start = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( stream, this_._internal_start(), target); } // optional int32 end = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( stream, this_._internal_end(), target); @@ -3858,14 +3858,14 @@ ::size_t DescriptorProto_ReservedRange::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional int32 start = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_start()); } // optional int32 end = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_end()); } @@ -3883,11 +3883,11 @@ void DescriptorProto_ReservedRange::MergeImpl(::google::protobuf::MessageLite& t (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_impl_.start_ = from._impl_.start_; } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.end_ = from._impl_.end_; } } @@ -3967,7 +3967,7 @@ DescriptorProto::DescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000002u) + _impl_.options_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; @@ -4208,11 +4208,11 @@ PROTOBUF_NOINLINE void DescriptorProto::Clear() { _impl_.reserved_range_.Clear(); _impl_.reserved_name_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } @@ -4238,7 +4238,7 @@ ::uint8_t* PROTOBUF_NONNULL DescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.DescriptorProto.name"); @@ -4301,7 +4301,7 @@ ::uint8_t* PROTOBUF_NONNULL DescriptorProto::_InternalSerialize( } // optional .google.protobuf.MessageOptions options = 7; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 7, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); @@ -4422,14 +4422,14 @@ ::size_t DescriptorProto::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional .google.protobuf.MessageOptions options = 7; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } @@ -4463,11 +4463,11 @@ void DescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const : from._internal_reserved_range()); _this->_internal_mutable_reserved_name()->MergeFrom(from._internal_reserved_name()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -4723,15 +4723,15 @@ PROTOBUF_NOINLINE void ExtensionRangeOptions_Declaration::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.full_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.type_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x0000001cu) { + if ((cached_has_bits & 0x0000001cu) != 0) { ::memset(&_impl_.number_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.repeated_) - reinterpret_cast(&_impl_.number_)) + sizeof(_impl_.repeated_)); @@ -4757,14 +4757,14 @@ ::uint8_t* PROTOBUF_NONNULL ExtensionRangeOptions_Declaration::_InternalSerializ cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 number = 1; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( stream, this_._internal_number(), target); } // optional string full_name = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_full_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.ExtensionRangeOptions.Declaration.full_name"); @@ -4772,7 +4772,7 @@ ::uint8_t* PROTOBUF_NONNULL ExtensionRangeOptions_Declaration::_InternalSerializ } // optional string type = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_type(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.ExtensionRangeOptions.Declaration.type"); @@ -4780,14 +4780,14 @@ ::uint8_t* PROTOBUF_NONNULL ExtensionRangeOptions_Declaration::_InternalSerializ } // optional bool reserved = 5; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 5, this_._internal_reserved(), target); } // optional bool repeated = 6; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 6, this_._internal_repeated(), target); @@ -4819,19 +4819,19 @@ ::size_t ExtensionRangeOptions_Declaration::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; total_size += ::absl::popcount(0x00000018u & cached_has_bits) * 2; - if (cached_has_bits & 0x00000007u) { + if ((cached_has_bits & 0x00000007u) != 0) { // optional string full_name = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_full_name()); } // optional string type = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_type()); } // optional int32 number = 1; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_number()); } @@ -4849,20 +4849,20 @@ void ExtensionRangeOptions_Declaration::MergeImpl(::google::protobuf::MessageLit (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_full_name(from._internal_full_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_type(from._internal_type()); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.number_ = from._impl_.number_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.reserved_ = from._impl_.reserved_; } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_impl_.repeated_ = from._impl_.repeated_; } } @@ -4941,7 +4941,7 @@ ExtensionRangeOptions::ExtensionRangeOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; _impl_.verification_ = from._impl_.verification_; @@ -5107,8 +5107,8 @@ PROTOBUF_NOINLINE void ExtensionRangeOptions::Clear() { _impl_.declaration_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } @@ -5146,14 +5146,14 @@ ::uint8_t* PROTOBUF_NONNULL ExtensionRangeOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED, retention = RETENTION_SOURCE]; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this_._internal_verification(), target); } // optional .google.protobuf.FeatureSet features = 50; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 50, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); @@ -5215,14 +5215,14 @@ ::size_t ExtensionRangeOptions::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional .google.protobuf.FeatureSet features = 50; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } // optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED, retention = RETENTION_SOURCE]; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_verification()); } @@ -5245,8 +5245,8 @@ void ExtensionRangeOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, c _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -5254,7 +5254,7 @@ void ExtensionRangeOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, c _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.verification_ = from._impl_.verification_; } } @@ -5347,7 +5347,7 @@ FieldDescriptorProto::FieldDescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000020u) + _impl_.options_ = ((cached_has_bits & 0x00000020u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -5555,33 +5555,33 @@ PROTOBUF_NOINLINE void FieldDescriptorProto::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.extendee_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.type_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _impl_.default_value_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _impl_.json_name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } } - if (cached_has_bits & 0x000000c0u) { + if ((cached_has_bits & 0x000000c0u) != 0) { ::memset(&_impl_.number_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.oneof_index_) - reinterpret_cast(&_impl_.number_)) + sizeof(_impl_.oneof_index_)); } - if (cached_has_bits & 0x00000700u) { + if ((cached_has_bits & 0x00000700u) != 0) { _impl_.proto3_optional_ = false; _impl_.label_ = 1; _impl_.type_ = 1; @@ -5607,7 +5607,7 @@ ::uint8_t* PROTOBUF_NONNULL FieldDescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FieldDescriptorProto.name"); @@ -5615,7 +5615,7 @@ ::uint8_t* PROTOBUF_NONNULL FieldDescriptorProto::_InternalSerialize( } // optional string extendee = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_extendee(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FieldDescriptorProto.extendee"); @@ -5623,28 +5623,28 @@ ::uint8_t* PROTOBUF_NONNULL FieldDescriptorProto::_InternalSerialize( } // optional int32 number = 3; - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( stream, this_._internal_number(), target); } // optional .google.protobuf.FieldDescriptorProto.Label label = 4; - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this_._internal_label(), target); } // optional .google.protobuf.FieldDescriptorProto.Type type = 5; - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 5, this_._internal_type(), target); } // optional string type_name = 6; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { const std::string& _s = this_._internal_type_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FieldDescriptorProto.type_name"); @@ -5652,7 +5652,7 @@ ::uint8_t* PROTOBUF_NONNULL FieldDescriptorProto::_InternalSerialize( } // optional string default_value = 7; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { const std::string& _s = this_._internal_default_value(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FieldDescriptorProto.default_value"); @@ -5660,21 +5660,21 @@ ::uint8_t* PROTOBUF_NONNULL FieldDescriptorProto::_InternalSerialize( } // optional .google.protobuf.FieldOptions options = 8; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 8, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); } // optional int32 oneof_index = 9; - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( stream, this_._internal_oneof_index(), target); } // optional string json_name = 10; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { const std::string& _s = this_._internal_json_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FieldDescriptorProto.json_name"); @@ -5682,7 +5682,7 @@ ::uint8_t* PROTOBUF_NONNULL FieldDescriptorProto::_InternalSerialize( } // optional bool proto3_optional = 17; - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x00000100u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 17, this_._internal_proto3_optional(), target); @@ -5714,56 +5714,56 @@ ::size_t FieldDescriptorProto::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; total_size += static_cast(0x00000100u & cached_has_bits) * 3; - if (cached_has_bits & 0x000000ffu) { + if ((cached_has_bits & 0x000000ffu) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional string extendee = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_extendee()); } // optional string type_name = 6; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_type_name()); } // optional string default_value = 7; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_default_value()); } // optional string json_name = 10; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_json_name()); } // optional .google.protobuf.FieldOptions options = 8; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } // optional int32 number = 3; - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_number()); } // optional int32 oneof_index = 9; - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_oneof_index()); } } - if (cached_has_bits & 0x00000600u) { + if ((cached_has_bits & 0x00000600u) != 0) { // optional .google.protobuf.FieldDescriptorProto.Label label = 4; - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_label()); } // optional .google.protobuf.FieldDescriptorProto.Type type = 5; - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } @@ -5782,23 +5782,23 @@ void FieldDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, co (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_extendee(from._internal_extendee()); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_internal_set_type_name(from._internal_type_name()); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_internal_set_default_value(from._internal_default_value()); } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_internal_set_json_name(from._internal_json_name()); } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -5806,21 +5806,21 @@ void FieldDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, co _this->_impl_.options_->MergeFrom(*from._impl_.options_); } } - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { _this->_impl_.number_ = from._impl_.number_; } - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { _this->_impl_.oneof_index_ = from._impl_.oneof_index_; } } - if (cached_has_bits & 0x00000700u) { - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x00000700u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { _this->_impl_.proto3_optional_ = from._impl_.proto3_optional_; } - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { _this->_impl_.label_ = from._impl_.label_; } - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { _this->_impl_.type_ = from._impl_.type_; } } @@ -5907,7 +5907,7 @@ OneofDescriptorProto::OneofDescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000002u) + _impl_.options_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; @@ -6030,11 +6030,11 @@ PROTOBUF_NOINLINE void OneofDescriptorProto::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } @@ -6060,7 +6060,7 @@ ::uint8_t* PROTOBUF_NONNULL OneofDescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.OneofDescriptorProto.name"); @@ -6068,7 +6068,7 @@ ::uint8_t* PROTOBUF_NONNULL OneofDescriptorProto::_InternalSerialize( } // optional .google.protobuf.OneofOptions options = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); @@ -6099,14 +6099,14 @@ ::size_t OneofDescriptorProto::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional .google.protobuf.OneofOptions options = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } @@ -6125,11 +6125,11 @@ void OneofDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, co (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -6315,7 +6315,7 @@ PROTOBUF_NOINLINE void EnumDescriptorProto_EnumReservedRange::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { ::memset(&_impl_.start_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.end_) - reinterpret_cast(&_impl_.start_)) + sizeof(_impl_.end_)); @@ -6341,14 +6341,14 @@ ::uint8_t* PROTOBUF_NONNULL EnumDescriptorProto_EnumReservedRange::_InternalSeri cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 start = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( stream, this_._internal_start(), target); } // optional int32 end = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( stream, this_._internal_end(), target); @@ -6379,14 +6379,14 @@ ::size_t EnumDescriptorProto_EnumReservedRange::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional int32 start = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_start()); } // optional int32 end = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_end()); } @@ -6404,11 +6404,11 @@ void EnumDescriptorProto_EnumReservedRange::MergeImpl(::google::protobuf::Messag (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_impl_.start_ = from._impl_.start_; } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.end_ = from._impl_.end_; } } @@ -6483,7 +6483,7 @@ EnumDescriptorProto::EnumDescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000002u) + _impl_.options_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; @@ -6656,11 +6656,11 @@ PROTOBUF_NOINLINE void EnumDescriptorProto::Clear() { _impl_.reserved_range_.Clear(); _impl_.reserved_name_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } @@ -6686,7 +6686,7 @@ ::uint8_t* PROTOBUF_NONNULL EnumDescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.EnumDescriptorProto.name"); @@ -6705,7 +6705,7 @@ ::uint8_t* PROTOBUF_NONNULL EnumDescriptorProto::_InternalSerialize( } // optional .google.protobuf.EnumOptions options = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); @@ -6780,14 +6780,14 @@ ::size_t EnumDescriptorProto::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional .google.protobuf.EnumOptions options = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } @@ -6811,11 +6811,11 @@ void EnumDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, con from._internal_reserved_range()); _this->_internal_mutable_reserved_name()->MergeFrom(from._internal_reserved_name()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -6903,7 +6903,7 @@ EnumValueDescriptorProto::EnumValueDescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000002u) + _impl_.options_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; _impl_.number_ = from._impl_.number_; @@ -7039,11 +7039,11 @@ PROTOBUF_NOINLINE void EnumValueDescriptorProto::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } @@ -7070,7 +7070,7 @@ ::uint8_t* PROTOBUF_NONNULL EnumValueDescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.EnumValueDescriptorProto.name"); @@ -7078,14 +7078,14 @@ ::uint8_t* PROTOBUF_NONNULL EnumValueDescriptorProto::_InternalSerialize( } // optional int32 number = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( stream, this_._internal_number(), target); } // optional .google.protobuf.EnumValueOptions options = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); @@ -7116,19 +7116,19 @@ ::size_t EnumValueDescriptorProto::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if ((cached_has_bits & 0x00000007u) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional .google.protobuf.EnumValueOptions options = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } // optional int32 number = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_number()); } @@ -7147,11 +7147,11 @@ void EnumValueDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -7159,7 +7159,7 @@ void EnumValueDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg _this->_impl_.options_->MergeFrom(*from._impl_.options_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.number_ = from._impl_.number_; } } @@ -7243,7 +7243,7 @@ ServiceDescriptorProto::ServiceDescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000002u) + _impl_.options_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; @@ -7388,11 +7388,11 @@ PROTOBUF_NOINLINE void ServiceDescriptorProto::Clear() { _impl_.method_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } @@ -7418,7 +7418,7 @@ ::uint8_t* PROTOBUF_NONNULL ServiceDescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.ServiceDescriptorProto.name"); @@ -7437,7 +7437,7 @@ ::uint8_t* PROTOBUF_NONNULL ServiceDescriptorProto::_InternalSerialize( } // optional .google.protobuf.ServiceOptions options = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); @@ -7477,14 +7477,14 @@ ::size_t ServiceDescriptorProto::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional .google.protobuf.ServiceOptions options = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } @@ -7505,11 +7505,11 @@ void ServiceDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_internal_mutable_method()->MergeFrom( from._internal_method()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -7597,7 +7597,7 @@ MethodDescriptorProto::MethodDescriptorProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000008u) + _impl_.options_ = ((cached_has_bits & 0x00000008u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -7764,17 +7764,17 @@ PROTOBUF_NOINLINE void MethodDescriptorProto::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.input_type_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.output_type_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } @@ -7803,7 +7803,7 @@ ::uint8_t* PROTOBUF_NONNULL MethodDescriptorProto::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.MethodDescriptorProto.name"); @@ -7811,7 +7811,7 @@ ::uint8_t* PROTOBUF_NONNULL MethodDescriptorProto::_InternalSerialize( } // optional string input_type = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_input_type(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.MethodDescriptorProto.input_type"); @@ -7819,7 +7819,7 @@ ::uint8_t* PROTOBUF_NONNULL MethodDescriptorProto::_InternalSerialize( } // optional string output_type = 3; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { const std::string& _s = this_._internal_output_type(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.MethodDescriptorProto.output_type"); @@ -7827,21 +7827,21 @@ ::uint8_t* PROTOBUF_NONNULL MethodDescriptorProto::_InternalSerialize( } // optional .google.protobuf.MethodOptions options = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target, stream); } // optional bool client_streaming = 5 [default = false]; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 5, this_._internal_client_streaming(), target); } // optional bool server_streaming = 6 [default = false]; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 6, this_._internal_server_streaming(), target); @@ -7873,24 +7873,24 @@ ::size_t MethodDescriptorProto::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; total_size += ::absl::popcount(0x00000030u & cached_has_bits) * 2; - if (cached_has_bits & 0x0000000fu) { + if ((cached_has_bits & 0x0000000fu) != 0) { // optional string name = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } // optional string input_type = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_input_type()); } // optional string output_type = 3; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_output_type()); } // optional .google.protobuf.MethodOptions options = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_); } @@ -7909,17 +7909,17 @@ void MethodDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, c (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name(from._internal_name()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_input_type(from._internal_input_type()); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_internal_set_output_type(from._internal_output_type()); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(from._impl_.options_ != nullptr); if (_this->_impl_.options_ == nullptr) { _this->_impl_.options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.options_); @@ -7927,10 +7927,10 @@ void MethodDescriptorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, c _this->_impl_.options_->MergeFrom(*from._impl_.options_); } } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_impl_.client_streaming_ = from._impl_.client_streaming_; } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _this->_impl_.server_streaming_ = from._impl_.server_streaming_; } } @@ -8027,7 +8027,7 @@ FileOptions::FileOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000400u) + _impl_.features_ = ((cached_has_bits & 0x00000400u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -8333,50 +8333,50 @@ PROTOBUF_NOINLINE void FileOptions::Clear() { _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.java_package_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.java_outer_classname_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.go_package_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _impl_.objc_class_prefix_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _impl_.csharp_namespace_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _impl_.swift_prefix_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { _impl_.php_class_prefix_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { _impl_.php_namespace_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x00000700u) { - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x00000700u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { _impl_.php_metadata_namespace_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { _impl_.ruby_package_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } } - if (cached_has_bits & 0x0000f800u) { + if ((cached_has_bits & 0x0000f800u) != 0) { ::memset(&_impl_.java_multiple_files_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.java_generic_services_) - reinterpret_cast(&_impl_.java_multiple_files_)) + sizeof(_impl_.java_generic_services_)); } - if (cached_has_bits & 0x000f0000u) { + if ((cached_has_bits & 0x000f0000u) != 0) { ::memset(&_impl_.py_generic_services_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.deprecated_) - reinterpret_cast(&_impl_.py_generic_services_)) + sizeof(_impl_.deprecated_)); @@ -8404,7 +8404,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string java_package = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_java_package(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.java_package"); @@ -8412,7 +8412,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional string java_outer_classname = 8; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_java_outer_classname(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.java_outer_classname"); @@ -8420,21 +8420,21 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; - if (cached_has_bits & 0x00040000u) { + if ((cached_has_bits & 0x00040000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 9, this_._internal_optimize_for(), target); } // optional bool java_multiple_files = 10 [default = false]; - if (cached_has_bits & 0x00000800u) { + if ((cached_has_bits & 0x00000800u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 10, this_._internal_java_multiple_files(), target); } // optional string go_package = 11; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { const std::string& _s = this_._internal_go_package(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.go_package"); @@ -8442,56 +8442,56 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional bool cc_generic_services = 16 [default = false]; - if (cached_has_bits & 0x00004000u) { + if ((cached_has_bits & 0x00004000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 16, this_._internal_cc_generic_services(), target); } // optional bool java_generic_services = 17 [default = false]; - if (cached_has_bits & 0x00008000u) { + if ((cached_has_bits & 0x00008000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 17, this_._internal_java_generic_services(), target); } // optional bool py_generic_services = 18 [default = false]; - if (cached_has_bits & 0x00010000u) { + if ((cached_has_bits & 0x00010000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 18, this_._internal_py_generic_services(), target); } // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; - if (cached_has_bits & 0x00001000u) { + if ((cached_has_bits & 0x00001000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 20, this_._internal_java_generate_equals_and_hash(), target); } // optional bool deprecated = 23 [default = false]; - if (cached_has_bits & 0x00020000u) { + if ((cached_has_bits & 0x00020000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 23, this_._internal_deprecated(), target); } // optional bool java_string_check_utf8 = 27 [default = false]; - if (cached_has_bits & 0x00002000u) { + if ((cached_has_bits & 0x00002000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 27, this_._internal_java_string_check_utf8(), target); } // optional bool cc_enable_arenas = 31 [default = true]; - if (cached_has_bits & 0x00080000u) { + if ((cached_has_bits & 0x00080000u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 31, this_._internal_cc_enable_arenas(), target); } // optional string objc_class_prefix = 36; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { const std::string& _s = this_._internal_objc_class_prefix(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.objc_class_prefix"); @@ -8499,7 +8499,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional string csharp_namespace = 37; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { const std::string& _s = this_._internal_csharp_namespace(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.csharp_namespace"); @@ -8507,7 +8507,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional string swift_prefix = 39; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { const std::string& _s = this_._internal_swift_prefix(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.swift_prefix"); @@ -8515,7 +8515,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional string php_class_prefix = 40; - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { const std::string& _s = this_._internal_php_class_prefix(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.php_class_prefix"); @@ -8523,7 +8523,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional string php_namespace = 41; - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { const std::string& _s = this_._internal_php_namespace(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.php_namespace"); @@ -8531,7 +8531,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional string php_metadata_namespace = 44; - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x00000100u) != 0) { const std::string& _s = this_._internal_php_metadata_namespace(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.php_metadata_namespace"); @@ -8539,7 +8539,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional string ruby_package = 45; - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { const std::string& _s = this_._internal_ruby_package(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FileOptions.ruby_package"); @@ -8547,7 +8547,7 @@ ::uint8_t* PROTOBUF_NONNULL FileOptions::_InternalSerialize( } // optional .google.protobuf.FeatureSet features = 50; - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 50, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); @@ -8604,68 +8604,68 @@ ::size_t FileOptions::ByteSizeLong() const { cached_has_bits = this_._impl_._has_bits_[0]; total_size += ::absl::popcount(0x000bf000u & cached_has_bits) * 3; total_size += static_cast(0x00000800u & cached_has_bits) * 2; - if (cached_has_bits & 0x000000ffu) { + if ((cached_has_bits & 0x000000ffu) != 0) { // optional string java_package = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_java_package()); } // optional string java_outer_classname = 8; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_java_outer_classname()); } // optional string go_package = 11; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_go_package()); } // optional string objc_class_prefix = 36; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_objc_class_prefix()); } // optional string csharp_namespace = 37; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_csharp_namespace()); } // optional string swift_prefix = 39; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_swift_prefix()); } // optional string php_class_prefix = 40; - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_php_class_prefix()); } // optional string php_namespace = 41; - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_php_namespace()); } } - if (cached_has_bits & 0x00000700u) { + if ((cached_has_bits & 0x00000700u) != 0) { // optional string php_metadata_namespace = 44; - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x00000100u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_php_metadata_namespace()); } // optional string ruby_package = 45; - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_ruby_package()); } // optional .google.protobuf.FeatureSet features = 50; - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } } { // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; - if (cached_has_bits & 0x00040000u) { + if ((cached_has_bits & 0x00040000u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_optimize_for()); } @@ -8686,40 +8686,40 @@ void FileOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_java_package(from._internal_java_package()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_java_outer_classname(from._internal_java_outer_classname()); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_internal_set_go_package(from._internal_go_package()); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_internal_set_objc_class_prefix(from._internal_objc_class_prefix()); } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_internal_set_csharp_namespace(from._internal_csharp_namespace()); } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _this->_internal_set_swift_prefix(from._internal_swift_prefix()); } - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { _this->_internal_set_php_class_prefix(from._internal_php_class_prefix()); } - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { _this->_internal_set_php_namespace(from._internal_php_namespace()); } } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x0000ff00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { _this->_internal_set_php_metadata_namespace(from._internal_php_metadata_namespace()); } - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { _this->_internal_set_ruby_package(from._internal_ruby_package()); } - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -8727,33 +8727,33 @@ void FileOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000800u) { + if ((cached_has_bits & 0x00000800u) != 0) { _this->_impl_.java_multiple_files_ = from._impl_.java_multiple_files_; } - if (cached_has_bits & 0x00001000u) { + if ((cached_has_bits & 0x00001000u) != 0) { _this->_impl_.java_generate_equals_and_hash_ = from._impl_.java_generate_equals_and_hash_; } - if (cached_has_bits & 0x00002000u) { + if ((cached_has_bits & 0x00002000u) != 0) { _this->_impl_.java_string_check_utf8_ = from._impl_.java_string_check_utf8_; } - if (cached_has_bits & 0x00004000u) { + if ((cached_has_bits & 0x00004000u) != 0) { _this->_impl_.cc_generic_services_ = from._impl_.cc_generic_services_; } - if (cached_has_bits & 0x00008000u) { + if ((cached_has_bits & 0x00008000u) != 0) { _this->_impl_.java_generic_services_ = from._impl_.java_generic_services_; } } - if (cached_has_bits & 0x000f0000u) { - if (cached_has_bits & 0x00010000u) { + if ((cached_has_bits & 0x000f0000u) != 0) { + if ((cached_has_bits & 0x00010000u) != 0) { _this->_impl_.py_generic_services_ = from._impl_.py_generic_services_; } - if (cached_has_bits & 0x00020000u) { + if ((cached_has_bits & 0x00020000u) != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } - if (cached_has_bits & 0x00040000u) { + if ((cached_has_bits & 0x00040000u) != 0) { _this->_impl_.optimize_for_ = from._impl_.optimize_for_; } - if (cached_has_bits & 0x00080000u) { + if ((cached_has_bits & 0x00080000u) != 0) { _this->_impl_.cc_enable_arenas_ = from._impl_.cc_enable_arenas_; } } @@ -8855,7 +8855,7 @@ MessageOptions::MessageOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -9034,11 +9034,11 @@ PROTOBUF_NOINLINE void MessageOptions::Clear() { _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } - if (cached_has_bits & 0x0000003eu) { + if ((cached_has_bits & 0x0000003eu) != 0) { ::memset(&_impl_.message_set_wire_format_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.deprecated_legacy_json_field_conflicts_) - reinterpret_cast(&_impl_.message_set_wire_format_)) + sizeof(_impl_.deprecated_legacy_json_field_conflicts_)); @@ -9064,42 +9064,42 @@ ::uint8_t* PROTOBUF_NONNULL MessageOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional bool message_set_wire_format = 1 [default = false]; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_message_set_wire_format(), target); } // optional bool no_standard_descriptor_accessor = 2 [default = false]; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 2, this_._internal_no_standard_descriptor_accessor(), target); } // optional bool deprecated = 3 [default = false]; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 3, this_._internal_deprecated(), target); } // optional bool map_entry = 7; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 7, this_._internal_map_entry(), target); } // optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 11, this_._internal_deprecated_legacy_json_field_conflicts(), target); } // optional .google.protobuf.FeatureSet features = 12; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 12, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); @@ -9157,7 +9157,7 @@ ::size_t MessageOptions::ByteSizeLong() const { total_size += ::absl::popcount(0x0000003eu & cached_has_bits) * 2; { // optional .google.protobuf.FeatureSet features = 12; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } @@ -9178,8 +9178,8 @@ void MessageOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -9187,19 +9187,19 @@ void MessageOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.message_set_wire_format_ = from._impl_.message_set_wire_format_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.no_standard_descriptor_accessor_ = from._impl_.no_standard_descriptor_accessor_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_impl_.map_entry_ = from._impl_.map_entry_; } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _this->_impl_.deprecated_legacy_json_field_conflicts_ = from._impl_.deprecated_legacy_json_field_conflicts_; } } @@ -9406,7 +9406,7 @@ PROTOBUF_NOINLINE void FieldOptions_EditionDefault::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.value_.ClearNonDefaultToEmpty(); } _impl_.edition_ = 0; @@ -9431,7 +9431,7 @@ ::uint8_t* PROTOBUF_NONNULL FieldOptions_EditionDefault::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string value = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_value(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FieldOptions.EditionDefault.value"); @@ -9439,7 +9439,7 @@ ::uint8_t* PROTOBUF_NONNULL FieldOptions_EditionDefault::_InternalSerialize( } // optional .google.protobuf.Edition edition = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this_._internal_edition(), target); @@ -9470,14 +9470,14 @@ ::size_t FieldOptions_EditionDefault::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional string value = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_value()); } // optional .google.protobuf.Edition edition = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_edition()); } @@ -9495,11 +9495,11 @@ void FieldOptions_EditionDefault::MergeImpl(::google::protobuf::MessageLite& to_ (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_value(from._internal_value()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.edition_ = from._impl_.edition_; } } @@ -9713,10 +9713,10 @@ PROTOBUF_NOINLINE void FieldOptions_FeatureSupport::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.deprecation_warning_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000000eu) { + if ((cached_has_bits & 0x0000000eu) != 0) { ::memset(&_impl_.edition_introduced_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.edition_removed_) - reinterpret_cast(&_impl_.edition_introduced_)) + sizeof(_impl_.edition_removed_)); @@ -9742,21 +9742,21 @@ ::uint8_t* PROTOBUF_NONNULL FieldOptions_FeatureSupport::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional .google.protobuf.Edition edition_introduced = 1; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this_._internal_edition_introduced(), target); } // optional .google.protobuf.Edition edition_deprecated = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this_._internal_edition_deprecated(), target); } // optional string deprecation_warning = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_deprecation_warning(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.FieldOptions.FeatureSupport.deprecation_warning"); @@ -9764,7 +9764,7 @@ ::uint8_t* PROTOBUF_NONNULL FieldOptions_FeatureSupport::_InternalSerialize( } // optional .google.protobuf.Edition edition_removed = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this_._internal_edition_removed(), target); @@ -9795,24 +9795,24 @@ ::size_t FieldOptions_FeatureSupport::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if ((cached_has_bits & 0x0000000fu) != 0) { // optional string deprecation_warning = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_deprecation_warning()); } // optional .google.protobuf.Edition edition_introduced = 1; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_edition_introduced()); } // optional .google.protobuf.Edition edition_deprecated = 2; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_edition_deprecated()); } // optional .google.protobuf.Edition edition_removed = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_edition_removed()); } @@ -9830,17 +9830,17 @@ void FieldOptions_FeatureSupport::MergeImpl(::google::protobuf::MessageLite& to_ (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_deprecation_warning(from._internal_deprecation_warning()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.edition_introduced_ = from._impl_.edition_introduced_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.edition_deprecated_ = from._impl_.edition_deprecated_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.edition_removed_ = from._impl_.edition_removed_; } } @@ -9919,10 +9919,10 @@ FieldOptions::FieldOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; - _impl_.feature_support_ = (cached_has_bits & 0x00000002u) + _impl_.feature_support_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_support_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -10159,22 +10159,22 @@ PROTOBUF_NOINLINE void FieldOptions::Clear() { _impl_.edition_defaults_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.feature_support_ != nullptr); _impl_.feature_support_->Clear(); } } - if (cached_has_bits & 0x000000fcu) { + if ((cached_has_bits & 0x000000fcu) != 0) { ::memset(&_impl_.ctype_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.deprecated_) - reinterpret_cast(&_impl_.ctype_)) + sizeof(_impl_.deprecated_)); } - if (cached_has_bits & 0x00000700u) { + if ((cached_has_bits & 0x00000700u) != 0) { ::memset(&_impl_.weak_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.retention_) - reinterpret_cast(&_impl_.weak_)) + sizeof(_impl_.retention_)); @@ -10200,63 +10200,63 @@ ::uint8_t* PROTOBUF_NONNULL FieldOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this_._internal_ctype(), target); } // optional bool packed = 2; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 2, this_._internal_packed(), target); } // optional bool deprecated = 3 [default = false]; - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 3, this_._internal_deprecated(), target); } // optional bool lazy = 5 [default = false]; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 5, this_._internal_lazy(), target); } // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 6, this_._internal_jstype(), target); } // optional bool weak = 10 [default = false]; - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x00000100u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 10, this_._internal_weak(), target); } // optional bool unverified_lazy = 15 [default = false]; - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 15, this_._internal_unverified_lazy(), target); } // optional bool debug_redact = 16 [default = false]; - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 16, this_._internal_debug_redact(), target); } // optional .google.protobuf.FieldOptions.OptionRetention retention = 17; - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 17, this_._internal_retention(), target); @@ -10282,14 +10282,14 @@ ::uint8_t* PROTOBUF_NONNULL FieldOptions::_InternalSerialize( } // optional .google.protobuf.FeatureSet features = 21; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 21, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); } // optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 22, *this_._impl_.feature_support_, this_._impl_.feature_support_->GetCachedSize(), target, stream); @@ -10361,31 +10361,31 @@ ::size_t FieldOptions::ByteSizeLong() const { cached_has_bits = this_._impl_._has_bits_[0]; total_size += static_cast(0x00000200u & cached_has_bits) * 3; total_size += ::absl::popcount(0x000001f0u & cached_has_bits) * 2; - if (cached_has_bits & 0x0000000fu) { + if ((cached_has_bits & 0x0000000fu) != 0) { // optional .google.protobuf.FeatureSet features = 21; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } // optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_support_); } // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_ctype()); } // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_jstype()); } } { // optional .google.protobuf.FieldOptions.OptionRetention retention = 17; - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { total_size += 2 + ::_pbi::WireFormatLite::EnumSize(this_._internal_retention()); } @@ -10409,8 +10409,8 @@ void FieldOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -10418,7 +10418,7 @@ void FieldOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.feature_support_ != nullptr); if (_this->_impl_.feature_support_ == nullptr) { _this->_impl_.feature_support_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_support_); @@ -10426,33 +10426,33 @@ void FieldOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go _this->_impl_.feature_support_->MergeFrom(*from._impl_.feature_support_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.ctype_ = from._impl_.ctype_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.jstype_ = from._impl_.jstype_; } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_impl_.packed_ = from._impl_.packed_; } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _this->_impl_.lazy_ = from._impl_.lazy_; } - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { _this->_impl_.unverified_lazy_ = from._impl_.unverified_lazy_; } - if (cached_has_bits & 0x00000080u) { + if ((cached_has_bits & 0x00000080u) != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } } - if (cached_has_bits & 0x00000700u) { - if (cached_has_bits & 0x00000100u) { + if ((cached_has_bits & 0x00000700u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { _this->_impl_.weak_ = from._impl_.weak_; } - if (cached_has_bits & 0x00000200u) { + if ((cached_has_bits & 0x00000200u) != 0) { _this->_impl_.debug_redact_ = from._impl_.debug_redact_; } - if (cached_has_bits & 0x00000400u) { + if ((cached_has_bits & 0x00000400u) != 0) { _this->_impl_.retention_ = from._impl_.retention_; } } @@ -10544,7 +10544,7 @@ OneofOptions::OneofOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; @@ -10686,7 +10686,7 @@ PROTOBUF_NOINLINE void OneofOptions::Clear() { _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } @@ -10711,7 +10711,7 @@ ::uint8_t* PROTOBUF_NONNULL OneofOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional .google.protobuf.FeatureSet features = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); @@ -10768,7 +10768,7 @@ ::size_t OneofOptions::ByteSizeLong() const { { // optional .google.protobuf.FeatureSet features = 1; cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } @@ -10789,7 +10789,7 @@ void OneofOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -10878,7 +10878,7 @@ EnumOptions::EnumOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -11049,7 +11049,7 @@ PROTOBUF_NOINLINE void EnumOptions::Clear() { _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } @@ -11077,28 +11077,28 @@ ::uint8_t* PROTOBUF_NONNULL EnumOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional bool allow_alias = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 2, this_._internal_allow_alias(), target); } // optional bool deprecated = 3 [default = false]; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 3, this_._internal_deprecated(), target); } // optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 6, this_._internal_deprecated_legacy_json_field_conflicts(), target); } // optional .google.protobuf.FeatureSet features = 7; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 7, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); @@ -11156,7 +11156,7 @@ ::size_t EnumOptions::ByteSizeLong() const { total_size += ::absl::popcount(0x0000000eu & cached_has_bits) * 2; { // optional .google.protobuf.FeatureSet features = 7; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } @@ -11177,8 +11177,8 @@ void EnumOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -11186,13 +11186,13 @@ void EnumOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.allow_alias_ = from._impl_.allow_alias_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.deprecated_legacy_json_field_conflicts_ = from._impl_.deprecated_legacy_json_field_conflicts_; } } @@ -11282,10 +11282,10 @@ EnumValueOptions::EnumValueOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; - _impl_.feature_support_ = (cached_has_bits & 0x00000002u) + _impl_.feature_support_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_support_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -11460,12 +11460,12 @@ PROTOBUF_NOINLINE void EnumValueOptions::Clear() { _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.feature_support_ != nullptr); _impl_.feature_support_->Clear(); } @@ -11494,28 +11494,28 @@ ::uint8_t* PROTOBUF_NONNULL EnumValueOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional bool deprecated = 1 [default = false]; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_deprecated(), target); } // optional .google.protobuf.FeatureSet features = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); } // optional bool debug_redact = 3 [default = false]; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 3, this_._internal_debug_redact(), target); } // optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 4; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.feature_support_, this_._impl_.feature_support_->GetCachedSize(), target, stream); @@ -11571,14 +11571,14 @@ ::size_t EnumValueOptions::ByteSizeLong() const { } cached_has_bits = this_._impl_._has_bits_[0]; total_size += ::absl::popcount(0x0000000cu & cached_has_bits) * 2; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional .google.protobuf.FeatureSet features = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } // optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 4; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_support_); } @@ -11599,8 +11599,8 @@ void EnumValueOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -11608,7 +11608,7 @@ void EnumValueOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.feature_support_ != nullptr); if (_this->_impl_.feature_support_ == nullptr) { _this->_impl_.feature_support_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_support_); @@ -11616,10 +11616,10 @@ void EnumValueOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const _this->_impl_.feature_support_->MergeFrom(*from._impl_.feature_support_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.debug_redact_ = from._impl_.debug_redact_; } } @@ -11709,7 +11709,7 @@ ServiceOptions::ServiceOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; _impl_.deprecated_ = from._impl_.deprecated_; @@ -11864,7 +11864,7 @@ PROTOBUF_NOINLINE void ServiceOptions::Clear() { _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } @@ -11890,14 +11890,14 @@ ::uint8_t* PROTOBUF_NONNULL ServiceOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional bool deprecated = 33 [default = false]; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 33, this_._internal_deprecated(), target); } // optional .google.protobuf.FeatureSet features = 34; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 34, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); @@ -11955,7 +11955,7 @@ ::size_t ServiceOptions::ByteSizeLong() const { total_size += static_cast(0x00000002u & cached_has_bits) * 3; { // optional .google.protobuf.FeatureSet features = 34; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } @@ -11976,8 +11976,8 @@ void ServiceOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -11985,7 +11985,7 @@ void ServiceOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } } @@ -12075,7 +12075,7 @@ MethodOptions::MethodOptions( new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) + _impl_.features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -12246,11 +12246,11 @@ PROTOBUF_NOINLINE void MethodOptions::Clear() { _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.features_ != nullptr); _impl_.features_->Clear(); } - if (cached_has_bits & 0x00000006u) { + if ((cached_has_bits & 0x00000006u) != 0) { ::memset(&_impl_.deprecated_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.idempotency_level_) - reinterpret_cast(&_impl_.deprecated_)) + sizeof(_impl_.idempotency_level_)); @@ -12276,21 +12276,21 @@ ::uint8_t* PROTOBUF_NONNULL MethodOptions::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional bool deprecated = 33 [default = false]; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 33, this_._internal_deprecated(), target); } // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 34, this_._internal_idempotency_level(), target); } // optional .google.protobuf.FeatureSet features = 35; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 35, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, stream); @@ -12346,14 +12346,14 @@ ::size_t MethodOptions::ByteSizeLong() const { } cached_has_bits = this_._impl_._has_bits_[0]; total_size += static_cast(0x00000002u & cached_has_bits) * 3; - if (cached_has_bits & 0x00000005u) { + if ((cached_has_bits & 0x00000005u) != 0) { // optional .google.protobuf.FeatureSet features = 35; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 2 + ::_pbi::WireFormatLite::EnumSize(this_._internal_idempotency_level()); } @@ -12374,8 +12374,8 @@ void MethodOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::g _this->_internal_mutable_uninterpreted_option()->MergeFrom( from._internal_uninterpreted_option()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.features_ != nullptr); if (_this->_impl_.features_ == nullptr) { _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); @@ -12383,10 +12383,10 @@ void MethodOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::g _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.idempotency_level_ = from._impl_.idempotency_level_; } } @@ -12594,7 +12594,7 @@ PROTOBUF_NOINLINE void UninterpretedOption_NamePart::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_part_.ClearNonDefaultToEmpty(); } _impl_.is_extension_ = false; @@ -12619,7 +12619,7 @@ ::uint8_t* PROTOBUF_NONNULL UninterpretedOption_NamePart::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // required string name_part = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_name_part(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.UninterpretedOption.NamePart.name_part"); @@ -12627,7 +12627,7 @@ ::uint8_t* PROTOBUF_NONNULL UninterpretedOption_NamePart::_InternalSerialize( } // required bool is_extension = 2; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 2, this_._internal_is_extension(), target); @@ -12661,7 +12661,7 @@ ::size_t UninterpretedOption_NamePart::ByteSizeLong() const { total_size += static_cast(0x00000002u & cached_has_bits) * 2; { // required string name_part = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name_part()); } @@ -12679,11 +12679,11 @@ void UninterpretedOption_NamePart::MergeImpl(::google::protobuf::MessageLite& to (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_name_part(from._internal_name_part()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.is_extension_ = from._impl_.is_extension_; } } @@ -12944,18 +12944,18 @@ PROTOBUF_NOINLINE void UninterpretedOption::Clear() { _impl_.name_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.identifier_value_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.string_value_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.aggregate_value_.ClearNonDefaultToEmpty(); } } - if (cached_has_bits & 0x00000038u) { + if ((cached_has_bits & 0x00000038u) != 0) { ::memset(&_impl_.positive_int_value_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.double_value_) - reinterpret_cast(&_impl_.positive_int_value_)) + sizeof(_impl_.double_value_)); @@ -12992,7 +12992,7 @@ ::uint8_t* PROTOBUF_NONNULL UninterpretedOption::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string identifier_value = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_identifier_value(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.UninterpretedOption.identifier_value"); @@ -13000,34 +13000,34 @@ ::uint8_t* PROTOBUF_NONNULL UninterpretedOption::_InternalSerialize( } // optional uint64 positive_int_value = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( 4, this_._internal_positive_int_value(), target); } // optional int64 negative_int_value = 5; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( stream, this_._internal_negative_int_value(), target); } // optional double double_value = 6; - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( 6, this_._internal_double_value(), target); } // optional bytes string_value = 7; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_string_value(); target = stream->WriteBytesMaybeAliased(7, _s, target); } // optional string aggregate_value = 8; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { const std::string& _s = this_._internal_aggregate_value(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.UninterpretedOption.aggregate_value"); @@ -13069,29 +13069,29 @@ ::size_t UninterpretedOption::ByteSizeLong() const { } cached_has_bits = this_._impl_._has_bits_[0]; total_size += static_cast(0x00000020u & cached_has_bits) * 9; - if (cached_has_bits & 0x0000001fu) { + if ((cached_has_bits & 0x0000001fu) != 0) { // optional string identifier_value = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_identifier_value()); } // optional bytes string_value = 7; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_string_value()); } // optional string aggregate_value = 8; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_aggregate_value()); } // optional uint64 positive_int_value = 4; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_positive_int_value()); } // optional int64 negative_int_value = 5; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_negative_int_value()); } @@ -13111,23 +13111,23 @@ void UninterpretedOption::MergeImpl(::google::protobuf::MessageLite& to_msg, con _this->_internal_mutable_name()->MergeFrom( from._internal_name()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_identifier_value(from._internal_identifier_value()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_string_value(from._internal_string_value()); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_internal_set_aggregate_value(from._internal_aggregate_value()); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.positive_int_value_ = from._impl_.positive_int_value_; } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_impl_.negative_int_value_ = from._impl_.negative_int_value_; } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _this->_impl_.double_value_ = from._impl_.double_value_; } } @@ -13388,7 +13388,7 @@ PROTOBUF_NOINLINE void FeatureSet::Clear() { _impl_._extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { + if ((cached_has_bits & 0x0000007fu) != 0) { ::memset(&_impl_.field_presence_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.enforce_naming_style_) - reinterpret_cast(&_impl_.field_presence_)) + sizeof(_impl_.enforce_naming_style_)); @@ -13414,49 +13414,49 @@ ::uint8_t* PROTOBUF_NONNULL FeatureSet::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this_._internal_field_presence(), target); } // optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this_._internal_enum_type(), target); } // optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this_._internal_repeated_field_encoding(), target); } // optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this_._internal_utf8_validation(), target); } // optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 5, this_._internal_message_encoding(), target); } // optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 6, this_._internal_json_format(), target); } // optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = { - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 7, this_._internal_enforce_naming_style(), target); @@ -13491,39 +13491,39 @@ ::size_t FeatureSet::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { + if ((cached_has_bits & 0x0000007fu) != 0) { // optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_field_presence()); } // optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_enum_type()); } // optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_repeated_field_encoding()); } // optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_utf8_validation()); } // optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_message_encoding()); } // optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_json_format()); } // optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = { - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_enforce_naming_style()); } @@ -13541,26 +13541,26 @@ void FeatureSet::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000007fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_impl_.field_presence_ = from._impl_.field_presence_; } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.enum_type_ = from._impl_.enum_type_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.repeated_field_encoding_ = from._impl_.repeated_field_encoding_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.utf8_validation_ = from._impl_.utf8_validation_; } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { _this->_impl_.message_encoding_ = from._impl_.message_encoding_; } - if (cached_has_bits & 0x00000020u) { + if ((cached_has_bits & 0x00000020u) != 0) { _this->_impl_.json_format_ = from._impl_.json_format_; } - if (cached_has_bits & 0x00000040u) { + if ((cached_has_bits & 0x00000040u) != 0) { _this->_impl_.enforce_naming_style_ = from._impl_.enforce_naming_style_; } } @@ -13641,10 +13641,10 @@ FeatureSetDefaults_FeatureSetEditionDefault::FeatureSetDefaults_FeatureSetEditio from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.overridable_features_ = (cached_has_bits & 0x00000001u) + _impl_.overridable_features_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.overridable_features_) : nullptr; - _impl_.fixed_features_ = (cached_has_bits & 0x00000002u) + _impl_.fixed_features_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fixed_features_) : nullptr; _impl_.edition_ = from._impl_.edition_; @@ -13778,12 +13778,12 @@ PROTOBUF_NOINLINE void FeatureSetDefaults_FeatureSetEditionDefault::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.overridable_features_ != nullptr); _impl_.overridable_features_->Clear(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.fixed_features_ != nullptr); _impl_.fixed_features_->Clear(); } @@ -13810,21 +13810,21 @@ ::uint8_t* PROTOBUF_NONNULL FeatureSetDefaults_FeatureSetEditionDefault::_Intern cached_has_bits = this_._impl_._has_bits_[0]; // optional .google.protobuf.Edition edition = 3; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this_._internal_edition(), target); } // optional .google.protobuf.FeatureSet overridable_features = 4; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.overridable_features_, this_._impl_.overridable_features_->GetCachedSize(), target, stream); } // optional .google.protobuf.FeatureSet fixed_features = 5; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5, *this_._impl_.fixed_features_, this_._impl_.fixed_features_->GetCachedSize(), target, stream); @@ -13855,19 +13855,19 @@ ::size_t FeatureSetDefaults_FeatureSetEditionDefault::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if ((cached_has_bits & 0x00000007u) != 0) { // optional .google.protobuf.FeatureSet overridable_features = 4; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.overridable_features_); } // optional .google.protobuf.FeatureSet fixed_features = 5; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fixed_features_); } // optional .google.protobuf.Edition edition = 3; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_edition()); } @@ -13886,8 +13886,8 @@ void FeatureSetDefaults_FeatureSetEditionDefault::MergeImpl(::google::protobuf:: (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.overridable_features_ != nullptr); if (_this->_impl_.overridable_features_ == nullptr) { _this->_impl_.overridable_features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.overridable_features_); @@ -13895,7 +13895,7 @@ void FeatureSetDefaults_FeatureSetEditionDefault::MergeImpl(::google::protobuf:: _this->_impl_.overridable_features_->MergeFrom(*from._impl_.overridable_features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.fixed_features_ != nullptr); if (_this->_impl_.fixed_features_ == nullptr) { _this->_impl_.fixed_features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fixed_features_); @@ -13903,7 +13903,7 @@ void FeatureSetDefaults_FeatureSetEditionDefault::MergeImpl(::google::protobuf:: _this->_impl_.fixed_features_->MergeFrom(*from._impl_.fixed_features_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.edition_ = from._impl_.edition_; } } @@ -14130,7 +14130,7 @@ PROTOBUF_NOINLINE void FeatureSetDefaults::Clear() { _impl_.defaults_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { ::memset(&_impl_.minimum_edition_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.maximum_edition_) - reinterpret_cast(&_impl_.minimum_edition_)) + sizeof(_impl_.maximum_edition_)); @@ -14167,14 +14167,14 @@ ::uint8_t* PROTOBUF_NONNULL FeatureSetDefaults::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional .google.protobuf.Edition minimum_edition = 4; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this_._internal_minimum_edition(), target); } // optional .google.protobuf.Edition maximum_edition = 5; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 5, this_._internal_maximum_edition(), target); @@ -14214,14 +14214,14 @@ ::size_t FeatureSetDefaults::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional .google.protobuf.Edition minimum_edition = 4; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_minimum_edition()); } // optional .google.protobuf.Edition maximum_edition = 5; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_maximum_edition()); } @@ -14241,11 +14241,11 @@ void FeatureSetDefaults::MergeImpl(::google::protobuf::MessageLite& to_msg, cons _this->_internal_mutable_defaults()->MergeFrom( from._internal_defaults()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_impl_.minimum_edition_ = from._impl_.minimum_edition_; } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.maximum_edition_ = from._impl_.maximum_edition_; } } @@ -14499,11 +14499,11 @@ PROTOBUF_NOINLINE void SourceCodeInfo_Location::Clear() { _impl_.span_.Clear(); _impl_.leading_detached_comments_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.leading_comments_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.trailing_comments_.ClearNonDefaultToEmpty(); } } @@ -14546,7 +14546,7 @@ ::uint8_t* PROTOBUF_NONNULL SourceCodeInfo_Location::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string leading_comments = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_leading_comments(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.SourceCodeInfo.Location.leading_comments"); @@ -14554,7 +14554,7 @@ ::uint8_t* PROTOBUF_NONNULL SourceCodeInfo_Location::_InternalSerialize( } // optional string trailing_comments = 4; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { const std::string& _s = this_._internal_trailing_comments(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.SourceCodeInfo.Location.trailing_comments"); @@ -14619,14 +14619,14 @@ ::size_t SourceCodeInfo_Location::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if ((cached_has_bits & 0x00000003u) != 0) { // optional string leading_comments = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_leading_comments()); } // optional string trailing_comments = 4; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_trailing_comments()); } @@ -14647,11 +14647,11 @@ void SourceCodeInfo_Location::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_internal_mutable_span()->MergeFrom(from._internal_span()); _this->_internal_mutable_leading_detached_comments()->MergeFrom(from._internal_leading_detached_comments()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_leading_comments(from._internal_leading_comments()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_internal_set_trailing_comments(from._internal_trailing_comments()); } } @@ -15164,10 +15164,10 @@ PROTOBUF_NOINLINE void GeneratedCodeInfo_Annotation::Clear() { _impl_.path_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.source_file_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000000eu) { + if ((cached_has_bits & 0x0000000eu) != 0) { ::memset(&_impl_.begin_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.semantic_) - reinterpret_cast(&_impl_.begin_)) + sizeof(_impl_.semantic_)); @@ -15202,7 +15202,7 @@ ::uint8_t* PROTOBUF_NONNULL GeneratedCodeInfo_Annotation::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[0]; // optional string source_file = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { const std::string& _s = this_._internal_source_file(); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); @@ -15210,21 +15210,21 @@ ::uint8_t* PROTOBUF_NONNULL GeneratedCodeInfo_Annotation::_InternalSerialize( } // optional int32 begin = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( stream, this_._internal_begin(), target); } // optional int32 end = 4; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( stream, this_._internal_end(), target); } // optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 5, this_._internal_semantic(), target); @@ -15264,24 +15264,24 @@ ::size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const { } } cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if ((cached_has_bits & 0x0000000fu) != 0) { // optional string source_file = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_source_file()); } // optional int32 begin = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_begin()); } // optional int32 end = 4; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_end()); } // optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_semantic()); } @@ -15300,17 +15300,17 @@ void GeneratedCodeInfo_Annotation::MergeImpl(::google::protobuf::MessageLite& to _this->_internal_mutable_path()->MergeFrom(from._internal_path()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _this->_internal_set_source_file(from._internal_source_file()); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { _this->_impl_.begin_ = from._impl_.begin_; } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { _this->_impl_.end_ = from._impl_.end_; } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { _this->_impl_.semantic_ = from._impl_.semantic_; } }