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

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

constexpr Crash_AllocationInfo::ParseTableT_ Crash_AllocationInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Crash_AllocationInfo, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::gwp_asan::Crash_AllocationInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional uint64 thread_id = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(Crash_AllocationInfo, _impl_.thread_id_)}},
      // repeated uint64 stack_trace = 1 [packed = true];
      {::_pbi::TcParser::FastV64P1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Crash_AllocationInfo, _impl_.stack_trace_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated uint64 stack_trace = 1 [packed = true];
      {PROTOBUF_FIELD_OFFSET(Crash_AllocationInfo, _impl_.stack_trace_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt64)},
      // optional uint64 thread_id = 2;
      {PROTOBUF_FIELD_OFFSET(Crash_AllocationInfo, _impl_.thread_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Crash_AllocationInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        stack_trace_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::gwp_asan::Crash_AllocationInfo,
            PROTOBUF_FIELD_OFFSET(::gwp_asan::Crash_AllocationInfo, _impl_.stack_trace_)>()
         }
        ,
        _stack_trace_cached_byte_size_{0},
        thread_id_{::uint64_t{0u}} {}

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

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

constexpr Crash::ParseTableT_ Crash::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Crash, _impl_._has_bits_),
      0, // no _extensions_
      12, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294963200,  // skipmap
      offsetof(ParseTableT_, field_entries),
      12,  // num_field_entries
      5,  // 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<::gwp_asan::Crash>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .gwp_asan.Crash.ErrorType error_type = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 5, 5,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.error_type_)}},
      // optional uint64 allocation_address = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 3, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocation_address_)}},
      // optional uint64 allocation_size = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 4, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocation_size_)}},
      // optional .gwp_asan.Crash.AllocationInfo allocation = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 1, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocation_)}},
      // optional .gwp_asan.Crash.AllocationInfo deallocation = 5;
      {::_pbi::TcParser::FastMtS1,
       {42, 2, 1,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.deallocation_)}},
      // optional uint64 region_start = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 7, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.region_start_)}},
      // optional uint64 region_size = 7;
      {::_pbi::TcParser::FastV64S1,
       {56, 8, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.region_size_)}},
      // optional uint64 free_invalid_address = 8;
      {::_pbi::TcParser::FastV64S1,
       {64, 9, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.free_invalid_address_)}},
      // optional bool missing_metadata = 9;
      {::_pbi::TcParser::FastV8S1,
       {72, 6, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.missing_metadata_)}},
      // optional string internal_error = 10;
      {::_pbi::TcParser::FastBS1,
       {82, 0, 0,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.internal_error_)}},
      // optional .gwp_asan.Crash.Allocator allocator = 11;
      {::_pbi::TcParser::FastEr0S1,
       {88, 10, 1,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocator_)}},
      // optional .gwp_asan.Crash.Mode mode = 12;
      {::_pbi::TcParser::FastEr0S1,
       {96, 11, 4,
        PROTOBUF_FIELD_OFFSET(Crash, _impl_.mode_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .gwp_asan.Crash.ErrorType error_type = 1;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.error_type_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional uint64 allocation_address = 2;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocation_address_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 allocation_size = 3;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocation_size_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional .gwp_asan.Crash.AllocationInfo allocation = 4;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocation_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .gwp_asan.Crash.AllocationInfo deallocation = 5;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.deallocation_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional uint64 region_start = 6;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.region_start_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 region_size = 7;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.region_size_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 free_invalid_address = 8;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.free_invalid_address_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional bool missing_metadata = 9;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.missing_metadata_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional string internal_error = 10;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.internal_error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .gwp_asan.Crash.Allocator allocator = 11;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocator_), _Internal::kHasBitsOffset + 10, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .gwp_asan.Crash.Mode mode = 12;
      {PROTOBUF_FIELD_OFFSET(Crash, _impl_.mode_), _Internal::kHasBitsOffset + 11, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::gwp_asan::Crash_AllocationInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::gwp_asan::Crash_AllocationInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::gwp_asan::Crash_AllocationInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::gwp_asan::Crash_AllocationInfo_globals_},
        #endif
        {0, 5},
        {0, 1},
        {0, 4},
    }},
    {{
    }},
  };
}


inline constexpr Crash::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        internal_error_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        allocation_{nullptr},
        deallocation_{nullptr},
        allocation_address_{::uint64_t{0u}},
        allocation_size_{::uint64_t{0u}},
        error_type_{static_cast< ::gwp_asan::Crash_ErrorType >(0)},
        missing_metadata_{false},
        region_start_{::uint64_t{0u}},
        region_size_{::uint64_t{0u}},
        free_invalid_address_{::uint64_t{0u}},
        allocator_{static_cast< ::gwp_asan::Crash_Allocator >(0)},
        mode_{static_cast< ::gwp_asan::Crash_Mode >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CrashGlobalsTypeInternal Crash_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Crash_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Crash_globals_.GetClassData();
#else
  return Crash_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace gwp_asan
namespace gwp_asan {
PROTOBUF_CONSTINIT const uint32_t Crash_ErrorType_internal_data_[] = {
    393216u, 0u, };
static const char Crash_ErrorType_names[] = {
    "BUFFER_OVERFLOW"
    "BUFFER_UNDERFLOW"
    "DOUBLE_FREE"
    "FREE_INVALID_ADDRESS"
    "UNKNOWN"
    "USE_AFTER_FREE"
};

static const ::google::protobuf::internal::EnumEntry Crash_ErrorType_entries[] = {
    {{&Crash_ErrorType_names[0], 15}, 2},
    {{&Crash_ErrorType_names[15], 16}, 1},
    {{&Crash_ErrorType_names[31], 11}, 3},
    {{&Crash_ErrorType_names[42], 20}, 5},
    {{&Crash_ErrorType_names[62], 7}, 4},
    {{&Crash_ErrorType_names[69], 14}, 0},
};

static const int Crash_ErrorType_entries_by_number[] = {
    5,  // 0 -> USE_AFTER_FREE
    1,  // 1 -> BUFFER_UNDERFLOW
    0,  // 2 -> BUFFER_OVERFLOW
    2,  // 3 -> DOUBLE_FREE
    4,  // 4 -> UNKNOWN
    3,  // 5 -> FREE_INVALID_ADDRESS
};

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

const ::std::string& Crash_ErrorType_Name(Crash_ErrorType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Crash_ErrorType_entries, Crash_ErrorType_entries_by_number, 6,
      Crash_ErrorType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(Crash_ErrorType_entries,
                                  Crash_ErrorType_entries_by_number,
                                  6, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Crash_ErrorType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t Crash_Allocator_internal_data_[] = {
    131072u, 0u, };
static const char Crash_Allocator_names[] = {
    "MALLOC"
    "PARTITIONALLOC"
};

static const ::google::protobuf::internal::EnumEntry Crash_Allocator_entries[] = {
    {{&Crash_Allocator_names[0], 6}, 0},
    {{&Crash_Allocator_names[6], 14}, 1},
};

static const int Crash_Allocator_entries_by_number[] = {
    0,  // 0 -> MALLOC
    1,  // 1 -> PARTITIONALLOC
};

bool Crash_Allocator_Parse(::absl::string_view name,
                                  Crash_Allocator* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      Crash_Allocator_entries, 2, name, &int_value);
  if (success) {
    *value = static_cast<Crash_Allocator>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    Crash_Allocator_strings[2] = {};

const ::std::string& Crash_Allocator_Name(Crash_Allocator value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Crash_Allocator_entries, Crash_Allocator_entries_by_number, 2,
      Crash_Allocator_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(Crash_Allocator_entries,
                                  Crash_Allocator_entries_by_number,
                                  2, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Crash_Allocator_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t Crash_Mode_internal_data_[] = {
    327680u, 0u, };
static const char Crash_Mode_names[] = {
    "CLASSIC"
    "EXTREME_LIGHTWEIGHT_DETECTOR"
    "LIGHTWEIGHT_DETECTOR_BRP"
    "LIGHTWEIGHT_DETECTOR_RANDOM"
    "UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry Crash_Mode_entries[] = {
    {{&Crash_Mode_names[0], 7}, 1},
    {{&Crash_Mode_names[7], 28}, 4},
    {{&Crash_Mode_names[35], 24}, 2},
    {{&Crash_Mode_names[59], 27}, 3},
    {{&Crash_Mode_names[86], 11}, 0},
};

static const int Crash_Mode_entries_by_number[] = {
    4,  // 0 -> UNSPECIFIED
    0,  // 1 -> CLASSIC
    2,  // 2 -> LIGHTWEIGHT_DETECTOR_BRP
    3,  // 3 -> LIGHTWEIGHT_DETECTOR_RANDOM
    1,  // 4 -> EXTREME_LIGHTWEIGHT_DETECTOR
};

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

const ::std::string& Crash_Mode_Name(Crash_Mode value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Crash_Mode_entries, Crash_Mode_entries_by_number, 5,
      Crash_Mode_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(Crash_Mode_entries,
                                  Crash_Mode_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Crash_Mode_strings[idx].get();
}
// ===================================================================

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

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

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

  // @@protoc_insertion_point(copy_constructor:gwp_asan.Crash.AllocationInfo)
}
PROTOBUF_NDEBUG_INLINE Crash_AllocationInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        stack_trace_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::gwp_asan::Crash_AllocationInfo,
            PROTOBUF_FIELD_OFFSET(::gwp_asan::Crash_AllocationInfo, _impl_.stack_trace_)>()
         }
        ,
        _stack_trace_cached_byte_size_{0} {}

inline void Crash_AllocationInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.thread_id_ = {};
}
Crash_AllocationInfo::~Crash_AllocationInfo() {
  // @@protoc_insertion_point(destructor:gwp_asan.Crash.AllocationInfo)
  SharedDtor(*this);
}
inline void Crash_AllocationInfo::SharedDtor(MessageLite& self) {
  Crash_AllocationInfo& this_ = static_cast<Crash_AllocationInfo&>(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 Crash_AllocationInfo_class_data_ =
    Crash_AllocationInfo::InternalGenerateClassData_(Crash_AllocationInfo_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Crash_AllocationInfo::GetClassData() const {
  return Crash_AllocationInfo_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Crash_AllocationInfo::GetClassData() const {
  return Crash_AllocationInfo_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Crash_AllocationInfo::ParseTableT_
    Crash_AllocationInfo::_table_ =
        Crash_AllocationInfo::InternalGenerateParseTable_(Crash_AllocationInfo_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Crash_AllocationInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:gwp_asan.Crash.AllocationInfo)
  ::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_.stack_trace_.Clear();
  }
  _impl_.thread_id_ = ::uint64_t{0u};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated uint64 stack_trace = 1 [packed = true];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    {
      int byte_size = this_._impl_._stack_trace_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteUInt64Packed(
            1, this_._internal_stack_trace(), byte_size, target);
      }
    }
  }

  // optional uint64 thread_id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_thread_id(), 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:gwp_asan.Crash.AllocationInfo)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated uint64 stack_trace = 1 [packed = true];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          ::_pbi::WireFormatLite::UInt64SizeWithPackedTagSize(
              this_._internal_stack_trace(), 1,
              this_._impl_._stack_trace_cached_byte_size_);
    }
    // optional uint64 thread_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_thread_id());
    }
  }
  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 Crash_AllocationInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Crash_AllocationInfo*>(&to_msg);
  auto& from = static_cast<const Crash_AllocationInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:gwp_asan.Crash.AllocationInfo)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_stack_trace()->MergeFrom(from._internal_stack_trace());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.thread_id_ = from._impl_.thread_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Crash_AllocationInfo::CopyFrom(const Crash_AllocationInfo& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:gwp_asan.Crash.AllocationInfo)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Crash_AllocationInfo::InternalSwap(Crash_AllocationInfo* 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_.stack_trace_.InternalSwap(&other->_impl_.stack_trace_);
  swap(_impl_.thread_id_, other->_impl_.thread_id_);
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Crash* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.allocation_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.allocation_)
                : nullptr;
  _impl_.deallocation_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.deallocation_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, allocation_address_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, allocation_address_),
           offsetof(Impl_, mode_) -
               offsetof(Impl_, allocation_address_) +
               sizeof(Impl_::mode_));

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Crash_class_data_ =
    Crash::InternalGenerateClassData_(Crash_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.internal_error_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.allocation_ != nullptr);
      _impl_.allocation_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.deallocation_ != nullptr);
      _impl_.deallocation_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
    ::memset(&_impl_.allocation_address_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.region_start_) -
        reinterpret_cast<char*>(&_impl_.allocation_address_)) + sizeof(_impl_.region_start_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
    ::memset(&_impl_.region_size_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.mode_) -
        reinterpret_cast<char*>(&_impl_.region_size_)) + sizeof(_impl_.mode_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .gwp_asan.Crash.ErrorType error_type = 1;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_error_type(), target);
  }

  // optional uint64 allocation_address = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_allocation_address(), target);
  }

  // optional uint64 allocation_size = 3;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        3, this_._internal_allocation_size(), target);
  }

  // optional .gwp_asan.Crash.AllocationInfo allocation = 4;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.allocation_, this_._impl_.allocation_->GetCachedSize(), target,
        stream);
  }

  // optional .gwp_asan.Crash.AllocationInfo deallocation = 5;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        5, *this_._impl_.deallocation_, this_._impl_.deallocation_->GetCachedSize(), target,
        stream);
  }

  // optional uint64 region_start = 6;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        6, this_._internal_region_start(), target);
  }

  // optional uint64 region_size = 7;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        7, this_._internal_region_size(), target);
  }

  // optional uint64 free_invalid_address = 8;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        8, this_._internal_free_invalid_address(), target);
  }

  // optional bool missing_metadata = 9;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        9, this_._internal_missing_metadata(), target);
  }

  // optional string internal_error = 10;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_internal_error();
    target = stream->WriteStringMaybeAliased(10, _s, target);
  }

  // optional .gwp_asan.Crash.Allocator allocator = 11;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        11, this_._internal_allocator(), target);
  }

  // optional .gwp_asan.Crash.Mode mode = 12;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        12, this_._internal_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:gwp_asan.Crash)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000040U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000bfU)) {
    // optional string internal_error = 10;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_internal_error());
    }
    // optional .gwp_asan.Crash.AllocationInfo allocation = 4;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.allocation_);
    }
    // optional .gwp_asan.Crash.AllocationInfo deallocation = 5;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.deallocation_);
    }
    // optional uint64 allocation_address = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_allocation_address());
    }
    // optional uint64 allocation_size = 3;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_allocation_size());
    }
    // optional .gwp_asan.Crash.ErrorType error_type = 1;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_error_type());
    }
    // optional uint64 region_start = 6;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_region_start());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
    // optional uint64 region_size = 7;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_region_size());
    }
    // optional uint64 free_invalid_address = 8;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_free_invalid_address());
    }
    // optional .gwp_asan.Crash.Allocator allocator = 11;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_allocator());
    }
    // optional .gwp_asan.Crash.Mode mode = 12;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_mode());
    }
  }
  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 Crash::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Crash*>(&to_msg);
  auto& from = static_cast<const Crash&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:gwp_asan.Crash)
  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_set_internal_error(from._internal_internal_error());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.allocation_ != nullptr);
      if (_this->_impl_.allocation_ == nullptr) {
        _this->_impl_.allocation_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.allocation_);
      } else {
        _this->_impl_.allocation_->MergeFrom(*from._impl_.allocation_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.deallocation_ != nullptr);
      if (_this->_impl_.deallocation_ == nullptr) {
        _this->_impl_.deallocation_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.deallocation_);
      } else {
        _this->_impl_.deallocation_->MergeFrom(*from._impl_.deallocation_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.allocation_address_ = from._impl_.allocation_address_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.allocation_size_ = from._impl_.allocation_size_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.error_type_ = from._impl_.error_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.missing_metadata_ = from._impl_.missing_metadata_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.region_start_ = from._impl_.region_start_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.region_size_ = from._impl_.region_size_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.free_invalid_address_ = from._impl_.free_invalid_address_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.allocator_ = from._impl_.allocator_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.mode_ = from._impl_.mode_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void Crash::InternalSwap(Crash* 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_.internal_error_, &other->_impl_.internal_error_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Crash, _impl_.mode_)
      + sizeof(Crash::_impl_.mode_)
      - PROTOBUF_FIELD_OFFSET(Crash, _impl_.allocation_)>(
          reinterpret_cast<char*>(&_impl_.allocation_),
          reinterpret_cast<char*>(&other->_impl_.allocation_));
}

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