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

#include "components/download/database/proto/download_entry.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 download_pb {
class UkmInfo::_Internal {
 public:
  using HasBits = decltype(::std::declval<UkmInfo>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(UkmInfo, _impl_._has_bits_);
};

constexpr UkmInfo::ParseTableT_ UkmInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UkmInfo, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      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<::download_pb::UkmInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 ukm_download_id = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 0, 0,
        PROTOBUF_FIELD_OFFSET(UkmInfo, _impl_.ukm_download_id_)}},
      // optional .download_pb.DownloadSource download_source = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 1, 12,
        PROTOBUF_FIELD_OFFSET(UkmInfo, _impl_.download_source_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .download_pb.DownloadSource download_source = 1;
      {PROTOBUF_FIELD_OFFSET(UkmInfo, _impl_.download_source_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int64 ukm_download_id = 2;
      {PROTOBUF_FIELD_OFFSET(UkmInfo, _impl_.ukm_download_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        {0, 12},
    }},
    {{
    }},
  };
}


inline constexpr UkmInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        ukm_download_id_{::int64_t{0}},
        download_source_{static_cast< ::download_pb::DownloadSource >(0)} {}

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

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

constexpr ReceivedSlice::ParseTableT_ ReceivedSlice::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ReceivedSlice, _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<::download_pb::ReceivedSlice>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 offset = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(ReceivedSlice, _impl_.offset_)}},
      // optional int64 received_bytes = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(ReceivedSlice, _impl_.received_bytes_)}},
      // optional bool finished = 3;
      {::_pbi::TcParser::FastV8S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(ReceivedSlice, _impl_.finished_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 offset = 1;
      {PROTOBUF_FIELD_OFFSET(ReceivedSlice, _impl_.offset_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 received_bytes = 2;
      {PROTOBUF_FIELD_OFFSET(ReceivedSlice, _impl_.received_bytes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional bool finished = 3;
      {PROTOBUF_FIELD_OFFSET(ReceivedSlice, _impl_.finished_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr ReceivedSlice::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        offset_{::int64_t{0}},
        received_bytes_{::int64_t{0}},
        finished_{false} {}

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

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

constexpr HttpRequestHeader::ParseTableT_ HttpRequestHeader::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(HttpRequestHeader, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::download_pb::HttpRequestHeader>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string value = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(HttpRequestHeader, _impl_.value_)}},
      // optional string key = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(HttpRequestHeader, _impl_.key_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string key = 1;
      {PROTOBUF_FIELD_OFFSET(HttpRequestHeader, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string value = 2;
      {PROTOBUF_FIELD_OFFSET(HttpRequestHeader, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr HttpRequestHeader::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        value_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

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

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

constexpr DownloadSchedule::ParseTableT_ DownloadSchedule::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DownloadSchedule, _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<::download_pb::DownloadSchedule>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 start_time = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(DownloadSchedule, _impl_.start_time_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 start_time = 1;
      {PROTOBUF_FIELD_OFFSET(DownloadSchedule, _impl_.start_time_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr DownloadSchedule::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        start_time_{::int64_t{0}} {}

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

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

constexpr InProgressInfo::ParseTableT_ InProgressInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_._has_bits_),
      0, // no _extensions_
      35, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      268435456,  // skipmap
      offsetof(ParseTableT_, field_entries),
      33,  // 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<::download_pb::InProgressInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated string url_chain = 1;
      {::_pbi::TcParser::FastBR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.url_chain_)}},
      // optional string referrer_url = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 3, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.referrer_url_)}},
      // optional string site_url = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 4, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.site_url_)}},
      // optional string tab_url = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 5, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.tab_url_)}},
      // optional string tab_referrer_url = 5;
      {::_pbi::TcParser::FastBS1,
       {42, 6, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.tab_referrer_url_)}},
      // optional bool fetch_error_body = 6;
      {::_pbi::TcParser::FastV8S1,
       {48, 19, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.fetch_error_body_)}},
      // repeated .download_pb.HttpRequestHeader request_headers = 7;
      {::_pbi::TcParser::FastMtR1,
       {58, 1, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.request_headers_)}},
      // optional string etag = 8;
      {::_pbi::TcParser::FastBS1,
       {66, 7, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.etag_)}},
      // optional string last_modified = 9;
      {::_pbi::TcParser::FastBS1,
       {74, 8, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.last_modified_)}},
      // optional int64 total_bytes = 10;
      {::_pbi::TcParser::FastV64S1,
       {80, 15, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.total_bytes_)}},
      // optional string mime_type = 11;
      {::_pbi::TcParser::FastBS1,
       {90, 9, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.mime_type_)}},
      // optional string original_mime_type = 12;
      {::_pbi::TcParser::FastBS1,
       {98, 10, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.original_mime_type_)}},
      // optional bytes current_path = 13;
      {::_pbi::TcParser::FastBS1,
       {106, 11, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.current_path_)}},
      // optional bytes target_path = 14;
      {::_pbi::TcParser::FastBS1,
       {114, 12, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.target_path_)}},
      // optional int64 received_bytes = 15;
      {::_pbi::TcParser::FastV64S1,
       {120, 16, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.received_bytes_)}},
      // optional int64 start_time = 16;
      {::_pbi::TcParser::FastV64S2,
       {384, 17, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.start_time_)}},
      // optional int64 end_time = 17;
      {::_pbi::TcParser::FastV64S2,
       {392, 18, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.end_time_)}},
      // repeated .download_pb.ReceivedSlice received_slices = 18;
      {::_pbi::TcParser::FastMtR2,
       {402, 2, 1,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.received_slices_)}},
      // optional string hash = 19;
      {::_pbi::TcParser::FastBS2,
       {410, 13, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.hash_)}},
      // optional bool transient = 20;
      {::_pbi::TcParser::FastV8S2,
       {416, 20, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.transient_)}},
      // optional int32 state = 21;
      {::_pbi::TcParser::FastV32S2,
       {424, 23, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.state_)}},
      // optional int32 danger_type = 22;
      {::_pbi::TcParser::FastV32S2,
       {432, 24, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.danger_type_)}},
      // optional int32 interrupt_reason = 23;
      {::_pbi::TcParser::FastV32S2,
       {440, 25, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.interrupt_reason_)}},
      // optional bool paused = 24;
      {::_pbi::TcParser::FastV8S2,
       {448, 21, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.paused_)}},
      // optional bool metered = 25;
      {::_pbi::TcParser::FastV8S2,
       {456, 22, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.metered_)}},
      // optional int64 bytes_wasted = 26;
      {::_pbi::TcParser::FastV64S2,
       {464, 26, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.bytes_wasted_)}},
      // optional int32 auto_resume_count = 27;
      {::_pbi::TcParser::FastV32S2,
       {472, 27, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.auto_resume_count_)}},
      // optional .download_pb.DownloadSchedule download_schedule = 28;
      {::_pbi::TcParser::FastMtS2,
       {482, 14, 2,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.download_schedule_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional int32 credentials_mode = 30;
      {::_pbi::TcParser::FastV32S2,
       {496, 28, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.credentials_mode_)}},
      // optional int64 range_request_from = 31;
      {::_pbi::TcParser::FastV64S2,
       {504, 29, 0,
        PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.range_request_from_)}},
    }}, {{
      33, 0, 1,
      65530, 31,
      65535, 65535
    }}, {{
      // repeated string url_chain = 1;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.url_chain_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // optional string referrer_url = 2;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.referrer_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string site_url = 3;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.site_url_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string tab_url = 4;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.tab_url_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string tab_referrer_url = 5;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.tab_referrer_url_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool fetch_error_body = 6;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.fetch_error_body_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // repeated .download_pb.HttpRequestHeader request_headers = 7;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.request_headers_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string etag = 8;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.etag_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string last_modified = 9;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.last_modified_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 total_bytes = 10;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.total_bytes_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string mime_type = 11;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.mime_type_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string original_mime_type = 12;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.original_mime_type_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bytes current_path = 13;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.current_path_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bytes target_path = 14;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.target_path_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 received_bytes = 15;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.received_bytes_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 start_time = 16;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.start_time_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 end_time = 17;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.end_time_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // repeated .download_pb.ReceivedSlice received_slices = 18;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.received_slices_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string hash = 19;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.hash_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool transient = 20;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.transient_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int32 state = 21;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.state_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 danger_type = 22;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.danger_type_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 interrupt_reason = 23;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.interrupt_reason_), _Internal::kHasBitsOffset + 25, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional bool paused = 24;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.paused_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool metered = 25;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.metered_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int64 bytes_wasted = 26;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.bytes_wasted_), _Internal::kHasBitsOffset + 26, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int32 auto_resume_count = 27;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.auto_resume_count_), _Internal::kHasBitsOffset + 27, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional .download_pb.DownloadSchedule download_schedule = 28;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.download_schedule_), _Internal::kHasBitsOffset + 14, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int32 credentials_mode = 30;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.credentials_mode_), _Internal::kHasBitsOffset + 28, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int64 range_request_from = 31;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.range_request_from_), _Internal::kHasBitsOffset + 29, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 range_request_to = 32;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.range_request_to_), _Internal::kHasBitsOffset + 31, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string serialized_embedder_download_data = 33;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.serialized_embedder_download_data_), _Internal::kHasBitsOffset + 30, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool fetched_via_service_worker = 35;
      {PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.fetched_via_service_worker_), _Internal::kHasBitsOffset + 32, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::HttpRequestHeader>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::HttpRequestHeader_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::ReceivedSlice>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::ReceivedSlice_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::DownloadSchedule>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::DownloadSchedule_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr InProgressInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        url_chain_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::InProgressInfo,
            PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.url_chain_)>()
         }
        ,
        request_headers_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::InProgressInfo,
            PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.request_headers_)>()
         }
        ,
        received_slices_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::InProgressInfo,
            PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.received_slices_)>()
         }
        ,
        referrer_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        site_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        tab_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        tab_referrer_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        etag_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        last_modified_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        mime_type_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        original_mime_type_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        current_path_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        target_path_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        hash_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        download_schedule_{nullptr},
        total_bytes_{::int64_t{0}},
        received_bytes_{::int64_t{0}},
        start_time_{::int64_t{0}},
        end_time_{::int64_t{0}},
        fetch_error_body_{false},
        transient_{false},
        paused_{false},
        metered_{false},
        state_{0},
        danger_type_{0},
        interrupt_reason_{0},
        bytes_wasted_{::int64_t{0}},
        auto_resume_count_{0},
        credentials_mode_{0},
        range_request_from_{::int64_t{0}},
        serialized_embedder_download_data_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        range_request_to_{::int64_t{0}},
        fetched_via_service_worker_{false} {}

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

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

constexpr DownloadEntry::ParseTableT_ DownloadEntry::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // 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<::download_pb::DownloadEntry>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string guid = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.guid_)}},
      // optional string request_origin = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.request_origin_)}},
      // optional .download_pb.DownloadSource download_source = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 4, 12,
        PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.download_source_)}},
      // optional int64 ukm_download_id = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.ukm_download_id_)}},
      // optional int64 bytes_wasted = 5;
      {::_pbi::TcParser::FastV64S1,
       {40, 6, 0,
        PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.bytes_wasted_)}},
      // optional bool fetch_error_body = 6;
      {::_pbi::TcParser::FastV8S1,
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.fetch_error_body_)}},
      // repeated .download_pb.HttpRequestHeader request_headers = 7;
      {::_pbi::TcParser::FastMtR1,
       {58, 0, 0,
        PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.request_headers_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string guid = 1;
      {PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.guid_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string request_origin = 2;
      {PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.request_origin_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .download_pb.DownloadSource download_source = 3;
      {PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.download_source_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int64 ukm_download_id = 4;
      {PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.ukm_download_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 bytes_wasted = 5;
      {PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.bytes_wasted_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional bool fetch_error_body = 6;
      {PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.fetch_error_body_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // repeated .download_pb.HttpRequestHeader request_headers = 7;
      {PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.request_headers_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::HttpRequestHeader>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::HttpRequestHeader_globals_},
        #endif
        {0, 12},
    }},
    {{
    }},
  };
}


inline constexpr DownloadEntry::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        request_headers_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::DownloadEntry,
            PROTOBUF_FIELD_OFFSET(::download_pb::DownloadEntry, _impl_.request_headers_)>()
         }
        ,
        guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        request_origin_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        ukm_download_id_{::int64_t{0}},
        download_source_{static_cast< ::download_pb::DownloadSource >(0)},
        fetch_error_body_{false},
        bytes_wasted_{::int64_t{0}} {}

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

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

constexpr DownloadInfo::ParseTableT_ DownloadInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // 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<::download_pb::DownloadInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .download_pb.InProgressInfo in_progress_info = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 2, 1,
        PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.in_progress_info_)}},
      // optional string guid = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.guid_)}},
      // optional int32 id = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 3, 0,
        PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.id_)}},
      // optional .download_pb.UkmInfo ukm_info = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.ukm_info_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string guid = 1;
      {PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.guid_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int32 id = 2;
      {PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional .download_pb.UkmInfo ukm_info = 3;
      {PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.ukm_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .download_pb.InProgressInfo in_progress_info = 4;
      {PROTOBUF_FIELD_OFFSET(DownloadInfo, _impl_.in_progress_info_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::UkmInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::UkmInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::InProgressInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::InProgressInfo_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr DownloadInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        ukm_info_{nullptr},
        in_progress_info_{nullptr},
        id_{0} {}

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

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

constexpr DownloadEntries::ParseTableT_ DownloadEntries::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DownloadEntries, _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
      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<::download_pb::DownloadEntries>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .download_pb.DownloadEntry entries = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(DownloadEntries, _impl_.entries_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .download_pb.DownloadEntry entries = 1;
      {PROTOBUF_FIELD_OFFSET(DownloadEntries, _impl_.entries_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::DownloadEntry>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::DownloadEntry_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST DownloadEntriesGlobalsTypeInternal DownloadEntries_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* DownloadEntries_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return DownloadEntries_globals_.GetClassData();
#else
  return DownloadEntries_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class DownloadDBEntry::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::download_pb::DownloadDBEntry, _impl_._oneof_case_);
};

constexpr DownloadDBEntry::ParseTableT_ DownloadDBEntry::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(DownloadDBEntry,
                            _impl_._cached_size_),  // no hasbits
      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
      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<::download_pb::DownloadDBEntry>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .download_pb.DownloadInfo download_info = 1;
      {PROTOBUF_FIELD_OFFSET(DownloadDBEntry, _impl_.entry_.download_info_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::download_pb::DownloadInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::download_pb::DownloadInfo_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr DownloadDBEntry::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : entry_{},
        _cached_size_{0},
        _oneof_case_{} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST DownloadDBEntryGlobalsTypeInternal DownloadDBEntry_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* DownloadDBEntry_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return DownloadDBEntry_globals_.GetClassData();
#else
  return DownloadDBEntry_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace download_pb
namespace download_pb {
// ===================================================================

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  HttpRequestHeader* 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:download_pb.HttpRequestHeader)
}
PROTOBUF_NDEBUG_INLINE HttpRequestHeader::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        key_(arena),
        value_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite HttpRequestHeader_class_data_ =
    HttpRequestHeader::InternalGenerateClassData_(HttpRequestHeader_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HttpRequestHeader::GetClassData() const {
  return HttpRequestHeader_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HttpRequestHeader::GetClassData() const {
  return HttpRequestHeader_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const HttpRequestHeader::ParseTableT_
    HttpRequestHeader::_table_ =
        HttpRequestHeader::InternalGenerateParseTable_(HttpRequestHeader_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void HttpRequestHeader::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.HttpRequestHeader)
  ::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_.key_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.value_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string key = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_key();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional string value = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_value();
    target = stream->WriteStringMaybeAliased(2, _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:download_pb.HttpRequestHeader)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // optional string key = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_key());
    }
    // optional string value = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_value());
    }
  }
  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 HttpRequestHeader::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<HttpRequestHeader*>(&to_msg);
  auto& from = static_cast<const HttpRequestHeader&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.HttpRequestHeader)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void HttpRequestHeader::InternalSwap(HttpRequestHeader* 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_.key_, &other->_impl_.key_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena);
}

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

ReceivedSlice::ReceivedSlice(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ReceivedSlice_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:download_pb.ReceivedSlice)
}
ReceivedSlice::ReceivedSlice(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ReceivedSlice& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ReceivedSlice_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 ReceivedSlice::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ReceivedSlice::GetClassData() const {
  return ReceivedSlice_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ReceivedSlice::GetClassData() const {
  return ReceivedSlice_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ReceivedSlice::ParseTableT_
    ReceivedSlice::_table_ =
        ReceivedSlice::InternalGenerateParseTable_(ReceivedSlice_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void ReceivedSlice::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.ReceivedSlice)
  ::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)) {
    ::memset(&_impl_.offset_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.finished_) -
        reinterpret_cast<char*>(&_impl_.offset_)) + sizeof(_impl_.finished_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int64 offset = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
            stream, this_._internal_offset(), target);
  }

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

  // optional bool finished = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_finished(), 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:download_pb.ReceivedSlice)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ReceivedSlice::ByteSizeLong(const MessageLite& base) {
  const ReceivedSlice& this_ = static_cast<const ReceivedSlice&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ReceivedSlice::ByteSizeLong() const {
  const ReceivedSlice& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:download_pb.ReceivedSlice)
  ::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>(0x00000004U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // optional int64 offset = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_offset());
    }
    // optional int64 received_bytes = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_received_bytes());
    }
  }
  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 ReceivedSlice::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ReceivedSlice*>(&to_msg);
  auto& from = static_cast<const ReceivedSlice&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.ReceivedSlice)
  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->_impl_.offset_ = from._impl_.offset_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.received_bytes_ = from._impl_.received_bytes_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.finished_ = from._impl_.finished_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void ReceivedSlice::InternalSwap(ReceivedSlice* 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(ReceivedSlice, _impl_.finished_)
      + sizeof(ReceivedSlice::_impl_.finished_)
      - PROTOBUF_FIELD_OFFSET(ReceivedSlice, _impl_.offset_)>(
          reinterpret_cast<char*>(&_impl_.offset_),
          reinterpret_cast<char*>(&other->_impl_.offset_));
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite DownloadEntry_class_data_ =
    DownloadEntry::InternalGenerateClassData_(DownloadEntry_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadEntry::GetClassData() const {
  return DownloadEntry_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadEntry::GetClassData() const {
  return DownloadEntry_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const DownloadEntry::ParseTableT_
    DownloadEntry::_table_ =
        DownloadEntry::InternalGenerateParseTable_(DownloadEntry_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void DownloadEntry::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.DownloadEntry)
  ::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_.request_headers_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.guid_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.request_origin_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000078U)) {
    ::memset(&_impl_.ukm_download_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.bytes_wasted_) -
        reinterpret_cast<char*>(&_impl_.ukm_download_id_)) + sizeof(_impl_.bytes_wasted_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string guid = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_guid();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional string request_origin = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_request_origin();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // optional .download_pb.DownloadSource download_source = 3;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_download_source(), target);
  }

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

  // optional int64 bytes_wasted = 5;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
            stream, this_._internal_bytes_wasted(), target);
  }

  // optional bool fetch_error_body = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        6, this_._internal_fetch_error_body(), target);
  }

  // repeated .download_pb.HttpRequestHeader request_headers = 7;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_request_headers_size());
         i < n; i++) {
      const auto& repfield = this_._internal_request_headers().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              7, 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:download_pb.DownloadEntry)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t DownloadEntry::ByteSizeLong(const MessageLite& base) {
  const DownloadEntry& this_ = static_cast<const DownloadEntry&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t DownloadEntry::ByteSizeLong() const {
  const DownloadEntry& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:download_pb.DownloadEntry)
  ::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>(0x00000020U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000005fU)) {
    // repeated .download_pb.HttpRequestHeader request_headers = 7;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_request_headers_size();
      for (const auto& msg : this_._internal_request_headers()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string guid = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_guid());
    }
    // optional string request_origin = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_request_origin());
    }
    // optional int64 ukm_download_id = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_ukm_download_id());
    }
    // optional .download_pb.DownloadSource download_source = 3;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_download_source());
    }
    // optional int64 bytes_wasted = 5;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_bytes_wasted());
    }
  }
  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 DownloadEntry::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DownloadEntry*>(&to_msg);
  auto& from = static_cast<const DownloadEntry&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.DownloadEntry)
  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, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_request_headers()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_request_headers());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_guid(from._internal_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_request_origin(from._internal_request_origin());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.ukm_download_id_ = from._impl_.ukm_download_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.download_source_ = from._impl_.download_source_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.fetch_error_body_ = from._impl_.fetch_error_body_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.bytes_wasted_ = from._impl_.bytes_wasted_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void DownloadEntry::InternalSwap(DownloadEntry* 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]);
  _impl_.request_headers_.InternalSwap(&other->_impl_.request_headers_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.guid_, &other->_impl_.guid_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_origin_, &other->_impl_.request_origin_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.bytes_wasted_)
      + sizeof(DownloadEntry::_impl_.bytes_wasted_)
      - PROTOBUF_FIELD_OFFSET(DownloadEntry, _impl_.ukm_download_id_)>(
          reinterpret_cast<char*>(&_impl_.ukm_download_id_),
          reinterpret_cast<char*>(&other->_impl_.ukm_download_id_));
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  DownloadEntries* 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:download_pb.DownloadEntries)
}
PROTOBUF_NDEBUG_INLINE DownloadEntries::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        entries_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::DownloadEntries,
            PROTOBUF_FIELD_OFFSET(::download_pb::DownloadEntries, _impl_.entries_)>()
         }
     {}

inline void DownloadEntries::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
DownloadEntries::~DownloadEntries() {
  // @@protoc_insertion_point(destructor:download_pb.DownloadEntries)
  SharedDtor(*this);
}
inline void DownloadEntries::SharedDtor(MessageLite& self) {
  DownloadEntries& this_ = static_cast<DownloadEntries&>(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 DownloadEntries_class_data_ =
    DownloadEntries::InternalGenerateClassData_(DownloadEntries_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadEntries::GetClassData() const {
  return DownloadEntries_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadEntries::GetClassData() const {
  return DownloadEntries_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const DownloadEntries::ParseTableT_
    DownloadEntries::_table_ =
        DownloadEntries::InternalGenerateParseTable_(DownloadEntries_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void DownloadEntries::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.DownloadEntries)
  ::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_.entries_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .download_pb.DownloadEntry entries = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_entries_size());
         i < n; i++) {
      const auto& repfield = this_._internal_entries().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, 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:download_pb.DownloadEntries)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t DownloadEntries::ByteSizeLong(const MessageLite& base) {
  const DownloadEntries& this_ = static_cast<const DownloadEntries&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t DownloadEntries::ByteSizeLong() const {
  const DownloadEntries& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:download_pb.DownloadEntries)
  ::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 .download_pb.DownloadEntry entries = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_entries_size();
      for (const auto& msg : this_._internal_entries()) {
        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 DownloadEntries::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DownloadEntries*>(&to_msg);
  auto& from = static_cast<const DownloadEntries&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.DownloadEntries)
  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_entries()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_entries());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

UkmInfo::UkmInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, UkmInfo_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:download_pb.UkmInfo)
}
UkmInfo::UkmInfo(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UkmInfo& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, UkmInfo_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 UkmInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UkmInfo::GetClassData() const {
  return UkmInfo_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
UkmInfo::GetClassData() const {
  return UkmInfo_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const UkmInfo::ParseTableT_
    UkmInfo::_table_ =
        UkmInfo::InternalGenerateParseTable_(UkmInfo_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void UkmInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.UkmInfo)
  ::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)) {
    ::memset(&_impl_.ukm_download_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.download_source_) -
        reinterpret_cast<char*>(&_impl_.ukm_download_id_)) + sizeof(_impl_.download_source_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .download_pb.DownloadSource download_source = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_download_source(), target);
  }

  // optional int64 ukm_download_id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_ukm_download_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:download_pb.UkmInfo)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // optional int64 ukm_download_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_ukm_download_id());
    }
    // optional .download_pb.DownloadSource download_source = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_download_source());
    }
  }
  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 UkmInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UkmInfo*>(&to_msg);
  auto& from = static_cast<const UkmInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.UkmInfo)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void UkmInfo::InternalSwap(UkmInfo* 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(UkmInfo, _impl_.download_source_)
      + sizeof(UkmInfo::_impl_.download_source_)
      - PROTOBUF_FIELD_OFFSET(UkmInfo, _impl_.ukm_download_id_)>(
          reinterpret_cast<char*>(&_impl_.ukm_download_id_),
          reinterpret_cast<char*>(&other->_impl_.ukm_download_id_));
}

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

DownloadSchedule::DownloadSchedule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, DownloadSchedule_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:download_pb.DownloadSchedule)
}
DownloadSchedule::DownloadSchedule(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DownloadSchedule& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, DownloadSchedule_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 DownloadSchedule::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void DownloadSchedule::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.start_time_ = {};
}
DownloadSchedule::~DownloadSchedule() {
  // @@protoc_insertion_point(destructor:download_pb.DownloadSchedule)
  SharedDtor(*this);
}
inline void DownloadSchedule::SharedDtor(MessageLite& self) {
  DownloadSchedule& this_ = static_cast<DownloadSchedule&>(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 DownloadSchedule_class_data_ =
    DownloadSchedule::InternalGenerateClassData_(DownloadSchedule_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadSchedule::GetClassData() const {
  return DownloadSchedule_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadSchedule::GetClassData() const {
  return DownloadSchedule_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const DownloadSchedule::ParseTableT_
    DownloadSchedule::_table_ =
        DownloadSchedule::InternalGenerateParseTable_(DownloadSchedule_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void DownloadSchedule::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.DownloadSchedule)
  ::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_.start_time_ = ::int64_t{0};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int64 start_time = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
            stream, this_._internal_start_time(), 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:download_pb.DownloadSchedule)
  return target;
}

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

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

   {
    // optional int64 start_time = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_start_time());
    }
  }
  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 DownloadSchedule::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DownloadSchedule*>(&to_msg);
  auto& from = static_cast<const DownloadSchedule&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.DownloadSchedule)
  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_.start_time_ = from._impl_.start_time_;
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void DownloadSchedule::InternalSwap(DownloadSchedule* 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_.start_time_, other->_impl_.start_time_);
}

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

InProgressInfo::InProgressInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, InProgressInfo_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:download_pb.InProgressInfo)
}
PROTOBUF_NDEBUG_INLINE InProgressInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::download_pb::InProgressInfo& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        url_chain_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::download_pb::InProgressInfo,
              PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.url_chain_)>()
          , from.url_chain_
        }
        ,
        request_headers_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::download_pb::InProgressInfo,
              PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.request_headers_)>()
          , from.request_headers_
        }
        ,
        received_slices_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::download_pb::InProgressInfo,
              PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.received_slices_)>()
          , from.received_slices_
        }
        ,
        referrer_url_(arena, from.referrer_url_),
        site_url_(arena, from.site_url_),
        tab_url_(arena, from.tab_url_),
        tab_referrer_url_(arena, from.tab_referrer_url_),
        etag_(arena, from.etag_),
        last_modified_(arena, from.last_modified_),
        mime_type_(arena, from.mime_type_),
        original_mime_type_(arena, from.original_mime_type_),
        current_path_(arena, from.current_path_),
        target_path_(arena, from.target_path_),
        hash_(arena, from.hash_),
        serialized_embedder_download_data_(arena, from.serialized_embedder_download_data_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  InProgressInfo* 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_.download_schedule_ = (CheckHasBit(cached_has_bits, 0x00004000U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.download_schedule_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, total_bytes_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, total_bytes_),
           offsetof(Impl_, range_request_from_) -
               offsetof(Impl_, total_bytes_) +
               sizeof(Impl_::range_request_from_));
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, range_request_to_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, range_request_to_),
           offsetof(Impl_, fetched_via_service_worker_) -
               offsetof(Impl_, range_request_to_) +
               sizeof(Impl_::fetched_via_service_worker_));

  // @@protoc_insertion_point(copy_constructor:download_pb.InProgressInfo)
}
PROTOBUF_NDEBUG_INLINE InProgressInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        url_chain_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::InProgressInfo,
            PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.url_chain_)>()
         }
        ,
        request_headers_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::InProgressInfo,
            PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.request_headers_)>()
         }
        ,
        received_slices_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::download_pb::InProgressInfo,
            PROTOBUF_FIELD_OFFSET(::download_pb::InProgressInfo, _impl_.received_slices_)>()
         }
        ,
        referrer_url_(arena),
        site_url_(arena),
        tab_url_(arena),
        tab_referrer_url_(arena),
        etag_(arena),
        last_modified_(arena),
        mime_type_(arena),
        original_mime_type_(arena),
        current_path_(arena),
        target_path_(arena),
        hash_(arena),
        serialized_embedder_download_data_(arena) {}

inline void InProgressInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, download_schedule_),
           0,
           offsetof(Impl_, range_request_from_) -
               offsetof(Impl_, download_schedule_) +
               sizeof(Impl_::range_request_from_));
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, range_request_to_),
           0,
           offsetof(Impl_, fetched_via_service_worker_) -
               offsetof(Impl_, range_request_to_) +
               sizeof(Impl_::fetched_via_service_worker_));
}
InProgressInfo::~InProgressInfo() {
  // @@protoc_insertion_point(destructor:download_pb.InProgressInfo)
  SharedDtor(*this);
}
inline void InProgressInfo::SharedDtor(MessageLite& self) {
  InProgressInfo& this_ = static_cast<InProgressInfo&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.referrer_url_.Destroy();
  this_._impl_.site_url_.Destroy();
  this_._impl_.tab_url_.Destroy();
  this_._impl_.tab_referrer_url_.Destroy();
  this_._impl_.etag_.Destroy();
  this_._impl_.last_modified_.Destroy();
  this_._impl_.mime_type_.Destroy();
  this_._impl_.original_mime_type_.Destroy();
  this_._impl_.current_path_.Destroy();
  this_._impl_.target_path_.Destroy();
  this_._impl_.hash_.Destroy();
  delete this_._impl_.download_schedule_;
  this_._impl_.serialized_embedder_download_data_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite InProgressInfo_class_data_ =
    InProgressInfo::InternalGenerateClassData_(InProgressInfo_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
InProgressInfo::GetClassData() const {
  return InProgressInfo_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
InProgressInfo::GetClassData() const {
  return InProgressInfo_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const InProgressInfo::ParseTableT_
    InProgressInfo::_table_ =
        InProgressInfo::InternalGenerateParseTable_(InProgressInfo_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void InProgressInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.InProgressInfo)
  ::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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.url_chain_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.request_headers_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.received_slices_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.referrer_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.site_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.tab_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.tab_referrer_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _impl_.etag_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _impl_.last_modified_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _impl_.mime_type_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _impl_.original_mime_type_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _impl_.current_path_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _impl_.target_path_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _impl_.hash_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      ABSL_DCHECK(_impl_.download_schedule_ != nullptr);
      _impl_.download_schedule_->Clear();
    }
  }
  _impl_.total_bytes_ = ::int64_t{0};
  if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
    ::memset(&_impl_.received_bytes_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.state_) -
        reinterpret_cast<char*>(&_impl_.received_bytes_)) + sizeof(_impl_.state_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x7f000000U)) {
    ::memset(&_impl_.danger_type_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.range_request_from_) -
        reinterpret_cast<char*>(&_impl_.danger_type_)) + sizeof(_impl_.range_request_from_));
    if (CheckHasBit(cached_has_bits, 0x40000000U)) {
      _impl_.serialized_embedder_download_data_.ClearNonDefaultToEmpty();
    }
  }
  _impl_.range_request_to_ = ::int64_t{0};
  _impl_.fetched_via_service_worker_ = false;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated string url_chain = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_url_chain_size(); i < n; ++i) {
      const auto& s = this_._internal_url_chain().Get(i);
      target = stream->WriteString(1, s, target);
    }
  }

  // optional string referrer_url = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_referrer_url();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // optional string site_url = 3;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    const ::std::string& _s = this_._internal_site_url();
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // optional string tab_url = 4;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    const ::std::string& _s = this_._internal_tab_url();
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  // optional string tab_referrer_url = 5;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    const ::std::string& _s = this_._internal_tab_referrer_url();
    target = stream->WriteStringMaybeAliased(5, _s, target);
  }

  // optional bool fetch_error_body = 6;
  if (CheckHasBit(cached_has_bits, 0x00080000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        6, this_._internal_fetch_error_body(), target);
  }

  // repeated .download_pb.HttpRequestHeader request_headers = 7;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_request_headers_size());
         i < n; i++) {
      const auto& repfield = this_._internal_request_headers().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              7, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional string etag = 8;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    const ::std::string& _s = this_._internal_etag();
    target = stream->WriteStringMaybeAliased(8, _s, target);
  }

  // optional string last_modified = 9;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    const ::std::string& _s = this_._internal_last_modified();
    target = stream->WriteStringMaybeAliased(9, _s, target);
  }

  // optional int64 total_bytes = 10;
  if (CheckHasBit(cached_has_bits, 0x00008000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<10>(
            stream, this_._internal_total_bytes(), target);
  }

  // optional string mime_type = 11;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    const ::std::string& _s = this_._internal_mime_type();
    target = stream->WriteStringMaybeAliased(11, _s, target);
  }

  // optional string original_mime_type = 12;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    const ::std::string& _s = this_._internal_original_mime_type();
    target = stream->WriteStringMaybeAliased(12, _s, target);
  }

  // optional bytes current_path = 13;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    const ::std::string& _s = this_._internal_current_path();
    target = stream->WriteBytesMaybeAliased(13, _s, target);
  }

  // optional bytes target_path = 14;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    const ::std::string& _s = this_._internal_target_path();
    target = stream->WriteBytesMaybeAliased(14, _s, target);
  }

  // optional int64 received_bytes = 15;
  if (CheckHasBit(cached_has_bits, 0x00010000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<15>(
            stream, this_._internal_received_bytes(), target);
  }

  // optional int64 start_time = 16;
  if (CheckHasBit(cached_has_bits, 0x00020000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        16, this_._internal_start_time(), target);
  }

  // optional int64 end_time = 17;
  if (CheckHasBit(cached_has_bits, 0x00040000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        17, this_._internal_end_time(), target);
  }

  // repeated .download_pb.ReceivedSlice received_slices = 18;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_received_slices_size());
         i < n; i++) {
      const auto& repfield = this_._internal_received_slices().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              18, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional string hash = 19;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    const ::std::string& _s = this_._internal_hash();
    target = stream->WriteStringMaybeAliased(19, _s, target);
  }

  // optional bool transient = 20;
  if (CheckHasBit(cached_has_bits, 0x00100000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        20, this_._internal_transient(), target);
  }

  // optional int32 state = 21;
  if (CheckHasBit(cached_has_bits, 0x00800000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        21, this_._internal_state(), target);
  }

  // optional int32 danger_type = 22;
  if (CheckHasBit(cached_has_bits, 0x01000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        22, this_._internal_danger_type(), target);
  }

  // optional int32 interrupt_reason = 23;
  if (CheckHasBit(cached_has_bits, 0x02000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        23, this_._internal_interrupt_reason(), target);
  }

  // optional bool paused = 24;
  if (CheckHasBit(cached_has_bits, 0x00200000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        24, this_._internal_paused(), target);
  }

  // optional bool metered = 25;
  if (CheckHasBit(cached_has_bits, 0x00400000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        25, this_._internal_metered(), target);
  }

  // optional int64 bytes_wasted = 26;
  if (CheckHasBit(cached_has_bits, 0x04000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        26, this_._internal_bytes_wasted(), target);
  }

  // optional int32 auto_resume_count = 27;
  if (CheckHasBit(cached_has_bits, 0x08000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        27, this_._internal_auto_resume_count(), target);
  }

  // optional .download_pb.DownloadSchedule download_schedule = 28;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        28, *this_._impl_.download_schedule_, this_._impl_.download_schedule_->GetCachedSize(), target,
        stream);
  }

  // optional int32 credentials_mode = 30;
  if (CheckHasBit(cached_has_bits, 0x10000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        30, this_._internal_credentials_mode(), target);
  }

  // optional int64 range_request_from = 31;
  if (CheckHasBit(cached_has_bits, 0x20000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        31, this_._internal_range_request_from(), target);
  }

  // optional int64 range_request_to = 32;
  if (CheckHasBit(cached_has_bits, 0x80000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        32, this_._internal_range_request_to(), target);
  }

  // optional string serialized_embedder_download_data = 33;
  if (CheckHasBit(cached_has_bits, 0x40000000U)) {
    const ::std::string& _s = this_._internal_serialized_embedder_download_data();
    target = stream->WriteStringMaybeAliased(33, _s, target);
  }

  cached_has_bits = this_._impl_._has_bits_[1];
  // optional bool fetched_via_service_worker = 35;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        35, this_._internal_fetched_via_service_worker(), 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:download_pb.InProgressInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t InProgressInfo::ByteSizeLong(const MessageLite& base) {
  const InProgressInfo& this_ = static_cast<const InProgressInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t InProgressInfo::ByteSizeLong() const {
  const InProgressInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:download_pb.InProgressInfo)
  ::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(0x00700000U & cached_has_bits) * 3;
  total_size += static_cast<bool>(0x00080000U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated string url_chain = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_url_chain().size());
      for (int i = 0, n = this_._internal_url_chain().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_url_chain().Get(i));
      }
    }
    // repeated .download_pb.HttpRequestHeader request_headers = 7;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_request_headers_size();
      for (const auto& msg : this_._internal_request_headers()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .download_pb.ReceivedSlice received_slices = 18;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 2UL * this_._internal_received_slices_size();
      for (const auto& msg : this_._internal_received_slices()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string referrer_url = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_referrer_url());
    }
    // optional string site_url = 3;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_site_url());
    }
    // optional string tab_url = 4;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_tab_url());
    }
    // optional string tab_referrer_url = 5;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_tab_referrer_url());
    }
    // optional string etag = 8;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_etag());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    // optional string last_modified = 9;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_last_modified());
    }
    // optional string mime_type = 11;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_mime_type());
    }
    // optional string original_mime_type = 12;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_original_mime_type());
    }
    // optional bytes current_path = 13;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_current_path());
    }
    // optional bytes target_path = 14;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_target_path());
    }
    // optional string hash = 19;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_hash());
    }
    // optional .download_pb.DownloadSchedule download_schedule = 28;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.download_schedule_);
    }
    // optional int64 total_bytes = 10;
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_total_bytes());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00870000U)) {
    // optional int64 received_bytes = 15;
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_received_bytes());
    }
    // optional int64 start_time = 16;
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_start_time());
    }
    // optional int64 end_time = 17;
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_end_time());
    }
    // optional int32 state = 21;
    if (CheckHasBit(cached_has_bits, 0x00800000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_state());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) {
    // optional int32 danger_type = 22;
    if (CheckHasBit(cached_has_bits, 0x01000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_danger_type());
    }
    // optional int32 interrupt_reason = 23;
    if (CheckHasBit(cached_has_bits, 0x02000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_interrupt_reason());
    }
    // optional int64 bytes_wasted = 26;
    if (CheckHasBit(cached_has_bits, 0x04000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_bytes_wasted());
    }
    // optional int32 auto_resume_count = 27;
    if (CheckHasBit(cached_has_bits, 0x08000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_auto_resume_count());
    }
    // optional int32 credentials_mode = 30;
    if (CheckHasBit(cached_has_bits, 0x10000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_credentials_mode());
    }
    // optional int64 range_request_from = 31;
    if (CheckHasBit(cached_has_bits, 0x20000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_range_request_from());
    }
    // optional string serialized_embedder_download_data = 33;
    if (CheckHasBit(cached_has_bits, 0x40000000U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_serialized_embedder_download_data());
    }
    // optional int64 range_request_to = 32;
    if (CheckHasBit(cached_has_bits, 0x80000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_range_request_to());
    }
  }
  cached_has_bits = this_._impl_._has_bits_[1];
  total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 3;
  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 InProgressInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<InProgressInfo*>(&to_msg);
  auto& from = static_cast<const InProgressInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.InProgressInfo)
  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_url_chain()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_url_chain());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_request_headers()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_request_headers());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_received_slices()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_received_slices());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_referrer_url(from._internal_referrer_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_site_url(from._internal_site_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_set_tab_url(from._internal_tab_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_set_tab_referrer_url(from._internal_tab_referrer_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_internal_set_etag(from._internal_etag());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_internal_set_last_modified(from._internal_last_modified());
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_internal_set_mime_type(from._internal_mime_type());
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_internal_set_original_mime_type(from._internal_original_mime_type());
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_internal_set_current_path(from._internal_current_path());
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_internal_set_target_path(from._internal_target_path());
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_internal_set_hash(from._internal_hash());
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      ABSL_DCHECK(from._impl_.download_schedule_ != nullptr);
      if (_this->_impl_.download_schedule_ == nullptr) {
        _this->_impl_.download_schedule_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.download_schedule_);
      } else {
        _this->_impl_.download_schedule_->MergeFrom(*from._impl_.download_schedule_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.total_bytes_ = from._impl_.total_bytes_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      _this->_impl_.received_bytes_ = from._impl_.received_bytes_;
    }
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      _this->_impl_.start_time_ = from._impl_.start_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      _this->_impl_.end_time_ = from._impl_.end_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      _this->_impl_.fetch_error_body_ = from._impl_.fetch_error_body_;
    }
    if (CheckHasBit(cached_has_bits, 0x00100000U)) {
      _this->_impl_.transient_ = from._impl_.transient_;
    }
    if (CheckHasBit(cached_has_bits, 0x00200000U)) {
      _this->_impl_.paused_ = from._impl_.paused_;
    }
    if (CheckHasBit(cached_has_bits, 0x00400000U)) {
      _this->_impl_.metered_ = from._impl_.metered_;
    }
    if (CheckHasBit(cached_has_bits, 0x00800000U)) {
      _this->_impl_.state_ = from._impl_.state_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) {
    if (CheckHasBit(cached_has_bits, 0x01000000U)) {
      _this->_impl_.danger_type_ = from._impl_.danger_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x02000000U)) {
      _this->_impl_.interrupt_reason_ = from._impl_.interrupt_reason_;
    }
    if (CheckHasBit(cached_has_bits, 0x04000000U)) {
      _this->_impl_.bytes_wasted_ = from._impl_.bytes_wasted_;
    }
    if (CheckHasBit(cached_has_bits, 0x08000000U)) {
      _this->_impl_.auto_resume_count_ = from._impl_.auto_resume_count_;
    }
    if (CheckHasBit(cached_has_bits, 0x10000000U)) {
      _this->_impl_.credentials_mode_ = from._impl_.credentials_mode_;
    }
    if (CheckHasBit(cached_has_bits, 0x20000000U)) {
      _this->_impl_.range_request_from_ = from._impl_.range_request_from_;
    }
    if (CheckHasBit(cached_has_bits, 0x40000000U)) {
      _this->_internal_set_serialized_embedder_download_data(from._internal_serialized_embedder_download_data());
    }
    if (CheckHasBit(cached_has_bits, 0x80000000U)) {
      _this->_impl_.range_request_to_ = from._impl_.range_request_to_;
    }
  }
  cached_has_bits = from._impl_._has_bits_[1];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_impl_.fetched_via_service_worker_ = from._impl_.fetched_via_service_worker_;
  }
  _this->_impl_._has_bits_.Or(from._impl_._has_bits_);
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void InProgressInfo::InternalSwap(InProgressInfo* 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]);
  swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]);
  _impl_.url_chain_.InternalSwap(&other->_impl_.url_chain_);
  _impl_.request_headers_.InternalSwap(&other->_impl_.request_headers_);
  _impl_.received_slices_.InternalSwap(&other->_impl_.received_slices_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_url_, &other->_impl_.referrer_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.site_url_, &other->_impl_.site_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tab_url_, &other->_impl_.tab_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tab_referrer_url_, &other->_impl_.tab_referrer_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.etag_, &other->_impl_.etag_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_modified_, &other->_impl_.last_modified_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.original_mime_type_, &other->_impl_.original_mime_type_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.current_path_, &other->_impl_.current_path_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_path_, &other->_impl_.target_path_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_, &other->_impl_.hash_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.range_request_from_)
      + sizeof(InProgressInfo::_impl_.range_request_from_)
      - PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.download_schedule_)>(
          reinterpret_cast<char*>(&_impl_.download_schedule_),
          reinterpret_cast<char*>(&other->_impl_.download_schedule_));
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.serialized_embedder_download_data_, &other->_impl_.serialized_embedder_download_data_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.fetched_via_service_worker_)
      + sizeof(InProgressInfo::_impl_.fetched_via_service_worker_)
      - PROTOBUF_FIELD_OFFSET(InProgressInfo, _impl_.range_request_to_)>(
          reinterpret_cast<char*>(&_impl_.range_request_to_),
          reinterpret_cast<char*>(&other->_impl_.range_request_to_));
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite DownloadInfo_class_data_ =
    DownloadInfo::InternalGenerateClassData_(DownloadInfo_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadInfo::GetClassData() const {
  return DownloadInfo_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
DownloadInfo::GetClassData() const {
  return DownloadInfo_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const DownloadInfo::ParseTableT_
    DownloadInfo::_table_ =
        DownloadInfo::InternalGenerateParseTable_(DownloadInfo_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void DownloadInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:download_pb.DownloadInfo)
  ::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_.guid_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.ukm_info_ != nullptr);
      _impl_.ukm_info_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.in_progress_info_ != nullptr);
      _impl_.in_progress_info_->Clear();
    }
  }
  _impl_.id_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string guid = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_guid();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional int32 id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_id(), target);
  }

  // optional .download_pb.UkmInfo ukm_info = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.ukm_info_, this_._impl_.ukm_info_->GetCachedSize(), target,
        stream);
  }

  // optional .download_pb.InProgressInfo in_progress_info = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.in_progress_info_, this_._impl_.in_progress_info_->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:download_pb.DownloadInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t DownloadInfo::ByteSizeLong(const MessageLite& base) {
  const DownloadInfo& this_ = static_cast<const DownloadInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t DownloadInfo::ByteSizeLong() const {
  const DownloadInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:download_pb.DownloadInfo)
  ::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, 0x0000000fU)) {
    // optional string guid = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_guid());
    }
    // optional .download_pb.UkmInfo ukm_info = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ukm_info_);
    }
    // optional .download_pb.InProgressInfo in_progress_info = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.in_progress_info_);
    }
    // optional int32 id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_id());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void DownloadInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DownloadInfo*>(&to_msg);
  auto& from = static_cast<const DownloadInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.DownloadInfo)
  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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_guid(from._internal_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.ukm_info_ != nullptr);
      if (_this->_impl_.ukm_info_ == nullptr) {
        _this->_impl_.ukm_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ukm_info_);
      } else {
        _this->_impl_.ukm_info_->MergeFrom(*from._impl_.ukm_info_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.in_progress_info_ != nullptr);
      if (_this->_impl_.in_progress_info_ == nullptr) {
        _this->_impl_.in_progress_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.in_progress_info_);
      } else {
        _this->_impl_.in_progress_info_->MergeFrom(*from._impl_.in_progress_info_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.id_ = from._impl_.id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void DownloadDBEntry::set_allocated_download_info(::download_pb::DownloadInfo* PROTOBUF_NULLABLE download_info) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_entry();
  if (download_info) {
    ::google::protobuf::Arena* submessage_arena = download_info->GetArena();
    if (message_arena != submessage_arena) {
      download_info = ::google::protobuf::internal::GetOwnedMessage(message_arena, download_info, submessage_arena);
    }
    set_has_download_info();
    _impl_.entry_.download_info_ = download_info;
  }
  // @@protoc_insertion_point(field_set_allocated:download_pb.DownloadDBEntry.download_info)
}
DownloadDBEntry::DownloadDBEntry(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, DownloadDBEntry_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:download_pb.DownloadDBEntry)
}
PROTOBUF_NDEBUG_INLINE DownloadDBEntry::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::download_pb::DownloadDBEntry& from_msg)
      : entry_{},
        _cached_size_{0},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  DownloadDBEntry* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (entry_case()) {
    case ENTRY_NOT_SET:
      break;
      case kDownloadInfo:
        _impl_.entry_.download_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.entry_.download_info_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:download_pb.DownloadDBEntry)
}
PROTOBUF_NDEBUG_INLINE DownloadDBEntry::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : entry_{},
        _cached_size_{0},
        _oneof_case_{} {}

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

void DownloadDBEntry::clear_entry() {
// @@protoc_insertion_point(one_of_clear_start:download_pb.DownloadDBEntry)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (entry_case()) {
    case kDownloadInfo: {
      if (GetArena() == nullptr) {
        delete _impl_.entry_.download_info_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.entry_.download_info_ != nullptr) {
          _impl_.entry_.download_info_->Clear();
        }
      }
      break;
    }
    case ENTRY_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = ENTRY_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite DownloadDBEntry_class_data_ =
    DownloadDBEntry::InternalGenerateClassData_(DownloadDBEntry_globals_._default);

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

  clear_entry();
  _internal_metadata_.Clear<::std::string>();
}

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

  // .download_pb.DownloadInfo download_info = 1;
  if (this_.entry_case() == kDownloadInfo) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.entry_.download_info_, this_._impl_.entry_.download_info_->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:download_pb.DownloadDBEntry)
  return target;
}

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

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

  switch (this_.entry_case()) {
    // .download_pb.DownloadInfo download_info = 1;
    case kDownloadInfo: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.entry_.download_info_);
      break;
    }
    case ENTRY_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 DownloadDBEntry::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<DownloadDBEntry*>(&to_msg);
  auto& from = static_cast<const DownloadDBEntry&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:download_pb.DownloadDBEntry)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)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_entry();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kDownloadInfo: {
        if (oneof_needs_init) {
          _this->_impl_.entry_.download_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.entry_.download_info_);
        } else {
          _this->_impl_.entry_.download_info_->MergeFrom(*from._impl_.entry_.download_info_);
        }
        break;
      }
      case ENTRY_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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