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

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

constexpr FetchAPIRequest_Referrer::ParseTableT_ FetchAPIRequest_Referrer::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FetchAPIRequest_Referrer, _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<::content::proto::internal::FetchAPIRequest_Referrer>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int32 policy = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest_Referrer, _impl_.policy_)}},
      // optional string url = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest_Referrer, _impl_.url_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string url = 1;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest_Referrer, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int32 policy = 2;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest_Referrer, _impl_.policy_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

constexpr FetchAPIRequest::ParseTableT_ FetchAPIRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_._has_bits_),
      0, // no _extensions_
      17, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294844544,  // skipmap
      offsetof(ParseTableT_, field_entries),
      15,  // 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<::content::proto::internal::FetchAPIRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional bool is_history_navigation = 16;
      {::_pbi::TcParser::FastV8S2,
       {384, 12, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_history_navigation_)}},
      // optional string url = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.url_)}},
      // optional string method = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.method_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .content.proto.internal.FetchAPIRequest.Referrer referrer = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 3, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.referrer_)}},
      // optional bool is_reload = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 7, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_reload_)}},
      // optional int32 mode = 6;
      {::_pbi::TcParser::FastV32S1,
       {48, 4, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.mode_)}},
      // optional bool is_main_resource_load = 7;
      {::_pbi::TcParser::FastV8S1,
       {56, 8, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_main_resource_load_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional int32 credentials_mode = 9;
      {::_pbi::TcParser::FastV32S1,
       {72, 5, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.credentials_mode_)}},
      // optional int32 cache_mode = 10;
      {::_pbi::TcParser::FastV32S1,
       {80, 6, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.cache_mode_)}},
      // optional int32 redirect_mode = 11;
      {::_pbi::TcParser::FastV32S1,
       {88, 11, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.redirect_mode_)}},
      // optional string integrity = 12;
      {::_pbi::TcParser::FastBS1,
       {98, 2, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.integrity_)}},
      // optional bool keepalive = 13;
      {::_pbi::TcParser::FastV8S1,
       {104, 9, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.keepalive_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional bool is_reload_navigation = 15;
      {::_pbi::TcParser::FastV8S1,
       {120, 10, 0,
        PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_reload_navigation_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string url = 1;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string method = 2;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.method_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // map<string, string> headers = 3;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.headers_), _Internal::kHasBitsOffset + 14, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
      // optional .content.proto.internal.FetchAPIRequest.Referrer referrer = 4;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.referrer_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional bool is_reload = 5;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_reload_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int32 mode = 6;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.mode_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional bool is_main_resource_load = 7;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_main_resource_load_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int32 credentials_mode = 9;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.credentials_mode_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 cache_mode = 10;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.cache_mode_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 redirect_mode = 11;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.redirect_mode_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional string integrity = 12;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.integrity_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool keepalive = 13;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.keepalive_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool is_reload_navigation = 15;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_reload_navigation_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool is_history_navigation = 16;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.is_history_navigation_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int32 target_address_space = 17;
      {PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.target_address_space_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::content::proto::internal::FetchAPIRequest_Referrer>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::content::proto::internal::FetchAPIRequest_Referrer_globals_},
        #endif
        {::_pbi::TcParser::GetMapAuxInfo(
            0, 0, 9, 9, 1)},
    }},
    {{
    }},
  };
}


inline constexpr FetchAPIRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        method_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        integrity_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        referrer_{nullptr},
        mode_{0},
        credentials_mode_{0},
        cache_mode_{0},
        is_reload_{false},
        is_main_resource_load_{false},
        keepalive_{false},
        is_reload_navigation_{false},
        redirect_mode_{0},
        is_history_navigation_{false},
        target_address_space_{0},
        headers_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::content::proto::internal::FetchAPIRequest,
            PROTOBUF_FIELD_OFFSET(::content::proto::internal::FetchAPIRequest, _impl_.headers_)>()
         }
     {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST FetchAPIRequestGlobalsTypeInternal FetchAPIRequest_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* FetchAPIRequest_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return FetchAPIRequest_globals_.GetClassData();
#else
  return FetchAPIRequest_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace internal
}  // namespace proto
}  // namespace content
namespace content {
namespace proto {
namespace internal {
// ===================================================================

FetchAPIRequest_Referrer::FetchAPIRequest_Referrer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FetchAPIRequest_Referrer_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:content.proto.internal.FetchAPIRequest.Referrer)
}
PROTOBUF_NDEBUG_INLINE FetchAPIRequest_Referrer::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::content::proto::internal::FetchAPIRequest_Referrer& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        url_(arena, from.url_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:content.proto.internal.FetchAPIRequest.Referrer)
}
PROTOBUF_NDEBUG_INLINE FetchAPIRequest_Referrer::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        url_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite FetchAPIRequest_Referrer_class_data_ =
    FetchAPIRequest_Referrer::InternalGenerateClassData_(FetchAPIRequest_Referrer_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchAPIRequest_Referrer::GetClassData() const {
  return FetchAPIRequest_Referrer_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchAPIRequest_Referrer::GetClassData() const {
  return FetchAPIRequest_Referrer_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const FetchAPIRequest_Referrer::ParseTableT_
    FetchAPIRequest_Referrer::_table_ =
        FetchAPIRequest_Referrer::InternalGenerateParseTable_(FetchAPIRequest_Referrer_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void FetchAPIRequest_Referrer::Clear() {
// @@protoc_insertion_point(message_clear_start:content.proto.internal.FetchAPIRequest.Referrer)
  ::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_.url_.ClearNonDefaultToEmpty();
  }
  _impl_.policy_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional int32 policy = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_policy(), 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:content.proto.internal.FetchAPIRequest.Referrer)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t FetchAPIRequest_Referrer::ByteSizeLong(const MessageLite& base) {
  const FetchAPIRequest_Referrer& this_ = static_cast<const FetchAPIRequest_Referrer&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t FetchAPIRequest_Referrer::ByteSizeLong() const {
  const FetchAPIRequest_Referrer& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:content.proto.internal.FetchAPIRequest.Referrer)
  ::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 url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional int32 policy = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_policy());
    }
  }
  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 FetchAPIRequest_Referrer::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<FetchAPIRequest_Referrer*>(&to_msg);
  auto& from = static_cast<const FetchAPIRequest_Referrer&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:content.proto.internal.FetchAPIRequest.Referrer)
  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_url(from._internal_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.policy_ = from._impl_.policy_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void FetchAPIRequest_Referrer::CopyFrom(const FetchAPIRequest_Referrer& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:content.proto.internal.FetchAPIRequest.Referrer)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void FetchAPIRequest_Referrer::InternalSwap(FetchAPIRequest_Referrer* 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_.url_, &other->_impl_.url_, arena);
  swap(_impl_.policy_, other->_impl_.policy_);
}

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

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:content.proto.internal.FetchAPIRequest)
}
PROTOBUF_NDEBUG_INLINE FetchAPIRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        url_(arena),
        method_(arena),
        integrity_(arena),
        headers_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::content::proto::internal::FetchAPIRequest,
            PROTOBUF_FIELD_OFFSET(::content::proto::internal::FetchAPIRequest, _impl_.headers_)>()
         }
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite FetchAPIRequest_class_data_ =
    FetchAPIRequest::InternalGenerateClassData_(FetchAPIRequest_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchAPIRequest::GetClassData() const {
  return FetchAPIRequest_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchAPIRequest::GetClassData() const {
  return FetchAPIRequest_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const FetchAPIRequest::ParseTableT_
    FetchAPIRequest::_table_ =
        FetchAPIRequest::InternalGenerateParseTable_(FetchAPIRequest_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void FetchAPIRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:content.proto.internal.FetchAPIRequest)
  ::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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.method_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.integrity_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.referrer_ != nullptr);
      _impl_.referrer_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) {
    ::memset(&_impl_.mode_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.is_reload_) -
        reinterpret_cast<char*>(&_impl_.mode_)) + sizeof(_impl_.is_reload_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
    ::memset(&_impl_.is_main_resource_load_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.target_address_space_) -
        reinterpret_cast<char*>(&_impl_.is_main_resource_load_)) + sizeof(_impl_.target_address_space_));
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _impl_.headers_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // map<string, string> headers = 3;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    if (!this_._internal_headers().empty()) {
      using MapType = ::google::protobuf::Map<::std::string, ::std::string>;
      using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string,
                                     _pbi::WireFormatLite::TYPE_STRING,
                                     _pbi::WireFormatLite::TYPE_STRING>;
      const auto& field = this_._internal_headers();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              3, entry.first, entry.second, target, stream);
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              3, entry.first, entry.second, target, stream);
        }
      }
    }
  }

  // optional .content.proto.internal.FetchAPIRequest.Referrer referrer = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.referrer_, this_._impl_.referrer_->GetCachedSize(), target,
        stream);
  }

  // optional bool is_reload = 5;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        5, this_._internal_is_reload(), target);
  }

  // optional int32 mode = 6;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
            stream, this_._internal_mode(), target);
  }

  // optional bool is_main_resource_load = 7;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        7, this_._internal_is_main_resource_load(), target);
  }

  // optional int32 credentials_mode = 9;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>(
            stream, this_._internal_credentials_mode(), target);
  }

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

  // optional int32 redirect_mode = 11;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>(
            stream, this_._internal_redirect_mode(), target);
  }

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

  // optional bool keepalive = 13;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        13, this_._internal_keepalive(), target);
  }

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

  // optional bool is_history_navigation = 16;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        16, this_._internal_is_history_navigation(), target);
  }

  // optional int32 target_address_space = 17;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        17, this_._internal_target_address_space(), 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:content.proto.internal.FetchAPIRequest)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t FetchAPIRequest::ByteSizeLong(const MessageLite& base) {
  const FetchAPIRequest& this_ = static_cast<const FetchAPIRequest&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t FetchAPIRequest::ByteSizeLong() const {
  const FetchAPIRequest& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:content.proto.internal.FetchAPIRequest)
  ::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>(0x00001000U & cached_has_bits) * 3;
  total_size += ::absl::popcount(0x00000780U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    // optional string url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional string method = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_method());
    }
    // optional string integrity = 12;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_integrity());
    }
    // optional .content.proto.internal.FetchAPIRequest.Referrer referrer = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.referrer_);
    }
    // optional int32 mode = 6;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_mode());
    }
    // optional int32 credentials_mode = 9;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_credentials_mode());
    }
    // optional int32 cache_mode = 10;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_cache_mode());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00006800U)) {
    // optional int32 redirect_mode = 11;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_redirect_mode());
    }
    // optional int32 target_address_space = 17;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_target_address_space());
    }
    // map<string, string> headers = 3;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_headers_size());
      for (const auto& entry : this_._internal_headers()) {
        total_size += _pbi::MapEntryFuncs<::std::string, ::std::string,
                                       _pbi::WireFormatLite::TYPE_STRING,
                                       _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second);
      }
    }
  }
  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 FetchAPIRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<FetchAPIRequest*>(&to_msg);
  auto& from = static_cast<const FetchAPIRequest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:content.proto.internal.FetchAPIRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_url(from._internal_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_method(from._internal_method());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_integrity(from._internal_integrity());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.referrer_ != nullptr);
      if (_this->_impl_.referrer_ == nullptr) {
        _this->_impl_.referrer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.referrer_);
      } else {
        _this->_impl_.referrer_->MergeFrom(*from._impl_.referrer_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.mode_ = from._impl_.mode_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.credentials_mode_ = from._impl_.credentials_mode_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.cache_mode_ = from._impl_.cache_mode_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.is_reload_ = from._impl_.is_reload_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.is_main_resource_load_ = from._impl_.is_main_resource_load_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.keepalive_ = from._impl_.keepalive_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.is_reload_navigation_ = from._impl_.is_reload_navigation_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.redirect_mode_ = from._impl_.redirect_mode_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.is_history_navigation_ = from._impl_.is_history_navigation_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.target_address_space_ = from._impl_.target_address_space_;
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.headers_.MergeFrom(from._impl_.headers_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void FetchAPIRequest::CopyFrom(const FetchAPIRequest& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:content.proto.internal.FetchAPIRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void FetchAPIRequest::InternalSwap(FetchAPIRequest* 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_.url_, &other->_impl_.url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.method_, &other->_impl_.method_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.integrity_, &other->_impl_.integrity_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.target_address_space_)
      + sizeof(FetchAPIRequest::_impl_.target_address_space_)
      - PROTOBUF_FIELD_OFFSET(FetchAPIRequest, _impl_.referrer_)>(
          reinterpret_cast<char*>(&_impl_.referrer_),
          reinterpret_cast<char*>(&other->_impl_.referrer_));
  _impl_.headers_.InternalSwap(&other->_impl_.headers_);
}

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