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

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

constexpr WritingAssistanceApiFeatureConfig::ParseTableT_ WritingAssistanceApiFeatureConfig::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(WritingAssistanceApiFeatureConfig, _impl_._has_bits_),
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::WritingAssistanceApiFeatureConfig>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string default_use_case = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(WritingAssistanceApiFeatureConfig, _impl_.default_use_case_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string default_use_case = 1;
      {PROTOBUF_FIELD_OFFSET(WritingAssistanceApiFeatureConfig, _impl_.default_use_case_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // map<string, string> experimental_use_cases = 2;
      {PROTOBUF_FIELD_OFFSET(WritingAssistanceApiFeatureConfig, _impl_.experimental_use_cases_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
    }},
    {{
        {::_pbi::TcParser::GetMapAuxInfo(
            1, 0, 9, 9, 1)},
    }},
    {{
      "\72\20\26\0\0\0\0\0"
      "optimization_guide.proto.WritingAssistanceApiFeatureConfig"
      "default_use_case"
      "experimental_use_cases"
    }},
  };
}


inline constexpr WritingAssistanceApiFeatureConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        default_use_case_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        experimental_use_cases_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::WritingAssistanceApiFeatureConfig,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::WritingAssistanceApiFeatureConfig, _impl_.experimental_use_cases_)>()
         }
     {}

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

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

constexpr SummarizerFeatureConfig::ParseTableT_ SummarizerFeatureConfig::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SummarizerFeatureConfig, _impl_._has_bits_),
      0, // no _extensions_
      3, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::SummarizerFeatureConfig>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string default_use_case = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SummarizerFeatureConfig, _impl_.default_use_case_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string default_use_case = 1;
      {PROTOBUF_FIELD_OFFSET(SummarizerFeatureConfig, _impl_.default_use_case_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // map<string, string> preference_use_cases = 2;
      {PROTOBUF_FIELD_OFFSET(SummarizerFeatureConfig, _impl_.preference_use_cases_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
      // map<string, string> experimental_use_cases = 3;
      {PROTOBUF_FIELD_OFFSET(SummarizerFeatureConfig, _impl_.experimental_use_cases_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
    }},
    {{
        {::_pbi::TcParser::GetMapAuxInfo(
            1, 0, 9, 9, 1)},
        {::_pbi::TcParser::GetMapAuxInfo(
            1, 0, 9, 9, 1)},
    }},
    {{
      "\60\20\24\26\0\0\0\0"
      "optimization_guide.proto.SummarizerFeatureConfig"
      "default_use_case"
      "preference_use_cases"
      "experimental_use_cases"
    }},
  };
}


inline constexpr SummarizerFeatureConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        default_use_case_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        preference_use_cases_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::SummarizerFeatureConfig,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SummarizerFeatureConfig, _impl_.preference_use_cases_)>()
         }
        ,
        experimental_use_cases_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::SummarizerFeatureConfig,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SummarizerFeatureConfig, _impl_.experimental_use_cases_)>()
         }
     {}

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

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

constexpr PromptApiFeatureConfig::ParseTableT_ PromptApiFeatureConfig::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PromptApiFeatureConfig, _impl_._has_bits_),
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::PromptApiFeatureConfig>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string default_use_case = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PromptApiFeatureConfig, _impl_.default_use_case_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string default_use_case = 1;
      {PROTOBUF_FIELD_OFFSET(PromptApiFeatureConfig, _impl_.default_use_case_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // map<string, string> experimental_use_cases = 2;
      {PROTOBUF_FIELD_OFFSET(PromptApiFeatureConfig, _impl_.experimental_use_cases_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
    }},
    {{
        {::_pbi::TcParser::GetMapAuxInfo(
            1, 0, 9, 9, 1)},
    }},
    {{
      "\57\20\26\0\0\0\0\0"
      "optimization_guide.proto.PromptApiFeatureConfig"
      "default_use_case"
      "experimental_use_cases"
    }},
  };
}


inline constexpr PromptApiFeatureConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        default_use_case_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        experimental_use_cases_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::PromptApiFeatureConfig,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::PromptApiFeatureConfig, _impl_.experimental_use_cases_)>()
         }
     {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PromptApiFeatureConfigGlobalsTypeInternal PromptApiFeatureConfig_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PromptApiFeatureConfig_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PromptApiFeatureConfig_globals_.GetClassData();
#else
  return PromptApiFeatureConfig_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace optimization_guide
namespace optimization_guide {
namespace proto {
// ===================================================================

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SummarizerFeatureConfig_class_data_ =
    SummarizerFeatureConfig::InternalGenerateClassData_(SummarizerFeatureConfig_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string default_use_case = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_default_use_case();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.default_use_case");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // map<string, string> preference_use_cases = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_preference_use_cases().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_preference_use_cases();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              2, entry.first, entry.second, target, stream);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.preference_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.preference_use_cases");
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              2, entry.first, entry.second, target, stream);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.preference_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.preference_use_cases");
        }
      }
    }
  }

  // map<string, string> experimental_use_cases = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (!this_._internal_experimental_use_cases().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_experimental_use_cases();

      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);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.experimental_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.experimental_use_cases");
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              3, entry.first, entry.second, target, stream);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.experimental_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizerFeatureConfig.experimental_use_cases");
        }
      }
    }
  }

  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:optimization_guide.proto.SummarizerFeatureConfig)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // string default_use_case = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_default_use_case());
    }
    // map<string, string> preference_use_cases = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_preference_use_cases_size());
      for (const auto& entry : this_._internal_preference_use_cases()) {
        total_size += _pbi::MapEntryFuncs<::std::string, ::std::string,
                                       _pbi::WireFormatLite::TYPE_STRING,
                                       _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second);
      }
    }
    // map<string, string> experimental_use_cases = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_experimental_use_cases_size());
      for (const auto& entry : this_._internal_experimental_use_cases()) {
        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 SummarizerFeatureConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SummarizerFeatureConfig*>(&to_msg);
  auto& from = static_cast<const SummarizerFeatureConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SummarizerFeatureConfig)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_default_use_case(from._internal_default_use_case());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.preference_use_cases_.MergeFrom(from._impl_.preference_use_cases_);
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.experimental_use_cases_.MergeFrom(from._impl_.experimental_use_cases_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SummarizerFeatureConfig::InternalSwap(SummarizerFeatureConfig* 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_.default_use_case_, &other->_impl_.default_use_case_, arena);
  _impl_.preference_use_cases_.InternalSwap(&other->_impl_.preference_use_cases_);
  _impl_.experimental_use_cases_.InternalSwap(&other->_impl_.experimental_use_cases_);
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite WritingAssistanceApiFeatureConfig_class_data_ =
    WritingAssistanceApiFeatureConfig::InternalGenerateClassData_(WritingAssistanceApiFeatureConfig_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string default_use_case = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_default_use_case();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.WritingAssistanceApiFeatureConfig.default_use_case");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // map<string, string> experimental_use_cases = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_experimental_use_cases().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_experimental_use_cases();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              2, entry.first, entry.second, target, stream);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.WritingAssistanceApiFeatureConfig.experimental_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.WritingAssistanceApiFeatureConfig.experimental_use_cases");
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              2, entry.first, entry.second, target, stream);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.WritingAssistanceApiFeatureConfig.experimental_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.WritingAssistanceApiFeatureConfig.experimental_use_cases");
        }
      }
    }
  }

  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:optimization_guide.proto.WritingAssistanceApiFeatureConfig)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t WritingAssistanceApiFeatureConfig::ByteSizeLong(const MessageLite& base) {
  const WritingAssistanceApiFeatureConfig& this_ = static_cast<const WritingAssistanceApiFeatureConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t WritingAssistanceApiFeatureConfig::ByteSizeLong() const {
  const WritingAssistanceApiFeatureConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.WritingAssistanceApiFeatureConfig)
  ::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)) {
    // string default_use_case = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_default_use_case());
    }
    // map<string, string> experimental_use_cases = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_experimental_use_cases_size());
      for (const auto& entry : this_._internal_experimental_use_cases()) {
        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 WritingAssistanceApiFeatureConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<WritingAssistanceApiFeatureConfig*>(&to_msg);
  auto& from = static_cast<const WritingAssistanceApiFeatureConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.WritingAssistanceApiFeatureConfig)
  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_default_use_case(from._internal_default_use_case());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.experimental_use_cases_.MergeFrom(from._impl_.experimental_use_cases_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void WritingAssistanceApiFeatureConfig::InternalSwap(WritingAssistanceApiFeatureConfig* 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_.default_use_case_, &other->_impl_.default_use_case_, arena);
  _impl_.experimental_use_cases_.InternalSwap(&other->_impl_.experimental_use_cases_);
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PromptApiFeatureConfig_class_data_ =
    PromptApiFeatureConfig::InternalGenerateClassData_(PromptApiFeatureConfig_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string default_use_case = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_default_use_case();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.PromptApiFeatureConfig.default_use_case");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // map<string, string> experimental_use_cases = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_experimental_use_cases().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_experimental_use_cases();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              2, entry.first, entry.second, target, stream);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.PromptApiFeatureConfig.experimental_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.PromptApiFeatureConfig.experimental_use_cases");
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              2, entry.first, entry.second, target, stream);
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.first.data(), static_cast<int>(entry.first.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.PromptApiFeatureConfig.experimental_use_cases");
          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
              entry.second.data(), static_cast<int>(entry.second.length()),
 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.PromptApiFeatureConfig.experimental_use_cases");
        }
      }
    }
  }

  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:optimization_guide.proto.PromptApiFeatureConfig)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PromptApiFeatureConfig::ByteSizeLong(const MessageLite& base) {
  const PromptApiFeatureConfig& this_ = static_cast<const PromptApiFeatureConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PromptApiFeatureConfig::ByteSizeLong() const {
  const PromptApiFeatureConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.PromptApiFeatureConfig)
  ::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)) {
    // string default_use_case = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_default_use_case());
    }
    // map<string, string> experimental_use_cases = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_experimental_use_cases_size());
      for (const auto& entry : this_._internal_experimental_use_cases()) {
        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 PromptApiFeatureConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PromptApiFeatureConfig*>(&to_msg);
  auto& from = static_cast<const PromptApiFeatureConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.PromptApiFeatureConfig)
  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_default_use_case(from._internal_default_use_case());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.experimental_use_cases_.MergeFrom(from._impl_.experimental_use_cases_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PromptApiFeatureConfig::InternalSwap(PromptApiFeatureConfig* 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_.default_use_case_, &other->_impl_.default_use_case_, arena);
  _impl_.experimental_use_cases_.InternalSwap(&other->_impl_.experimental_use_cases_);
}

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