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

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

constexpr ExtensionInstallProto::ParseTableT_ ExtensionInstallProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_._has_bits_),
      0, // no _extensions_
      17, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294836224,  // skipmap
      offsetof(ParseTableT_, field_entries),
      17,  // num_field_entries
      6,  // 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<::metrics::ExtensionInstallProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .metrics.ExtensionInstallProto.Type type = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 1, 8,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.type_)}},
      // .metrics.ExtensionInstallProto.InstallLocation install_location = 2;
      {::_pbi::TcParser::FastEr0S1,
       {16, 2, 10,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.install_location_)}},
      // int32 manifest_version = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 3, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.manifest_version_)}},
      // .metrics.ExtensionInstallProto.ActionType action_type = 4;
      {::_pbi::TcParser::FastEr0S1,
       {32, 4, 4,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.action_type_)}},
      // bool has_file_access = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 5, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.has_file_access_)}},
      // bool has_incognito_access = 6;
      {::_pbi::TcParser::FastV8S1,
       {48, 6, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.has_incognito_access_)}},
      // bool is_from_store = 7;
      {::_pbi::TcParser::FastV8S1,
       {56, 7, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_from_store_)}},
      // bool updates_from_store = 8;
      {::_pbi::TcParser::FastV8S1,
       {64, 8, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.updates_from_store_)}},
      // bool is_from_bookmark = 9;
      {::_pbi::TcParser::FastV8S1,
       {72, 9, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_from_bookmark_)}},
      // bool is_converted_from_user_script = 10;
      {::_pbi::TcParser::FastV8S1,
       {80, 10, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_converted_from_user_script_)}},
      // bool is_default_installed = 11;
      {::_pbi::TcParser::FastV8S1,
       {88, 11, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_default_installed_)}},
      // bool is_oem_installed = 12;
      {::_pbi::TcParser::FastV8S1,
       {96, 12, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_oem_installed_)}},
      // .metrics.ExtensionInstallProto.BackgroundScriptType background_script_type = 13;
      {::_pbi::TcParser::FastEr0S1,
       {104, 13, 3,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.background_script_type_)}},
      // repeated .metrics.ExtensionInstallProto.DisableReason disable_reasons = 14;
      {::_pbi::TcParser::FastEvP1,
       {114, 0, 4,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.disable_reasons_)}},
      // .metrics.ExtensionInstallProto.BlacklistState blacklist_state = 15;
      {::_pbi::TcParser::FastEr0S1,
       {120, 14, 5,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.blacklist_state_)}},
      // bool installed_in_this_sample_period = 16;
      {::_pbi::TcParser::FastV8S2,
       {384, 15, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.installed_in_this_sample_period_)}},
      // bool in_extensions_developer_mode = 17;
      {::_pbi::TcParser::FastV8S2,
       {392, 16, 0,
        PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.in_extensions_developer_mode_)}},
      {::_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, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .metrics.ExtensionInstallProto.Type type = 1;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .metrics.ExtensionInstallProto.InstallLocation install_location = 2;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.install_location_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // int32 manifest_version = 3;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.manifest_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // .metrics.ExtensionInstallProto.ActionType action_type = 4;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.action_type_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // bool has_file_access = 5;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.has_file_access_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool has_incognito_access = 6;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.has_incognito_access_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool is_from_store = 7;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_from_store_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool updates_from_store = 8;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.updates_from_store_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool is_from_bookmark = 9;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_from_bookmark_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool is_converted_from_user_script = 10;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_converted_from_user_script_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool is_default_installed = 11;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_default_installed_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool is_oem_installed = 12;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.is_oem_installed_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // .metrics.ExtensionInstallProto.BackgroundScriptType background_script_type = 13;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.background_script_type_), _Internal::kHasBitsOffset + 13, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // repeated .metrics.ExtensionInstallProto.DisableReason disable_reasons = 14;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.disable_reasons_), _Internal::kHasBitsOffset + 0, 4, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnum)},
      // .metrics.ExtensionInstallProto.BlacklistState blacklist_state = 15;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.blacklist_state_), _Internal::kHasBitsOffset + 14, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // bool installed_in_this_sample_period = 16;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.installed_in_this_sample_period_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool in_extensions_developer_mode = 17;
      {PROTOBUF_FIELD_OFFSET(ExtensionInstallProto, _impl_.in_extensions_developer_mode_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    {{
        {0, 8},
        {0, 10},
        {0, 4},
        {0, 3},
        {::_pbi::FieldAuxEnumData{}, ::metrics::ExtensionInstallProto_DisableReason_internal_data_},
        {0, 5},
    }},
    {{
    }},
  };
}


inline constexpr ExtensionInstallProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        disable_reasons_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::ExtensionInstallProto,
            PROTOBUF_FIELD_OFFSET(::metrics::ExtensionInstallProto, _impl_.disable_reasons_)>()
         }
        ,
        _disable_reasons_cached_byte_size_{0},
        type_{static_cast< ::metrics::ExtensionInstallProto_Type >(0)},
        install_location_{static_cast< ::metrics::ExtensionInstallProto_InstallLocation >(0)},
        manifest_version_{0},
        action_type_{static_cast< ::metrics::ExtensionInstallProto_ActionType >(0)},
        has_file_access_{false},
        has_incognito_access_{false},
        is_from_store_{false},
        updates_from_store_{false},
        is_from_bookmark_{false},
        is_converted_from_user_script_{false},
        is_default_installed_{false},
        is_oem_installed_{false},
        background_script_type_{static_cast< ::metrics::ExtensionInstallProto_BackgroundScriptType >(0)},
        blacklist_state_{static_cast< ::metrics::ExtensionInstallProto_BlacklistState >(0)},
        installed_in_this_sample_period_{false},
        in_extensions_developer_mode_{false} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ExtensionInstallProtoGlobalsTypeInternal ExtensionInstallProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ExtensionInstallProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ExtensionInstallProto_globals_.GetClassData();
#else
  return ExtensionInstallProto_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace metrics
namespace metrics {
PROTOBUF_CONSTINIT const uint32_t ExtensionInstallProto_Type_internal_data_[] = {
    589824u, 0u, };
static const char ExtensionInstallProto_Type_names[] = {
    "EXTENSION"
    "HOSTED_APP"
    "LEGACY_PACKAGED_APP"
    "LOGIN_SCREEN_EXTENSION"
    "PLATFORM_APP"
    "SHARED_MODULE"
    "THEME"
    "UNKNOWN_TYPE"
    "USER_SCRIPT"
};

static const ::google::protobuf::internal::EnumEntry ExtensionInstallProto_Type_entries[] = {
    {{&ExtensionInstallProto_Type_names[0], 9}, 1},
    {{&ExtensionInstallProto_Type_names[9], 10}, 4},
    {{&ExtensionInstallProto_Type_names[19], 19}, 5},
    {{&ExtensionInstallProto_Type_names[38], 22}, 8},
    {{&ExtensionInstallProto_Type_names[60], 12}, 6},
    {{&ExtensionInstallProto_Type_names[72], 13}, 7},
    {{&ExtensionInstallProto_Type_names[85], 5}, 2},
    {{&ExtensionInstallProto_Type_names[90], 12}, 0},
    {{&ExtensionInstallProto_Type_names[102], 11}, 3},
};

static const int ExtensionInstallProto_Type_entries_by_number[] = {
    7,  // 0 -> UNKNOWN_TYPE
    0,  // 1 -> EXTENSION
    6,  // 2 -> THEME
    8,  // 3 -> USER_SCRIPT
    1,  // 4 -> HOSTED_APP
    2,  // 5 -> LEGACY_PACKAGED_APP
    4,  // 6 -> PLATFORM_APP
    5,  // 7 -> SHARED_MODULE
    3,  // 8 -> LOGIN_SCREEN_EXTENSION
};

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

const ::std::string& ExtensionInstallProto_Type_Name(ExtensionInstallProto_Type value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ExtensionInstallProto_Type_entries, ExtensionInstallProto_Type_entries_by_number, 9,
      ExtensionInstallProto_Type_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ExtensionInstallProto_Type_entries,
                                  ExtensionInstallProto_Type_entries_by_number,
                                  9, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ExtensionInstallProto_Type_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t ExtensionInstallProto_InstallLocation_internal_data_[] = {
    720896u, 0u, };
static const char ExtensionInstallProto_InstallLocation_names[] = {
    "COMMAND_LINE"
    "COMPONENT"
    "EXTERNAL_COMPONENT"
    "EXTERNAL_POLICY"
    "EXTERNAL_POLICY_DOWNLOAD"
    "EXTERNAL_PREF"
    "EXTERNAL_PREF_DOWNLOAD"
    "EXTERNAL_REGISTRY"
    "INTERNAL"
    "UNKNOWN_LOCATION"
    "UNPACKED"
};

static const ::google::protobuf::internal::EnumEntry ExtensionInstallProto_InstallLocation_entries[] = {
    {{&ExtensionInstallProto_InstallLocation_names[0], 12}, 8},
    {{&ExtensionInstallProto_InstallLocation_names[12], 9}, 5},
    {{&ExtensionInstallProto_InstallLocation_names[21], 18}, 10},
    {{&ExtensionInstallProto_InstallLocation_names[39], 15}, 9},
    {{&ExtensionInstallProto_InstallLocation_names[54], 24}, 7},
    {{&ExtensionInstallProto_InstallLocation_names[78], 13}, 2},
    {{&ExtensionInstallProto_InstallLocation_names[91], 22}, 6},
    {{&ExtensionInstallProto_InstallLocation_names[113], 17}, 3},
    {{&ExtensionInstallProto_InstallLocation_names[130], 8}, 1},
    {{&ExtensionInstallProto_InstallLocation_names[138], 16}, 0},
    {{&ExtensionInstallProto_InstallLocation_names[154], 8}, 4},
};

static const int ExtensionInstallProto_InstallLocation_entries_by_number[] = {
    9,  // 0 -> UNKNOWN_LOCATION
    8,  // 1 -> INTERNAL
    5,  // 2 -> EXTERNAL_PREF
    7,  // 3 -> EXTERNAL_REGISTRY
    10,  // 4 -> UNPACKED
    1,  // 5 -> COMPONENT
    6,  // 6 -> EXTERNAL_PREF_DOWNLOAD
    4,  // 7 -> EXTERNAL_POLICY_DOWNLOAD
    0,  // 8 -> COMMAND_LINE
    3,  // 9 -> EXTERNAL_POLICY
    2,  // 10 -> EXTERNAL_COMPONENT
};

bool ExtensionInstallProto_InstallLocation_Parse(::absl::string_view name,
                                  ExtensionInstallProto_InstallLocation* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      ExtensionInstallProto_InstallLocation_entries, 11, name, &int_value);
  if (success) {
    *value = static_cast<ExtensionInstallProto_InstallLocation>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    ExtensionInstallProto_InstallLocation_strings[11] = {};

const ::std::string& ExtensionInstallProto_InstallLocation_Name(ExtensionInstallProto_InstallLocation value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ExtensionInstallProto_InstallLocation_entries, ExtensionInstallProto_InstallLocation_entries_by_number, 11,
      ExtensionInstallProto_InstallLocation_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ExtensionInstallProto_InstallLocation_entries,
                                  ExtensionInstallProto_InstallLocation_entries_by_number,
                                  11, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ExtensionInstallProto_InstallLocation_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t ExtensionInstallProto_ActionType_internal_data_[] = {
    327680u, 0u, };
static const char ExtensionInstallProto_ActionType_names[] = {
    "ACTION"
    "BROWSER_ACTION"
    "NO_ACTION"
    "PAGE_ACTION"
    "SYSTEM_INDICATOR"
};

static const ::google::protobuf::internal::EnumEntry ExtensionInstallProto_ActionType_entries[] = {
    {{&ExtensionInstallProto_ActionType_names[0], 6}, 4},
    {{&ExtensionInstallProto_ActionType_names[6], 14}, 1},
    {{&ExtensionInstallProto_ActionType_names[20], 9}, 0},
    {{&ExtensionInstallProto_ActionType_names[29], 11}, 2},
    {{&ExtensionInstallProto_ActionType_names[40], 16}, 3},
};

static const int ExtensionInstallProto_ActionType_entries_by_number[] = {
    2,  // 0 -> NO_ACTION
    1,  // 1 -> BROWSER_ACTION
    3,  // 2 -> PAGE_ACTION
    4,  // 3 -> SYSTEM_INDICATOR
    0,  // 4 -> ACTION
};

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

const ::std::string& ExtensionInstallProto_ActionType_Name(ExtensionInstallProto_ActionType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ExtensionInstallProto_ActionType_entries, ExtensionInstallProto_ActionType_entries_by_number, 5,
      ExtensionInstallProto_ActionType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ExtensionInstallProto_ActionType_entries,
                                  ExtensionInstallProto_ActionType_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ExtensionInstallProto_ActionType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t ExtensionInstallProto_BackgroundScriptType_internal_data_[] = {
    262144u, 0u, };
static const char ExtensionInstallProto_BackgroundScriptType_names[] = {
    "EVENT_PAGE"
    "NO_BACKGROUND_SCRIPT"
    "PERSISTENT_BACKGROUND_PAGE"
    "SERVICE_WORKER"
};

static const ::google::protobuf::internal::EnumEntry ExtensionInstallProto_BackgroundScriptType_entries[] = {
    {{&ExtensionInstallProto_BackgroundScriptType_names[0], 10}, 2},
    {{&ExtensionInstallProto_BackgroundScriptType_names[10], 20}, 0},
    {{&ExtensionInstallProto_BackgroundScriptType_names[30], 26}, 1},
    {{&ExtensionInstallProto_BackgroundScriptType_names[56], 14}, 3},
};

static const int ExtensionInstallProto_BackgroundScriptType_entries_by_number[] = {
    1,  // 0 -> NO_BACKGROUND_SCRIPT
    2,  // 1 -> PERSISTENT_BACKGROUND_PAGE
    0,  // 2 -> EVENT_PAGE
    3,  // 3 -> SERVICE_WORKER
};

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

const ::std::string& ExtensionInstallProto_BackgroundScriptType_Name(ExtensionInstallProto_BackgroundScriptType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ExtensionInstallProto_BackgroundScriptType_entries, ExtensionInstallProto_BackgroundScriptType_entries_by_number, 4,
      ExtensionInstallProto_BackgroundScriptType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ExtensionInstallProto_BackgroundScriptType_entries,
                                  ExtensionInstallProto_BackgroundScriptType_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ExtensionInstallProto_BackgroundScriptType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t ExtensionInstallProto_DisableReason_internal_data_[] = {
    917504u, 32u, 1020u, };
static const char ExtensionInstallProto_DisableReason_names[] = {
    "BLOCKED_BY_CLOUD_POLICY_CHECK"
    "BLOCKED_BY_POLICY"
    "CORRUPTED"
    "CUSTODIAN_APPROVAL_REQUIRED"
    "EXTERNAL_EXTENSION"
    "GREYLIST"
    "NOT_ALLOWLISTED"
    "NOT_ASH_KEEPLISTED"
    "NOT_VERIFIED"
    "PERMISSIONS_INCREASE"
    "PUBLISHED_IN_STORE_REQUIRED_BY_POLICY"
    "REINSTALL"
    "RELOAD"
    "REMOTE_INSTALL"
    "SIDELOAD_WIPEOUT"
    "UNKNOWN"
    "UNKNOWN_FROM_SYNC"
    "UNSUPPORTED_DEVELOPER_EXTENSION"
    "UNSUPPORTED_MANIFEST_VERSION"
    "UNSUPPORTED_REQUIREMENT"
    "UPDATE_REQUIRED_BY_POLICY"
    "USER_ACTION"
};

static const ::google::protobuf::internal::EnumEntry ExtensionInstallProto_DisableReason_entries[] = {
    {{&ExtensionInstallProto_DisableReason_names[0], 29}, 23},
    {{&ExtensionInstallProto_DisableReason_names[29], 17}, 13},
    {{&ExtensionInstallProto_DisableReason_names[46], 9}, 8},
    {{&ExtensionInstallProto_DisableReason_names[55], 27}, 12},
    {{&ExtensionInstallProto_DisableReason_names[82], 18}, 10},
    {{&ExtensionInstallProto_DisableReason_names[100], 8}, 7},
    {{&ExtensionInstallProto_DisableReason_names[108], 15}, 17},
    {{&ExtensionInstallProto_DisableReason_names[123], 18}, 18},
    {{&ExtensionInstallProto_DisableReason_names[141], 12}, 6},
    {{&ExtensionInstallProto_DisableReason_names[153], 20}, 1},
    {{&ExtensionInstallProto_DisableReason_names[173], 37}, 19},
    {{&ExtensionInstallProto_DisableReason_names[210], 9}, 16},
    {{&ExtensionInstallProto_DisableReason_names[219], 6}, 2},
    {{&ExtensionInstallProto_DisableReason_names[225], 14}, 9},
    {{&ExtensionInstallProto_DisableReason_names[239], 16}, 4},
    {{&ExtensionInstallProto_DisableReason_names[255], 7}, 22},
    {{&ExtensionInstallProto_DisableReason_names[262], 17}, 5},
    {{&ExtensionInstallProto_DisableReason_names[279], 31}, 21},
    {{&ExtensionInstallProto_DisableReason_names[310], 28}, 20},
    {{&ExtensionInstallProto_DisableReason_names[338], 23}, 3},
    {{&ExtensionInstallProto_DisableReason_names[361], 25}, 11},
    {{&ExtensionInstallProto_DisableReason_names[386], 11}, 0},
};

static const int ExtensionInstallProto_DisableReason_entries_by_number[] = {
    21,  // 0 -> USER_ACTION
    9,  // 1 -> PERMISSIONS_INCREASE
    12,  // 2 -> RELOAD
    19,  // 3 -> UNSUPPORTED_REQUIREMENT
    14,  // 4 -> SIDELOAD_WIPEOUT
    16,  // 5 -> UNKNOWN_FROM_SYNC
    8,  // 6 -> NOT_VERIFIED
    5,  // 7 -> GREYLIST
    2,  // 8 -> CORRUPTED
    13,  // 9 -> REMOTE_INSTALL
    4,  // 10 -> EXTERNAL_EXTENSION
    20,  // 11 -> UPDATE_REQUIRED_BY_POLICY
    3,  // 12 -> CUSTODIAN_APPROVAL_REQUIRED
    1,  // 13 -> BLOCKED_BY_POLICY
    11,  // 16 -> REINSTALL
    6,  // 17 -> NOT_ALLOWLISTED
    7,  // 18 -> NOT_ASH_KEEPLISTED
    10,  // 19 -> PUBLISHED_IN_STORE_REQUIRED_BY_POLICY
    18,  // 20 -> UNSUPPORTED_MANIFEST_VERSION
    17,  // 21 -> UNSUPPORTED_DEVELOPER_EXTENSION
    15,  // 22 -> UNKNOWN
    0,  // 23 -> BLOCKED_BY_CLOUD_POLICY_CHECK
};

bool ExtensionInstallProto_DisableReason_Parse(::absl::string_view name,
                                  ExtensionInstallProto_DisableReason* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      ExtensionInstallProto_DisableReason_entries, 22, name, &int_value);
  if (success) {
    *value = static_cast<ExtensionInstallProto_DisableReason>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    ExtensionInstallProto_DisableReason_strings[22] = {};

const ::std::string& ExtensionInstallProto_DisableReason_Name(ExtensionInstallProto_DisableReason value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ExtensionInstallProto_DisableReason_entries, ExtensionInstallProto_DisableReason_entries_by_number, 22,
      ExtensionInstallProto_DisableReason_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ExtensionInstallProto_DisableReason_entries,
                                  ExtensionInstallProto_DisableReason_entries_by_number,
                                  22, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ExtensionInstallProto_DisableReason_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t ExtensionInstallProto_BlacklistState_internal_data_[] = {
    393216u, 0u, };
static const char ExtensionInstallProto_BlacklistState_names[] = {
    "BLACKLISTED_CWS_POLICY_VIOLATION"
    "BLACKLISTED_MALWARE"
    "BLACKLISTED_POTENTIALLY_UNWANTED"
    "BLACKLISTED_SECURITY_VULNERABILITY"
    "BLACKLISTED_UNKNOWN"
    "NOT_BLACKLISTED"
};

static const ::google::protobuf::internal::EnumEntry ExtensionInstallProto_BlacklistState_entries[] = {
    {{&ExtensionInstallProto_BlacklistState_names[0], 32}, 3},
    {{&ExtensionInstallProto_BlacklistState_names[32], 19}, 1},
    {{&ExtensionInstallProto_BlacklistState_names[51], 32}, 4},
    {{&ExtensionInstallProto_BlacklistState_names[83], 34}, 2},
    {{&ExtensionInstallProto_BlacklistState_names[117], 19}, 5},
    {{&ExtensionInstallProto_BlacklistState_names[136], 15}, 0},
};

static const int ExtensionInstallProto_BlacklistState_entries_by_number[] = {
    5,  // 0 -> NOT_BLACKLISTED
    1,  // 1 -> BLACKLISTED_MALWARE
    3,  // 2 -> BLACKLISTED_SECURITY_VULNERABILITY
    0,  // 3 -> BLACKLISTED_CWS_POLICY_VIOLATION
    2,  // 4 -> BLACKLISTED_POTENTIALLY_UNWANTED
    4,  // 5 -> BLACKLISTED_UNKNOWN
};

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

const ::std::string& ExtensionInstallProto_BlacklistState_Name(ExtensionInstallProto_BlacklistState value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ExtensionInstallProto_BlacklistState_entries, ExtensionInstallProto_BlacklistState_entries_by_number, 6,
      ExtensionInstallProto_BlacklistState_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ExtensionInstallProto_BlacklistState_entries,
                                  ExtensionInstallProto_BlacklistState_entries_by_number,
                                  6, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ExtensionInstallProto_BlacklistState_strings[idx].get();
}
// ===================================================================

ExtensionInstallProto::ExtensionInstallProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ExtensionInstallProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.ExtensionInstallProto)
}
PROTOBUF_NDEBUG_INLINE ExtensionInstallProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::ExtensionInstallProto& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        disable_reasons_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::ExtensionInstallProto,
              PROTOBUF_FIELD_OFFSET(::metrics::ExtensionInstallProto, _impl_.disable_reasons_)>()
          , from.disable_reasons_
        }
        ,
        _disable_reasons_cached_byte_size_{0} {}

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

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

  // @@protoc_insertion_point(copy_constructor:metrics.ExtensionInstallProto)
}
PROTOBUF_NDEBUG_INLINE ExtensionInstallProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        disable_reasons_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::ExtensionInstallProto,
            PROTOBUF_FIELD_OFFSET(::metrics::ExtensionInstallProto, _impl_.disable_reasons_)>()
         }
        ,
        _disable_reasons_cached_byte_size_{0} {}

inline void ExtensionInstallProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, type_),
           0,
           offsetof(Impl_, in_extensions_developer_mode_) -
               offsetof(Impl_, type_) +
               sizeof(Impl_::in_extensions_developer_mode_));
}
ExtensionInstallProto::~ExtensionInstallProto() {
  // @@protoc_insertion_point(destructor:metrics.ExtensionInstallProto)
  SharedDtor(*this);
}
inline void ExtensionInstallProto::SharedDtor(MessageLite& self) {
  ExtensionInstallProto& this_ = static_cast<ExtensionInstallProto&>(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 ExtensionInstallProto_class_data_ =
    ExtensionInstallProto::InternalGenerateClassData_(ExtensionInstallProto_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.disable_reasons_.Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) {
    ::memset(&_impl_.type_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.is_from_store_) -
        reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_from_store_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    ::memset(&_impl_.updates_from_store_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.installed_in_this_sample_period_) -
        reinterpret_cast<char*>(&_impl_.updates_from_store_)) + sizeof(_impl_.installed_in_this_sample_period_));
  }
  _impl_.in_extensions_developer_mode_ = false;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .metrics.ExtensionInstallProto.Type type = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_type(), target);
  }

  // .metrics.ExtensionInstallProto.InstallLocation install_location = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_install_location(), target);
  }

  // int32 manifest_version = 3;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_manifest_version(), target);
  }

  // .metrics.ExtensionInstallProto.ActionType action_type = 4;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        4, this_._internal_action_type(), target);
  }

  // bool has_file_access = 5;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        5, this_._internal_has_file_access(), target);
  }

  // bool has_incognito_access = 6;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        6, this_._internal_has_incognito_access(), target);
  }

  // bool is_from_store = 7;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        7, this_._internal_is_from_store(), target);
  }

  // bool updates_from_store = 8;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        8, this_._internal_updates_from_store(), target);
  }

  // bool is_from_bookmark = 9;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        9, this_._internal_is_from_bookmark(), target);
  }

  // bool is_converted_from_user_script = 10;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        10, this_._internal_is_converted_from_user_script(), target);
  }

  // bool is_default_installed = 11;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        11, this_._internal_is_default_installed(), target);
  }

  // bool is_oem_installed = 12;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        12, this_._internal_is_oem_installed(), target);
  }

  // .metrics.ExtensionInstallProto.BackgroundScriptType background_script_type = 13;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        13, this_._internal_background_script_type(), target);
  }

  // repeated .metrics.ExtensionInstallProto.DisableReason disable_reasons = 14;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    {
      ::size_t byte_size = this_._impl_._disable_reasons_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteEnumPacked(
            14, this_._internal_disable_reasons(), byte_size, target);
      }
    }
  }

  // .metrics.ExtensionInstallProto.BlacklistState blacklist_state = 15;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        15, this_._internal_blacklist_state(), target);
  }

  // bool installed_in_this_sample_period = 16;
  if (CheckHasBit(cached_has_bits, 0x00008000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        16, this_._internal_installed_in_this_sample_period(), target);
  }

  // bool in_extensions_developer_mode = 17;
  if (CheckHasBit(cached_has_bits, 0x00010000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        17, this_._internal_in_extensions_developer_mode(), 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:metrics.ExtensionInstallProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ExtensionInstallProto::ByteSizeLong(const MessageLite& base) {
  const ExtensionInstallProto& this_ = static_cast<const ExtensionInstallProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ExtensionInstallProto::ByteSizeLong() const {
  const ExtensionInstallProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.ExtensionInstallProto)
  ::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 += ::absl::popcount(0x00018000U & cached_has_bits) * 3;
  total_size += ::absl::popcount(0x00001fe0U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    // repeated .metrics.ExtensionInstallProto.DisableReason disable_reasons = 14;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
          this_._internal_disable_reasons(), 1, this_._impl_._disable_reasons_cached_byte_size_);
    }
    // .metrics.ExtensionInstallProto.Type type = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
    }
    // .metrics.ExtensionInstallProto.InstallLocation install_location = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_install_location());
    }
    // int32 manifest_version = 3;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_manifest_version());
    }
    // .metrics.ExtensionInstallProto.ActionType action_type = 4;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_action_type());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00006000U)) {
    // .metrics.ExtensionInstallProto.BackgroundScriptType background_script_type = 13;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_background_script_type());
    }
    // .metrics.ExtensionInstallProto.BlacklistState blacklist_state = 15;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_blacklist_state());
    }
  }
  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 ExtensionInstallProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ExtensionInstallProto*>(&to_msg);
  auto& from = static_cast<const ExtensionInstallProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.ExtensionInstallProto)
  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_disable_reasons()->MergeFrom(from._internal_disable_reasons());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.type_ = from._impl_.type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.install_location_ = from._impl_.install_location_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.manifest_version_ = from._impl_.manifest_version_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.action_type_ = from._impl_.action_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.has_file_access_ = from._impl_.has_file_access_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.has_incognito_access_ = from._impl_.has_incognito_access_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.is_from_store_ = from._impl_.is_from_store_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.updates_from_store_ = from._impl_.updates_from_store_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.is_from_bookmark_ = from._impl_.is_from_bookmark_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.is_converted_from_user_script_ = from._impl_.is_converted_from_user_script_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.is_default_installed_ = from._impl_.is_default_installed_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.is_oem_installed_ = from._impl_.is_oem_installed_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.background_script_type_ = from._impl_.background_script_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.blacklist_state_ = from._impl_.blacklist_state_;
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.installed_in_this_sample_period_ = from._impl_.installed_in_this_sample_period_;
    }
  }
  if (CheckHasBit(cached_has_bits, 0x00010000U)) {
    _this->_impl_.in_extensions_developer_mode_ = from._impl_.in_extensions_developer_mode_;
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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