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

#include "components/feed/core/proto/v2/xsurface.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 feedxsurface {
class WebFeedFollowState::_Internal {
 public:
  using HasBits = decltype(::std::declval<WebFeedFollowState>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(WebFeedFollowState, _impl_._has_bits_);
};

constexpr WebFeedFollowState::ParseTableT_ WebFeedFollowState::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(WebFeedFollowState, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::feedxsurface::WebFeedFollowState>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .feedxsurface.WebFeedFollowState.FollowState follow_state = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 0, 4,
        PROTOBUF_FIELD_OFFSET(WebFeedFollowState, _impl_.follow_state_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .feedxsurface.WebFeedFollowState.FollowState follow_state = 1;
      {PROTOBUF_FIELD_OFFSET(WebFeedFollowState, _impl_.follow_state_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 4},
    }},
    {{
    }},
  };
}


inline constexpr WebFeedFollowState::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        follow_state_{static_cast< ::feedxsurface::WebFeedFollowState_FollowState >(0)} {}

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

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

constexpr OfflineBadgeContent::ParseTableT_ OfflineBadgeContent::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OfflineBadgeContent, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::feedxsurface::OfflineBadgeContent>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional bool available_offline = 1;
      {::_pbi::TcParser::FastV8S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(OfflineBadgeContent, _impl_.available_offline_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional bool available_offline = 1;
      {PROTOBUF_FIELD_OFFSET(OfflineBadgeContent, _impl_.available_offline_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr OfflineBadgeContent::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        available_offline_{false} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST OfflineBadgeContentGlobalsTypeInternal OfflineBadgeContent_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* OfflineBadgeContent_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return OfflineBadgeContent_globals_.GetClassData();
#else
  return OfflineBadgeContent_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace feedxsurface
namespace feedxsurface {
PROTOBUF_CONSTINIT const uint32_t WebFeedFollowState_FollowState_internal_data_[] = {
    327680u, 0u, };
static const char WebFeedFollowState_FollowState_names[] = {
    "FOLLOWED"
    "FOLLOW_IN_PROGRESS"
    "NOT_FOLLOWED"
    "UNFOLLOW_IN_PROGRESS"
    "UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry WebFeedFollowState_FollowState_entries[] = {
    {{&WebFeedFollowState_FollowState_names[0], 8}, 1},
    {{&WebFeedFollowState_FollowState_names[8], 18}, 3},
    {{&WebFeedFollowState_FollowState_names[26], 12}, 2},
    {{&WebFeedFollowState_FollowState_names[38], 20}, 4},
    {{&WebFeedFollowState_FollowState_names[58], 11}, 0},
};

static const int WebFeedFollowState_FollowState_entries_by_number[] = {
    4,  // 0 -> UNSPECIFIED
    0,  // 1 -> FOLLOWED
    2,  // 2 -> NOT_FOLLOWED
    1,  // 3 -> FOLLOW_IN_PROGRESS
    3,  // 4 -> UNFOLLOW_IN_PROGRESS
};

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

const ::std::string& WebFeedFollowState_FollowState_Name(WebFeedFollowState_FollowState value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      WebFeedFollowState_FollowState_entries, WebFeedFollowState_FollowState_entries_by_number, 5,
      WebFeedFollowState_FollowState_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(WebFeedFollowState_FollowState_entries,
                                  WebFeedFollowState_FollowState_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : WebFeedFollowState_FollowState_strings[idx].get();
}
// ===================================================================

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OfflineBadgeContent_class_data_ =
    OfflineBadgeContent::InternalGenerateClassData_(OfflineBadgeContent_globals_._default);

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

  _impl_.available_offline_ = false;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 2;
  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 OfflineBadgeContent::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OfflineBadgeContent*>(&to_msg);
  auto& from = static_cast<const OfflineBadgeContent&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:feedxsurface.OfflineBadgeContent)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite WebFeedFollowState_class_data_ =
    WebFeedFollowState::InternalGenerateClassData_(WebFeedFollowState_globals_._default);

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

  _impl_.follow_state_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .feedxsurface.WebFeedFollowState.FollowState follow_state = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_follow_state(), 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:feedxsurface.WebFeedFollowState)
  return target;
}

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

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

   {
    // optional .feedxsurface.WebFeedFollowState.FollowState follow_state = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_follow_state());
    }
  }
  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 WebFeedFollowState::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<WebFeedFollowState*>(&to_msg);
  auto& from = static_cast<const WebFeedFollowState&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:feedxsurface.WebFeedFollowState)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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