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

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

constexpr CustomData::ParseTableT_ CustomData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CustomData, _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<::protodb::CustomData>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string value = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(CustomData, _impl_.value_)}},
      // optional string key = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(CustomData, _impl_.key_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string key = 1;
      {PROTOBUF_FIELD_OFFSET(CustomData, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string value = 2;
      {PROTOBUF_FIELD_OFFSET(CustomData, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

constexpr Entry::ParseTableT_ Entry::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Entry, _impl_._has_bits_),
      0, // no _extensions_
      20, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4293922816,  // skipmap
      offsetof(ParseTableT_, field_entries),
      19,  // num_field_entries
      5,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::protodb::Entry>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .protodb.DownloadClient name_space = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 7, 11,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.name_space_)}},
      // optional string guid = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.guid_)}},
      // optional .protodb.SchedulingParams scheduling_params = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 5, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.scheduling_params_)}},
      // optional .protodb.RequestParams request_params = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 6, 1,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.request_params_)}},
      // optional .protodb.Entry.State state = 5;
      {::_pbi::TcParser::FastEr0S1,
       {40, 8, 4,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.state_)}},
      // optional string target_file_path = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 3, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.target_file_path_)}},
      // optional int64 create_time = 7;
      {::_pbi::TcParser::FastV64S1,
       {56, 9, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.create_time_)}},
      // optional int64 completion_time = 8;
      {::_pbi::TcParser::FastV64S1,
       {64, 10, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.completion_time_)}},
      // optional uint32 attempt_count = 9;
      {::_pbi::TcParser::FastV32S1,
       {72, 11, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.attempt_count_)}},
      // optional int32 traffic_annotation = 10;
      {::_pbi::TcParser::FastV32S1,
       {80, 12, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.traffic_annotation_)}},
      // optional uint64 bytes_downloaded = 11;
      {::_pbi::TcParser::FastV64S1,
       {88, 13, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.bytes_downloaded_)}},
      // optional int64 last_cleanup_check_time = 12;
      {::_pbi::TcParser::FastV64S1,
       {96, 14, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.last_cleanup_check_time_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional uint32 resumption_count = 14;
      {::_pbi::TcParser::FastV32S1,
       {112, 15, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.resumption_count_)}},
      // optional bool has_upload_data = 15;
      {::_pbi::TcParser::FastV8S1,
       {120, 16, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.has_upload_data_)}},
      // repeated string url_chain = 16;
      {::_pbi::TcParser::FastBR2,
       {386, 0, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.url_chain_)}},
      // optional string response_headers = 17;
      {::_pbi::TcParser::FastBS2,
       {394, 4, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.response_headers_)}},
      // optional bool did_received_response = 18;
      {::_pbi::TcParser::FastV8S2,
       {400, 17, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.did_received_response_)}},
      // optional bool require_response_headers = 19;
      {::_pbi::TcParser::FastV8S2,
       {408, 18, 0,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.require_response_headers_)}},
      // repeated .protodb.CustomData custom_data = 20;
      {::_pbi::TcParser::FastMtR2,
       {418, 1, 2,
        PROTOBUF_FIELD_OFFSET(Entry, _impl_.custom_data_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .protodb.DownloadClient name_space = 1;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.name_space_), _Internal::kHasBitsOffset + 7, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional string guid = 2;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.guid_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .protodb.SchedulingParams scheduling_params = 3;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.scheduling_params_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .protodb.RequestParams request_params = 4;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.request_params_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .protodb.Entry.State state = 5;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.state_), _Internal::kHasBitsOffset + 8, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional string target_file_path = 6;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.target_file_path_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 create_time = 7;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.create_time_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 completion_time = 8;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.completion_time_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional uint32 attempt_count = 9;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.attempt_count_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // optional int32 traffic_annotation = 10;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.traffic_annotation_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional uint64 bytes_downloaded = 11;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.bytes_downloaded_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional int64 last_cleanup_check_time = 12;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.last_cleanup_check_time_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional uint32 resumption_count = 14;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.resumption_count_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // optional bool has_upload_data = 15;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.has_upload_data_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // repeated string url_chain = 16;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.url_chain_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // optional string response_headers = 17;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.response_headers_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool did_received_response = 18;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.did_received_response_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool require_response_headers = 19;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.require_response_headers_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // repeated .protodb.CustomData custom_data = 20;
      {PROTOBUF_FIELD_OFFSET(Entry, _impl_.custom_data_), _Internal::kHasBitsOffset + 1, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::protodb::SchedulingParams>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::protodb::SchedulingParams_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::protodb::RequestParams>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::protodb::RequestParams_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::protodb::CustomData>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::protodb::CustomData_globals_},
        #endif
        {0, 11},
        {0, 4},
    }},
    {{
    }},
  };
}


inline constexpr Entry::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        url_chain_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::protodb::Entry,
            PROTOBUF_FIELD_OFFSET(::protodb::Entry, _impl_.url_chain_)>()
         }
        ,
        custom_data_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::protodb::Entry,
            PROTOBUF_FIELD_OFFSET(::protodb::Entry, _impl_.custom_data_)>()
         }
        ,
        guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        target_file_path_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        response_headers_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        scheduling_params_{nullptr},
        request_params_{nullptr},
        name_space_{static_cast< ::protodb::DownloadClient >(0)},
        state_{static_cast< ::protodb::Entry_State >(0)},
        create_time_{::int64_t{0}},
        completion_time_{::int64_t{0}},
        attempt_count_{0u},
        traffic_annotation_{0},
        bytes_downloaded_{::uint64_t{0u}},
        last_cleanup_check_time_{::int64_t{0}},
        resumption_count_{0u},
        has_upload_data_{false},
        did_received_response_{false},
        require_response_headers_{false} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST EntryGlobalsTypeInternal Entry_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Entry_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Entry_globals_.GetClassData();
#else
  return Entry_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace protodb
namespace protodb {
PROTOBUF_CONSTINIT const uint32_t Entry_State_internal_data_[] = {
    327680u, 0u, };
static const char Entry_State_names[] = {
    "ACTIVE"
    "AVAILABLE"
    "COMPLETE"
    "NEW"
    "PAUSED"
};

static const ::google::protobuf::internal::EnumEntry Entry_State_entries[] = {
    {{&Entry_State_names[0], 6}, 2},
    {{&Entry_State_names[6], 9}, 1},
    {{&Entry_State_names[15], 8}, 4},
    {{&Entry_State_names[23], 3}, 0},
    {{&Entry_State_names[26], 6}, 3},
};

static const int Entry_State_entries_by_number[] = {
    3,  // 0 -> NEW
    1,  // 1 -> AVAILABLE
    0,  // 2 -> ACTIVE
    4,  // 3 -> PAUSED
    2,  // 4 -> COMPLETE
};

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

const ::std::string& Entry_State_Name(Entry_State value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Entry_State_entries, Entry_State_entries_by_number, 5,
      Entry_State_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(Entry_State_entries,
                                  Entry_State_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Entry_State_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t DownloadClient_internal_data_[] = {
    786432u, 0u, };
static const char DownloadClient_names[] = {
    "BACKGROUND_FETCH"
    "BOUNDARY"
    "BRUSCHETTA"
    "DEBUGGING"
    "INVALID"
    "MOUNTAIN_INTERNAL"
    "OFFLINE_PAGE_PREFETCH"
    "OPTIMIZATION_GUIDE_PREDICTION_MODELS"
    "PLUGIN_VM_IMAGE"
    "TEST"
    "TEST_2"
    "TEST_3"
};

static const ::google::protobuf::internal::EnumEntry DownloadClient_entries[] = {
    {{&DownloadClient_names[0], 16}, 5},
    {{&DownloadClient_names[16], 8}, 11},
    {{&DownloadClient_names[24], 10}, 10},
    {{&DownloadClient_names[34], 9}, 6},
    {{&DownloadClient_names[43], 7}, 0},
    {{&DownloadClient_names[50], 17}, 7},
    {{&DownloadClient_names[67], 21}, 4},
    {{&DownloadClient_names[88], 36}, 9},
    {{&DownloadClient_names[124], 15}, 8},
    {{&DownloadClient_names[139], 4}, 1},
    {{&DownloadClient_names[143], 6}, 2},
    {{&DownloadClient_names[149], 6}, 3},
};

static const int DownloadClient_entries_by_number[] = {
    4,  // 0 -> INVALID
    9,  // 1 -> TEST
    10,  // 2 -> TEST_2
    11,  // 3 -> TEST_3
    6,  // 4 -> OFFLINE_PAGE_PREFETCH
    0,  // 5 -> BACKGROUND_FETCH
    3,  // 6 -> DEBUGGING
    5,  // 7 -> MOUNTAIN_INTERNAL
    8,  // 8 -> PLUGIN_VM_IMAGE
    7,  // 9 -> OPTIMIZATION_GUIDE_PREDICTION_MODELS
    2,  // 10 -> BRUSCHETTA
    1,  // 11 -> BOUNDARY
};

bool DownloadClient_Parse(::absl::string_view name,
                                  DownloadClient* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      DownloadClient_entries, 12, name, &int_value);
  if (success) {
    *value = static_cast<DownloadClient>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    DownloadClient_strings[12] = {};

const ::std::string& DownloadClient_Name(DownloadClient value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      DownloadClient_entries, DownloadClient_entries_by_number, 12,
      DownloadClient_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(DownloadClient_entries,
                                  DownloadClient_entries_by_number,
                                  12, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DownloadClient_strings[idx].get();
}
// ===================================================================

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CustomData* 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:protodb.CustomData)
}
PROTOBUF_NDEBUG_INLINE CustomData::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 CustomData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
CustomData::~CustomData() {
  // @@protoc_insertion_point(destructor:protodb.CustomData)
  SharedDtor(*this);
}
inline void CustomData::SharedDtor(MessageLite& self) {
  CustomData& this_ = static_cast<CustomData&>(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 CustomData_class_data_ =
    CustomData::InternalGenerateClassData_(CustomData_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CustomData::GetClassData() const {
  return CustomData_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CustomData::GetClassData() const {
  return CustomData_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CustomData::ParseTableT_
    CustomData::_table_ =
        CustomData::InternalGenerateParseTable_(CustomData_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CustomData::Clear() {
// @@protoc_insertion_point(message_clear_start:protodb.CustomData)
  ::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 CustomData::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CustomData& this_ = static_cast<const CustomData&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CustomData::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CustomData& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:protodb.CustomData)
  ::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:protodb.CustomData)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CustomData::ByteSizeLong(const MessageLite& base) {
  const CustomData& this_ = static_cast<const CustomData&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CustomData::ByteSizeLong() const {
  const CustomData& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:protodb.CustomData)
  ::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 CustomData::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CustomData*>(&to_msg);
  auto& from = static_cast<const CustomData&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:protodb.CustomData)
  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 CustomData::CopyFrom(const CustomData& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:protodb.CustomData)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CustomData::InternalSwap(CustomData* 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);
}

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

void Entry::clear_scheduling_params() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.scheduling_params_ != nullptr) _impl_.scheduling_params_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
void Entry::clear_request_params() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.request_params_ != nullptr) _impl_.request_params_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
Entry::Entry(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Entry_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:protodb.Entry)
}
PROTOBUF_NDEBUG_INLINE Entry::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::protodb::Entry& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        url_chain_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::protodb::Entry,
              PROTOBUF_FIELD_OFFSET(::protodb::Entry, _impl_.url_chain_)>()
          , from.url_chain_
        }
        ,
        custom_data_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::protodb::Entry,
              PROTOBUF_FIELD_OFFSET(::protodb::Entry, _impl_.custom_data_)>()
          , from.custom_data_
        }
        ,
        guid_(arena, from.guid_),
        target_file_path_(arena, from.target_file_path_),
        response_headers_(arena, from.response_headers_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Entry* 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_.scheduling_params_ = (CheckHasBit(cached_has_bits, 0x00000020U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scheduling_params_)
                : nullptr;
  _impl_.request_params_ = (CheckHasBit(cached_has_bits, 0x00000040U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_params_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, name_space_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, name_space_),
           offsetof(Impl_, require_response_headers_) -
               offsetof(Impl_, name_space_) +
               sizeof(Impl_::require_response_headers_));

  // @@protoc_insertion_point(copy_constructor:protodb.Entry)
}
PROTOBUF_NDEBUG_INLINE Entry::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<
            ::protodb::Entry,
            PROTOBUF_FIELD_OFFSET(::protodb::Entry, _impl_.url_chain_)>()
         }
        ,
        custom_data_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::protodb::Entry,
            PROTOBUF_FIELD_OFFSET(::protodb::Entry, _impl_.custom_data_)>()
         }
        ,
        guid_(arena),
        target_file_path_(arena),
        response_headers_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Entry_class_data_ =
    Entry::InternalGenerateClassData_(Entry_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Entry::GetClassData() const {
  return Entry_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Entry::GetClassData() const {
  return Entry_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Entry::ParseTableT_
    Entry::_table_ =
        Entry::InternalGenerateParseTable_(Entry_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Entry::Clear() {
// @@protoc_insertion_point(message_clear_start:protodb.Entry)
  ::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, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.url_chain_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.custom_data_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.guid_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.target_file_path_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.response_headers_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      ABSL_DCHECK(_impl_.scheduling_params_ != nullptr);
      _impl_.scheduling_params_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      ABSL_DCHECK(_impl_.request_params_ != nullptr);
      _impl_.request_params_->Clear();
    }
  }
  _impl_.name_space_ = 0;
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    ::memset(&_impl_.state_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.resumption_count_) -
        reinterpret_cast<char*>(&_impl_.state_)) + sizeof(_impl_.resumption_count_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00070000U)) {
    ::memset(&_impl_.has_upload_data_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.require_response_headers_) -
        reinterpret_cast<char*>(&_impl_.has_upload_data_)) + sizeof(_impl_.require_response_headers_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .protodb.DownloadClient name_space = 1;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_name_space(), target);
  }

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

  // optional .protodb.SchedulingParams scheduling_params = 3;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.scheduling_params_, this_._impl_.scheduling_params_->GetCachedSize(), target,
        stream);
  }

  // optional .protodb.RequestParams request_params = 4;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.request_params_, this_._impl_.request_params_->GetCachedSize(), target,
        stream);
  }

  // optional .protodb.Entry.State state = 5;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this_._internal_state(), target);
  }

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

  // optional int64 create_time = 7;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
            stream, this_._internal_create_time(), target);
  }

  // optional int64 completion_time = 8;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
            stream, this_._internal_completion_time(), target);
  }

  // optional uint32 attempt_count = 9;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        9, this_._internal_attempt_count(), target);
  }

  // optional int32 traffic_annotation = 10;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>(
            stream, this_._internal_traffic_annotation(), target);
  }

  // optional uint64 bytes_downloaded = 11;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        11, this_._internal_bytes_downloaded(), target);
  }

  // optional int64 last_cleanup_check_time = 12;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<12>(
            stream, this_._internal_last_cleanup_check_time(), target);
  }

  // optional uint32 resumption_count = 14;
  if (CheckHasBit(cached_has_bits, 0x00008000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        14, this_._internal_resumption_count(), target);
  }

  // optional bool has_upload_data = 15;
  if (CheckHasBit(cached_has_bits, 0x00010000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        15, this_._internal_has_upload_data(), target);
  }

  // repeated string url_chain = 16;
  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(16, s, target);
    }
  }

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

  // optional bool did_received_response = 18;
  if (CheckHasBit(cached_has_bits, 0x00020000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        18, this_._internal_did_received_response(), target);
  }

  // optional bool require_response_headers = 19;
  if (CheckHasBit(cached_has_bits, 0x00040000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        19, this_._internal_require_response_headers(), target);
  }

  // repeated .protodb.CustomData custom_data = 20;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_custom_data_size());
         i < n; i++) {
      const auto& repfield = this_._internal_custom_data().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              20, 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:protodb.Entry)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Entry::ByteSizeLong(const MessageLite& base) {
  const Entry& this_ = static_cast<const Entry&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Entry::ByteSizeLong() const {
  const Entry& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:protodb.Entry)
  ::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(0x00060000U & cached_has_bits) * 3;
  total_size += static_cast<bool>(0x00010000U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated string url_chain = 16;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          2 * ::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 .protodb.CustomData custom_data = 20;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 2UL * this_._internal_custom_data_size();
      for (const auto& msg : this_._internal_custom_data()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string guid = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_guid());
    }
    // optional string target_file_path = 6;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_target_file_path());
    }
    // optional string response_headers = 17;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_response_headers());
    }
    // optional .protodb.SchedulingParams scheduling_params = 3;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.scheduling_params_);
    }
    // optional .protodb.RequestParams request_params = 4;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_params_);
    }
    // optional .protodb.DownloadClient name_space = 1;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_name_space());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    // optional .protodb.Entry.State state = 5;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_state());
    }
    // optional int64 create_time = 7;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_create_time());
    }
    // optional int64 completion_time = 8;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_completion_time());
    }
    // optional uint32 attempt_count = 9;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_attempt_count());
    }
    // optional int32 traffic_annotation = 10;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_traffic_annotation());
    }
    // optional uint64 bytes_downloaded = 11;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_bytes_downloaded());
    }
    // optional int64 last_cleanup_check_time = 12;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_last_cleanup_check_time());
    }
    // optional uint32 resumption_count = 14;
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_resumption_count());
    }
  }
  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 Entry::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Entry*>(&to_msg);
  auto& from = static_cast<const Entry&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:protodb.Entry)
  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_custom_data()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_custom_data());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_guid(from._internal_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_target_file_path(from._internal_target_file_path());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_response_headers(from._internal_response_headers());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      ABSL_DCHECK(from._impl_.scheduling_params_ != nullptr);
      if (_this->_impl_.scheduling_params_ == nullptr) {
        _this->_impl_.scheduling_params_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.scheduling_params_);
      } else {
        _this->_impl_.scheduling_params_->MergeFrom(*from._impl_.scheduling_params_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      ABSL_DCHECK(from._impl_.request_params_ != nullptr);
      if (_this->_impl_.request_params_ == nullptr) {
        _this->_impl_.request_params_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_params_);
      } else {
        _this->_impl_.request_params_->MergeFrom(*from._impl_.request_params_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.name_space_ = from._impl_.name_space_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.state_ = from._impl_.state_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.create_time_ = from._impl_.create_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.completion_time_ = from._impl_.completion_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.attempt_count_ = from._impl_.attempt_count_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.traffic_annotation_ = from._impl_.traffic_annotation_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.bytes_downloaded_ = from._impl_.bytes_downloaded_;
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.last_cleanup_check_time_ = from._impl_.last_cleanup_check_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.resumption_count_ = from._impl_.resumption_count_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00070000U)) {
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      _this->_impl_.has_upload_data_ = from._impl_.has_upload_data_;
    }
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      _this->_impl_.did_received_response_ = from._impl_.did_received_response_;
    }
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      _this->_impl_.require_response_headers_ = from._impl_.require_response_headers_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void Entry::InternalSwap(Entry* 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_.url_chain_.InternalSwap(&other->_impl_.url_chain_);
  _impl_.custom_data_.InternalSwap(&other->_impl_.custom_data_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.guid_, &other->_impl_.guid_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_file_path_, &other->_impl_.target_file_path_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.response_headers_, &other->_impl_.response_headers_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Entry, _impl_.require_response_headers_)
      + sizeof(Entry::_impl_.require_response_headers_)
      - PROTOBUF_FIELD_OFFSET(Entry, _impl_.scheduling_params_)>(
          reinterpret_cast<char*>(&_impl_.scheduling_params_),
          reinterpret_cast<char*>(&other->_impl_.scheduling_params_));
}

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