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

#include "components/enterprise/common/proto/upload_request_response.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace chrome {
namespace cros {
namespace reporting {
namespace proto {
class UploadFailure::_Internal {
 public:
  using HasBits = decltype(::std::declval<UploadFailure>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(UploadFailure, _impl_._has_bits_);
};

constexpr UploadFailure::ParseTableT_ UploadFailure::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UploadFailure, _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
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::UploadFailure>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string event_id = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(UploadFailure, _impl_.event_id_)}},
      // .google3_protos.Code status = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(UploadFailure, _impl_.status_)}},
      // string error_message = 3;
      {::_pbi::TcParser::FastUS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(UploadFailure, _impl_.error_message_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string event_id = 1;
      {PROTOBUF_FIELD_OFFSET(UploadFailure, _impl_.event_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .google3_protos.Code status = 2;
      {PROTOBUF_FIELD_OFFSET(UploadFailure, _impl_.status_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // string error_message = 3;
      {PROTOBUF_FIELD_OFFSET(UploadFailure, _impl_.error_message_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\51\10\0\15\0\0\0\0"
      "chrome.cros.reporting.proto.UploadFailure"
      "event_id"
      "error_message"
    }},
  };
}


inline constexpr UploadFailure::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        event_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        error_message_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        status_{static_cast< ::google3_protos::Code >(0)} {}

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

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

constexpr UploadEventsResponse::ParseTableT_ UploadEventsResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UploadEventsResponse, _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<::chrome::cros::reporting::proto::UploadEventsResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated string uploaded_event_ids = 1;
      {::_pbi::TcParser::FastUR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(UploadEventsResponse, _impl_.uploaded_event_ids_)}},
      // repeated .chrome.cros.reporting.proto.UploadFailure failed_uploads = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(UploadEventsResponse, _impl_.failed_uploads_)}},
      // repeated .chrome.cros.reporting.proto.UploadFailure permanent_failed_uploads = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 2, 1,
        PROTOBUF_FIELD_OFFSET(UploadEventsResponse, _impl_.permanent_failed_uploads_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated string uploaded_event_ids = 1;
      {PROTOBUF_FIELD_OFFSET(UploadEventsResponse, _impl_.uploaded_event_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
      // repeated .chrome.cros.reporting.proto.UploadFailure failed_uploads = 2;
      {PROTOBUF_FIELD_OFFSET(UploadEventsResponse, _impl_.failed_uploads_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .chrome.cros.reporting.proto.UploadFailure permanent_failed_uploads = 3;
      {PROTOBUF_FIELD_OFFSET(UploadEventsResponse, _impl_.permanent_failed_uploads_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::UploadFailure>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::chrome::cros::reporting::proto::UploadFailure_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::UploadFailure>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::chrome::cros::reporting::proto::UploadFailure_globals_},
        #endif
    }},
    {{
      "\60\22\0\0\0\0\0\0"
      "chrome.cros.reporting.proto.UploadEventsResponse"
      "uploaded_event_ids"
    }},
  };
}


inline constexpr UploadEventsResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        uploaded_event_ids_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsResponse,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.uploaded_event_ids_)>()
         }
        ,
        failed_uploads_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsResponse,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.failed_uploads_)>()
         }
        ,
        permanent_failed_uploads_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsResponse,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.permanent_failed_uploads_)>()
         }
     {}

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

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

constexpr UploadEventsRequest::ParseTableT_ UploadEventsRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_._has_bits_),
      0, // no _extensions_
      100, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967235,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      5,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::UploadEventsRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .chrome.cros.reporting.proto.Device device = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 1, 1,
        PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.device_)}},
      // .chrome.cros.reporting.proto.Browser browser = 5;
      {::_pbi::TcParser::FastMtS1,
       {42, 2, 2,
        PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.browser_)}},
      // .chrome.cros.reporting.proto.Profile profile = 6;
      {::_pbi::TcParser::FastMtS1,
       {50, 3, 3,
        PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.profile_)}},
      // repeated .chrome.cros.reporting.proto.Event events = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.events_)}},
    }}, {{
      100, 0, 1,
      65534, 4,
      65535, 65535
    }}, {{
      // repeated .chrome.cros.reporting.proto.Event events = 3;
      {PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.events_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .chrome.cros.reporting.proto.Device device = 4;
      {PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.device_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .chrome.cros.reporting.proto.Browser browser = 5;
      {PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.browser_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .chrome.cros.reporting.proto.Profile profile = 6;
      {PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.profile_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .google3_protos.Any extensions = 100;
      {PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.extensions_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::Event>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::chrome::cros::reporting::proto::Event_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::Device>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::chrome::cros::reporting::proto::Device_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::Browser>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::chrome::cros::reporting::proto::Browser_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::chrome::cros::reporting::proto::Profile>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::chrome::cros::reporting::proto::Profile_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::google3_protos::Any>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::google3_protos::Any_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr UploadEventsRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        events_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsRequest,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsRequest, _impl_.events_)>()
         }
        ,
        device_{nullptr},
        browser_{nullptr},
        profile_{nullptr},
        extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsRequest,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsRequest, _impl_.extensions_)>()
         }
     {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST UploadEventsRequestGlobalsTypeInternal UploadEventsRequest_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* UploadEventsRequest_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return UploadEventsRequest_globals_.GetClassData();
#else
  return UploadEventsRequest_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace reporting
}  // namespace cros
}  // namespace chrome
namespace chrome {
namespace cros {
namespace reporting {
namespace proto {
// ===================================================================

void UploadEventsRequest::clear_events() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.events_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
void UploadEventsRequest::clear_device() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.device_ != nullptr) _impl_.device_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
void UploadEventsRequest::clear_browser() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.browser_ != nullptr) _impl_.browser_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
void UploadEventsRequest::clear_profile() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.profile_ != nullptr) _impl_.profile_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
void UploadEventsRequest::clear_extensions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.extensions_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
UploadEventsRequest::UploadEventsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, UploadEventsRequest_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:chrome.cros.reporting.proto.UploadEventsRequest)
}
PROTOBUF_NDEBUG_INLINE UploadEventsRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::chrome::cros::reporting::proto::UploadEventsRequest& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        events_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::chrome::cros::reporting::proto::UploadEventsRequest,
              PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsRequest, _impl_.events_)>()
          , from.events_
        }
        ,
        extensions_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::chrome::cros::reporting::proto::UploadEventsRequest,
              PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsRequest, _impl_.extensions_)>()
          , from.extensions_
        }
     {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  UploadEventsRequest* 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_.device_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.device_)
                : nullptr;
  _impl_.browser_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.browser_)
                : nullptr;
  _impl_.profile_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.profile_)
                : nullptr;

  // @@protoc_insertion_point(copy_constructor:chrome.cros.reporting.proto.UploadEventsRequest)
}
PROTOBUF_NDEBUG_INLINE UploadEventsRequest::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<
            ::chrome::cros::reporting::proto::UploadEventsRequest,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsRequest, _impl_.events_)>()
         }
        ,
        extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsRequest,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsRequest, _impl_.extensions_)>()
         }
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UploadEventsRequest_class_data_ =
    UploadEventsRequest::InternalGenerateClassData_(UploadEventsRequest_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UploadEventsRequest::GetClassData() const {
  return UploadEventsRequest_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UploadEventsRequest::GetClassData() const {
  return UploadEventsRequest_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const UploadEventsRequest::ParseTableT_
    UploadEventsRequest::_table_ =
        UploadEventsRequest::InternalGenerateParseTable_(UploadEventsRequest_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void UploadEventsRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:chrome.cros.reporting.proto.UploadEventsRequest)
  ::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)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.events_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.device_ != nullptr);
      _impl_.device_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.browser_ != nullptr);
      _impl_.browser_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.profile_ != nullptr);
      _impl_.profile_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.extensions_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .chrome.cros.reporting.proto.Event events = 3;
  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(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // .chrome.cros.reporting.proto.Device device = 4;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.device_, this_._impl_.device_->GetCachedSize(), target,
        stream);
  }

  // .chrome.cros.reporting.proto.Browser browser = 5;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        5, *this_._impl_.browser_, this_._impl_.browser_->GetCachedSize(), target,
        stream);
  }

  // .chrome.cros.reporting.proto.Profile profile = 6;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        6, *this_._impl_.profile_, this_._impl_.profile_->GetCachedSize(), target,
        stream);
  }

  // repeated .google3_protos.Any extensions = 100;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_extensions_size());
         i < n; i++) {
      const auto& repfield = this_._internal_extensions().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              100, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:chrome.cros.reporting.proto.UploadEventsRequest)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    // repeated .chrome.cros.reporting.proto.Event events = 3;
    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);
      }
    }
    // .chrome.cros.reporting.proto.Device device = 4;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.device_);
    }
    // .chrome.cros.reporting.proto.Browser browser = 5;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.browser_);
    }
    // .chrome.cros.reporting.proto.Profile profile = 6;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.profile_);
    }
    // repeated .google3_protos.Any extensions = 100;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 2UL * this_._internal_extensions_size();
      for (const auto& msg : this_._internal_extensions()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 UploadEventsRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UploadEventsRequest*>(&to_msg);
  auto& from = static_cast<const UploadEventsRequest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:chrome.cros.reporting.proto.UploadEventsRequest)
  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->_internal_mutable_events()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_events());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.device_ != nullptr);
      if (_this->_impl_.device_ == nullptr) {
        _this->_impl_.device_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.device_);
      } else {
        _this->_impl_.device_->MergeFrom(*from._impl_.device_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.browser_ != nullptr);
      if (_this->_impl_.browser_ == nullptr) {
        _this->_impl_.browser_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.browser_);
      } else {
        _this->_impl_.browser_->MergeFrom(*from._impl_.browser_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.profile_ != nullptr);
      if (_this->_impl_.profile_ == nullptr) {
        _this->_impl_.profile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.profile_);
      } else {
        _this->_impl_.profile_->MergeFrom(*from._impl_.profile_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_mutable_extensions()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_extensions());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void UploadEventsRequest::InternalSwap(UploadEventsRequest* 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(UploadEventsRequest, _impl_.profile_)
      + sizeof(UploadEventsRequest::_impl_.profile_)
      - PROTOBUF_FIELD_OFFSET(UploadEventsRequest, _impl_.device_)>(
          reinterpret_cast<char*>(&_impl_.device_),
          reinterpret_cast<char*>(&other->_impl_.device_));
  _impl_.extensions_.InternalSwap(&other->_impl_.extensions_);
}

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

UploadEventsResponse::UploadEventsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, UploadEventsResponse_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:chrome.cros.reporting.proto.UploadEventsResponse)
}
PROTOBUF_NDEBUG_INLINE UploadEventsResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::chrome::cros::reporting::proto::UploadEventsResponse& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        uploaded_event_ids_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::chrome::cros::reporting::proto::UploadEventsResponse,
              PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.uploaded_event_ids_)>()
          , from.uploaded_event_ids_
        }
        ,
        failed_uploads_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::chrome::cros::reporting::proto::UploadEventsResponse,
              PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.failed_uploads_)>()
          , from.failed_uploads_
        }
        ,
        permanent_failed_uploads_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::chrome::cros::reporting::proto::UploadEventsResponse,
              PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.permanent_failed_uploads_)>()
          , from.permanent_failed_uploads_
        }
     {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  UploadEventsResponse* 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:chrome.cros.reporting.proto.UploadEventsResponse)
}
PROTOBUF_NDEBUG_INLINE UploadEventsResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        uploaded_event_ids_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsResponse,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.uploaded_event_ids_)>()
         }
        ,
        failed_uploads_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsResponse,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.failed_uploads_)>()
         }
        ,
        permanent_failed_uploads_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::chrome::cros::reporting::proto::UploadEventsResponse,
            PROTOBUF_FIELD_OFFSET(::chrome::cros::reporting::proto::UploadEventsResponse, _impl_.permanent_failed_uploads_)>()
         }
     {}

inline void UploadEventsResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
UploadEventsResponse::~UploadEventsResponse() {
  // @@protoc_insertion_point(destructor:chrome.cros.reporting.proto.UploadEventsResponse)
  SharedDtor(*this);
}
inline void UploadEventsResponse::SharedDtor(MessageLite& self) {
  UploadEventsResponse& this_ = static_cast<UploadEventsResponse&>(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 UploadEventsResponse_class_data_ =
    UploadEventsResponse::InternalGenerateClassData_(UploadEventsResponse_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.uploaded_event_ids_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.failed_uploads_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.permanent_failed_uploads_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated string uploaded_event_ids = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_uploaded_event_ids_size(); i < n; ++i) {
      const auto& s = this_._internal_uploaded_event_ids().Get(i);
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "chrome.cros.reporting.proto.UploadEventsResponse.uploaded_event_ids");
      target = stream->WriteString(1, s, target);
    }
  }

  // repeated .chrome.cros.reporting.proto.UploadFailure failed_uploads = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_failed_uploads_size());
         i < n; i++) {
      const auto& repfield = this_._internal_failed_uploads().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .chrome.cros.reporting.proto.UploadFailure permanent_failed_uploads = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_permanent_failed_uploads_size());
         i < n; i++) {
      const auto& repfield = this_._internal_permanent_failed_uploads().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:chrome.cros.reporting.proto.UploadEventsResponse)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // repeated string uploaded_event_ids = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_uploaded_event_ids().size());
      for (int i = 0, n = this_._internal_uploaded_event_ids().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_uploaded_event_ids().Get(i));
      }
    }
    // repeated .chrome.cros.reporting.proto.UploadFailure failed_uploads = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_failed_uploads_size();
      for (const auto& msg : this_._internal_failed_uploads()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .chrome.cros.reporting.proto.UploadFailure permanent_failed_uploads = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1UL * this_._internal_permanent_failed_uploads_size();
      for (const auto& msg : this_._internal_permanent_failed_uploads()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 UploadEventsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UploadEventsResponse*>(&to_msg);
  auto& from = static_cast<const UploadEventsResponse&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:chrome.cros.reporting.proto.UploadEventsResponse)
  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_uploaded_event_ids()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_uploaded_event_ids());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_failed_uploads()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_failed_uploads());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_permanent_failed_uploads()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_permanent_failed_uploads());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void UploadEventsResponse::InternalSwap(UploadEventsResponse* 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_.uploaded_event_ids_.InternalSwap(&other->_impl_.uploaded_event_ids_);
  _impl_.failed_uploads_.InternalSwap(&other->_impl_.failed_uploads_);
  _impl_.permanent_failed_uploads_.InternalSwap(&other->_impl_.permanent_failed_uploads_);
}

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

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

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

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

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

inline void UploadFailure::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.status_ = {};
}
UploadFailure::~UploadFailure() {
  // @@protoc_insertion_point(destructor:chrome.cros.reporting.proto.UploadFailure)
  SharedDtor(*this);
}
inline void UploadFailure::SharedDtor(MessageLite& self) {
  UploadFailure& this_ = static_cast<UploadFailure&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.event_id_.Destroy();
  this_._impl_.error_message_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UploadFailure_class_data_ =
    UploadFailure::InternalGenerateClassData_(UploadFailure_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UploadFailure::GetClassData() const {
  return UploadFailure_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UploadFailure::GetClassData() const {
  return UploadFailure_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const UploadFailure::ParseTableT_
    UploadFailure::_table_ =
        UploadFailure::InternalGenerateParseTable_(UploadFailure_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void UploadFailure::Clear() {
// @@protoc_insertion_point(message_clear_start:chrome.cros.reporting.proto.UploadFailure)
  ::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_.event_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.error_message_.ClearNonDefaultToEmpty();
    }
  }
  _impl_.status_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // .google3_protos.Code status = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_status() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          2, this_._internal_status(), target);
    }
  }

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

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:chrome.cros.reporting.proto.UploadFailure)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // string event_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_event_id().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_event_id());
      }
    }
    // string error_message = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_error_message().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_error_message());
      }
    }
    // .google3_protos.Code status = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_status() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
      }
    }
  }
  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 UploadFailure::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UploadFailure*>(&to_msg);
  auto& from = static_cast<const UploadFailure&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:chrome.cros.reporting.proto.UploadFailure)
  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)) {
      if (!from._internal_event_id().empty()) {
        _this->_internal_set_event_id(from._internal_event_id());
      } else {
        if (_this->_impl_.event_id_.IsDefault()) {
          _this->_internal_set_event_id("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_error_message().empty()) {
        _this->_internal_set_error_message(from._internal_error_message());
      } else {
        if (_this->_impl_.error_message_.IsDefault()) {
          _this->_internal_set_error_message("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_status() != 0) {
        _this->_impl_.status_ = from._impl_.status_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void UploadFailure::InternalSwap(UploadFailure* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.event_id_, &other->_impl_.event_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_message_, &other->_impl_.error_message_, arena);
  swap(_impl_.status_, other->_impl_.status_);
}

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