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

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

constexpr Impression_ImpressionMapping::ParseTableT_ Impression_ImpressionMapping::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Impression_ImpressionMapping, _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<::notifications::proto::Impression_ImpressionMapping>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .notifications.proto.Impression.ImpressionResult impression_result = 2;
      {::_pbi::TcParser::FastEr0S1,
       {16, 1, 3,
        PROTOBUF_FIELD_OFFSET(Impression_ImpressionMapping, _impl_.impression_result_)}},
      // optional .notifications.proto.Impression.UserFeedback user_feedback = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 0, 5,
        PROTOBUF_FIELD_OFFSET(Impression_ImpressionMapping, _impl_.user_feedback_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .notifications.proto.Impression.UserFeedback user_feedback = 1;
      {PROTOBUF_FIELD_OFFSET(Impression_ImpressionMapping, _impl_.user_feedback_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .notifications.proto.Impression.ImpressionResult impression_result = 2;
      {PROTOBUF_FIELD_OFFSET(Impression_ImpressionMapping, _impl_.impression_result_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 5},
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr Impression_ImpressionMapping::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        user_feedback_{static_cast< ::notifications::proto::Impression_UserFeedback >(0)},
        impression_result_{static_cast< ::notifications::proto::Impression_ImpressionResult >(0)} {}

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

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

constexpr Impression::ParseTableT_ Impression::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Impression, _impl_._has_bits_),
      0, // no _extensions_
      8, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967040,  // skipmap
      offsetof(ParseTableT_, field_entries),
      8,  // num_field_entries
      4,  // 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<::notifications::proto::Impression>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 ignore_timeout_duration = 8;
      {::_pbi::TcParser::FastV64S1,
       {64, 6, 0,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.ignore_timeout_duration_)}},
      // optional int64 create_time = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 3, 0,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.create_time_)}},
      // optional .notifications.proto.Impression.UserFeedback feedback = 2;
      {::_pbi::TcParser::FastEr0S1,
       {16, 4, 5,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.feedback_)}},
      // optional .notifications.proto.Impression.ImpressionResult impression = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 5, 3,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.impression_)}},
      // optional bool integrated = 4;
      {::_pbi::TcParser::FastV8S1,
       {32, 7, 0,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.integrated_)}},
      // optional string guid = 5;
      {::_pbi::TcParser::FastBS1,
       {42, 2, 0,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.guid_)}},
      // repeated .notifications.proto.Impression.ImpressionMapping impression_mapping = 6;
      {::_pbi::TcParser::FastMtR1,
       {50, 0, 0,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.impression_mapping_)}},
      // repeated .notifications.proto.CustomData custom_data = 7;
      {::_pbi::TcParser::FastMtR1,
       {58, 1, 1,
        PROTOBUF_FIELD_OFFSET(Impression, _impl_.custom_data_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 create_time = 1;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.create_time_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional .notifications.proto.Impression.UserFeedback feedback = 2;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.feedback_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .notifications.proto.Impression.ImpressionResult impression = 3;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.impression_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional bool integrated = 4;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.integrated_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional string guid = 5;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.guid_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .notifications.proto.Impression.ImpressionMapping impression_mapping = 6;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.impression_mapping_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .notifications.proto.CustomData custom_data = 7;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.custom_data_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int64 ignore_timeout_duration = 8;
      {PROTOBUF_FIELD_OFFSET(Impression, _impl_.ignore_timeout_duration_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::notifications::proto::Impression_ImpressionMapping>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::notifications::proto::Impression_ImpressionMapping_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::notifications::proto::CustomData>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::notifications::proto::CustomData_globals_},
        #endif
        {0, 5},
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr Impression::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        impression_mapping_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::notifications::proto::Impression,
            PROTOBUF_FIELD_OFFSET(::notifications::proto::Impression, _impl_.impression_mapping_)>()
         }
        ,
        custom_data_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::notifications::proto::Impression,
            PROTOBUF_FIELD_OFFSET(::notifications::proto::Impression, _impl_.custom_data_)>()
         }
        ,
        guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        create_time_{::int64_t{0}},
        feedback_{static_cast< ::notifications::proto::Impression_UserFeedback >(0)},
        impression_{static_cast< ::notifications::proto::Impression_ImpressionResult >(0)},
        ignore_timeout_duration_{::int64_t{0}},
        integrated_{false} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ImpressionGlobalsTypeInternal Impression_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Impression_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Impression_globals_.GetClassData();
#else
  return Impression_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace notifications
namespace notifications {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t Impression_UserFeedback_internal_data_[] = {
    393216u, 0u, };
static const char Impression_UserFeedback_names[] = {
    "CLICK"
    "DISMISS"
    "HELPFUL"
    "IGNORE"
    "NOT_HELPFUL"
    "NO_FEEDBACK"
};

static const ::google::protobuf::internal::EnumEntry Impression_UserFeedback_entries[] = {
    {{&Impression_UserFeedback_names[0], 5}, 3},
    {{&Impression_UserFeedback_names[5], 7}, 4},
    {{&Impression_UserFeedback_names[12], 7}, 1},
    {{&Impression_UserFeedback_names[19], 6}, 5},
    {{&Impression_UserFeedback_names[25], 11}, 2},
    {{&Impression_UserFeedback_names[36], 11}, 0},
};

static const int Impression_UserFeedback_entries_by_number[] = {
    5,  // 0 -> NO_FEEDBACK
    2,  // 1 -> HELPFUL
    4,  // 2 -> NOT_HELPFUL
    0,  // 3 -> CLICK
    1,  // 4 -> DISMISS
    3,  // 5 -> IGNORE
};

bool Impression_UserFeedback_Parse(::absl::string_view name,
                                  Impression_UserFeedback* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      Impression_UserFeedback_entries, 6, name, &int_value);
  if (success) {
    *value = static_cast<Impression_UserFeedback>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    Impression_UserFeedback_strings[6] = {};

const ::std::string& Impression_UserFeedback_Name(Impression_UserFeedback value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Impression_UserFeedback_entries, Impression_UserFeedback_entries_by_number, 6,
      Impression_UserFeedback_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(Impression_UserFeedback_entries,
                                  Impression_UserFeedback_entries_by_number,
                                  6, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Impression_UserFeedback_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t Impression_ImpressionResult_internal_data_[] = {
    262144u, 0u, };
static const char Impression_ImpressionResult_names[] = {
    "INVALID"
    "NEGATIVE"
    "NEUTRAL"
    "POSITIVE"
};

static const ::google::protobuf::internal::EnumEntry Impression_ImpressionResult_entries[] = {
    {{&Impression_ImpressionResult_names[0], 7}, 0},
    {{&Impression_ImpressionResult_names[7], 8}, 2},
    {{&Impression_ImpressionResult_names[15], 7}, 3},
    {{&Impression_ImpressionResult_names[22], 8}, 1},
};

static const int Impression_ImpressionResult_entries_by_number[] = {
    0,  // 0 -> INVALID
    3,  // 1 -> POSITIVE
    1,  // 2 -> NEGATIVE
    2,  // 3 -> NEUTRAL
};

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

const ::std::string& Impression_ImpressionResult_Name(Impression_ImpressionResult value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Impression_ImpressionResult_entries, Impression_ImpressionResult_entries_by_number, 4,
      Impression_ImpressionResult_strings);
  (void)kDummy;

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

Impression_ImpressionMapping::Impression_ImpressionMapping(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Impression_ImpressionMapping_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:notifications.proto.Impression.ImpressionMapping)
}
Impression_ImpressionMapping::Impression_ImpressionMapping(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impression_ImpressionMapping& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Impression_ImpressionMapping_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE Impression_ImpressionMapping::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void Impression_ImpressionMapping::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, user_feedback_),
           0,
           offsetof(Impl_, impression_result_) -
               offsetof(Impl_, user_feedback_) +
               sizeof(Impl_::impression_result_));
}
Impression_ImpressionMapping::~Impression_ImpressionMapping() {
  // @@protoc_insertion_point(destructor:notifications.proto.Impression.ImpressionMapping)
  SharedDtor(*this);
}
inline void Impression_ImpressionMapping::SharedDtor(MessageLite& self) {
  Impression_ImpressionMapping& this_ = static_cast<Impression_ImpressionMapping&>(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 Impression_ImpressionMapping_class_data_ =
    Impression_ImpressionMapping::InternalGenerateClassData_(Impression_ImpressionMapping_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Impression_ImpressionMapping::GetClassData() const {
  return Impression_ImpressionMapping_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Impression_ImpressionMapping::GetClassData() const {
  return Impression_ImpressionMapping_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Impression_ImpressionMapping::ParseTableT_
    Impression_ImpressionMapping::_table_ =
        Impression_ImpressionMapping::InternalGenerateParseTable_(Impression_ImpressionMapping_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Impression_ImpressionMapping::Clear() {
// @@protoc_insertion_point(message_clear_start:notifications.proto.Impression.ImpressionMapping)
  ::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)) {
    ::memset(&_impl_.user_feedback_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.impression_result_) -
        reinterpret_cast<char*>(&_impl_.user_feedback_)) + sizeof(_impl_.impression_result_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .notifications.proto.Impression.UserFeedback user_feedback = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_user_feedback(), target);
  }

  // optional .notifications.proto.Impression.ImpressionResult impression_result = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_impression_result(), 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:notifications.proto.Impression.ImpressionMapping)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Impression_ImpressionMapping::ByteSizeLong(const MessageLite& base) {
  const Impression_ImpressionMapping& this_ = static_cast<const Impression_ImpressionMapping&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Impression_ImpressionMapping::ByteSizeLong() const {
  const Impression_ImpressionMapping& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:notifications.proto.Impression.ImpressionMapping)
  ::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)) {
    // optional .notifications.proto.Impression.UserFeedback user_feedback = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_user_feedback());
    }
    // optional .notifications.proto.Impression.ImpressionResult impression_result = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_impression_result());
    }
  }
  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 Impression_ImpressionMapping::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Impression_ImpressionMapping*>(&to_msg);
  auto& from = static_cast<const Impression_ImpressionMapping&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:notifications.proto.Impression.ImpressionMapping)
  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->_impl_.user_feedback_ = from._impl_.user_feedback_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.impression_result_ = from._impl_.impression_result_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Impression_ImpressionMapping::CopyFrom(const Impression_ImpressionMapping& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:notifications.proto.Impression.ImpressionMapping)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Impression_ImpressionMapping::InternalSwap(Impression_ImpressionMapping* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Impression_ImpressionMapping, _impl_.impression_result_)
      + sizeof(Impression_ImpressionMapping::_impl_.impression_result_)
      - PROTOBUF_FIELD_OFFSET(Impression_ImpressionMapping, _impl_.user_feedback_)>(
          reinterpret_cast<char*>(&_impl_.user_feedback_),
          reinterpret_cast<char*>(&other->_impl_.user_feedback_));
}

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

void Impression::clear_custom_data() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.custom_data_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
Impression::Impression(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Impression_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:notifications.proto.Impression)
}
PROTOBUF_NDEBUG_INLINE Impression::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::notifications::proto::Impression& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        impression_mapping_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::notifications::proto::Impression,
              PROTOBUF_FIELD_OFFSET(::notifications::proto::Impression, _impl_.impression_mapping_)>()
          , from.impression_mapping_
        }
        ,
        custom_data_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::notifications::proto::Impression,
              PROTOBUF_FIELD_OFFSET(::notifications::proto::Impression, _impl_.custom_data_)>()
          , from.custom_data_
        }
        ,
        guid_(arena, from.guid_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Impression* 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_, create_time_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, create_time_),
           offsetof(Impl_, integrated_) -
               offsetof(Impl_, create_time_) +
               sizeof(Impl_::integrated_));

  // @@protoc_insertion_point(copy_constructor:notifications.proto.Impression)
}
PROTOBUF_NDEBUG_INLINE Impression::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        impression_mapping_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::notifications::proto::Impression,
            PROTOBUF_FIELD_OFFSET(::notifications::proto::Impression, _impl_.impression_mapping_)>()
         }
        ,
        custom_data_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::notifications::proto::Impression,
            PROTOBUF_FIELD_OFFSET(::notifications::proto::Impression, _impl_.custom_data_)>()
         }
        ,
        guid_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Impression_class_data_ =
    Impression::InternalGenerateClassData_(Impression_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Impression::GetClassData() const {
  return Impression_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Impression::GetClassData() const {
  return Impression_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Impression::ParseTableT_
    Impression::_table_ =
        Impression::InternalGenerateParseTable_(Impression_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Impression::Clear() {
// @@protoc_insertion_point(message_clear_start:notifications.proto.Impression)
  ::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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.impression_mapping_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.custom_data_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.guid_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
    ::memset(&_impl_.create_time_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.integrated_) -
        reinterpret_cast<char*>(&_impl_.create_time_)) + sizeof(_impl_.integrated_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int64 create_time = 1;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
            stream, this_._internal_create_time(), target);
  }

  // optional .notifications.proto.Impression.UserFeedback feedback = 2;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_feedback(), target);
  }

  // optional .notifications.proto.Impression.ImpressionResult impression = 3;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_impression(), target);
  }

  // optional bool integrated = 4;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        4, this_._internal_integrated(), target);
  }

  // optional string guid = 5;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_guid();
    target = stream->WriteStringMaybeAliased(5, _s, target);
  }

  // repeated .notifications.proto.Impression.ImpressionMapping impression_mapping = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_impression_mapping_size());
         i < n; i++) {
      const auto& repfield = this_._internal_impression_mapping().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              6, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .notifications.proto.CustomData custom_data = 7;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_custom_data_size());
         i < n; i++) {
      const auto& repfield = this_._internal_custom_data().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              7, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional int64 ignore_timeout_duration = 8;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
            stream, this_._internal_ignore_timeout_duration(), 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:notifications.proto.Impression)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Impression::ByteSizeLong(const MessageLite& base) {
  const Impression& this_ = static_cast<const Impression&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Impression::ByteSizeLong() const {
  const Impression& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:notifications.proto.Impression)
  ::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];
  total_size += static_cast<bool>(0x00000080U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    // repeated .notifications.proto.Impression.ImpressionMapping impression_mapping = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_impression_mapping_size();
      for (const auto& msg : this_._internal_impression_mapping()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .notifications.proto.CustomData custom_data = 7;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_custom_data_size();
      for (const auto& msg : this_._internal_custom_data()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string guid = 5;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_guid());
    }
    // optional int64 create_time = 1;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_create_time());
    }
    // optional .notifications.proto.Impression.UserFeedback feedback = 2;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_feedback());
    }
    // optional .notifications.proto.Impression.ImpressionResult impression = 3;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_impression());
    }
    // optional int64 ignore_timeout_duration = 8;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_ignore_timeout_duration());
    }
  }
  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 Impression::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Impression*>(&to_msg);
  auto& from = static_cast<const Impression&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:notifications.proto.Impression)
  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)) {
      _this->_internal_mutable_impression_mapping()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_impression_mapping());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_custom_data()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_custom_data());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_guid(from._internal_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.create_time_ = from._impl_.create_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.feedback_ = from._impl_.feedback_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.impression_ = from._impl_.impression_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.ignore_timeout_duration_ = from._impl_.ignore_timeout_duration_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.integrated_ = from._impl_.integrated_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void Impression::InternalSwap(Impression* 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]);
  _impl_.impression_mapping_.InternalSwap(&other->_impl_.impression_mapping_);
  _impl_.custom_data_.InternalSwap(&other->_impl_.custom_data_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.guid_, &other->_impl_.guid_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Impression, _impl_.integrated_)
      + sizeof(Impression::_impl_.integrated_)
      - PROTOBUF_FIELD_OFFSET(Impression, _impl_.create_time_)>(
          reinterpret_cast<char*>(&_impl_.create_time_),
          reinterpret_cast<char*>(&other->_impl_.create_time_));
}

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