// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: components/optimization_guide/proto/redaction.proto
// Protobuf C++ Version: 7.35.1

#include "components/optimization_guide/proto/redaction.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace optimization_guide {
namespace proto {
class RedactRule::_Internal {
 public:
  using HasBits = decltype(::std::declval<RedactRule>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(RedactRule, _impl_._has_bits_);
};

constexpr RedactRule::ParseTableT_ RedactRule::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(RedactRule, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967232,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::RedactRule>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.RedactBehavior behavior = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.behavior_)}},
      // string regex = 2;
      {::_pbi::TcParser::FastUS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.regex_)}},
      // string replacement_string = 3;
      {::_pbi::TcParser::FastUS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.replacement_string_)}},
      // int32 min_pattern_length = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.min_pattern_length_)}},
      // int32 max_pattern_length = 5;
      {::_pbi::TcParser::FastV32S1,
       {40, 4, 0,
        PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.max_pattern_length_)}},
      // int32 group_index = 6;
      {::_pbi::TcParser::FastV32S1,
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.group_index_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.RedactBehavior behavior = 1;
      {PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.behavior_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // string regex = 2;
      {PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.regex_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string replacement_string = 3;
      {PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.replacement_string_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // int32 min_pattern_length = 4;
      {PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.min_pattern_length_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 max_pattern_length = 5;
      {PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.max_pattern_length_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 group_index = 6;
      {PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.group_index_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    // no aux_entries
    {{
      "\43\0\5\22\0\0\0\0"
      "optimization_guide.proto.RedactRule"
      "regex"
      "replacement_string"
    }},
  };
}


inline constexpr RedactRule::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        regex_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        replacement_string_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        behavior_{static_cast< ::optimization_guide::proto::RedactBehavior >(0)},
        min_pattern_length_{0},
        max_pattern_length_{0},
        group_index_{0} {}

template <typename>
constexpr RedactRule::RedactRule(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL RedactRule::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) RedactRule(arena);
}
constexpr auto RedactRule::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RedactRule), alignof(RedactRule));
}
constexpr auto RedactRule::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &RedactRule::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<RedactRule>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &RedactRule::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<RedactRule>(), &RedactRule::ByteSizeLong,
              &RedactRule::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(RedactRule, _impl_._cached_size_),
          true,
      },
      "optimization_guide.proto.RedactRule",
  };
}
struct RedactRuleGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr RedactRuleGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 RedactRule_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(RedactRule::InternalGenerateClassData_(
            _default, &RedactRule_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<RedactRule>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~RedactRuleGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) RedactRule _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<RedactRule>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(RedactRuleGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST RedactRuleGlobalsTypeInternal RedactRule_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* RedactRule_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return RedactRule_globals_.GetClassData();
#else
  return RedactRule_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class RedactRules::_Internal {
 public:
  using HasBits = decltype(::std::declval<RedactRules>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(RedactRules, _impl_._has_bits_);
};

constexpr RedactRules::ParseTableT_ RedactRules::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(RedactRules, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::RedactRules>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.RedactRule rules = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(RedactRules, _impl_.rules_)}},
      // repeated .optimization_guide.proto.ProtoField fields_to_check = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(RedactRules, _impl_.fields_to_check_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .optimization_guide.proto.ProtoField fields_to_check = 1;
      {PROTOBUF_FIELD_OFFSET(RedactRules, _impl_.fields_to_check_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .optimization_guide.proto.RedactRule rules = 2;
      {PROTOBUF_FIELD_OFFSET(RedactRules, _impl_.rules_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ProtoField>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ProtoField_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::RedactRule>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::RedactRule_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr RedactRules::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        fields_to_check_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::RedactRules,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::RedactRules, _impl_.fields_to_check_)>()
         }
        ,
        rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::RedactRules,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::RedactRules, _impl_.rules_)>()
         }
     {}

template <typename>
constexpr RedactRules::RedactRules(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL RedactRules::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) RedactRules(arena);
}
constexpr auto RedactRules::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RedactRules), alignof(RedactRules));
}
constexpr auto RedactRules::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &RedactRules::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<RedactRules>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &RedactRules::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<RedactRules>(), &RedactRules::ByteSizeLong,
              &RedactRules::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(RedactRules, _impl_._cached_size_),
          true,
      },
      "optimization_guide.proto.RedactRules",
  };
}
struct RedactRulesGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr RedactRulesGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 RedactRules_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(RedactRules::InternalGenerateClassData_(
            _default, &RedactRules_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<RedactRules>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~RedactRulesGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) RedactRules _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<RedactRules>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(RedactRulesGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST RedactRulesGlobalsTypeInternal RedactRules_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* RedactRules_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return RedactRules_globals_.GetClassData();
#else
  return RedactRules_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace optimization_guide
namespace optimization_guide {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t RedactBehavior_internal_data_[] = {
    262144u, 0u, };
static const char RedactBehavior_names[] = {
    "REDACT_ALWAYS"
    "REDACT_BEHAVIOR_UNSPECIFIED"
    "REDACT_IF_ONLY_IN_OUTPUT"
    "REJECT"
};

static const ::google::protobuf::internal::EnumEntry RedactBehavior_entries[] = {
    {{&RedactBehavior_names[0], 13}, 3},
    {{&RedactBehavior_names[13], 27}, 0},
    {{&RedactBehavior_names[40], 24}, 2},
    {{&RedactBehavior_names[64], 6}, 1},
};

static const int RedactBehavior_entries_by_number[] = {
    1,  // 0 -> REDACT_BEHAVIOR_UNSPECIFIED
    3,  // 1 -> REJECT
    2,  // 2 -> REDACT_IF_ONLY_IN_OUTPUT
    0,  // 3 -> REDACT_ALWAYS
};

bool RedactBehavior_Parse(::absl::string_view name,
                                  RedactBehavior* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      RedactBehavior_entries, 4, name, &int_value);
  if (success) {
    *value = static_cast<RedactBehavior>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    RedactBehavior_strings[4] = {};

const ::std::string& RedactBehavior_Name(RedactBehavior value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      RedactBehavior_entries, RedactBehavior_entries_by_number, 4,
      RedactBehavior_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(RedactBehavior_entries,
                                  RedactBehavior_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : RedactBehavior_strings[idx].get();
}
// ===================================================================

RedactRule::RedactRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RedactRule_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:optimization_guide.proto.RedactRule)
}
PROTOBUF_NDEBUG_INLINE RedactRule::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::optimization_guide::proto::RedactRule& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        regex_(arena, from.regex_),
        replacement_string_(arena, from.replacement_string_) {}

RedactRule::RedactRule(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const RedactRule& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RedactRule_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  RedactRule* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, behavior_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, behavior_),
           offsetof(Impl_, group_index_) -
               offsetof(Impl_, behavior_) +
               sizeof(Impl_::group_index_));

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.RedactRule)
}
PROTOBUF_NDEBUG_INLINE RedactRule::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        regex_(arena),
        replacement_string_(arena) {}

inline void RedactRule::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, behavior_),
           0,
           offsetof(Impl_, group_index_) -
               offsetof(Impl_, behavior_) +
               sizeof(Impl_::group_index_));
}
RedactRule::~RedactRule() {
  // @@protoc_insertion_point(destructor:optimization_guide.proto.RedactRule)
  SharedDtor(*this);
}
inline void RedactRule::SharedDtor(MessageLite& self) {
  RedactRule& this_ = static_cast<RedactRule&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.regex_.Destroy();
  this_._impl_.replacement_string_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite RedactRule_class_data_ =
    RedactRule::InternalGenerateClassData_(RedactRule_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
RedactRule::GetClassData() const {
  return RedactRule_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
RedactRule::GetClassData() const {
  return RedactRule_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const RedactRule::ParseTableT_
    RedactRule::_table_ =
        RedactRule::InternalGenerateParseTable_(RedactRule_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void RedactRule::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.RedactRule)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.regex_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.replacement_string_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000003cU)) {
    ::memset(&_impl_.behavior_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.group_index_) -
        reinterpret_cast<char*>(&_impl_.behavior_)) + sizeof(_impl_.group_index_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL RedactRule::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const RedactRule& this_ = static_cast<const RedactRule&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL RedactRule::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const RedactRule& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:optimization_guide.proto.RedactRule)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.RedactBehavior behavior = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_behavior() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          1, this_._internal_behavior(), target);
    }
  }

  // string regex = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_regex().empty()) {
      const ::std::string& _s = this_._internal_regex();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.RedactRule.regex");
      target = stream->WriteStringMaybeAliased(2, _s, target);
    }
  }

  // string replacement_string = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_replacement_string().empty()) {
      const ::std::string& _s = this_._internal_replacement_string();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.RedactRule.replacement_string");
      target = stream->WriteStringMaybeAliased(3, _s, target);
    }
  }

  // int32 min_pattern_length = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_min_pattern_length() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
              stream, this_._internal_min_pattern_length(), target);
    }
  }

  // int32 max_pattern_length = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (this_._internal_max_pattern_length() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
              stream, this_._internal_max_pattern_length(), target);
    }
  }

  // int32 group_index = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    if (this_._internal_group_index() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
              stream, this_._internal_group_index(), target);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.RedactRule)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t RedactRule::ByteSizeLong(const MessageLite& base) {
  const RedactRule& this_ = static_cast<const RedactRule&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t RedactRule::ByteSizeLong() const {
  const RedactRule& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.RedactRule)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
    // string regex = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_regex().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_regex());
      }
    }
    // string replacement_string = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_replacement_string().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_replacement_string());
      }
    }
    // .optimization_guide.proto.RedactBehavior behavior = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_behavior() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_behavior());
      }
    }
    // int32 min_pattern_length = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_min_pattern_length() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_min_pattern_length());
      }
    }
    // int32 max_pattern_length = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (this_._internal_max_pattern_length() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_max_pattern_length());
      }
    }
    // int32 group_index = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (this_._internal_group_index() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_group_index());
      }
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void RedactRule::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<RedactRule*>(&to_msg);
  auto& from = static_cast<const RedactRule&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.RedactRule)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!from._internal_regex().empty()) {
        _this->_internal_set_regex(from._internal_regex());
      } else {
        if (_this->_impl_.regex_.IsDefault()) {
          _this->_internal_set_regex("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_replacement_string().empty()) {
        _this->_internal_set_replacement_string(from._internal_replacement_string());
      } else {
        if (_this->_impl_.replacement_string_.IsDefault()) {
          _this->_internal_set_replacement_string("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_behavior() != 0) {
        _this->_impl_.behavior_ = from._impl_.behavior_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_min_pattern_length() != 0) {
        _this->_impl_.min_pattern_length_ = from._impl_.min_pattern_length_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (from._internal_max_pattern_length() != 0) {
        _this->_impl_.max_pattern_length_ = from._impl_.max_pattern_length_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (from._internal_group_index() != 0) {
        _this->_impl_.group_index_ = from._impl_.group_index_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void RedactRule::CopyFrom(const RedactRule& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:optimization_guide.proto.RedactRule)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void RedactRule::InternalSwap(RedactRule* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.regex_, &other->_impl_.regex_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.replacement_string_, &other->_impl_.replacement_string_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.group_index_)
      + sizeof(RedactRule::_impl_.group_index_)
      - PROTOBUF_FIELD_OFFSET(RedactRule, _impl_.behavior_)>(
          reinterpret_cast<char*>(&_impl_.behavior_),
          reinterpret_cast<char*>(&other->_impl_.behavior_));
}

// ===================================================================

void RedactRules::clear_fields_to_check() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.fields_to_check_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
RedactRules::RedactRules(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RedactRules_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:optimization_guide.proto.RedactRules)
}
PROTOBUF_NDEBUG_INLINE RedactRules::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::optimization_guide::proto::RedactRules& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        fields_to_check_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::RedactRules,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::RedactRules, _impl_.fields_to_check_)>()
          , from.fields_to_check_
        }
        ,
        rules_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::RedactRules,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::RedactRules, _impl_.rules_)>()
          , from.rules_
        }
     {}

RedactRules::RedactRules(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const RedactRules& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RedactRules_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  RedactRules* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.RedactRules)
}
PROTOBUF_NDEBUG_INLINE RedactRules::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        fields_to_check_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::RedactRules,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::RedactRules, _impl_.fields_to_check_)>()
         }
        ,
        rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::RedactRules,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::RedactRules, _impl_.rules_)>()
         }
     {}

inline void RedactRules::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
RedactRules::~RedactRules() {
  // @@protoc_insertion_point(destructor:optimization_guide.proto.RedactRules)
  SharedDtor(*this);
}
inline void RedactRules::SharedDtor(MessageLite& self) {
  RedactRules& this_ = static_cast<RedactRules&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite RedactRules_class_data_ =
    RedactRules::InternalGenerateClassData_(RedactRules_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
RedactRules::GetClassData() const {
  return RedactRules_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
RedactRules::GetClassData() const {
  return RedactRules_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const RedactRules::ParseTableT_
    RedactRules::_table_ =
        RedactRules::InternalGenerateParseTable_(RedactRules_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void RedactRules::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.RedactRules)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.fields_to_check_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.rules_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL RedactRules::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const RedactRules& this_ = static_cast<const RedactRules&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL RedactRules::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const RedactRules& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:optimization_guide.proto.RedactRules)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .optimization_guide.proto.ProtoField fields_to_check = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_fields_to_check_size());
         i < n; i++) {
      const auto& repfield = this_._internal_fields_to_check().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .optimization_guide.proto.RedactRule rules = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_rules_size());
         i < n; i++) {
      const auto& repfield = this_._internal_rules().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.RedactRules)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t RedactRules::ByteSizeLong(const MessageLite& base) {
  const RedactRules& this_ = static_cast<const RedactRules&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t RedactRules::ByteSizeLong() const {
  const RedactRules& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.RedactRules)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated .optimization_guide.proto.ProtoField fields_to_check = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_fields_to_check_size();
      for (const auto& msg : this_._internal_fields_to_check()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .optimization_guide.proto.RedactRule rules = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_rules_size();
      for (const auto& msg : this_._internal_rules()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void RedactRules::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<RedactRules*>(&to_msg);
  auto& from = static_cast<const RedactRules&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.RedactRules)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_fields_to_check()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_fields_to_check());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_rules()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_rules());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void RedactRules::CopyFrom(const RedactRules& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:optimization_guide.proto.RedactRules)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void RedactRules::InternalSwap(RedactRules* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.fields_to_check_.InternalSwap(&other->_impl_.fields_to_check_);
  _impl_.rules_.InternalSwap(&other->_impl_.rules_);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace proto
}  // namespace optimization_guide
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
