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

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

constexpr StructuredEventProto_Metric_RepeatedInt64::ParseTableT_ StructuredEventProto_Metric_RepeatedInt64::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric_RepeatedInt64, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::StructuredEventProto_Metric_RepeatedInt64>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated int64 values = 1;
      {::_pbi::TcParser::FastV64P1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric_RepeatedInt64, _impl_.values_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated int64 values = 1;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric_RepeatedInt64, _impl_.values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr StructuredEventProto_Metric_RepeatedInt64::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        values_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::StructuredEventProto_Metric_RepeatedInt64,
            PROTOBUF_FIELD_OFFSET(::metrics::StructuredEventProto_Metric_RepeatedInt64, _impl_.values_)>()
         }
        ,
        _values_cached_byte_size_{0} {}

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

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

constexpr StructuredEventProto_EventSequenceMetadata::ParseTableT_ StructuredEventProto_EventSequenceMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      1,  // 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::StructuredEventProto_EventSequenceMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // fixed64 event_unique_id = 1;
      {::_pbi::TcParser::FastF64S1,
       {9, 0, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.event_unique_id_)}},
      // int64 system_uptime = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.system_uptime_)}},
      // int64 reset_counter = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.reset_counter_)}},
      // uint32 client_id_rotation_weeks = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.client_id_rotation_weeks_)}},
      // .metrics.StructuredEventProto.PrimaryUserSegment primary_user_segment = 5;
      {::_pbi::TcParser::FastEr0S1,
       {40, 4, 8,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.primary_user_segment_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // fixed64 event_unique_id = 1;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.event_unique_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // int64 system_uptime = 2;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.system_uptime_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // int64 reset_counter = 3;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.reset_counter_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // uint32 client_id_rotation_weeks = 4;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.client_id_rotation_weeks_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // .metrics.StructuredEventProto.PrimaryUserSegment primary_user_segment = 5;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_EventSequenceMetadata, _impl_.primary_user_segment_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 8},
    }},
    {{
    }},
  };
}


inline constexpr StructuredEventProto_EventSequenceMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        event_unique_id_{::uint64_t{0u}},
        system_uptime_{::int64_t{0}},
        reset_counter_{::int64_t{0}},
        client_id_rotation_weeks_{0u},
        primary_user_segment_{static_cast< ::metrics::StructuredEventProto_PrimaryUserSegment >(0)} {}

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

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

constexpr StructuredEventProto_Metric::ParseTableT_ StructuredEventProto_Metric::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_._has_bits_),
      0, // no _extensions_
      6, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967232,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // num_field_entries
      1,  // 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::StructuredEventProto_Metric>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // fixed64 name_hash = 1;
      {::_pbi::TcParser::FastF64S1,
       {9, 0, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_.name_hash_)}},
    }}, {{
      65535, 65535
    }}, {{
      // fixed64 name_hash = 1;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_.name_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // fixed64 value_hmac = 2;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_.value_.value_hmac_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kFixed64)},
      // int64 value_int64 = 3;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_.value_.value_int64_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kInt64)},
      // string value_string = 4;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_.value_.value_string_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
      // double value_double = 5;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_.value_.value_double_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kDouble)},
      // .metrics.StructuredEventProto.Metric.RepeatedInt64 value_repeated_int64 = 6;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto_Metric, _impl_.value_.value_repeated_int64_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::StructuredEventProto_Metric_RepeatedInt64>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::StructuredEventProto_Metric_RepeatedInt64_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr StructuredEventProto_Metric::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        name_hash_{::uint64_t{0u}},
        value_{},
        _oneof_case_{} {}

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

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

constexpr StructuredEventProto::ParseTableT_ StructuredEventProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_._has_bits_),
      0, // no _extensions_
      8, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967040,  // skipmap
      offsetof(ParseTableT_, field_entries),
      8,  // num_field_entries
      3,  // 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::StructuredEventProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // fixed64 device_project_id = 8;
      {::_pbi::TcParser::FastF64S1,
       {65, 6, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.device_project_id_)}},
      // fixed64 profile_event_id = 1;
      {::_pbi::TcParser::FastF64S1,
       {9, 2, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.profile_event_id_)}},
      // fixed64 event_name_hash = 2;
      {::_pbi::TcParser::FastF64S1,
       {17, 3, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_name_hash_)}},
      // repeated .metrics.StructuredEventProto.Metric metrics = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.metrics_)}},
      // .metrics.StructuredEventProto.EventType event_type = 4;
      {::_pbi::TcParser::FastEr0S1,
       {32, 7, 3,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_type_)}},
      // fixed64 project_name_hash = 5;
      {::_pbi::TcParser::FastF64S1,
       {41, 4, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.project_name_hash_)}},
      // .metrics.StructuredEventProto.EventSequenceMetadata event_sequence_metadata = 6;
      {::_pbi::TcParser::FastMtS1,
       {50, 1, 1,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_sequence_metadata_)}},
      // fixed64 user_project_id = 7;
      {::_pbi::TcParser::FastF64S1,
       {57, 5, 0,
        PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.user_project_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // fixed64 profile_event_id = 1;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.profile_event_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // fixed64 event_name_hash = 2;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_name_hash_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // repeated .metrics.StructuredEventProto.Metric metrics = 3;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.metrics_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .metrics.StructuredEventProto.EventType event_type = 4;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_type_), _Internal::kHasBitsOffset + 7, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // fixed64 project_name_hash = 5;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.project_name_hash_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // .metrics.StructuredEventProto.EventSequenceMetadata event_sequence_metadata = 6;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_sequence_metadata_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // fixed64 user_project_id = 7;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.user_project_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // fixed64 device_project_id = 8;
      {PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.device_project_id_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::StructuredEventProto_Metric>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::StructuredEventProto_Metric_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::StructuredEventProto_EventSequenceMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::StructuredEventProto_EventSequenceMetadata_globals_},
        #endif
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr StructuredEventProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        metrics_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::StructuredEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::StructuredEventProto, _impl_.metrics_)>()
         }
        ,
        event_sequence_metadata_{nullptr},
        profile_event_id_{::uint64_t{0u}},
        event_name_hash_{::uint64_t{0u}},
        project_name_hash_{::uint64_t{0u}},
        user_project_id_{::uint64_t{0u}},
        device_project_id_{::uint64_t{0u}},
        event_type_{static_cast< ::metrics::StructuredEventProto_EventType >(0)} {}

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

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

constexpr StructuredDataProto::ParseTableT_ StructuredDataProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::StructuredDataProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .metrics.StructuredEventProto events = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.events_)}},
      // bool is_device_enrolled = 2 [deprecated = true];
      {::_pbi::TcParser::FastV8S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.is_device_enrolled_)}},
      // .metrics.StructuredDataProto.DeviceSegment device_segment = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 2, 3,
        PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.device_segment_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .metrics.StructuredEventProto events = 1;
      {PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.events_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // bool is_device_enrolled = 2 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.is_device_enrolled_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // .metrics.StructuredDataProto.DeviceSegment device_segment = 3;
      {PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.device_segment_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::StructuredEventProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::StructuredEventProto_globals_},
        #endif
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr StructuredDataProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        events_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::StructuredDataProto,
            PROTOBUF_FIELD_OFFSET(::metrics::StructuredDataProto, _impl_.events_)>()
         }
        ,
        is_device_enrolled_{false},
        device_segment_{static_cast< ::metrics::StructuredDataProto_DeviceSegment >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST StructuredDataProtoGlobalsTypeInternal StructuredDataProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* StructuredDataProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return StructuredDataProto_globals_.GetClassData();
#else
  return StructuredDataProto_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace metrics
namespace metrics {
PROTOBUF_CONSTINIT const uint32_t StructuredEventProto_EventType_internal_data_[] = {
    262144u, 0u, };
static const char StructuredEventProto_EventType_names[] = {
    "RAW_STRING"
    "REGULAR"
    "SEQUENCE"
    "UNKNOWN"
};

static const ::google::protobuf::internal::EnumEntry StructuredEventProto_EventType_entries[] = {
    {{&StructuredEventProto_EventType_names[0], 10}, 2},
    {{&StructuredEventProto_EventType_names[10], 7}, 1},
    {{&StructuredEventProto_EventType_names[17], 8}, 3},
    {{&StructuredEventProto_EventType_names[25], 7}, 0},
};

static const int StructuredEventProto_EventType_entries_by_number[] = {
    3,  // 0 -> UNKNOWN
    1,  // 1 -> REGULAR
    0,  // 2 -> RAW_STRING
    2,  // 3 -> SEQUENCE
};

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

const ::std::string& StructuredEventProto_EventType_Name(StructuredEventProto_EventType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      StructuredEventProto_EventType_entries, StructuredEventProto_EventType_entries_by_number, 4,
      StructuredEventProto_EventType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(StructuredEventProto_EventType_entries,
                                  StructuredEventProto_EventType_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StructuredEventProto_EventType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t StructuredEventProto_PrimaryUserSegment_internal_data_[] = {
    589824u, 0u, };
static const char StructuredEventProto_PrimaryUserSegment_names[] = {
    "DEMO_MODE"
    "ENTERPRISE_ORGANIZATION"
    "K12"
    "KIOS_APP"
    "MANAGED_GUEST_SESSION"
    "NON_PROFIT"
    "UNIVERSITY"
    "UNKNOWN_PRIMARY_USER_TYPE"
    "UNMANAGED"
};

static const ::google::protobuf::internal::EnumEntry StructuredEventProto_PrimaryUserSegment_entries[] = {
    {{&StructuredEventProto_PrimaryUserSegment_names[0], 9}, 8},
    {{&StructuredEventProto_PrimaryUserSegment_names[9], 23}, 5},
    {{&StructuredEventProto_PrimaryUserSegment_names[32], 3}, 2},
    {{&StructuredEventProto_PrimaryUserSegment_names[35], 8}, 6},
    {{&StructuredEventProto_PrimaryUserSegment_names[43], 21}, 7},
    {{&StructuredEventProto_PrimaryUserSegment_names[64], 10}, 4},
    {{&StructuredEventProto_PrimaryUserSegment_names[74], 10}, 3},
    {{&StructuredEventProto_PrimaryUserSegment_names[84], 25}, 0},
    {{&StructuredEventProto_PrimaryUserSegment_names[109], 9}, 1},
};

static const int StructuredEventProto_PrimaryUserSegment_entries_by_number[] = {
    7,  // 0 -> UNKNOWN_PRIMARY_USER_TYPE
    8,  // 1 -> UNMANAGED
    2,  // 2 -> K12
    6,  // 3 -> UNIVERSITY
    5,  // 4 -> NON_PROFIT
    1,  // 5 -> ENTERPRISE_ORGANIZATION
    3,  // 6 -> KIOS_APP
    4,  // 7 -> MANAGED_GUEST_SESSION
    0,  // 8 -> DEMO_MODE
};

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

const ::std::string& StructuredEventProto_PrimaryUserSegment_Name(StructuredEventProto_PrimaryUserSegment value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      StructuredEventProto_PrimaryUserSegment_entries, StructuredEventProto_PrimaryUserSegment_entries_by_number, 9,
      StructuredEventProto_PrimaryUserSegment_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(StructuredEventProto_PrimaryUserSegment_entries,
                                  StructuredEventProto_PrimaryUserSegment_entries_by_number,
                                  9, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : StructuredEventProto_PrimaryUserSegment_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t StructuredDataProto_DeviceSegment_internal_data_[] = {
    262144u, 0u, };
static const char StructuredDataProto_DeviceSegment_names[] = {
    "CONSUMER"
    "EDUCATION"
    "ENTERPRISE"
    "UNKNOWN"
};

static const ::google::protobuf::internal::EnumEntry StructuredDataProto_DeviceSegment_entries[] = {
    {{&StructuredDataProto_DeviceSegment_names[0], 8}, 1},
    {{&StructuredDataProto_DeviceSegment_names[8], 9}, 2},
    {{&StructuredDataProto_DeviceSegment_names[17], 10}, 3},
    {{&StructuredDataProto_DeviceSegment_names[27], 7}, 0},
};

static const int StructuredDataProto_DeviceSegment_entries_by_number[] = {
    3,  // 0 -> UNKNOWN
    0,  // 1 -> CONSUMER
    1,  // 2 -> EDUCATION
    2,  // 3 -> ENTERPRISE
};

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

const ::std::string& StructuredDataProto_DeviceSegment_Name(StructuredDataProto_DeviceSegment value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      StructuredDataProto_DeviceSegment_entries, StructuredDataProto_DeviceSegment_entries_by_number, 4,
      StructuredDataProto_DeviceSegment_strings);
  (void)kDummy;

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:metrics.StructuredEventProto.Metric.RepeatedInt64)
}
PROTOBUF_NDEBUG_INLINE StructuredEventProto_Metric_RepeatedInt64::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        values_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::StructuredEventProto_Metric_RepeatedInt64,
            PROTOBUF_FIELD_OFFSET(::metrics::StructuredEventProto_Metric_RepeatedInt64, _impl_.values_)>()
         }
        ,
        _values_cached_byte_size_{0} {}

inline void StructuredEventProto_Metric_RepeatedInt64::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
StructuredEventProto_Metric_RepeatedInt64::~StructuredEventProto_Metric_RepeatedInt64() {
  // @@protoc_insertion_point(destructor:metrics.StructuredEventProto.Metric.RepeatedInt64)
  SharedDtor(*this);
}
inline void StructuredEventProto_Metric_RepeatedInt64::SharedDtor(MessageLite& self) {
  StructuredEventProto_Metric_RepeatedInt64& this_ = static_cast<StructuredEventProto_Metric_RepeatedInt64&>(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 StructuredEventProto_Metric_RepeatedInt64_class_data_ =
    StructuredEventProto_Metric_RepeatedInt64::InternalGenerateClassData_(StructuredEventProto_Metric_RepeatedInt64_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
StructuredEventProto_Metric_RepeatedInt64::GetClassData() const {
  return StructuredEventProto_Metric_RepeatedInt64_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
StructuredEventProto_Metric_RepeatedInt64::GetClassData() const {
  return StructuredEventProto_Metric_RepeatedInt64_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const StructuredEventProto_Metric_RepeatedInt64::ParseTableT_
    StructuredEventProto_Metric_RepeatedInt64::_table_ =
        StructuredEventProto_Metric_RepeatedInt64::InternalGenerateParseTable_(StructuredEventProto_Metric_RepeatedInt64_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void StructuredEventProto_Metric_RepeatedInt64::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.StructuredEventProto.Metric.RepeatedInt64)
  ::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_.values_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated int64 values = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    {
      int byte_size = this_._impl_._values_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteInt64Packed(
            1, this_._internal_values(), byte_size, 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.StructuredEventProto.Metric.RepeatedInt64)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t StructuredEventProto_Metric_RepeatedInt64::ByteSizeLong(const MessageLite& base) {
  const StructuredEventProto_Metric_RepeatedInt64& this_ = static_cast<const StructuredEventProto_Metric_RepeatedInt64&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t StructuredEventProto_Metric_RepeatedInt64::ByteSizeLong() const {
  const StructuredEventProto_Metric_RepeatedInt64& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.StructuredEventProto.Metric.RepeatedInt64)
  ::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_);
   {
    // repeated int64 values = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
              this_._internal_values(), 1,
              this_._impl_._values_cached_byte_size_);
    }
  }
  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 StructuredEventProto_Metric_RepeatedInt64::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<StructuredEventProto_Metric_RepeatedInt64*>(&to_msg);
  auto& from = static_cast<const StructuredEventProto_Metric_RepeatedInt64&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.StructuredEventProto.Metric.RepeatedInt64)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_values()->MergeFrom(from._internal_values());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void StructuredEventProto_Metric_RepeatedInt64::InternalSwap(StructuredEventProto_Metric_RepeatedInt64* 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_.values_.InternalSwap(&other->_impl_.values_);
}

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

void StructuredEventProto_Metric::set_allocated_value_repeated_int64(::metrics::StructuredEventProto_Metric_RepeatedInt64* PROTOBUF_NULLABLE value_repeated_int64) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_value();
  if (value_repeated_int64) {
    ::google::protobuf::Arena* submessage_arena = value_repeated_int64->GetArena();
    if (message_arena != submessage_arena) {
      value_repeated_int64 = ::google::protobuf::internal::GetOwnedMessage(message_arena, value_repeated_int64, submessage_arena);
    }
    set_has_value_repeated_int64();
    _impl_.value_.value_repeated_int64_ = value_repeated_int64;
  }
  // @@protoc_insertion_point(field_set_allocated:metrics.StructuredEventProto.Metric.value_repeated_int64)
}
StructuredEventProto_Metric::StructuredEventProto_Metric(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, StructuredEventProto_Metric_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.StructuredEventProto.Metric)
}
PROTOBUF_NDEBUG_INLINE StructuredEventProto_Metric::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::StructuredEventProto_Metric& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        value_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  StructuredEventProto_Metric* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.name_hash_ = from._impl_.name_hash_;
  switch (value_case()) {
    case VALUE_NOT_SET:
      break;
      case kValueHmac:
        _impl_.value_.value_hmac_ = from._impl_.value_.value_hmac_;
        break;
      case kValueInt64:
        _impl_.value_.value_int64_ = from._impl_.value_.value_int64_;
        break;
      case kValueString:
        new (&_impl_.value_.value_string_) decltype(_impl_.value_.value_string_){arena, from._impl_.value_.value_string_};
        break;
      case kValueDouble:
        _impl_.value_.value_double_ = from._impl_.value_.value_double_;
        break;
      case kValueRepeatedInt64:
        _impl_.value_.value_repeated_int64_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.value_.value_repeated_int64_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:metrics.StructuredEventProto.Metric)
}
PROTOBUF_NDEBUG_INLINE StructuredEventProto_Metric::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        value_{},
        _oneof_case_{} {}

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

void StructuredEventProto_Metric::clear_value() {
// @@protoc_insertion_point(one_of_clear_start:metrics.StructuredEventProto.Metric)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (value_case()) {
    case kValueHmac: {
      // No need to clear
      break;
    }
    case kValueInt64: {
      // No need to clear
      break;
    }
    case kValueString: {
      _impl_.value_.value_string_.Destroy();
      break;
    }
    case kValueDouble: {
      // No need to clear
      break;
    }
    case kValueRepeatedInt64: {
      if (GetArena() == nullptr) {
        delete _impl_.value_.value_repeated_int64_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.value_.value_repeated_int64_ != nullptr) {
          _impl_.value_.value_repeated_int64_->Clear();
        }
      }
      break;
    }
    case VALUE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = VALUE_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite StructuredEventProto_Metric_class_data_ =
    StructuredEventProto_Metric::InternalGenerateClassData_(StructuredEventProto_Metric_globals_._default);

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

  _impl_.name_hash_ = ::uint64_t{0u};
  clear_value();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // fixed64 name_hash = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        1, this_._internal_name_hash(), target);
  }

  switch (this_.value_case()) {
    case kValueHmac: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
          2, this_._internal_value_hmac(), target);
      break;
    }
    case kValueInt64: {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
              stream, this_._internal_value_int64(), target);
      break;
    }
    case kValueString: {
      const ::std::string& _s = this_._internal_value_string();
      target = stream->WriteStringMaybeAliased(4, _s, target);
      break;
    }
    case kValueDouble: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteDoubleToArray(
          5, this_._internal_value_double(), target);
      break;
    }
    case kValueRepeatedInt64: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          6, *this_._impl_.value_.value_repeated_int64_, this_._impl_.value_.value_repeated_int64_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  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.StructuredEventProto.Metric)
  return target;
}

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 9;
  switch (this_.value_case()) {
    // fixed64 value_hmac = 2;
    case kValueHmac: {
      total_size += 9;
      break;
    }
    // int64 value_int64 = 3;
    case kValueInt64: {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_value_int64());
      break;
    }
    // string value_string = 4;
    case kValueString: {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_value_string());
      break;
    }
    // double value_double = 5;
    case kValueDouble: {
      total_size += 9;
      break;
    }
    // .metrics.StructuredEventProto.Metric.RepeatedInt64 value_repeated_int64 = 6;
    case kValueRepeatedInt64: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.value_.value_repeated_int64_);
      break;
    }
    case VALUE_NOT_SET: {
      break;
    }
  }
  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 StructuredEventProto_Metric::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<StructuredEventProto_Metric*>(&to_msg);
  auto& from = static_cast<const StructuredEventProto_Metric&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.StructuredEventProto.Metric)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_impl_.name_hash_ = from._impl_.name_hash_;
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_value();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kValueHmac: {
        _this->_impl_.value_.value_hmac_ = from._impl_.value_.value_hmac_;
        break;
      }
      case kValueInt64: {
        _this->_impl_.value_.value_int64_ = from._impl_.value_.value_int64_;
        break;
      }
      case kValueString: {
        if (oneof_needs_init) {
          _this->_impl_.value_.value_string_.InitDefault();
        }
        _this->_impl_.value_.value_string_.Set(from._internal_value_string(), arena);
        break;
      }
      case kValueDouble: {
        _this->_impl_.value_.value_double_ = from._impl_.value_.value_double_;
        break;
      }
      case kValueRepeatedInt64: {
        if (oneof_needs_init) {
          _this->_impl_.value_.value_repeated_int64_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.value_.value_repeated_int64_);
        } else {
          _this->_impl_.value_.value_repeated_int64_->MergeFrom(*from._impl_.value_.value_repeated_int64_);
        }
        break;
      }
      case VALUE_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void StructuredEventProto_Metric::InternalSwap(StructuredEventProto_Metric* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  swap(_impl_.name_hash_, other->_impl_.name_hash_);
  swap(_impl_.value_, other->_impl_.value_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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

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

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

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    ::memset(&_impl_.event_unique_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.primary_user_segment_) -
        reinterpret_cast<char*>(&_impl_.event_unique_id_)) + sizeof(_impl_.primary_user_segment_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // fixed64 event_unique_id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        1, this_._internal_event_unique_id(), target);
  }

  // int64 system_uptime = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_system_uptime(), target);
  }

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

  // uint32 client_id_rotation_weeks = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        4, this_._internal_client_id_rotation_weeks(), target);
  }

  // .metrics.StructuredEventProto.PrimaryUserSegment primary_user_segment = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this_._internal_primary_user_segment(), 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.StructuredEventProto.EventSequenceMetadata)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t StructuredEventProto_EventSequenceMetadata::ByteSizeLong(const MessageLite& base) {
  const StructuredEventProto_EventSequenceMetadata& this_ = static_cast<const StructuredEventProto_EventSequenceMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t StructuredEventProto_EventSequenceMetadata::ByteSizeLong() const {
  const StructuredEventProto_EventSequenceMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.StructuredEventProto.EventSequenceMetadata)
  ::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>(0x00000001U & cached_has_bits) * 9;
  if (BatchCheckHasBit(cached_has_bits, 0x0000001eU)) {
    // int64 system_uptime = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_system_uptime());
    }
    // int64 reset_counter = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_reset_counter());
    }
    // uint32 client_id_rotation_weeks = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_client_id_rotation_weeks());
    }
    // .metrics.StructuredEventProto.PrimaryUserSegment primary_user_segment = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_primary_user_segment());
    }
  }
  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 StructuredEventProto_EventSequenceMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<StructuredEventProto_EventSequenceMetadata*>(&to_msg);
  auto& from = static_cast<const StructuredEventProto_EventSequenceMetadata&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.StructuredEventProto.EventSequenceMetadata)
  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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.event_unique_id_ = from._impl_.event_unique_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.system_uptime_ = from._impl_.system_uptime_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.reset_counter_ = from._impl_.reset_counter_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.client_id_rotation_weeks_ = from._impl_.client_id_rotation_weeks_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.primary_user_segment_ = from._impl_.primary_user_segment_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  StructuredEventProto* 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_.event_sequence_metadata_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.event_sequence_metadata_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, profile_event_id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, profile_event_id_),
           offsetof(Impl_, event_type_) -
               offsetof(Impl_, profile_event_id_) +
               sizeof(Impl_::event_type_));

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite StructuredEventProto_class_data_ =
    StructuredEventProto::InternalGenerateClassData_(StructuredEventProto_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.metrics_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.event_sequence_metadata_ != nullptr);
      _impl_.event_sequence_metadata_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) {
    ::memset(&_impl_.profile_event_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.event_type_) -
        reinterpret_cast<char*>(&_impl_.profile_event_id_)) + sizeof(_impl_.event_type_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // fixed64 profile_event_id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        1, this_._internal_profile_event_id(), target);
  }

  // fixed64 event_name_hash = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        2, this_._internal_event_name_hash(), target);
  }

  // repeated .metrics.StructuredEventProto.Metric metrics = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_metrics_size());
         i < n; i++) {
      const auto& repfield = this_._internal_metrics().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // .metrics.StructuredEventProto.EventType event_type = 4;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        4, this_._internal_event_type(), target);
  }

  // fixed64 project_name_hash = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        5, this_._internal_project_name_hash(), target);
  }

  // .metrics.StructuredEventProto.EventSequenceMetadata event_sequence_metadata = 6;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        6, *this_._impl_.event_sequence_metadata_, this_._impl_.event_sequence_metadata_->GetCachedSize(), target,
        stream);
  }

  // fixed64 user_project_id = 7;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        7, this_._internal_user_project_id(), target);
  }

  // fixed64 device_project_id = 8;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        8, this_._internal_device_project_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:metrics.StructuredEventProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t StructuredEventProto::ByteSizeLong(const MessageLite& base) {
  const StructuredEventProto& this_ = static_cast<const StructuredEventProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t StructuredEventProto::ByteSizeLong() const {
  const StructuredEventProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.StructuredEventProto)
  ::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(0x0000007cU & cached_has_bits) * 9;
  if (BatchCheckHasBit(cached_has_bits, 0x00000083U)) {
    // repeated .metrics.StructuredEventProto.Metric metrics = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_metrics_size();
      for (const auto& msg : this_._internal_metrics()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .metrics.StructuredEventProto.EventSequenceMetadata event_sequence_metadata = 6;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_sequence_metadata_);
    }
    // .metrics.StructuredEventProto.EventType event_type = 4;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void StructuredEventProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<StructuredEventProto*>(&to_msg);
  auto& from = static_cast<const StructuredEventProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.StructuredEventProto)
  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_metrics()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_metrics());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.event_sequence_metadata_ != nullptr);
      if (_this->_impl_.event_sequence_metadata_ == nullptr) {
        _this->_impl_.event_sequence_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.event_sequence_metadata_);
      } else {
        _this->_impl_.event_sequence_metadata_->MergeFrom(*from._impl_.event_sequence_metadata_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.profile_event_id_ = from._impl_.profile_event_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.event_name_hash_ = from._impl_.event_name_hash_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.project_name_hash_ = from._impl_.project_name_hash_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.user_project_id_ = from._impl_.user_project_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.device_project_id_ = from._impl_.device_project_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.event_type_ = from._impl_.event_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void StructuredEventProto::InternalSwap(StructuredEventProto* 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_.metrics_.InternalSwap(&other->_impl_.metrics_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_type_)
      + sizeof(StructuredEventProto::_impl_.event_type_)
      - PROTOBUF_FIELD_OFFSET(StructuredEventProto, _impl_.event_sequence_metadata_)>(
          reinterpret_cast<char*>(&_impl_.event_sequence_metadata_),
          reinterpret_cast<char*>(&other->_impl_.event_sequence_metadata_));
}

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

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

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

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

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

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
StructuredDataProto::GetClassData() const {
  return StructuredDataProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
StructuredDataProto::GetClassData() const {
  return StructuredDataProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const StructuredDataProto::ParseTableT_
    StructuredDataProto::_table_ =
        StructuredDataProto::InternalGenerateParseTable_(StructuredDataProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void StructuredDataProto::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.StructuredDataProto)
  ::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_.events_.Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
    ::memset(&_impl_.is_device_enrolled_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.device_segment_) -
        reinterpret_cast<char*>(&_impl_.is_device_enrolled_)) + sizeof(_impl_.device_segment_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .metrics.StructuredEventProto events = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_events_size());
         i < n; i++) {
      const auto& repfield = this_._internal_events().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // bool is_device_enrolled = 2 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        2, this_._internal_is_device_enrolled(), target);
  }

  // .metrics.StructuredDataProto.DeviceSegment device_segment = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_device_segment(), 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.StructuredDataProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t StructuredDataProto::ByteSizeLong(const MessageLite& base) {
  const StructuredDataProto& this_ = static_cast<const StructuredDataProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t StructuredDataProto::ByteSizeLong() const {
  const StructuredDataProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.StructuredDataProto)
  ::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>(0x00000002U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000005U)) {
    // repeated .metrics.StructuredEventProto events = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_events_size();
      for (const auto& msg : this_._internal_events()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .metrics.StructuredDataProto.DeviceSegment device_segment = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_device_segment());
    }
  }
  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 StructuredDataProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<StructuredDataProto*>(&to_msg);
  auto& from = static_cast<const StructuredDataProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.StructuredDataProto)
  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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_events()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_events());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.is_device_enrolled_ = from._impl_.is_device_enrolled_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.device_segment_ = from._impl_.device_segment_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void StructuredDataProto::InternalSwap(StructuredDataProto* 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_.events_.InternalSwap(&other->_impl_.events_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.device_segment_)
      + sizeof(StructuredDataProto::_impl_.device_segment_)
      - PROTOBUF_FIELD_OFFSET(StructuredDataProto, _impl_.is_device_enrolled_)>(
          reinterpret_cast<char*>(&_impl_.is_device_enrolled_),
          reinterpret_cast<char*>(&other->_impl_.is_device_enrolled_));
}

// @@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"
