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

#include "components/enterprise/common/proto/synced/extension_install_events.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 chrome {
namespace cros {
namespace reporting {
namespace proto {
class ExtensionAppInstallEvent::_Internal {
 public:
  using HasBits = decltype(::std::declval<ExtensionAppInstallEvent>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_._has_bits_);
};

constexpr ExtensionAppInstallEvent::ParseTableT_ ExtensionAppInstallEvent::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_._has_bits_),
      0, // no _extensions_
      21, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4292870144,  // skipmap
      offsetof(ParseTableT_, field_entries),
      21,  // 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<::chrome::cros::reporting::proto::ExtensionAppInstallEvent>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string extension_id = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.extension_id_)}},
      // int32 event_type = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 4, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.event_type_)}},
      // int64 stateful_total = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.stateful_total_)}},
      // int64 stateful_free = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.stateful_free_)}},
      // bool online = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 9, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.online_)}},
      // int32 session_state_change_type = 6;
      {::_pbi::TcParser::FastV32S1,
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.session_state_change_type_)}},
      // string serial_number = 7;
      {::_pbi::TcParser::FastUS1,
       {58, 1, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.serial_number_)}},
      // int32 failure_reason = 8;
      {::_pbi::TcParser::FastV32S1,
       {64, 6, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.failure_reason_)}},
      // int32 installation_stage = 9;
      {::_pbi::TcParser::FastV32S1,
       {72, 7, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.installation_stage_)}},
      // int32 downloading_stage = 10;
      {::_pbi::TcParser::FastV32S1,
       {80, 8, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.downloading_stage_)}},
      // int32 user_type = 11;
      {::_pbi::TcParser::FastV32S1,
       {88, 12, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.user_type_)}},
      // bool is_new_user = 12;
      {::_pbi::TcParser::FastV8S1,
       {96, 10, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.is_new_user_)}},
      // .chrome.cros.reporting.proto.ExtensionAppInstallEvent.ExtensionType extension_type = 13;
      {::_pbi::TcParser::FastV32S1,
       {104, 13, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.extension_type_)}},
      // bool is_misconfiguration_failure = 14;
      {::_pbi::TcParser::FastV8S1,
       {112, 11, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.is_misconfiguration_failure_)}},
      // int32 install_creation_stage = 15;
      {::_pbi::TcParser::FastV32S1,
       {120, 14, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.install_creation_stage_)}},
      // int32 unpacker_failure_reason = 16;
      {::_pbi::TcParser::FastV32S2,
       {384, 15, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.unpacker_failure_reason_)}},
      // int32 download_cache_status = 17;
      {::_pbi::TcParser::FastV32S2,
       {392, 16, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.download_cache_status_)}},
      // int32 manifest_invalid_error = 18;
      {::_pbi::TcParser::FastV32S2,
       {400, 17, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.manifest_invalid_error_)}},
      // int32 crx_install_error_detail = 19;
      {::_pbi::TcParser::FastV32S2,
       {408, 18, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.crx_install_error_detail_)}},
      // int32 fetch_error_code = 20;
      {::_pbi::TcParser::FastV32S2,
       {416, 19, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.fetch_error_code_)}},
      // int32 fetch_tries = 21;
      {::_pbi::TcParser::FastV32S2,
       {424, 20, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.fetch_tries_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // string extension_id = 1;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.extension_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // int32 event_type = 2;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.event_type_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int64 stateful_total = 3;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.stateful_total_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // int64 stateful_free = 4;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.stateful_free_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // bool online = 5;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.online_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // int32 session_state_change_type = 6;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.session_state_change_type_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // string serial_number = 7;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.serial_number_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // int32 failure_reason = 8;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.failure_reason_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 installation_stage = 9;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.installation_stage_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 downloading_stage = 10;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.downloading_stage_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 user_type = 11;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.user_type_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // bool is_new_user = 12;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.is_new_user_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // .chrome.cros.reporting.proto.ExtensionAppInstallEvent.ExtensionType extension_type = 13;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.extension_type_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // bool is_misconfiguration_failure = 14;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.is_misconfiguration_failure_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // int32 install_creation_stage = 15;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.install_creation_stage_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 unpacker_failure_reason = 16;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.unpacker_failure_reason_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 download_cache_status = 17;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.download_cache_status_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 manifest_invalid_error = 18;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.manifest_invalid_error_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 crx_install_error_detail = 19;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.crx_install_error_detail_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 fetch_error_code = 20;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.fetch_error_code_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 fetch_tries = 21;
      {PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.fetch_tries_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    // no aux_entries
    {{
      "\64\14\0\0\0\0\0\15\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
      "chrome.cros.reporting.proto.ExtensionAppInstallEvent"
      "extension_id"
      "serial_number"
    }},
  };
}


inline constexpr ExtensionAppInstallEvent::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        extension_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        serial_number_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        stateful_total_{::int64_t{0}},
        stateful_free_{::int64_t{0}},
        event_type_{0},
        session_state_change_type_{0},
        failure_reason_{0},
        installation_stage_{0},
        downloading_stage_{0},
        online_{false},
        is_new_user_{false},
        is_misconfiguration_failure_{false},
        user_type_{0},
        extension_type_{static_cast< ::chrome::cros::reporting::proto::ExtensionAppInstallEvent_ExtensionType >(0)},
        install_creation_stage_{0},
        unpacker_failure_reason_{0},
        download_cache_status_{0},
        manifest_invalid_error_{0},
        crx_install_error_detail_{0},
        fetch_error_code_{0},
        fetch_tries_{0} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ExtensionAppInstallEventGlobalsTypeInternal ExtensionAppInstallEvent_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ExtensionAppInstallEvent_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ExtensionAppInstallEvent_globals_.GetClassData();
#else
  return ExtensionAppInstallEvent_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace reporting
}  // namespace cros
}  // namespace chrome
namespace chrome {
namespace cros {
namespace reporting {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t ExtensionAppInstallEvent_ExtensionType_internal_data_[] = {
    589824u, 0u, };
static const char ExtensionAppInstallEvent_ExtensionType_names[] = {
    "TYPE_EXTENSION"
    "TYPE_HOSTED_APP"
    "TYPE_LEGACY_PACKAGED_APP"
    "TYPE_LOGIN_SCREEN_EXTENSION"
    "TYPE_PACKAGED_APP"
    "TYPE_PLATFORM_APP"
    "TYPE_THEME"
    "TYPE_UNKNOWN"
    "TYPE_USER_SCRIPT"
};

static const ::google::protobuf::internal::EnumEntry ExtensionAppInstallEvent_ExtensionType_entries[] = {
    {{&ExtensionAppInstallEvent_ExtensionType_names[0], 14}, 1},
    {{&ExtensionAppInstallEvent_ExtensionType_names[14], 15}, 2},
    {{&ExtensionAppInstallEvent_ExtensionType_names[29], 24}, 4},
    {{&ExtensionAppInstallEvent_ExtensionType_names[53], 27}, 8},
    {{&ExtensionAppInstallEvent_ExtensionType_names[80], 17}, 3},
    {{&ExtensionAppInstallEvent_ExtensionType_names[97], 17}, 7},
    {{&ExtensionAppInstallEvent_ExtensionType_names[114], 10}, 5},
    {{&ExtensionAppInstallEvent_ExtensionType_names[124], 12}, 0},
    {{&ExtensionAppInstallEvent_ExtensionType_names[136], 16}, 6},
};

static const int ExtensionAppInstallEvent_ExtensionType_entries_by_number[] = {
    7,  // 0 -> TYPE_UNKNOWN
    0,  // 1 -> TYPE_EXTENSION
    1,  // 2 -> TYPE_HOSTED_APP
    4,  // 3 -> TYPE_PACKAGED_APP
    2,  // 4 -> TYPE_LEGACY_PACKAGED_APP
    6,  // 5 -> TYPE_THEME
    8,  // 6 -> TYPE_USER_SCRIPT
    5,  // 7 -> TYPE_PLATFORM_APP
    3,  // 8 -> TYPE_LOGIN_SCREEN_EXTENSION
};

bool ExtensionAppInstallEvent_ExtensionType_Parse(::absl::string_view name,
                                  ExtensionAppInstallEvent_ExtensionType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      ExtensionAppInstallEvent_ExtensionType_entries, 9, name, &int_value);
  if (success) {
    *value = static_cast<ExtensionAppInstallEvent_ExtensionType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    ExtensionAppInstallEvent_ExtensionType_strings[9] = {};

const ::std::string& ExtensionAppInstallEvent_ExtensionType_Name(ExtensionAppInstallEvent_ExtensionType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ExtensionAppInstallEvent_ExtensionType_entries, ExtensionAppInstallEvent_ExtensionType_entries_by_number, 9,
      ExtensionAppInstallEvent_ExtensionType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ExtensionAppInstallEvent_ExtensionType_entries,
                                  ExtensionAppInstallEvent_ExtensionType_entries_by_number,
                                  9, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ExtensionAppInstallEvent_ExtensionType_strings[idx].get();
}
// ===================================================================

ExtensionAppInstallEvent::ExtensionAppInstallEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ExtensionAppInstallEvent_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:chrome.cros.reporting.proto.ExtensionAppInstallEvent)
}
PROTOBUF_NDEBUG_INLINE ExtensionAppInstallEvent::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::chrome::cros::reporting::proto::ExtensionAppInstallEvent& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        extension_id_(arena, from.extension_id_),
        serial_number_(arena, from.serial_number_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:chrome.cros.reporting.proto.ExtensionAppInstallEvent)
}
PROTOBUF_NDEBUG_INLINE ExtensionAppInstallEvent::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        extension_id_(arena),
        serial_number_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ExtensionAppInstallEvent_class_data_ =
    ExtensionAppInstallEvent::InternalGenerateClassData_(ExtensionAppInstallEvent_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.extension_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.serial_number_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) {
    ::memset(&_impl_.stateful_total_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.installation_stage_) -
        reinterpret_cast<char*>(&_impl_.stateful_total_)) + sizeof(_impl_.installation_stage_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    ::memset(&_impl_.downloading_stage_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.unpacker_failure_reason_) -
        reinterpret_cast<char*>(&_impl_.downloading_stage_)) + sizeof(_impl_.unpacker_failure_reason_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) {
    ::memset(&_impl_.download_cache_status_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.fetch_tries_) -
        reinterpret_cast<char*>(&_impl_.download_cache_status_)) + sizeof(_impl_.fetch_tries_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // int64 stateful_total = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_stateful_total() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
              stream, this_._internal_stateful_total(), target);
    }
  }

  // int64 stateful_free = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_stateful_free() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
              stream, this_._internal_stateful_free(), target);
    }
  }

  // bool online = 5;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    if (this_._internal_online() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          5, this_._internal_online(), target);
    }
  }

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

  // string serial_number = 7;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_serial_number().empty()) {
      const ::std::string& _s = this_._internal_serial_number();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "chrome.cros.reporting.proto.ExtensionAppInstallEvent.serial_number");
      target = stream->WriteStringMaybeAliased(7, _s, target);
    }
  }

  // int32 failure_reason = 8;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    if (this_._internal_failure_reason() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
              stream, this_._internal_failure_reason(), target);
    }
  }

  // int32 installation_stage = 9;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    if (this_._internal_installation_stage() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>(
              stream, this_._internal_installation_stage(), target);
    }
  }

  // int32 downloading_stage = 10;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    if (this_._internal_downloading_stage() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>(
              stream, this_._internal_downloading_stage(), target);
    }
  }

  // int32 user_type = 11;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    if (this_._internal_user_type() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>(
              stream, this_._internal_user_type(), target);
    }
  }

  // bool is_new_user = 12;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    if (this_._internal_is_new_user() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          12, this_._internal_is_new_user(), target);
    }
  }

  // .chrome.cros.reporting.proto.ExtensionAppInstallEvent.ExtensionType extension_type = 13;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    if (this_._internal_extension_type() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          13, this_._internal_extension_type(), target);
    }
  }

  // bool is_misconfiguration_failure = 14;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    if (this_._internal_is_misconfiguration_failure() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          14, this_._internal_is_misconfiguration_failure(), target);
    }
  }

  // int32 install_creation_stage = 15;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    if (this_._internal_install_creation_stage() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<15>(
              stream, this_._internal_install_creation_stage(), target);
    }
  }

  // int32 unpacker_failure_reason = 16;
  if (CheckHasBit(cached_has_bits, 0x00008000U)) {
    if (this_._internal_unpacker_failure_reason() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          16, this_._internal_unpacker_failure_reason(), target);
    }
  }

  // int32 download_cache_status = 17;
  if (CheckHasBit(cached_has_bits, 0x00010000U)) {
    if (this_._internal_download_cache_status() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          17, this_._internal_download_cache_status(), target);
    }
  }

  // int32 manifest_invalid_error = 18;
  if (CheckHasBit(cached_has_bits, 0x00020000U)) {
    if (this_._internal_manifest_invalid_error() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          18, this_._internal_manifest_invalid_error(), target);
    }
  }

  // int32 crx_install_error_detail = 19;
  if (CheckHasBit(cached_has_bits, 0x00040000U)) {
    if (this_._internal_crx_install_error_detail() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          19, this_._internal_crx_install_error_detail(), target);
    }
  }

  // int32 fetch_error_code = 20;
  if (CheckHasBit(cached_has_bits, 0x00080000U)) {
    if (this_._internal_fetch_error_code() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          20, this_._internal_fetch_error_code(), target);
    }
  }

  // int32 fetch_tries = 21;
  if (CheckHasBit(cached_has_bits, 0x00100000U)) {
    if (this_._internal_fetch_tries() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          21, this_._internal_fetch_tries(), 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:chrome.cros.reporting.proto.ExtensionAppInstallEvent)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ExtensionAppInstallEvent::ByteSizeLong(const MessageLite& base) {
  const ExtensionAppInstallEvent& this_ = static_cast<const ExtensionAppInstallEvent&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ExtensionAppInstallEvent::ByteSizeLong() const {
  const ExtensionAppInstallEvent& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:chrome.cros.reporting.proto.ExtensionAppInstallEvent)
  ::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 extension_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_extension_id().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_extension_id());
      }
    }
    // string serial_number = 7;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_serial_number().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_serial_number());
      }
    }
    // int64 stateful_total = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_stateful_total() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_stateful_total());
      }
    }
    // int64 stateful_free = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_stateful_free() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_stateful_free());
      }
    }
    // int32 event_type = 2;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (this_._internal_event_type() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_event_type());
      }
    }
    // int32 session_state_change_type = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (this_._internal_session_state_change_type() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_session_state_change_type());
      }
    }
    // int32 failure_reason = 8;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (this_._internal_failure_reason() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_failure_reason());
      }
    }
    // int32 installation_stage = 9;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      if (this_._internal_installation_stage() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_installation_stage());
      }
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    // int32 downloading_stage = 10;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      if (this_._internal_downloading_stage() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_downloading_stage());
      }
    }
    // bool online = 5;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      if (this_._internal_online() != 0) {
        total_size += 2;
      }
    }
    // bool is_new_user = 12;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      if (this_._internal_is_new_user() != 0) {
        total_size += 2;
      }
    }
    // bool is_misconfiguration_failure = 14;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      if (this_._internal_is_misconfiguration_failure() != 0) {
        total_size += 2;
      }
    }
    // int32 user_type = 11;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      if (this_._internal_user_type() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_user_type());
      }
    }
    // .chrome.cros.reporting.proto.ExtensionAppInstallEvent.ExtensionType extension_type = 13;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      if (this_._internal_extension_type() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_extension_type());
      }
    }
    // int32 install_creation_stage = 15;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      if (this_._internal_install_creation_stage() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_install_creation_stage());
      }
    }
    // int32 unpacker_failure_reason = 16;
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      if (this_._internal_unpacker_failure_reason() != 0) {
        total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                        this_._internal_unpacker_failure_reason());
      }
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) {
    // int32 download_cache_status = 17;
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      if (this_._internal_download_cache_status() != 0) {
        total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                        this_._internal_download_cache_status());
      }
    }
    // int32 manifest_invalid_error = 18;
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      if (this_._internal_manifest_invalid_error() != 0) {
        total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                        this_._internal_manifest_invalid_error());
      }
    }
    // int32 crx_install_error_detail = 19;
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      if (this_._internal_crx_install_error_detail() != 0) {
        total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                        this_._internal_crx_install_error_detail());
      }
    }
    // int32 fetch_error_code = 20;
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      if (this_._internal_fetch_error_code() != 0) {
        total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                        this_._internal_fetch_error_code());
      }
    }
    // int32 fetch_tries = 21;
    if (CheckHasBit(cached_has_bits, 0x00100000U)) {
      if (this_._internal_fetch_tries() != 0) {
        total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                        this_._internal_fetch_tries());
      }
    }
  }
  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 ExtensionAppInstallEvent::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ExtensionAppInstallEvent*>(&to_msg);
  auto& from = static_cast<const ExtensionAppInstallEvent&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:chrome.cros.reporting.proto.ExtensionAppInstallEvent)
  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_extension_id().empty()) {
        _this->_internal_set_extension_id(from._internal_extension_id());
      } else {
        if (_this->_impl_.extension_id_.IsDefault()) {
          _this->_internal_set_extension_id("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_serial_number().empty()) {
        _this->_internal_set_serial_number(from._internal_serial_number());
      } else {
        if (_this->_impl_.serial_number_.IsDefault()) {
          _this->_internal_set_serial_number("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_stateful_total() != 0) {
        _this->_impl_.stateful_total_ = from._impl_.stateful_total_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_stateful_free() != 0) {
        _this->_impl_.stateful_free_ = from._impl_.stateful_free_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (from._internal_event_type() != 0) {
        _this->_impl_.event_type_ = from._impl_.event_type_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (from._internal_session_state_change_type() != 0) {
        _this->_impl_.session_state_change_type_ = from._impl_.session_state_change_type_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (from._internal_failure_reason() != 0) {
        _this->_impl_.failure_reason_ = from._impl_.failure_reason_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      if (from._internal_installation_stage() != 0) {
        _this->_impl_.installation_stage_ = from._impl_.installation_stage_;
      }
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      if (from._internal_downloading_stage() != 0) {
        _this->_impl_.downloading_stage_ = from._impl_.downloading_stage_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      if (from._internal_online() != 0) {
        _this->_impl_.online_ = from._impl_.online_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      if (from._internal_is_new_user() != 0) {
        _this->_impl_.is_new_user_ = from._impl_.is_new_user_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      if (from._internal_is_misconfiguration_failure() != 0) {
        _this->_impl_.is_misconfiguration_failure_ = from._impl_.is_misconfiguration_failure_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      if (from._internal_user_type() != 0) {
        _this->_impl_.user_type_ = from._impl_.user_type_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      if (from._internal_extension_type() != 0) {
        _this->_impl_.extension_type_ = from._impl_.extension_type_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      if (from._internal_install_creation_stage() != 0) {
        _this->_impl_.install_creation_stage_ = from._impl_.install_creation_stage_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      if (from._internal_unpacker_failure_reason() != 0) {
        _this->_impl_.unpacker_failure_reason_ = from._impl_.unpacker_failure_reason_;
      }
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) {
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      if (from._internal_download_cache_status() != 0) {
        _this->_impl_.download_cache_status_ = from._impl_.download_cache_status_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      if (from._internal_manifest_invalid_error() != 0) {
        _this->_impl_.manifest_invalid_error_ = from._impl_.manifest_invalid_error_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      if (from._internal_crx_install_error_detail() != 0) {
        _this->_impl_.crx_install_error_detail_ = from._impl_.crx_install_error_detail_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      if (from._internal_fetch_error_code() != 0) {
        _this->_impl_.fetch_error_code_ = from._impl_.fetch_error_code_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00100000U)) {
      if (from._internal_fetch_tries() != 0) {
        _this->_impl_.fetch_tries_ = from._impl_.fetch_tries_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void ExtensionAppInstallEvent::CopyFrom(const ExtensionAppInstallEvent& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:chrome.cros.reporting.proto.ExtensionAppInstallEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void ExtensionAppInstallEvent::InternalSwap(ExtensionAppInstallEvent* 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_.extension_id_, &other->_impl_.extension_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.serial_number_, &other->_impl_.serial_number_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.fetch_tries_)
      + sizeof(ExtensionAppInstallEvent::_impl_.fetch_tries_)
      - PROTOBUF_FIELD_OFFSET(ExtensionAppInstallEvent, _impl_.stateful_total_)>(
          reinterpret_cast<char*>(&_impl_.stateful_total_),
          reinterpret_cast<char*>(&other->_impl_.stateful_total_));
}

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