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

#include "dlp_policy_event.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;
class DlpPolicyEventSource::_Internal {
 public:
  using HasBits = decltype(::std::declval<DlpPolicyEventSource>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(DlpPolicyEventSource, _impl_._has_bits_);
};

constexpr DlpPolicyEventSource::ParseTableT_ DlpPolicyEventSource::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DlpPolicyEventSource, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // 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<::DlpPolicyEventSource>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string url = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEventSource, _impl_.url_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string url = 1;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEventSource, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\24\3\0\0\0\0\0\0"
      "DlpPolicyEventSource"
      "url"
    }},
  };
}


inline constexpr DlpPolicyEventSource::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

template <typename>
constexpr DlpPolicyEventSource::DlpPolicyEventSource(::_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 DlpPolicyEventSource::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) DlpPolicyEventSource(arena);
}
constexpr auto DlpPolicyEventSource::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DlpPolicyEventSource), alignof(DlpPolicyEventSource));
}
constexpr auto DlpPolicyEventSource::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
          &DlpPolicyEventSource::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<DlpPolicyEventSource>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &DlpPolicyEventSource::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<DlpPolicyEventSource>(), &DlpPolicyEventSource::ByteSizeLong,
              &DlpPolicyEventSource::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(DlpPolicyEventSource, _impl_._cached_size_),
          true,
      },
      "DlpPolicyEventSource",
  };
}
struct DlpPolicyEventSourceGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr DlpPolicyEventSourceGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 DlpPolicyEventSource_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(DlpPolicyEventSource::InternalGenerateClassData_(
            _default, &DlpPolicyEventSource_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<DlpPolicyEventSource>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~DlpPolicyEventSourceGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) DlpPolicyEventSource _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<DlpPolicyEventSource>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(DlpPolicyEventSourceGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr DlpPolicyEventDestination::ParseTableT_ DlpPolicyEventDestination::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DlpPolicyEventDestination, _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
      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<::DlpPolicyEventDestination>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .DlpPolicyEventDestination.Component component = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEventDestination, _impl_.component_)}},
      // string url = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEventDestination, _impl_.url_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string url = 1;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEventDestination, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .DlpPolicyEventDestination.Component component = 2;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEventDestination, _impl_.component_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
    }},
    // no aux_entries
    {{
      "\31\3\0\0\0\0\0\0"
      "DlpPolicyEventDestination"
      "url"
    }},
  };
}


inline constexpr DlpPolicyEventDestination::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        component_{static_cast< ::DlpPolicyEventDestination_Component >(0)} {}

template <typename>
constexpr DlpPolicyEventDestination::DlpPolicyEventDestination(::_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 DlpPolicyEventDestination::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) DlpPolicyEventDestination(arena);
}
constexpr auto DlpPolicyEventDestination::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DlpPolicyEventDestination), alignof(DlpPolicyEventDestination));
}
constexpr auto DlpPolicyEventDestination::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
          &DlpPolicyEventDestination::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<DlpPolicyEventDestination>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &DlpPolicyEventDestination::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<DlpPolicyEventDestination>(), &DlpPolicyEventDestination::ByteSizeLong,
              &DlpPolicyEventDestination::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(DlpPolicyEventDestination, _impl_._cached_size_),
          true,
      },
      "DlpPolicyEventDestination",
  };
}
struct DlpPolicyEventDestinationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr DlpPolicyEventDestinationGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 DlpPolicyEventDestination_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(DlpPolicyEventDestination::InternalGenerateClassData_(
            _default, &DlpPolicyEventDestination_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<DlpPolicyEventDestination>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~DlpPolicyEventDestinationGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) DlpPolicyEventDestination _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<DlpPolicyEventDestination>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(DlpPolicyEventDestinationGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr DlpPolicyEvent::ParseTableT_ DlpPolicyEvent::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_._has_bits_),
      0, // no _extensions_
      10, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294966288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      9,  // 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<::DlpPolicyEvent>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .DlpPolicyEventSource source = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 3, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.source_)}},
      // .DlpPolicyEventDestination destination = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 4, 1,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.destination_)}},
      // .DlpPolicyEvent.Restriction restriction = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 5, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.restriction_)}},
      // .DlpPolicyEvent.Mode mode = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 6, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.mode_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // int64 timestamp_micro = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 7, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.timestamp_micro_)}},
      // .DlpPolicyEvent.UserType user_type = 7;
      {::_pbi::TcParser::FastV32S1,
       {56, 8, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.user_type_)}},
      // string content_name = 8;
      {::_pbi::TcParser::FastUS1,
       {66, 0, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.content_name_)}},
      // string triggered_rule_name = 9;
      {::_pbi::TcParser::FastUS1,
       {74, 1, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.triggered_rule_name_)}},
      // string triggered_rule_id = 10;
      {::_pbi::TcParser::FastUS1,
       {82, 2, 0,
        PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.triggered_rule_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .DlpPolicyEventSource source = 1;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.source_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .DlpPolicyEventDestination destination = 2;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.destination_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .DlpPolicyEvent.Restriction restriction = 3;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.restriction_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // .DlpPolicyEvent.Mode mode = 4;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.mode_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // int64 timestamp_micro = 6;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.timestamp_micro_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // .DlpPolicyEvent.UserType user_type = 7;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.user_type_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // string content_name = 8;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.content_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string triggered_rule_name = 9;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.triggered_rule_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string triggered_rule_id = 10;
      {PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.triggered_rule_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::DlpPolicyEventSource>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::DlpPolicyEventSource_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::DlpPolicyEventDestination>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::DlpPolicyEventDestination_globals_},
        #endif
    }},
    {{
      "\16\0\0\0\0\0\0\14\23\21\0\0\0\0\0\0"
      "DlpPolicyEvent"
      "content_name"
      "triggered_rule_name"
      "triggered_rule_id"
    }},
  };
}


inline constexpr DlpPolicyEvent::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        content_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        triggered_rule_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        triggered_rule_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        source_{nullptr},
        destination_{nullptr},
        restriction_{static_cast< ::DlpPolicyEvent_Restriction >(0)},
        mode_{static_cast< ::DlpPolicyEvent_Mode >(0)},
        timestamp_micro_{::int64_t{0}},
        user_type_{static_cast< ::DlpPolicyEvent_UserType >(0)} {}

template <typename>
constexpr DlpPolicyEvent::DlpPolicyEvent(::_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 DlpPolicyEvent::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) DlpPolicyEvent(arena);
}
constexpr auto DlpPolicyEvent::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DlpPolicyEvent), alignof(DlpPolicyEvent));
}
constexpr auto DlpPolicyEvent::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
          &DlpPolicyEvent::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<DlpPolicyEvent>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &DlpPolicyEvent::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<DlpPolicyEvent>(), &DlpPolicyEvent::ByteSizeLong,
              &DlpPolicyEvent::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_._cached_size_),
          true,
      },
      "DlpPolicyEvent",
  };
}
struct DlpPolicyEventGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr DlpPolicyEventGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 DlpPolicyEvent_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(DlpPolicyEvent::InternalGenerateClassData_(
            _default, &DlpPolicyEvent_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<DlpPolicyEvent>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~DlpPolicyEventGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) DlpPolicyEvent _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<DlpPolicyEvent>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(DlpPolicyEventGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST DlpPolicyEventGlobalsTypeInternal DlpPolicyEvent_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* DlpPolicyEvent_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return DlpPolicyEvent_globals_.GetClassData();
#else
  return DlpPolicyEvent_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_CONSTINIT const uint32_t DlpPolicyEventDestination_Component_internal_data_[] = {
    458752u, 0u, };
static const char DlpPolicyEventDestination_Component_names[] = {
    "ARC"
    "CROSTINI"
    "DRIVE"
    "ONEDRIVE"
    "PLUGIN_VM"
    "UNDEFINED_COMPONENT"
    "USB"
};

static const ::google::protobuf::internal::EnumEntry DlpPolicyEventDestination_Component_entries[] = {
    {{&DlpPolicyEventDestination_Component_names[0], 3}, 1},
    {{&DlpPolicyEventDestination_Component_names[3], 8}, 2},
    {{&DlpPolicyEventDestination_Component_names[11], 5}, 5},
    {{&DlpPolicyEventDestination_Component_names[16], 8}, 6},
    {{&DlpPolicyEventDestination_Component_names[24], 9}, 3},
    {{&DlpPolicyEventDestination_Component_names[33], 19}, 0},
    {{&DlpPolicyEventDestination_Component_names[52], 3}, 4},
};

static const int DlpPolicyEventDestination_Component_entries_by_number[] = {
    5,  // 0 -> UNDEFINED_COMPONENT
    0,  // 1 -> ARC
    1,  // 2 -> CROSTINI
    4,  // 3 -> PLUGIN_VM
    6,  // 4 -> USB
    2,  // 5 -> DRIVE
    3,  // 6 -> ONEDRIVE
};

bool DlpPolicyEventDestination_Component_Parse(::absl::string_view name,
                                  DlpPolicyEventDestination_Component* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      DlpPolicyEventDestination_Component_entries, 7, name, &int_value);
  if (success) {
    *value = static_cast<DlpPolicyEventDestination_Component>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    DlpPolicyEventDestination_Component_strings[7] = {};

const ::std::string& DlpPolicyEventDestination_Component_Name(DlpPolicyEventDestination_Component value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      DlpPolicyEventDestination_Component_entries, DlpPolicyEventDestination_Component_entries_by_number, 7,
      DlpPolicyEventDestination_Component_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(DlpPolicyEventDestination_Component_entries,
                                  DlpPolicyEventDestination_Component_entries_by_number,
                                  7, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DlpPolicyEventDestination_Component_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t DlpPolicyEvent_Restriction_internal_data_[] = {
    458752u, 0u, };
static const char DlpPolicyEvent_Restriction_names[] = {
    "CLIPBOARD"
    "EPRIVACY"
    "FILES"
    "PRINTING"
    "SCREENCAST"
    "SCREENSHOT"
    "UNDEFINED_RESTRICTION"
};

static const ::google::protobuf::internal::EnumEntry DlpPolicyEvent_Restriction_entries[] = {
    {{&DlpPolicyEvent_Restriction_names[0], 9}, 1},
    {{&DlpPolicyEvent_Restriction_names[9], 8}, 5},
    {{&DlpPolicyEvent_Restriction_names[17], 5}, 6},
    {{&DlpPolicyEvent_Restriction_names[22], 8}, 4},
    {{&DlpPolicyEvent_Restriction_names[30], 10}, 3},
    {{&DlpPolicyEvent_Restriction_names[40], 10}, 2},
    {{&DlpPolicyEvent_Restriction_names[50], 21}, 0},
};

static const int DlpPolicyEvent_Restriction_entries_by_number[] = {
    6,  // 0 -> UNDEFINED_RESTRICTION
    0,  // 1 -> CLIPBOARD
    5,  // 2 -> SCREENSHOT
    4,  // 3 -> SCREENCAST
    3,  // 4 -> PRINTING
    1,  // 5 -> EPRIVACY
    2,  // 6 -> FILES
};

bool DlpPolicyEvent_Restriction_Parse(::absl::string_view name,
                                  DlpPolicyEvent_Restriction* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      DlpPolicyEvent_Restriction_entries, 7, name, &int_value);
  if (success) {
    *value = static_cast<DlpPolicyEvent_Restriction>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    DlpPolicyEvent_Restriction_strings[7] = {};

const ::std::string& DlpPolicyEvent_Restriction_Name(DlpPolicyEvent_Restriction value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      DlpPolicyEvent_Restriction_entries, DlpPolicyEvent_Restriction_entries_by_number, 7,
      DlpPolicyEvent_Restriction_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(DlpPolicyEvent_Restriction_entries,
                                  DlpPolicyEvent_Restriction_entries_by_number,
                                  7, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DlpPolicyEvent_Restriction_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t DlpPolicyEvent_Mode_internal_data_[] = {
    327680u, 0u, };
static const char DlpPolicyEvent_Mode_names[] = {
    "BLOCK"
    "REPORT"
    "UNDEFINED_MODE"
    "WARN"
    "WARN_PROCEED"
};

static const ::google::protobuf::internal::EnumEntry DlpPolicyEvent_Mode_entries[] = {
    {{&DlpPolicyEvent_Mode_names[0], 5}, 1},
    {{&DlpPolicyEvent_Mode_names[5], 6}, 2},
    {{&DlpPolicyEvent_Mode_names[11], 14}, 0},
    {{&DlpPolicyEvent_Mode_names[25], 4}, 3},
    {{&DlpPolicyEvent_Mode_names[29], 12}, 4},
};

static const int DlpPolicyEvent_Mode_entries_by_number[] = {
    2,  // 0 -> UNDEFINED_MODE
    0,  // 1 -> BLOCK
    1,  // 2 -> REPORT
    3,  // 3 -> WARN
    4,  // 4 -> WARN_PROCEED
};

bool DlpPolicyEvent_Mode_Parse(::absl::string_view name,
                                  DlpPolicyEvent_Mode* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      DlpPolicyEvent_Mode_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<DlpPolicyEvent_Mode>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    DlpPolicyEvent_Mode_strings[5] = {};

const ::std::string& DlpPolicyEvent_Mode_Name(DlpPolicyEvent_Mode value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      DlpPolicyEvent_Mode_entries, DlpPolicyEvent_Mode_entries_by_number, 5,
      DlpPolicyEvent_Mode_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(DlpPolicyEvent_Mode_entries,
                                  DlpPolicyEvent_Mode_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DlpPolicyEvent_Mode_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t DlpPolicyEvent_UserType_internal_data_[] = {
    262144u, 0u, };
static const char DlpPolicyEvent_UserType_names[] = {
    "KIOSK"
    "MANAGED_GUEST"
    "REGULAR"
    "UNDEFINED_USER_TYPE"
};

static const ::google::protobuf::internal::EnumEntry DlpPolicyEvent_UserType_entries[] = {
    {{&DlpPolicyEvent_UserType_names[0], 5}, 3},
    {{&DlpPolicyEvent_UserType_names[5], 13}, 2},
    {{&DlpPolicyEvent_UserType_names[18], 7}, 1},
    {{&DlpPolicyEvent_UserType_names[25], 19}, 0},
};

static const int DlpPolicyEvent_UserType_entries_by_number[] = {
    3,  // 0 -> UNDEFINED_USER_TYPE
    2,  // 1 -> REGULAR
    1,  // 2 -> MANAGED_GUEST
    0,  // 3 -> KIOSK
};

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

const ::std::string& DlpPolicyEvent_UserType_Name(DlpPolicyEvent_UserType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      DlpPolicyEvent_UserType_entries, DlpPolicyEvent_UserType_entries_by_number, 4,
      DlpPolicyEvent_UserType_strings);
  (void)kDummy;

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  DlpPolicyEventSource* 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:DlpPolicyEventSource)
}
PROTOBUF_NDEBUG_INLINE DlpPolicyEventSource::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        url_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite DlpPolicyEventSource_class_data_ =
    DlpPolicyEventSource::InternalGenerateClassData_(DlpPolicyEventSource_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DlpPolicyEventSource::GetClassData() const {
  return DlpPolicyEventSource_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DlpPolicyEventSource::GetClassData() const {
  return DlpPolicyEventSource_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const DlpPolicyEventSource::ParseTableT_
    DlpPolicyEventSource::_table_ =
        DlpPolicyEventSource::InternalGenerateParseTable_(DlpPolicyEventSource_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void DlpPolicyEventSource::Clear() {
// @@protoc_insertion_point(message_clear_start:DlpPolicyEventSource)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.url_.ClearNonDefaultToEmpty();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string url = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_url().empty()) {
      const ::std::string& _s = this_._internal_url();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DlpPolicyEventSource.url");
      target = stream->WriteStringMaybeAliased(1, _s, 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:DlpPolicyEventSource)
  return target;
}

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

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

   {
    // string url = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_url().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_url());
      }
    }
  }
  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 DlpPolicyEventSource::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DlpPolicyEventSource*>(&to_msg);
  auto& from = static_cast<const DlpPolicyEventSource&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:DlpPolicyEventSource)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!from._internal_url().empty()) {
      _this->_internal_set_url(from._internal_url());
    } else {
      if (_this->_impl_.url_.IsDefault()) {
        _this->_internal_set_url("");
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void DlpPolicyEventSource::InternalSwap(DlpPolicyEventSource* 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_.url_, &other->_impl_.url_, arena);
}

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:DlpPolicyEventDestination)
}
PROTOBUF_NDEBUG_INLINE DlpPolicyEventDestination::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        url_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite DlpPolicyEventDestination_class_data_ =
    DlpPolicyEventDestination::InternalGenerateClassData_(DlpPolicyEventDestination_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DlpPolicyEventDestination::GetClassData() const {
  return DlpPolicyEventDestination_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DlpPolicyEventDestination::GetClassData() const {
  return DlpPolicyEventDestination_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const DlpPolicyEventDestination::ParseTableT_
    DlpPolicyEventDestination::_table_ =
        DlpPolicyEventDestination::InternalGenerateParseTable_(DlpPolicyEventDestination_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void DlpPolicyEventDestination::Clear() {
// @@protoc_insertion_point(message_clear_start:DlpPolicyEventDestination)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.url_.ClearNonDefaultToEmpty();
  }
  _impl_.component_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string url = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_url().empty()) {
      const ::std::string& _s = this_._internal_url();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DlpPolicyEventDestination.url");
      target = stream->WriteStringMaybeAliased(1, _s, target);
    }
  }

  // .DlpPolicyEventDestination.Component component = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_component() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          2, this_._internal_component(), 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:DlpPolicyEventDestination)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t DlpPolicyEventDestination::ByteSizeLong(const MessageLite& base) {
  const DlpPolicyEventDestination& this_ = static_cast<const DlpPolicyEventDestination&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t DlpPolicyEventDestination::ByteSizeLong() const {
  const DlpPolicyEventDestination& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:DlpPolicyEventDestination)
  ::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)) {
    // string url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_url().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_url());
      }
    }
    // .DlpPolicyEventDestination.Component component = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (this_._internal_component() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_component());
      }
    }
  }
  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 DlpPolicyEventDestination::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DlpPolicyEventDestination*>(&to_msg);
  auto& from = static_cast<const DlpPolicyEventDestination&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:DlpPolicyEventDestination)
  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)) {
      if (!from._internal_url().empty()) {
        _this->_internal_set_url(from._internal_url());
      } else {
        if (_this->_impl_.url_.IsDefault()) {
          _this->_internal_set_url("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (from._internal_component() != 0) {
        _this->_impl_.component_ = from._impl_.component_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void DlpPolicyEventDestination::InternalSwap(DlpPolicyEventDestination* 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_.url_, &other->_impl_.url_, arena);
  swap(_impl_.component_, other->_impl_.component_);
}

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

DlpPolicyEvent::DlpPolicyEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, DlpPolicyEvent_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:DlpPolicyEvent)
}
PROTOBUF_NDEBUG_INLINE DlpPolicyEvent::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::DlpPolicyEvent& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        content_name_(arena, from.content_name_),
        triggered_rule_name_(arena, from.triggered_rule_name_),
        triggered_rule_id_(arena, from.triggered_rule_id_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  DlpPolicyEvent* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.source_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.source_)
                : nullptr;
  _impl_.destination_ = (CheckHasBit(cached_has_bits, 0x00000010U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.destination_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, restriction_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, restriction_),
           offsetof(Impl_, user_type_) -
               offsetof(Impl_, restriction_) +
               sizeof(Impl_::user_type_));

  // @@protoc_insertion_point(copy_constructor:DlpPolicyEvent)
}
PROTOBUF_NDEBUG_INLINE DlpPolicyEvent::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        content_name_(arena),
        triggered_rule_name_(arena),
        triggered_rule_id_(arena) {}

inline void DlpPolicyEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, source_),
           0,
           offsetof(Impl_, user_type_) -
               offsetof(Impl_, source_) +
               sizeof(Impl_::user_type_));
}
DlpPolicyEvent::~DlpPolicyEvent() {
  // @@protoc_insertion_point(destructor:DlpPolicyEvent)
  SharedDtor(*this);
}
inline void DlpPolicyEvent::SharedDtor(MessageLite& self) {
  DlpPolicyEvent& this_ = static_cast<DlpPolicyEvent&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.content_name_.Destroy();
  this_._impl_.triggered_rule_name_.Destroy();
  this_._impl_.triggered_rule_id_.Destroy();
  delete this_._impl_.source_;
  delete this_._impl_.destination_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite DlpPolicyEvent_class_data_ =
    DlpPolicyEvent::InternalGenerateClassData_(DlpPolicyEvent_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DlpPolicyEvent::GetClassData() const {
  return DlpPolicyEvent_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DlpPolicyEvent::GetClassData() const {
  return DlpPolicyEvent_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const DlpPolicyEvent::ParseTableT_
    DlpPolicyEvent::_table_ =
        DlpPolicyEvent::InternalGenerateParseTable_(DlpPolicyEvent_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void DlpPolicyEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:DlpPolicyEvent)
  ::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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.content_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.triggered_rule_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.triggered_rule_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.source_ != nullptr);
      _impl_.source_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(_impl_.destination_ != nullptr);
      _impl_.destination_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) {
    ::memset(&_impl_.restriction_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.timestamp_micro_) -
        reinterpret_cast<char*>(&_impl_.restriction_)) + sizeof(_impl_.timestamp_micro_));
  }
  _impl_.user_type_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .DlpPolicyEventSource source = 1;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.source_, this_._impl_.source_->GetCachedSize(), target,
        stream);
  }

  // .DlpPolicyEventDestination destination = 2;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.destination_, this_._impl_.destination_->GetCachedSize(), target,
        stream);
  }

  // .DlpPolicyEvent.Restriction restriction = 3;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    if (this_._internal_restriction() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          3, this_._internal_restriction(), target);
    }
  }

  // .DlpPolicyEvent.Mode mode = 4;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    if (this_._internal_mode() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          4, this_._internal_mode(), target);
    }
  }

  // int64 timestamp_micro = 6;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    if (this_._internal_timestamp_micro() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
              stream, this_._internal_timestamp_micro(), target);
    }
  }

  // .DlpPolicyEvent.UserType user_type = 7;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    if (this_._internal_user_type() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          7, this_._internal_user_type(), target);
    }
  }

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

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

  // string triggered_rule_id = 10;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (!this_._internal_triggered_rule_id().empty()) {
      const ::std::string& _s = this_._internal_triggered_rule_id();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DlpPolicyEvent.triggered_rule_id");
      target = stream->WriteStringMaybeAliased(10, _s, 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:DlpPolicyEvent)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t DlpPolicyEvent::ByteSizeLong(const MessageLite& base) {
  const DlpPolicyEvent& this_ = static_cast<const DlpPolicyEvent&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t DlpPolicyEvent::ByteSizeLong() const {
  const DlpPolicyEvent& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:DlpPolicyEvent)
  ::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, 0x000000ffU)) {
    // string content_name = 8;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_content_name().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_content_name());
      }
    }
    // string triggered_rule_name = 9;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_triggered_rule_name().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_triggered_rule_name());
      }
    }
    // string triggered_rule_id = 10;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!this_._internal_triggered_rule_id().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_triggered_rule_id());
      }
    }
    // .DlpPolicyEventSource source = 1;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.source_);
    }
    // .DlpPolicyEventDestination destination = 2;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.destination_);
    }
    // .DlpPolicyEvent.Restriction restriction = 3;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (this_._internal_restriction() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_restriction());
      }
    }
    // .DlpPolicyEvent.Mode mode = 4;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (this_._internal_mode() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_mode());
      }
    }
    // int64 timestamp_micro = 6;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      if (this_._internal_timestamp_micro() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_timestamp_micro());
      }
    }
  }
   {
    // .DlpPolicyEvent.UserType user_type = 7;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      if (this_._internal_user_type() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_user_type());
      }
    }
  }
  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 DlpPolicyEvent::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DlpPolicyEvent*>(&to_msg);
  auto& from = static_cast<const DlpPolicyEvent&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:DlpPolicyEvent)
  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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!from._internal_content_name().empty()) {
        _this->_internal_set_content_name(from._internal_content_name());
      } else {
        if (_this->_impl_.content_name_.IsDefault()) {
          _this->_internal_set_content_name("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_triggered_rule_name().empty()) {
        _this->_internal_set_triggered_rule_name(from._internal_triggered_rule_name());
      } else {
        if (_this->_impl_.triggered_rule_name_.IsDefault()) {
          _this->_internal_set_triggered_rule_name("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!from._internal_triggered_rule_id().empty()) {
        _this->_internal_set_triggered_rule_id(from._internal_triggered_rule_id());
      } else {
        if (_this->_impl_.triggered_rule_id_.IsDefault()) {
          _this->_internal_set_triggered_rule_id("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.source_ != nullptr);
      if (_this->_impl_.source_ == nullptr) {
        _this->_impl_.source_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.source_);
      } else {
        _this->_impl_.source_->MergeFrom(*from._impl_.source_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(from._impl_.destination_ != nullptr);
      if (_this->_impl_.destination_ == nullptr) {
        _this->_impl_.destination_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.destination_);
      } else {
        _this->_impl_.destination_->MergeFrom(*from._impl_.destination_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (from._internal_restriction() != 0) {
        _this->_impl_.restriction_ = from._impl_.restriction_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (from._internal_mode() != 0) {
        _this->_impl_.mode_ = from._impl_.mode_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      if (from._internal_timestamp_micro() != 0) {
        _this->_impl_.timestamp_micro_ = from._impl_.timestamp_micro_;
      }
    }
  }
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    if (from._internal_user_type() != 0) {
      _this->_impl_.user_type_ = from._impl_.user_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void DlpPolicyEvent::InternalSwap(DlpPolicyEvent* 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_.content_name_, &other->_impl_.content_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.triggered_rule_name_, &other->_impl_.triggered_rule_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.triggered_rule_id_, &other->_impl_.triggered_rule_id_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.user_type_)
      + sizeof(DlpPolicyEvent::_impl_.user_type_)
      - PROTOBUF_FIELD_OFFSET(DlpPolicyEvent, _impl_.source_)>(
          reinterpret_cast<char*>(&_impl_.source_),
          reinterpret_cast<char*>(&other->_impl_.source_));
}

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