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

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

constexpr SummarizeResponse::ParseTableT_ SummarizeResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SummarizeResponse, _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<::optimization_guide::proto::SummarizeResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string output = 1 [features = {
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeResponse, _impl_.output_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string output = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeResponse, _impl_.output_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\52\6\0\0\0\0\0\0"
      "optimization_guide.proto.SummarizeResponse"
      "output"
    }},
  };
}


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

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

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

constexpr SummarizeOptions::ParseTableT_ SummarizeOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      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<::optimization_guide::proto::SummarizeOptions>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string output_language = 4 [features = {
      {::_pbi::TcParser::FastUS1,
       {34, 0, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_language_)}},
      // .optimization_guide.proto.SummarizerOutputType output_type = 1 [features = {
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_type_)}},
      // .optimization_guide.proto.SummarizerOutputFormat output_format = 2 [features = {
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_format_)}},
      // .optimization_guide.proto.SummarizerOutputLength output_length = 3 [features = {
      {::_pbi::TcParser::FastV32S1,
       {24, 3, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_length_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.SummarizerOutputType output_type = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // .optimization_guide.proto.SummarizerOutputFormat output_format = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_format_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // .optimization_guide.proto.SummarizerOutputLength output_length = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_length_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // string output_language = 4 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeOptions, _impl_.output_language_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\51\0\0\0\17\0\0\0"
      "optimization_guide.proto.SummarizeOptions"
      "output_language"
    }},
  };
}


inline constexpr SummarizeOptions::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        output_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        output_type_{static_cast< ::optimization_guide::proto::SummarizerOutputType >(0)},
        output_format_{static_cast< ::optimization_guide::proto::SummarizerOutputFormat >(0)},
        output_length_{static_cast< ::optimization_guide::proto::SummarizerOutputLength >(0)} {}

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

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

constexpr SummarizeRequest::ParseTableT_ SummarizeRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SummarizeRequest, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      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::SummarizeRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string article = 1 [features = {
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeRequest, _impl_.article_)}},
      // string context = 2 [features = {
      {::_pbi::TcParser::FastUS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeRequest, _impl_.context_)}},
      // .optimization_guide.proto.SummarizeOptions options = 3 [features = {
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeRequest, _impl_.options_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string article = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeRequest, _impl_.article_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string context = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeRequest, _impl_.context_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .optimization_guide.proto.SummarizeOptions options = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeRequest, _impl_.options_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::SummarizeOptions>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::SummarizeOptions_globals_},
        #endif
    }},
    {{
      "\51\7\7\0\0\0\0\0"
      "optimization_guide.proto.SummarizeRequest"
      "article"
      "context"
    }},
  };
}


inline constexpr SummarizeRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        article_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        context_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        options_{nullptr} {}

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

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

constexpr SummarizeConstraints::ParseTableT_ SummarizeConstraints::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      4,  // 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::SummarizeConstraints>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.ResponseConstraint headlines_constraint = 4 [features = {
      {::_pbi::TcParser::FastMtS1,
       {34, 3, 3,
        PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.headlines_constraint_)}},
      // .optimization_guide.proto.ResponseConstraint tldr_constraint = 1 [features = {
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.tldr_constraint_)}},
      // .optimization_guide.proto.ResponseConstraint keypoints_constraint = 2 [features = {
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.keypoints_constraint_)}},
      // .optimization_guide.proto.ResponseConstraint teaser_constraint = 3 [features = {
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 2,
        PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.teaser_constraint_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.ResponseConstraint tldr_constraint = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.tldr_constraint_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ResponseConstraint keypoints_constraint = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.keypoints_constraint_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ResponseConstraint teaser_constraint = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.teaser_constraint_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ResponseConstraint headlines_constraint = 4 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.headlines_constraint_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ResponseConstraint>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ResponseConstraint_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ResponseConstraint>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ResponseConstraint_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ResponseConstraint>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ResponseConstraint_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ResponseConstraint>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ResponseConstraint_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr SummarizeConstraints::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        tldr_constraint_{nullptr},
        keypoints_constraint_{nullptr},
        teaser_constraint_{nullptr},
        headlines_constraint_{nullptr} {}

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

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

constexpr SummarizeMetadata::ParseTableT_ SummarizeMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      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::SummarizeMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // int32 version = 1 [features = {
      {::_pbi::TcParser::FastV32S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.version_)}},
      // repeated string available_prompt_languages = 2;
      {::_pbi::TcParser::FastUR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.available_prompt_languages_)}},
      // .optimization_guide.proto.SummarizeConstraints constraints = 3 [features = {
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.constraints_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int32 version = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // repeated string available_prompt_languages = 2;
      {PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.available_prompt_languages_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
      // .optimization_guide.proto.SummarizeConstraints constraints = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.constraints_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::SummarizeConstraints>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::SummarizeConstraints_globals_},
        #endif
    }},
    {{
      "\52\0\32\0\0\0\0\0"
      "optimization_guide.proto.SummarizeMetadata"
      "available_prompt_languages"
    }},
  };
}


inline constexpr SummarizeMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        available_prompt_languages_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::SummarizeMetadata,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SummarizeMetadata, _impl_.available_prompt_languages_)>()
         }
        ,
        constraints_{nullptr},
        version_{0} {}

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

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

constexpr SummarizeLoggingData::ParseTableT_ SummarizeLoggingData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SummarizeLoggingData, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      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::SummarizeLoggingData>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.SummarizeResponse response = 2 [features = {
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(SummarizeLoggingData, _impl_.response_)}},
      // .optimization_guide.proto.SummarizeRequest request = 1 [features = {
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SummarizeLoggingData, _impl_.request_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.SummarizeRequest request = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeLoggingData, _impl_.request_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.SummarizeResponse response = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(SummarizeLoggingData, _impl_.response_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::SummarizeRequest>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::SummarizeRequest_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::SummarizeResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::SummarizeResponse_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr SummarizeLoggingData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        request_{nullptr},
        response_{nullptr} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SummarizeLoggingDataGlobalsTypeInternal SummarizeLoggingData_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* SummarizeLoggingData_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return SummarizeLoggingData_globals_.GetClassData();
#else
  return SummarizeLoggingData_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace optimization_guide
namespace optimization_guide {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t SummarizerOutputType_internal_data_[] = {
    327680u, 0u, };
static const char SummarizerOutputType_names[] = {
    "SUMMARIZER_OUTPUT_TYPE_HEADLINES"
    "SUMMARIZER_OUTPUT_TYPE_KEYPOINTS"
    "SUMMARIZER_OUTPUT_TYPE_NOT_SPECIFIED"
    "SUMMARIZER_OUTPUT_TYPE_TEASER"
    "SUMMARIZER_OUTPUT_TYPE_TL_DR"
};

static const ::google::protobuf::internal::EnumEntry SummarizerOutputType_entries[] = {
    {{&SummarizerOutputType_names[0], 32}, 4},
    {{&SummarizerOutputType_names[32], 32}, 2},
    {{&SummarizerOutputType_names[64], 36}, 0},
    {{&SummarizerOutputType_names[100], 29}, 3},
    {{&SummarizerOutputType_names[129], 28}, 1},
};

static const int SummarizerOutputType_entries_by_number[] = {
    2,  // 0 -> SUMMARIZER_OUTPUT_TYPE_NOT_SPECIFIED
    4,  // 1 -> SUMMARIZER_OUTPUT_TYPE_TL_DR
    1,  // 2 -> SUMMARIZER_OUTPUT_TYPE_KEYPOINTS
    3,  // 3 -> SUMMARIZER_OUTPUT_TYPE_TEASER
    0,  // 4 -> SUMMARIZER_OUTPUT_TYPE_HEADLINES
};

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

const ::std::string& SummarizerOutputType_Name(SummarizerOutputType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SummarizerOutputType_entries, SummarizerOutputType_entries_by_number, 5,
      SummarizerOutputType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SummarizerOutputType_entries,
                                  SummarizerOutputType_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SummarizerOutputType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t SummarizerOutputFormat_internal_data_[] = {
    196608u, 0u, };
static const char SummarizerOutputFormat_names[] = {
    "SUMMARIZER_OUTPUT_FORMAT_MARKDOWN"
    "SUMMARIZER_OUTPUT_FORMAT_NOT_SPECIFIED"
    "SUMMARIZER_OUTPUT_FORMAT_PLAIN_TEXT"
};

static const ::google::protobuf::internal::EnumEntry SummarizerOutputFormat_entries[] = {
    {{&SummarizerOutputFormat_names[0], 33}, 2},
    {{&SummarizerOutputFormat_names[33], 38}, 0},
    {{&SummarizerOutputFormat_names[71], 35}, 1},
};

static const int SummarizerOutputFormat_entries_by_number[] = {
    1,  // 0 -> SUMMARIZER_OUTPUT_FORMAT_NOT_SPECIFIED
    2,  // 1 -> SUMMARIZER_OUTPUT_FORMAT_PLAIN_TEXT
    0,  // 2 -> SUMMARIZER_OUTPUT_FORMAT_MARKDOWN
};

bool SummarizerOutputFormat_Parse(::absl::string_view name,
                                  SummarizerOutputFormat* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SummarizerOutputFormat_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<SummarizerOutputFormat>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SummarizerOutputFormat_strings[3] = {};

const ::std::string& SummarizerOutputFormat_Name(SummarizerOutputFormat value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SummarizerOutputFormat_entries, SummarizerOutputFormat_entries_by_number, 3,
      SummarizerOutputFormat_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SummarizerOutputFormat_entries,
                                  SummarizerOutputFormat_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SummarizerOutputFormat_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t SummarizerOutputLength_internal_data_[] = {
    262144u, 0u, };
static const char SummarizerOutputLength_names[] = {
    "SUMMARIZER_OUTPUT_LENGTH_LONG"
    "SUMMARIZER_OUTPUT_LENGTH_MEDIUM"
    "SUMMARIZER_OUTPUT_LENGTH_NOT_SPECIFIED"
    "SUMMARIZER_OUTPUT_LENGTH_SHORT"
};

static const ::google::protobuf::internal::EnumEntry SummarizerOutputLength_entries[] = {
    {{&SummarizerOutputLength_names[0], 29}, 3},
    {{&SummarizerOutputLength_names[29], 31}, 2},
    {{&SummarizerOutputLength_names[60], 38}, 0},
    {{&SummarizerOutputLength_names[98], 30}, 1},
};

static const int SummarizerOutputLength_entries_by_number[] = {
    2,  // 0 -> SUMMARIZER_OUTPUT_LENGTH_NOT_SPECIFIED
    3,  // 1 -> SUMMARIZER_OUTPUT_LENGTH_SHORT
    1,  // 2 -> SUMMARIZER_OUTPUT_LENGTH_MEDIUM
    0,  // 3 -> SUMMARIZER_OUTPUT_LENGTH_LONG
};

bool SummarizerOutputLength_Parse(::absl::string_view name,
                                  SummarizerOutputLength* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SummarizerOutputLength_entries, 4, name, &int_value);
  if (success) {
    *value = static_cast<SummarizerOutputLength>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SummarizerOutputLength_strings[4] = {};

const ::std::string& SummarizerOutputLength_Name(SummarizerOutputLength value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SummarizerOutputLength_entries, SummarizerOutputLength_entries_by_number, 4,
      SummarizerOutputLength_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SummarizerOutputLength_entries,
                                  SummarizerOutputLength_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SummarizerOutputLength_strings[idx].get();
}
// ===================================================================

SummarizeLoggingData::SummarizeLoggingData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SummarizeLoggingData_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.SummarizeLoggingData)
}
PROTOBUF_NDEBUG_INLINE SummarizeLoggingData::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::SummarizeLoggingData& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SummarizeLoggingData* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.request_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_)
                : nullptr;
  _impl_.response_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SummarizeLoggingData_class_data_ =
    SummarizeLoggingData::InternalGenerateClassData_(SummarizeLoggingData_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.SummarizeRequest request = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.request_, this_._impl_.request_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.SummarizeResponse response = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.response_, this_._impl_.response_->GetCachedSize(), target,
        stream);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.SummarizeLoggingData)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SummarizeLoggingData::ByteSizeLong(const MessageLite& base) {
  const SummarizeLoggingData& this_ = static_cast<const SummarizeLoggingData&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SummarizeLoggingData::ByteSizeLong() const {
  const SummarizeLoggingData& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.SummarizeLoggingData)
  ::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)) {
    // .optimization_guide.proto.SummarizeRequest request = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_);
    }
    // .optimization_guide.proto.SummarizeResponse response = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_);
    }
  }
  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 SummarizeLoggingData::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SummarizeLoggingData*>(&to_msg);
  auto& from = static_cast<const SummarizeLoggingData&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SummarizeLoggingData)
  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)) {
      ABSL_DCHECK(from._impl_.request_ != nullptr);
      if (_this->_impl_.request_ == nullptr) {
        _this->_impl_.request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_);
      } else {
        _this->_impl_.request_->MergeFrom(*from._impl_.request_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.response_ != nullptr);
      if (_this->_impl_.response_ == nullptr) {
        _this->_impl_.response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_);
      } else {
        _this->_impl_.response_->MergeFrom(*from._impl_.response_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SummarizeLoggingData::InternalSwap(SummarizeLoggingData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SummarizeLoggingData, _impl_.response_)
      + sizeof(SummarizeLoggingData::_impl_.response_)
      - PROTOBUF_FIELD_OFFSET(SummarizeLoggingData, _impl_.request_)>(
          reinterpret_cast<char*>(&_impl_.request_),
          reinterpret_cast<char*>(&other->_impl_.request_));
}

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

SummarizeRequest::SummarizeRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SummarizeRequest_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.SummarizeRequest)
}
PROTOBUF_NDEBUG_INLINE SummarizeRequest::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::SummarizeRequest& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        article_(arena, from.article_),
        context_(arena, from.context_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SummarizeRequest* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.options_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.options_)
                : nullptr;

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.SummarizeRequest)
}
PROTOBUF_NDEBUG_INLINE SummarizeRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        article_(arena),
        context_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SummarizeRequest_class_data_ =
    SummarizeRequest::InternalGenerateClassData_(SummarizeRequest_globals_._default);

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

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

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

  // string context = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_context();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizeRequest.context");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // .optimization_guide.proto.SummarizeOptions options = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.options_, this_._impl_.options_->GetCachedSize(), target,
        stream);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.SummarizeRequest)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SummarizeRequest::ByteSizeLong(const MessageLite& base) {
  const SummarizeRequest& this_ = static_cast<const SummarizeRequest&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SummarizeRequest::ByteSizeLong() const {
  const SummarizeRequest& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.SummarizeRequest)
  ::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 article = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_article());
    }
    // string context = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_context());
    }
    // .optimization_guide.proto.SummarizeOptions options = 3 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.options_);
    }
  }
  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 SummarizeRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SummarizeRequest*>(&to_msg);
  auto& from = static_cast<const SummarizeRequest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SummarizeRequest)
  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_article(from._internal_article());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_context(from._internal_context());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.options_ != nullptr);
      if (_this->_impl_.options_ == nullptr) {
        _this->_impl_.options_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.options_);
      } else {
        _this->_impl_.options_->MergeFrom(*from._impl_.options_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SummarizeRequest::InternalSwap(SummarizeRequest* 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_.article_, &other->_impl_.article_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.context_, &other->_impl_.context_, arena);
  swap(_impl_.options_, other->_impl_.options_);
}

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

SummarizeOptions::SummarizeOptions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SummarizeOptions_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.SummarizeOptions)
}
PROTOBUF_NDEBUG_INLINE SummarizeOptions::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::SummarizeOptions& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        output_language_(arena, from.output_language_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SummarizeOptions* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, output_type_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, output_type_),
           offsetof(Impl_, output_length_) -
               offsetof(Impl_, output_type_) +
               sizeof(Impl_::output_length_));

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.SummarizeOptions)
}
PROTOBUF_NDEBUG_INLINE SummarizeOptions::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        output_language_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SummarizeOptions_class_data_ =
    SummarizeOptions::InternalGenerateClassData_(SummarizeOptions_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.output_language_.ClearNonDefaultToEmpty();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
    ::memset(&_impl_.output_type_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.output_length_) -
        reinterpret_cast<char*>(&_impl_.output_type_)) + sizeof(_impl_.output_length_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.SummarizerOutputType output_type = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_output_type(), target);
  }

  // .optimization_guide.proto.SummarizerOutputFormat output_format = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_output_format(), target);
  }

  // .optimization_guide.proto.SummarizerOutputLength output_length = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_output_length(), target);
  }

  // string output_language = 4 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_output_language();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizeOptions.output_language");
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.SummarizeOptions)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // string output_language = 4 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_output_language());
    }
    // .optimization_guide.proto.SummarizerOutputType output_type = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_output_type());
    }
    // .optimization_guide.proto.SummarizerOutputFormat output_format = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_output_format());
    }
    // .optimization_guide.proto.SummarizerOutputLength output_length = 3 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_output_length());
    }
  }
  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 SummarizeOptions::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SummarizeOptions*>(&to_msg);
  auto& from = static_cast<const SummarizeOptions&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SummarizeOptions)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_output_language(from._internal_output_language());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.output_type_ = from._impl_.output_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.output_format_ = from._impl_.output_format_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.output_length_ = from._impl_.output_length_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

SummarizeResponse::SummarizeResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SummarizeResponse_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.SummarizeResponse)
}
PROTOBUF_NDEBUG_INLINE SummarizeResponse::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::SummarizeResponse& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        output_(arena, from.output_) {}

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SummarizeResponse_class_data_ =
    SummarizeResponse::InternalGenerateClassData_(SummarizeResponse_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.output_.ClearNonDefaultToEmpty();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.SummarizeResponse)
  return target;
}

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

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

   {
    // string output = 1 [features = {
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_output());
    }
  }
  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 SummarizeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SummarizeResponse*>(&to_msg);
  auto& from = static_cast<const SummarizeResponse&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SummarizeResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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

SummarizeMetadata::SummarizeMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SummarizeMetadata_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.SummarizeMetadata)
}
PROTOBUF_NDEBUG_INLINE SummarizeMetadata::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::SummarizeMetadata& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        available_prompt_languages_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::SummarizeMetadata,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SummarizeMetadata, _impl_.available_prompt_languages_)>()
          , from.available_prompt_languages_
        }
     {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SummarizeMetadata* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.constraints_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.constraints_)
                : nullptr;
  _impl_.version_ = from._impl_.version_;

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.SummarizeMetadata)
}
PROTOBUF_NDEBUG_INLINE SummarizeMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        available_prompt_languages_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::SummarizeMetadata,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::SummarizeMetadata, _impl_.available_prompt_languages_)>()
         }
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SummarizeMetadata_class_data_ =
    SummarizeMetadata::InternalGenerateClassData_(SummarizeMetadata_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // int32 version = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_version(), target);
  }

  // repeated string available_prompt_languages = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_available_prompt_languages_size(); i < n; ++i) {
      const auto& s = this_._internal_available_prompt_languages().Get(i);
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.SummarizeMetadata.available_prompt_languages");
      target = stream->WriteString(2, s, target);
    }
  }

  // .optimization_guide.proto.SummarizeConstraints constraints = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.constraints_, this_._impl_.constraints_->GetCachedSize(), target,
        stream);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.SummarizeMetadata)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SummarizeMetadata::ByteSizeLong(const MessageLite& base) {
  const SummarizeMetadata& this_ = static_cast<const SummarizeMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SummarizeMetadata::ByteSizeLong() const {
  const SummarizeMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.SummarizeMetadata)
  ::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)) {
    // repeated string available_prompt_languages = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_available_prompt_languages().size());
      for (int i = 0, n = this_._internal_available_prompt_languages().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_available_prompt_languages().Get(i));
      }
    }
    // .optimization_guide.proto.SummarizeConstraints constraints = 3 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.constraints_);
    }
    // int32 version = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_version());
    }
  }
  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 SummarizeMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SummarizeMetadata*>(&to_msg);
  auto& from = static_cast<const SummarizeMetadata&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SummarizeMetadata)
  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_mutable_available_prompt_languages()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_available_prompt_languages());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.constraints_ != nullptr);
      if (_this->_impl_.constraints_ == nullptr) {
        _this->_impl_.constraints_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.constraints_);
      } else {
        _this->_impl_.constraints_->MergeFrom(*from._impl_.constraints_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.version_ = from._impl_.version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SummarizeMetadata::InternalSwap(SummarizeMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.available_prompt_languages_.InternalSwap(&other->_impl_.available_prompt_languages_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.version_)
      + sizeof(SummarizeMetadata::_impl_.version_)
      - PROTOBUF_FIELD_OFFSET(SummarizeMetadata, _impl_.constraints_)>(
          reinterpret_cast<char*>(&_impl_.constraints_),
          reinterpret_cast<char*>(&other->_impl_.constraints_));
}

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

void SummarizeConstraints::clear_tldr_constraint() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.tldr_constraint_ != nullptr) _impl_.tldr_constraint_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
void SummarizeConstraints::clear_keypoints_constraint() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.keypoints_constraint_ != nullptr) _impl_.keypoints_constraint_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
void SummarizeConstraints::clear_teaser_constraint() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.teaser_constraint_ != nullptr) _impl_.teaser_constraint_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
void SummarizeConstraints::clear_headlines_constraint() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.headlines_constraint_ != nullptr) _impl_.headlines_constraint_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
SummarizeConstraints::SummarizeConstraints(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SummarizeConstraints_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.SummarizeConstraints)
}
PROTOBUF_NDEBUG_INLINE SummarizeConstraints::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::SummarizeConstraints& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SummarizeConstraints* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.tldr_constraint_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tldr_constraint_)
                : nullptr;
  _impl_.keypoints_constraint_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.keypoints_constraint_)
                : nullptr;
  _impl_.teaser_constraint_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.teaser_constraint_)
                : nullptr;
  _impl_.headlines_constraint_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.headlines_constraint_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SummarizeConstraints_class_data_ =
    SummarizeConstraints::InternalGenerateClassData_(SummarizeConstraints_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.tldr_constraint_ != nullptr);
      _impl_.tldr_constraint_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.keypoints_constraint_ != nullptr);
      _impl_.keypoints_constraint_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.teaser_constraint_ != nullptr);
      _impl_.teaser_constraint_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.headlines_constraint_ != nullptr);
      _impl_.headlines_constraint_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.ResponseConstraint tldr_constraint = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.tldr_constraint_, this_._impl_.tldr_constraint_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.ResponseConstraint keypoints_constraint = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.keypoints_constraint_, this_._impl_.keypoints_constraint_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.ResponseConstraint teaser_constraint = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.teaser_constraint_, this_._impl_.teaser_constraint_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.ResponseConstraint headlines_constraint = 4 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.headlines_constraint_, this_._impl_.headlines_constraint_->GetCachedSize(), target,
        stream);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:optimization_guide.proto.SummarizeConstraints)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // .optimization_guide.proto.ResponseConstraint tldr_constraint = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tldr_constraint_);
    }
    // .optimization_guide.proto.ResponseConstraint keypoints_constraint = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.keypoints_constraint_);
    }
    // .optimization_guide.proto.ResponseConstraint teaser_constraint = 3 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.teaser_constraint_);
    }
    // .optimization_guide.proto.ResponseConstraint headlines_constraint = 4 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.headlines_constraint_);
    }
  }
  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 SummarizeConstraints::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SummarizeConstraints*>(&to_msg);
  auto& from = static_cast<const SummarizeConstraints&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SummarizeConstraints)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(from._impl_.tldr_constraint_ != nullptr);
      if (_this->_impl_.tldr_constraint_ == nullptr) {
        _this->_impl_.tldr_constraint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tldr_constraint_);
      } else {
        _this->_impl_.tldr_constraint_->MergeFrom(*from._impl_.tldr_constraint_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.keypoints_constraint_ != nullptr);
      if (_this->_impl_.keypoints_constraint_ == nullptr) {
        _this->_impl_.keypoints_constraint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.keypoints_constraint_);
      } else {
        _this->_impl_.keypoints_constraint_->MergeFrom(*from._impl_.keypoints_constraint_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.teaser_constraint_ != nullptr);
      if (_this->_impl_.teaser_constraint_ == nullptr) {
        _this->_impl_.teaser_constraint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.teaser_constraint_);
      } else {
        _this->_impl_.teaser_constraint_->MergeFrom(*from._impl_.teaser_constraint_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.headlines_constraint_ != nullptr);
      if (_this->_impl_.headlines_constraint_ == nullptr) {
        _this->_impl_.headlines_constraint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.headlines_constraint_);
      } else {
        _this->_impl_.headlines_constraint_->MergeFrom(*from._impl_.headlines_constraint_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SummarizeConstraints::InternalSwap(SummarizeConstraints* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.headlines_constraint_)
      + sizeof(SummarizeConstraints::_impl_.headlines_constraint_)
      - PROTOBUF_FIELD_OFFSET(SummarizeConstraints, _impl_.tldr_constraint_)>(
          reinterpret_cast<char*>(&_impl_.tldr_constraint_),
          reinterpret_cast<char*>(&other->_impl_.tldr_constraint_));
}

// @@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"
