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

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

constexpr TextSafetyModelResponse::ParseTableT_ TextSafetyModelResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // 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::TextSafetyModelResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated float scores = 1;
      {::_pbi::TcParser::FastF32P1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.scores_)}},
      // bool is_unsafe = 2;
      {::_pbi::TcParser::FastV8S1,
       {16, 3, 0,
        PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.is_unsafe_)}},
      // string server_execution_id = 3;
      {::_pbi::TcParser::FastUS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.server_execution_id_)}},
      // string language_code = 4;
      {::_pbi::TcParser::FastUS1,
       {34, 2, 0,
        PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.language_code_)}},
      // float language_confidence = 5;
      {::_pbi::TcParser::FastF32S1,
       {45, 4, 0,
        PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.language_confidence_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated float scores = 1;
      {PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.scores_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
      // bool is_unsafe = 2;
      {PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.is_unsafe_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // string server_execution_id = 3;
      {PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.server_execution_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string language_code = 4;
      {PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.language_code_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // float language_confidence = 5;
      {PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.language_confidence_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
      "\60\0\0\23\15\0\0\0"
      "optimization_guide.proto.TextSafetyModelResponse"
      "server_execution_id"
      "language_code"
    }},
  };
}


inline constexpr TextSafetyModelResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        scores_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::TextSafetyModelResponse,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::TextSafetyModelResponse, _impl_.scores_)>()
         }
        ,
        server_execution_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        language_code_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        is_unsafe_{false},
        language_confidence_{0} {}

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

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

constexpr TextSafetyModelRequest::ParseTableT_ TextSafetyModelRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextSafetyModelRequest, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::TextSafetyModelRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string url = 2;
      {::_pbi::TcParser::FastUS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(TextSafetyModelRequest, _impl_.url_)}},
      // string text = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(TextSafetyModelRequest, _impl_.text_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string text = 1;
      {PROTOBUF_FIELD_OFFSET(TextSafetyModelRequest, _impl_.text_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string url = 2;
      {PROTOBUF_FIELD_OFFSET(TextSafetyModelRequest, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\57\4\3\0\0\0\0\0"
      "optimization_guide.proto.TextSafetyModelRequest"
      "text"
      "url"
    }},
  };
}


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

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

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

constexpr OnDeviceSystemProfile::ParseTableT_ OnDeviceSystemProfile::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OnDeviceSystemProfile, _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::OnDeviceSystemProfile>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.PerformanceClass performance_class = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceSystemProfile, _impl_.performance_class_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.PerformanceClass performance_class = 1;
      {PROTOBUF_FIELD_OFFSET(OnDeviceSystemProfile, _impl_.performance_class_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr OnDeviceSystemProfile::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        performance_class_{static_cast< ::optimization_guide::proto::PerformanceClass >(0)} {}

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

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

constexpr OnDeviceModelServiceResponse::ParseTableT_ OnDeviceModelServiceResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // 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::OnDeviceModelServiceResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string output_string = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.output_string_)}},
      // int64 time_to_first_response_millis = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.time_to_first_response_millis_)}},
      // int64 time_to_completion_millis = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.time_to_completion_millis_)}},
      // .optimization_guide.proto.OnDeviceModelServiceResponseStatus status = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.status_)}},
      // bool has_repeats = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 4, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.has_repeats_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // string output_string = 1;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.output_string_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // int64 time_to_first_response_millis = 2;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.time_to_first_response_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // int64 time_to_completion_millis = 3;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.time_to_completion_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // .optimization_guide.proto.OnDeviceModelServiceResponseStatus status = 4;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.status_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // bool has_repeats = 5;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.has_repeats_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    // no aux_entries
    {{
      "\65\15\0\0\0\0\0\0"
      "optimization_guide.proto.OnDeviceModelServiceResponse"
      "output_string"
    }},
  };
}


inline constexpr OnDeviceModelServiceResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        output_string_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        time_to_first_response_millis_{::int64_t{0}},
        time_to_completion_millis_{::int64_t{0}},
        status_{static_cast< ::optimization_guide::proto::OnDeviceModelServiceResponseStatus >(0)},
        has_repeats_{false} {}

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

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

constexpr OnDeviceModelServiceRequest::ParseTableT_ OnDeviceModelServiceRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // 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::OnDeviceModelServiceRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string input_context_string = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.input_context_string_)}},
      // uint32 input_context_num_tokens_processed = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.input_context_num_tokens_processed_)}},
      // string execution_string = 3;
      {::_pbi::TcParser::FastUS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.execution_string_)}},
      // uint32 execution_num_tokens_processed = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.execution_num_tokens_processed_)}},
      // int64 time_from_input_context_processed_to_request_initiated_millis = 5;
      {::_pbi::TcParser::FastV64S1,
       {40, 4, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.time_from_input_context_processed_to_request_initiated_millis_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // string input_context_string = 1;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.input_context_string_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // uint32 input_context_num_tokens_processed = 2;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.input_context_num_tokens_processed_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // string execution_string = 3;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.execution_string_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // uint32 execution_num_tokens_processed = 4;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.execution_num_tokens_processed_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // int64 time_from_input_context_processed_to_request_initiated_millis = 5;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.time_from_input_context_processed_to_request_initiated_millis_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
      "\64\24\0\20\0\0\0\0"
      "optimization_guide.proto.OnDeviceModelServiceRequest"
      "input_context_string"
      "execution_string"
    }},
  };
}


inline constexpr OnDeviceModelServiceRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        input_context_string_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        execution_string_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        input_context_num_tokens_processed_{0u},
        execution_num_tokens_processed_{0u},
        time_from_input_context_processed_to_request_initiated_millis_{::int64_t{0}} {}

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

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

constexpr OnDeviceModelServiceVersion::ParseTableT_ OnDeviceModelServiceVersion::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceVersion, _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::OnDeviceModelServiceVersion>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string component_version = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceVersion, _impl_.component_version_)}},
      // .optimization_guide.proto.OnDeviceBaseModelMetadata on_device_base_model_metadata = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceVersion, _impl_.on_device_base_model_metadata_)}},
      // int64 model_adaptation_version = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceVersion, _impl_.model_adaptation_version_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string component_version = 1;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceVersion, _impl_.component_version_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .optimization_guide.proto.OnDeviceBaseModelMetadata on_device_base_model_metadata = 2;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceVersion, _impl_.on_device_base_model_metadata_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 model_adaptation_version = 3;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceVersion, _impl_.model_adaptation_version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OnDeviceBaseModelMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OnDeviceBaseModelMetadata_globals_},
        #endif
    }},
    {{
      "\64\21\0\0\0\0\0\0"
      "optimization_guide.proto.OnDeviceModelServiceVersion"
      "component_version"
    }},
  };
}


inline constexpr OnDeviceModelServiceVersion::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        component_version_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        on_device_base_model_metadata_{nullptr},
        model_adaptation_version_{::int64_t{0}} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST OnDeviceModelServiceVersionGlobalsTypeInternal OnDeviceModelServiceVersion_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* OnDeviceModelServiceVersion_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return OnDeviceModelServiceVersion_globals_.GetClassData();
#else
  return OnDeviceModelServiceVersion_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class InternalOnDeviceResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::InternalOnDeviceResponse, _impl_._oneof_case_);
};

constexpr InternalOnDeviceResponse::ParseTableT_ InternalOnDeviceResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(InternalOnDeviceResponse,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      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::InternalOnDeviceResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.OnDeviceModelServiceResponse on_device_model_service_response = 1;
      {PROTOBUF_FIELD_OFFSET(InternalOnDeviceResponse, _impl_.response_.on_device_model_service_response_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.TextSafetyModelResponse text_safety_model_response = 2;
      {PROTOBUF_FIELD_OFFSET(InternalOnDeviceResponse, _impl_.response_.text_safety_model_response_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OnDeviceModelServiceResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OnDeviceModelServiceResponse_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::TextSafetyModelResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::TextSafetyModelResponse_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST InternalOnDeviceResponseGlobalsTypeInternal InternalOnDeviceResponse_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* InternalOnDeviceResponse_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return InternalOnDeviceResponse_globals_.GetClassData();
#else
  return InternalOnDeviceResponse_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class InternalOnDeviceRequest::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::InternalOnDeviceRequest, _impl_._oneof_case_);
};

constexpr InternalOnDeviceRequest::ParseTableT_ InternalOnDeviceRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(InternalOnDeviceRequest,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      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::InternalOnDeviceRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.OnDeviceModelServiceRequest on_device_model_service_request = 1;
      {PROTOBUF_FIELD_OFFSET(InternalOnDeviceRequest, _impl_.request_.on_device_model_service_request_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.TextSafetyModelRequest text_safety_model_request = 2;
      {PROTOBUF_FIELD_OFFSET(InternalOnDeviceRequest, _impl_.request_.text_safety_model_request_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OnDeviceModelServiceRequest>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OnDeviceModelServiceRequest_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::TextSafetyModelRequest>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::TextSafetyModelRequest_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr OnDeviceModelVersions::ParseTableT_ OnDeviceModelVersions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OnDeviceModelVersions, _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
      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::OnDeviceModelVersions>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // int64 text_safety_model_version = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelVersions, _impl_.text_safety_model_version_)}},
      // .optimization_guide.proto.OnDeviceModelServiceVersion on_device_model_service_version = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelVersions, _impl_.on_device_model_service_version_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.OnDeviceModelServiceVersion on_device_model_service_version = 1;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelVersions, _impl_.on_device_model_service_version_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 text_safety_model_version = 2;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelVersions, _impl_.text_safety_model_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OnDeviceModelServiceVersion>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OnDeviceModelServiceVersion_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr OnDeviceModelVersions::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        on_device_model_service_version_{nullptr},
        text_safety_model_version_{::int64_t{0}} {}

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

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

constexpr InternalOnDeviceModelExecutionInfo::ParseTableT_ InternalOnDeviceModelExecutionInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(InternalOnDeviceModelExecutionInfo, _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::InternalOnDeviceModelExecutionInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.InternalOnDeviceResponse response = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(InternalOnDeviceModelExecutionInfo, _impl_.response_)}},
      // .optimization_guide.proto.InternalOnDeviceRequest request = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(InternalOnDeviceModelExecutionInfo, _impl_.request_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.InternalOnDeviceRequest request = 1;
      {PROTOBUF_FIELD_OFFSET(InternalOnDeviceModelExecutionInfo, _impl_.request_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.InternalOnDeviceResponse response = 2;
      {PROTOBUF_FIELD_OFFSET(InternalOnDeviceModelExecutionInfo, _impl_.response_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::InternalOnDeviceRequest>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::InternalOnDeviceRequest_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::InternalOnDeviceResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::InternalOnDeviceResponse_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr OnDeviceModelExecutionInfo::ParseTableT_ OnDeviceModelExecutionInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OnDeviceModelExecutionInfo, _impl_._has_bits_),
      0, // no _extensions_
      3, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967289,  // 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::OnDeviceModelExecutionInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.InternalOnDeviceModelExecutionInfo execution_infos = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelExecutionInfo, _impl_.execution_infos_)}},
      // .optimization_guide.proto.OnDeviceModelVersions model_versions = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 1,
        PROTOBUF_FIELD_OFFSET(OnDeviceModelExecutionInfo, _impl_.model_versions_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .optimization_guide.proto.InternalOnDeviceModelExecutionInfo execution_infos = 2;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelExecutionInfo, _impl_.execution_infos_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.OnDeviceModelVersions model_versions = 3;
      {PROTOBUF_FIELD_OFFSET(OnDeviceModelExecutionInfo, _impl_.model_versions_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::InternalOnDeviceModelExecutionInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::InternalOnDeviceModelExecutionInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OnDeviceModelVersions>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OnDeviceModelVersions_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr LoggingMetadata::ParseTableT_ LoggingMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967272,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // 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::LoggingMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .metrics.SystemProfileProto system_profile = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.system_profile_)}},
      // .optimization_guide.proto.OnDeviceSystemProfile on_device_system_profile = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.on_device_system_profile_)}},
      // int64 client_id = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.client_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // bool is_likely_dogfood_client = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 3, 0,
        PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.is_likely_dogfood_client_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .metrics.SystemProfileProto system_profile = 1;
      {PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.system_profile_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.OnDeviceSystemProfile on_device_system_profile = 2;
      {PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.on_device_system_profile_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 client_id = 3;
      {PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.client_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // bool is_likely_dogfood_client = 5;
      {PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.is_likely_dogfood_client_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::SystemProfileProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::SystemProfileProto_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OnDeviceSystemProfile>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OnDeviceSystemProfile_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr LoggingMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        system_profile_{nullptr},
        on_device_system_profile_{nullptr},
        client_id_{::int64_t{0}},
        is_likely_dogfood_client_{false} {}

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

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

constexpr ModelExecutionInfo::ParseTableT_ ModelExecutionInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967217,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // 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::ModelExecutionInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.OnDeviceModelExecutionInfo on_device_model_execution_info = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.on_device_model_execution_info_)}},
      // .optimization_guide.proto.ErrorResponse error_response = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 1,
        PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.error_response_)}},
      // string execution_id = 4;
      {::_pbi::TcParser::FastUS1,
       {34, 0, 0,
        PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.execution_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // uint32 model_execution_error_enum = 7;
      {::_pbi::TcParser::FastV32S1,
       {56, 3, 0,
        PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.model_execution_error_enum_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.OnDeviceModelExecutionInfo on_device_model_execution_info = 2;
      {PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.on_device_model_execution_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ErrorResponse error_response = 3;
      {PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.error_response_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // string execution_id = 4;
      {PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.execution_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // uint32 model_execution_error_enum = 7;
      {PROTOBUF_FIELD_OFFSET(ModelExecutionInfo, _impl_.model_execution_error_enum_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OnDeviceModelExecutionInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OnDeviceModelExecutionInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ErrorResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ErrorResponse_globals_},
        #endif
    }},
    {{
      "\53\0\0\14\0\0\0\0"
      "optimization_guide.proto.ModelExecutionInfo"
      "execution_id"
    }},
  };
}


inline constexpr ModelExecutionInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        execution_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        on_device_model_execution_info_{nullptr},
        error_response_{nullptr},
        model_execution_error_enum_{0u} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ModelExecutionInfoGlobalsTypeInternal ModelExecutionInfo_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ModelExecutionInfo_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ModelExecutionInfo_globals_.GetClassData();
#else
  return ModelExecutionInfo_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 PerformanceClass_internal_data_[] = {
    393216u, 0u, };
static const char PerformanceClass_names[] = {
    "PERFORMANCE_CLASS_HIGH"
    "PERFORMANCE_CLASS_LOW"
    "PERFORMANCE_CLASS_MEDIUM"
    "PERFORMANCE_CLASS_UNSPECIFIED"
    "PERFORMANCE_CLASS_VERY_HIGH"
    "PERFORMANCE_CLASS_VERY_LOW"
};

static const ::google::protobuf::internal::EnumEntry PerformanceClass_entries[] = {
    {{&PerformanceClass_names[0], 22}, 4},
    {{&PerformanceClass_names[22], 21}, 2},
    {{&PerformanceClass_names[43], 24}, 3},
    {{&PerformanceClass_names[67], 29}, 0},
    {{&PerformanceClass_names[96], 27}, 5},
    {{&PerformanceClass_names[123], 26}, 1},
};

static const int PerformanceClass_entries_by_number[] = {
    3,  // 0 -> PERFORMANCE_CLASS_UNSPECIFIED
    5,  // 1 -> PERFORMANCE_CLASS_VERY_LOW
    1,  // 2 -> PERFORMANCE_CLASS_LOW
    2,  // 3 -> PERFORMANCE_CLASS_MEDIUM
    0,  // 4 -> PERFORMANCE_CLASS_HIGH
    4,  // 5 -> PERFORMANCE_CLASS_VERY_HIGH
};

bool PerformanceClass_Parse(::absl::string_view name,
                                  PerformanceClass* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      PerformanceClass_entries, 6, name, &int_value);
  if (success) {
    *value = static_cast<PerformanceClass>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    PerformanceClass_strings[6] = {};

const ::std::string& PerformanceClass_Name(PerformanceClass value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PerformanceClass_entries, PerformanceClass_entries_by_number, 6,
      PerformanceClass_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(PerformanceClass_entries,
                                  PerformanceClass_entries_by_number,
                                  6, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PerformanceClass_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t OnDeviceModelServiceResponseStatus_internal_data_[] = {
    196608u, 0u, };
static const char OnDeviceModelServiceResponseStatus_names[] = {
    "ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_RETRACTED"
    "ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_SUCCESS"
    "ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry OnDeviceModelServiceResponseStatus_entries[] = {
    {{&OnDeviceModelServiceResponseStatus_names[0], 49}, 2},
    {{&OnDeviceModelServiceResponseStatus_names[49], 47}, 1},
    {{&OnDeviceModelServiceResponseStatus_names[96], 51}, 0},
};

static const int OnDeviceModelServiceResponseStatus_entries_by_number[] = {
    2,  // 0 -> ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_UNSPECIFIED
    1,  // 1 -> ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_SUCCESS
    0,  // 2 -> ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_RETRACTED
};

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

const ::std::string& OnDeviceModelServiceResponseStatus_Name(OnDeviceModelServiceResponseStatus value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      OnDeviceModelServiceResponseStatus_entries, OnDeviceModelServiceResponseStatus_entries_by_number, 3,
      OnDeviceModelServiceResponseStatus_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(OnDeviceModelServiceResponseStatus_entries,
                                  OnDeviceModelServiceResponseStatus_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : OnDeviceModelServiceResponseStatus_strings[idx].get();
}
// ===================================================================

void LoggingMetadata::clear_system_profile() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.system_profile_ != nullptr) _impl_.system_profile_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
LoggingMetadata::LoggingMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, LoggingMetadata_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.LoggingMetadata)
}
PROTOBUF_NDEBUG_INLINE LoggingMetadata::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::LoggingMetadata& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  LoggingMetadata* 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_.system_profile_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.system_profile_)
                : nullptr;
  _impl_.on_device_system_profile_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_system_profile_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, client_id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, client_id_),
           offsetof(Impl_, is_likely_dogfood_client_) -
               offsetof(Impl_, client_id_) +
               sizeof(Impl_::is_likely_dogfood_client_));

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite LoggingMetadata_class_data_ =
    LoggingMetadata::InternalGenerateClassData_(LoggingMetadata_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
LoggingMetadata::GetClassData() const {
  return LoggingMetadata_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
LoggingMetadata::GetClassData() const {
  return LoggingMetadata_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const LoggingMetadata::ParseTableT_
    LoggingMetadata::_table_ =
        LoggingMetadata::InternalGenerateParseTable_(LoggingMetadata_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void LoggingMetadata::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.LoggingMetadata)
  ::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_.system_profile_ != nullptr);
      _impl_.system_profile_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.on_device_system_profile_ != nullptr);
      _impl_.on_device_system_profile_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
    ::memset(&_impl_.client_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.is_likely_dogfood_client_) -
        reinterpret_cast<char*>(&_impl_.client_id_)) + sizeof(_impl_.is_likely_dogfood_client_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .metrics.SystemProfileProto system_profile = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.system_profile_, this_._impl_.system_profile_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.OnDeviceSystemProfile on_device_system_profile = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.on_device_system_profile_, this_._impl_.on_device_system_profile_->GetCachedSize(), target,
        stream);
  }

  // int64 client_id = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_client_id() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
              stream, this_._internal_client_id(), target);
    }
  }

  // bool is_likely_dogfood_client = 5;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_is_likely_dogfood_client() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          5, this_._internal_is_likely_dogfood_client(), 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.LoggingMetadata)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t LoggingMetadata::ByteSizeLong(const MessageLite& base) {
  const LoggingMetadata& this_ = static_cast<const LoggingMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t LoggingMetadata::ByteSizeLong() const {
  const LoggingMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.LoggingMetadata)
  ::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)) {
    // .metrics.SystemProfileProto system_profile = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.system_profile_);
    }
    // .optimization_guide.proto.OnDeviceSystemProfile on_device_system_profile = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.on_device_system_profile_);
    }
    // int64 client_id = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_client_id() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_client_id());
      }
    }
    // bool is_likely_dogfood_client = 5;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_is_likely_dogfood_client() != 0) {
        total_size += 2;
      }
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void LoggingMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<LoggingMetadata*>(&to_msg);
  auto& from = static_cast<const LoggingMetadata&>(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.LoggingMetadata)
  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_.system_profile_ != nullptr);
      if (_this->_impl_.system_profile_ == nullptr) {
        _this->_impl_.system_profile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.system_profile_);
      } else {
        _this->_impl_.system_profile_->MergeFrom(*from._impl_.system_profile_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.on_device_system_profile_ != nullptr);
      if (_this->_impl_.on_device_system_profile_ == nullptr) {
        _this->_impl_.on_device_system_profile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_system_profile_);
      } else {
        _this->_impl_.on_device_system_profile_->MergeFrom(*from._impl_.on_device_system_profile_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_client_id() != 0) {
        _this->_impl_.client_id_ = from._impl_.client_id_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_is_likely_dogfood_client() != 0) {
        _this->_impl_.is_likely_dogfood_client_ = from._impl_.is_likely_dogfood_client_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void LoggingMetadata::InternalSwap(LoggingMetadata* 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(LoggingMetadata, _impl_.is_likely_dogfood_client_)
      + sizeof(LoggingMetadata::_impl_.is_likely_dogfood_client_)
      - PROTOBUF_FIELD_OFFSET(LoggingMetadata, _impl_.system_profile_)>(
          reinterpret_cast<char*>(&_impl_.system_profile_),
          reinterpret_cast<char*>(&other->_impl_.system_profile_));
}

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

OnDeviceSystemProfile::OnDeviceSystemProfile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, OnDeviceSystemProfile_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.OnDeviceSystemProfile)
}
OnDeviceSystemProfile::OnDeviceSystemProfile(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OnDeviceSystemProfile& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, OnDeviceSystemProfile_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE OnDeviceSystemProfile::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OnDeviceSystemProfile_class_data_ =
    OnDeviceSystemProfile::InternalGenerateClassData_(OnDeviceSystemProfile_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.PerformanceClass performance_class = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (this_._internal_performance_class() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          1, this_._internal_performance_class(), 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.OnDeviceSystemProfile)
  return target;
}

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

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

   {
    // .optimization_guide.proto.PerformanceClass performance_class = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (this_._internal_performance_class() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_performance_class());
      }
    }
  }
  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 OnDeviceSystemProfile::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OnDeviceSystemProfile*>(&to_msg);
  auto& from = static_cast<const OnDeviceSystemProfile&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.OnDeviceSystemProfile)
  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)) {
    if (from._internal_performance_class() != 0) {
      _this->_impl_.performance_class_ = from._impl_.performance_class_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void ModelExecutionInfo::clear_error_response() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.error_response_ != nullptr) _impl_.error_response_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
ModelExecutionInfo::ModelExecutionInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ModelExecutionInfo_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.ModelExecutionInfo)
}
PROTOBUF_NDEBUG_INLINE ModelExecutionInfo::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::ModelExecutionInfo& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        execution_id_(arena, from.execution_id_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  ModelExecutionInfo* 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_.on_device_model_execution_info_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_model_execution_info_)
                : nullptr;
  _impl_.error_response_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.error_response_)
                : nullptr;
  _impl_.model_execution_error_enum_ = from._impl_.model_execution_error_enum_;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ModelExecutionInfo_class_data_ =
    ModelExecutionInfo::InternalGenerateClassData_(ModelExecutionInfo_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.OnDeviceModelExecutionInfo on_device_model_execution_info = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.on_device_model_execution_info_, this_._impl_.on_device_model_execution_info_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.ErrorResponse error_response = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.error_response_, this_._impl_.error_response_->GetCachedSize(), target,
        stream);
  }

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

  // uint32 model_execution_error_enum = 7;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_model_execution_error_enum() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
          7, this_._internal_model_execution_error_enum(), 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.ModelExecutionInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ModelExecutionInfo::ByteSizeLong(const MessageLite& base) {
  const ModelExecutionInfo& this_ = static_cast<const ModelExecutionInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ModelExecutionInfo::ByteSizeLong() const {
  const ModelExecutionInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.ModelExecutionInfo)
  ::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 execution_id = 4;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_execution_id().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_execution_id());
      }
    }
    // .optimization_guide.proto.OnDeviceModelExecutionInfo on_device_model_execution_info = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.on_device_model_execution_info_);
    }
    // .optimization_guide.proto.ErrorResponse error_response = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.error_response_);
    }
    // uint32 model_execution_error_enum = 7;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_model_execution_error_enum() != 0) {
        total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
            this_._internal_model_execution_error_enum());
      }
    }
  }
  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 ModelExecutionInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ModelExecutionInfo*>(&to_msg);
  auto& from = static_cast<const ModelExecutionInfo&>(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.ModelExecutionInfo)
  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)) {
      if (!from._internal_execution_id().empty()) {
        _this->_internal_set_execution_id(from._internal_execution_id());
      } else {
        if (_this->_impl_.execution_id_.IsDefault()) {
          _this->_internal_set_execution_id("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.on_device_model_execution_info_ != nullptr);
      if (_this->_impl_.on_device_model_execution_info_ == nullptr) {
        _this->_impl_.on_device_model_execution_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_model_execution_info_);
      } else {
        _this->_impl_.on_device_model_execution_info_->MergeFrom(*from._impl_.on_device_model_execution_info_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.error_response_ != nullptr);
      if (_this->_impl_.error_response_ == nullptr) {
        _this->_impl_.error_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.error_response_);
      } else {
        _this->_impl_.error_response_->MergeFrom(*from._impl_.error_response_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_model_execution_error_enum() != 0) {
        _this->_impl_.model_execution_error_enum_ = from._impl_.model_execution_error_enum_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  OnDeviceModelExecutionInfo* 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_.model_versions_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.model_versions_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OnDeviceModelExecutionInfo_class_data_ =
    OnDeviceModelExecutionInfo::InternalGenerateClassData_(OnDeviceModelExecutionInfo_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .optimization_guide.proto.InternalOnDeviceModelExecutionInfo execution_infos = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_execution_infos_size());
         i < n; i++) {
      const auto& repfield = this_._internal_execution_infos().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // .optimization_guide.proto.OnDeviceModelVersions model_versions = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.model_versions_, this_._impl_.model_versions_->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.OnDeviceModelExecutionInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t OnDeviceModelExecutionInfo::ByteSizeLong(const MessageLite& base) {
  const OnDeviceModelExecutionInfo& this_ = static_cast<const OnDeviceModelExecutionInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t OnDeviceModelExecutionInfo::ByteSizeLong() const {
  const OnDeviceModelExecutionInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.OnDeviceModelExecutionInfo)
  ::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)) {
    // repeated .optimization_guide.proto.InternalOnDeviceModelExecutionInfo execution_infos = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_execution_infos_size();
      for (const auto& msg : this_._internal_execution_infos()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .optimization_guide.proto.OnDeviceModelVersions model_versions = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_versions_);
    }
  }
  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 OnDeviceModelExecutionInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OnDeviceModelExecutionInfo*>(&to_msg);
  auto& from = static_cast<const OnDeviceModelExecutionInfo&>(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.OnDeviceModelExecutionInfo)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_execution_infos()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_execution_infos());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.model_versions_ != nullptr);
      if (_this->_impl_.model_versions_ == nullptr) {
        _this->_impl_.model_versions_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.model_versions_);
      } else {
        _this->_impl_.model_versions_->MergeFrom(*from._impl_.model_versions_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void OnDeviceModelExecutionInfo::InternalSwap(OnDeviceModelExecutionInfo* 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_.execution_infos_.InternalSwap(&other->_impl_.execution_infos_);
  swap(_impl_.model_versions_, other->_impl_.model_versions_);
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  OnDeviceModelVersions* 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_.on_device_model_service_version_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_model_service_version_)
                : nullptr;
  _impl_.text_safety_model_version_ = from._impl_.text_safety_model_version_;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OnDeviceModelVersions_class_data_ =
    OnDeviceModelVersions::InternalGenerateClassData_(OnDeviceModelVersions_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OnDeviceModelVersions::GetClassData() const {
  return OnDeviceModelVersions_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OnDeviceModelVersions::GetClassData() const {
  return OnDeviceModelVersions_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const OnDeviceModelVersions::ParseTableT_
    OnDeviceModelVersions::_table_ =
        OnDeviceModelVersions::InternalGenerateParseTable_(OnDeviceModelVersions_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void OnDeviceModelVersions::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.OnDeviceModelVersions)
  ::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)) {
    ABSL_DCHECK(_impl_.on_device_model_service_version_ != nullptr);
    _impl_.on_device_model_service_version_->Clear();
  }
  _impl_.text_safety_model_version_ = ::int64_t{0};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // int64 text_safety_model_version = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_text_safety_model_version() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
              stream, this_._internal_text_safety_model_version(), 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.OnDeviceModelVersions)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t OnDeviceModelVersions::ByteSizeLong(const MessageLite& base) {
  const OnDeviceModelVersions& this_ = static_cast<const OnDeviceModelVersions&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t OnDeviceModelVersions::ByteSizeLong() const {
  const OnDeviceModelVersions& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.OnDeviceModelVersions)
  ::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.OnDeviceModelServiceVersion on_device_model_service_version = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.on_device_model_service_version_);
    }
    // int64 text_safety_model_version = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (this_._internal_text_safety_model_version() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_text_safety_model_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 OnDeviceModelVersions::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OnDeviceModelVersions*>(&to_msg);
  auto& from = static_cast<const OnDeviceModelVersions&>(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.OnDeviceModelVersions)
  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_.on_device_model_service_version_ != nullptr);
      if (_this->_impl_.on_device_model_service_version_ == nullptr) {
        _this->_impl_.on_device_model_service_version_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_model_service_version_);
      } else {
        _this->_impl_.on_device_model_service_version_->MergeFrom(*from._impl_.on_device_model_service_version_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (from._internal_text_safety_model_version() != 0) {
        _this->_impl_.text_safety_model_version_ = from._impl_.text_safety_model_version_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void OnDeviceModelVersions::InternalSwap(OnDeviceModelVersions* 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(OnDeviceModelVersions, _impl_.text_safety_model_version_)
      + sizeof(OnDeviceModelVersions::_impl_.text_safety_model_version_)
      - PROTOBUF_FIELD_OFFSET(OnDeviceModelVersions, _impl_.on_device_model_service_version_)>(
          reinterpret_cast<char*>(&_impl_.on_device_model_service_version_),
          reinterpret_cast<char*>(&other->_impl_.on_device_model_service_version_));
}

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

void OnDeviceModelServiceVersion::clear_on_device_base_model_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.on_device_base_model_metadata_ != nullptr) _impl_.on_device_base_model_metadata_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
OnDeviceModelServiceVersion::OnDeviceModelServiceVersion(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, OnDeviceModelServiceVersion_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.OnDeviceModelServiceVersion)
}
PROTOBUF_NDEBUG_INLINE OnDeviceModelServiceVersion::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::OnDeviceModelServiceVersion& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        component_version_(arena, from.component_version_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  OnDeviceModelServiceVersion* 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_.on_device_base_model_metadata_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_base_model_metadata_)
                : nullptr;
  _impl_.model_adaptation_version_ = from._impl_.model_adaptation_version_;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OnDeviceModelServiceVersion_class_data_ =
    OnDeviceModelServiceVersion::InternalGenerateClassData_(OnDeviceModelServiceVersion_globals_._default);

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

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

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

  // .optimization_guide.proto.OnDeviceBaseModelMetadata on_device_base_model_metadata = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.on_device_base_model_metadata_, this_._impl_.on_device_base_model_metadata_->GetCachedSize(), target,
        stream);
  }

  // int64 model_adaptation_version = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_model_adaptation_version() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
              stream, this_._internal_model_adaptation_version(), 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.OnDeviceModelServiceVersion)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t OnDeviceModelServiceVersion::ByteSizeLong(const MessageLite& base) {
  const OnDeviceModelServiceVersion& this_ = static_cast<const OnDeviceModelServiceVersion&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t OnDeviceModelServiceVersion::ByteSizeLong() const {
  const OnDeviceModelServiceVersion& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.OnDeviceModelServiceVersion)
  ::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 component_version = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_component_version().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_component_version());
      }
    }
    // .optimization_guide.proto.OnDeviceBaseModelMetadata on_device_base_model_metadata = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.on_device_base_model_metadata_);
    }
    // int64 model_adaptation_version = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_model_adaptation_version() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_model_adaptation_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 OnDeviceModelServiceVersion::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OnDeviceModelServiceVersion*>(&to_msg);
  auto& from = static_cast<const OnDeviceModelServiceVersion&>(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.OnDeviceModelServiceVersion)
  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)) {
      if (!from._internal_component_version().empty()) {
        _this->_internal_set_component_version(from._internal_component_version());
      } else {
        if (_this->_impl_.component_version_.IsDefault()) {
          _this->_internal_set_component_version("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.on_device_base_model_metadata_ != nullptr);
      if (_this->_impl_.on_device_base_model_metadata_ == nullptr) {
        _this->_impl_.on_device_base_model_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.on_device_base_model_metadata_);
      } else {
        _this->_impl_.on_device_base_model_metadata_->MergeFrom(*from._impl_.on_device_base_model_metadata_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_model_adaptation_version() != 0) {
        _this->_impl_.model_adaptation_version_ = from._impl_.model_adaptation_version_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

inline void InternalOnDeviceModelExecutionInfo::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_));
}
InternalOnDeviceModelExecutionInfo::~InternalOnDeviceModelExecutionInfo() {
  // @@protoc_insertion_point(destructor:optimization_guide.proto.InternalOnDeviceModelExecutionInfo)
  SharedDtor(*this);
}
inline void InternalOnDeviceModelExecutionInfo::SharedDtor(MessageLite& self) {
  InternalOnDeviceModelExecutionInfo& this_ = static_cast<InternalOnDeviceModelExecutionInfo&>(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 InternalOnDeviceModelExecutionInfo_class_data_ =
    InternalOnDeviceModelExecutionInfo::InternalGenerateClassData_(InternalOnDeviceModelExecutionInfo_globals_._default);

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.InternalOnDeviceRequest request = 1;
  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.InternalOnDeviceResponse response = 2;
  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.InternalOnDeviceModelExecutionInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t InternalOnDeviceModelExecutionInfo::ByteSizeLong(const MessageLite& base) {
  const InternalOnDeviceModelExecutionInfo& this_ = static_cast<const InternalOnDeviceModelExecutionInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t InternalOnDeviceModelExecutionInfo::ByteSizeLong() const {
  const InternalOnDeviceModelExecutionInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.InternalOnDeviceModelExecutionInfo)
  ::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.InternalOnDeviceRequest request = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_);
    }
    // .optimization_guide.proto.InternalOnDeviceResponse response = 2;
    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 InternalOnDeviceModelExecutionInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<InternalOnDeviceModelExecutionInfo*>(&to_msg);
  auto& from = static_cast<const InternalOnDeviceModelExecutionInfo&>(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.InternalOnDeviceModelExecutionInfo)
  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 InternalOnDeviceModelExecutionInfo::CopyFrom(const InternalOnDeviceModelExecutionInfo& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:optimization_guide.proto.InternalOnDeviceModelExecutionInfo)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void InternalOnDeviceModelExecutionInfo::InternalSwap(InternalOnDeviceModelExecutionInfo* 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(InternalOnDeviceModelExecutionInfo, _impl_.response_)
      + sizeof(InternalOnDeviceModelExecutionInfo::_impl_.response_)
      - PROTOBUF_FIELD_OFFSET(InternalOnDeviceModelExecutionInfo, _impl_.request_)>(
          reinterpret_cast<char*>(&_impl_.request_),
          reinterpret_cast<char*>(&other->_impl_.request_));
}

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

void InternalOnDeviceRequest::set_allocated_on_device_model_service_request(::optimization_guide::proto::OnDeviceModelServiceRequest* PROTOBUF_NULLABLE on_device_model_service_request) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_request();
  if (on_device_model_service_request) {
    ::google::protobuf::Arena* submessage_arena = on_device_model_service_request->GetArena();
    if (message_arena != submessage_arena) {
      on_device_model_service_request = ::google::protobuf::internal::GetOwnedMessage(message_arena, on_device_model_service_request, submessage_arena);
    }
    set_has_on_device_model_service_request();
    _impl_.request_.on_device_model_service_request_ = on_device_model_service_request;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.InternalOnDeviceRequest.on_device_model_service_request)
}
void InternalOnDeviceRequest::set_allocated_text_safety_model_request(::optimization_guide::proto::TextSafetyModelRequest* PROTOBUF_NULLABLE text_safety_model_request) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_request();
  if (text_safety_model_request) {
    ::google::protobuf::Arena* submessage_arena = text_safety_model_request->GetArena();
    if (message_arena != submessage_arena) {
      text_safety_model_request = ::google::protobuf::internal::GetOwnedMessage(message_arena, text_safety_model_request, submessage_arena);
    }
    set_has_text_safety_model_request();
    _impl_.request_.text_safety_model_request_ = text_safety_model_request;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.InternalOnDeviceRequest.text_safety_model_request)
}
InternalOnDeviceRequest::InternalOnDeviceRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, InternalOnDeviceRequest_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.InternalOnDeviceRequest)
}
PROTOBUF_NDEBUG_INLINE InternalOnDeviceRequest::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::InternalOnDeviceRequest& from_msg)
      : request_{},
        _cached_size_{0},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  InternalOnDeviceRequest* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (request_case()) {
    case REQUEST_NOT_SET:
      break;
      case kOnDeviceModelServiceRequest:
        _impl_.request_.on_device_model_service_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_.on_device_model_service_request_);
        break;
      case kTextSafetyModelRequest:
        _impl_.request_.text_safety_model_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_.text_safety_model_request_);
        break;
  }

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

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

void InternalOnDeviceRequest::clear_request() {
// @@protoc_insertion_point(one_of_clear_start:optimization_guide.proto.InternalOnDeviceRequest)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (request_case()) {
    case kOnDeviceModelServiceRequest: {
      if (GetArena() == nullptr) {
        delete _impl_.request_.on_device_model_service_request_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.request_.on_device_model_service_request_ != nullptr) {
          _impl_.request_.on_device_model_service_request_->Clear();
        }
      }
      break;
    }
    case kTextSafetyModelRequest: {
      if (GetArena() == nullptr) {
        delete _impl_.request_.text_safety_model_request_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.request_.text_safety_model_request_ != nullptr) {
          _impl_.request_.text_safety_model_request_->Clear();
        }
      }
      break;
    }
    case REQUEST_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REQUEST_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite InternalOnDeviceRequest_class_data_ =
    InternalOnDeviceRequest::InternalGenerateClassData_(InternalOnDeviceRequest_globals_._default);

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

  clear_request();
  _internal_metadata_.Clear<::std::string>();
}

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

  switch (this_.request_case()) {
    case kOnDeviceModelServiceRequest: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          1, *this_._impl_.request_.on_device_model_service_request_, this_._impl_.request_.on_device_model_service_request_->GetCachedSize(), target,
          stream);
      break;
    }
    case kTextSafetyModelRequest: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.request_.text_safety_model_request_, this_._impl_.request_.text_safety_model_request_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  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.InternalOnDeviceRequest)
  return target;
}

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

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

  switch (this_.request_case()) {
    // .optimization_guide.proto.OnDeviceModelServiceRequest on_device_model_service_request = 1;
    case kOnDeviceModelServiceRequest: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.on_device_model_service_request_);
      break;
    }
    // .optimization_guide.proto.TextSafetyModelRequest text_safety_model_request = 2;
    case kTextSafetyModelRequest: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.text_safety_model_request_);
      break;
    }
    case REQUEST_NOT_SET: {
      break;
    }
  }
  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 InternalOnDeviceRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<InternalOnDeviceRequest*>(&to_msg);
  auto& from = static_cast<const InternalOnDeviceRequest&>(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.InternalOnDeviceRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_request();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kOnDeviceModelServiceRequest: {
        if (oneof_needs_init) {
          _this->_impl_.request_.on_device_model_service_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_.on_device_model_service_request_);
        } else {
          _this->_impl_.request_.on_device_model_service_request_->MergeFrom(*from._impl_.request_.on_device_model_service_request_);
        }
        break;
      }
      case kTextSafetyModelRequest: {
        if (oneof_needs_init) {
          _this->_impl_.request_.text_safety_model_request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_.text_safety_model_request_);
        } else {
          _this->_impl_.request_.text_safety_model_request_->MergeFrom(*from._impl_.request_.text_safety_model_request_);
        }
        break;
      }
      case REQUEST_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void InternalOnDeviceResponse::set_allocated_on_device_model_service_response(::optimization_guide::proto::OnDeviceModelServiceResponse* PROTOBUF_NULLABLE on_device_model_service_response) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_response();
  if (on_device_model_service_response) {
    ::google::protobuf::Arena* submessage_arena = on_device_model_service_response->GetArena();
    if (message_arena != submessage_arena) {
      on_device_model_service_response = ::google::protobuf::internal::GetOwnedMessage(message_arena, on_device_model_service_response, submessage_arena);
    }
    set_has_on_device_model_service_response();
    _impl_.response_.on_device_model_service_response_ = on_device_model_service_response;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.InternalOnDeviceResponse.on_device_model_service_response)
}
void InternalOnDeviceResponse::set_allocated_text_safety_model_response(::optimization_guide::proto::TextSafetyModelResponse* PROTOBUF_NULLABLE text_safety_model_response) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_response();
  if (text_safety_model_response) {
    ::google::protobuf::Arena* submessage_arena = text_safety_model_response->GetArena();
    if (message_arena != submessage_arena) {
      text_safety_model_response = ::google::protobuf::internal::GetOwnedMessage(message_arena, text_safety_model_response, submessage_arena);
    }
    set_has_text_safety_model_response();
    _impl_.response_.text_safety_model_response_ = text_safety_model_response;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.InternalOnDeviceResponse.text_safety_model_response)
}
InternalOnDeviceResponse::InternalOnDeviceResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, InternalOnDeviceResponse_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.InternalOnDeviceResponse)
}
PROTOBUF_NDEBUG_INLINE InternalOnDeviceResponse::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::InternalOnDeviceResponse& from_msg)
      : response_{},
        _cached_size_{0},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  InternalOnDeviceResponse* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (response_case()) {
    case RESPONSE_NOT_SET:
      break;
      case kOnDeviceModelServiceResponse:
        _impl_.response_.on_device_model_service_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_.on_device_model_service_response_);
        break;
      case kTextSafetyModelResponse:
        _impl_.response_.text_safety_model_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_.text_safety_model_response_);
        break;
  }

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

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

void InternalOnDeviceResponse::clear_response() {
// @@protoc_insertion_point(one_of_clear_start:optimization_guide.proto.InternalOnDeviceResponse)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (response_case()) {
    case kOnDeviceModelServiceResponse: {
      if (GetArena() == nullptr) {
        delete _impl_.response_.on_device_model_service_response_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.response_.on_device_model_service_response_ != nullptr) {
          _impl_.response_.on_device_model_service_response_->Clear();
        }
      }
      break;
    }
    case kTextSafetyModelResponse: {
      if (GetArena() == nullptr) {
        delete _impl_.response_.text_safety_model_response_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.response_.text_safety_model_response_ != nullptr) {
          _impl_.response_.text_safety_model_response_->Clear();
        }
      }
      break;
    }
    case RESPONSE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = RESPONSE_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite InternalOnDeviceResponse_class_data_ =
    InternalOnDeviceResponse::InternalGenerateClassData_(InternalOnDeviceResponse_globals_._default);

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

  clear_response();
  _internal_metadata_.Clear<::std::string>();
}

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

  switch (this_.response_case()) {
    case kOnDeviceModelServiceResponse: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          1, *this_._impl_.response_.on_device_model_service_response_, this_._impl_.response_.on_device_model_service_response_->GetCachedSize(), target,
          stream);
      break;
    }
    case kTextSafetyModelResponse: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.response_.text_safety_model_response_, this_._impl_.response_.text_safety_model_response_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  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.InternalOnDeviceResponse)
  return target;
}

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

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

  switch (this_.response_case()) {
    // .optimization_guide.proto.OnDeviceModelServiceResponse on_device_model_service_response = 1;
    case kOnDeviceModelServiceResponse: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.on_device_model_service_response_);
      break;
    }
    // .optimization_guide.proto.TextSafetyModelResponse text_safety_model_response = 2;
    case kTextSafetyModelResponse: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.text_safety_model_response_);
      break;
    }
    case RESPONSE_NOT_SET: {
      break;
    }
  }
  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 InternalOnDeviceResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<InternalOnDeviceResponse*>(&to_msg);
  auto& from = static_cast<const InternalOnDeviceResponse&>(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.InternalOnDeviceResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_response();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kOnDeviceModelServiceResponse: {
        if (oneof_needs_init) {
          _this->_impl_.response_.on_device_model_service_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_.on_device_model_service_response_);
        } else {
          _this->_impl_.response_.on_device_model_service_response_->MergeFrom(*from._impl_.response_.on_device_model_service_response_);
        }
        break;
      }
      case kTextSafetyModelResponse: {
        if (oneof_needs_init) {
          _this->_impl_.response_.text_safety_model_response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_.text_safety_model_response_);
        } else {
          _this->_impl_.response_.text_safety_model_response_->MergeFrom(*from._impl_.response_.text_safety_model_response_);
        }
        break;
      }
      case RESPONSE_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  OnDeviceModelServiceRequest* 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_, input_context_num_tokens_processed_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, input_context_num_tokens_processed_),
           offsetof(Impl_, time_from_input_context_processed_to_request_initiated_millis_) -
               offsetof(Impl_, input_context_num_tokens_processed_) +
               sizeof(Impl_::time_from_input_context_processed_to_request_initiated_millis_));

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OnDeviceModelServiceRequest_class_data_ =
    OnDeviceModelServiceRequest::InternalGenerateClassData_(OnDeviceModelServiceRequest_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OnDeviceModelServiceRequest::GetClassData() const {
  return OnDeviceModelServiceRequest_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OnDeviceModelServiceRequest::GetClassData() const {
  return OnDeviceModelServiceRequest_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const OnDeviceModelServiceRequest::ParseTableT_
    OnDeviceModelServiceRequest::_table_ =
        OnDeviceModelServiceRequest::InternalGenerateParseTable_(OnDeviceModelServiceRequest_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void OnDeviceModelServiceRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.OnDeviceModelServiceRequest)
  ::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_.input_context_string_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.execution_string_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) {
    ::memset(&_impl_.input_context_num_tokens_processed_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.time_from_input_context_processed_to_request_initiated_millis_) -
        reinterpret_cast<char*>(&_impl_.input_context_num_tokens_processed_)) + sizeof(_impl_.time_from_input_context_processed_to_request_initiated_millis_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // uint32 input_context_num_tokens_processed = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_input_context_num_tokens_processed() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
          2, this_._internal_input_context_num_tokens_processed(), target);
    }
  }

  // string execution_string = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_execution_string().empty()) {
      const ::std::string& _s = this_._internal_execution_string();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.OnDeviceModelServiceRequest.execution_string");
      target = stream->WriteStringMaybeAliased(3, _s, target);
    }
  }

  // uint32 execution_num_tokens_processed = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_execution_num_tokens_processed() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
          4, this_._internal_execution_num_tokens_processed(), target);
    }
  }

  // int64 time_from_input_context_processed_to_request_initiated_millis = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (this_._internal_time_from_input_context_processed_to_request_initiated_millis() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
              stream, this_._internal_time_from_input_context_processed_to_request_initiated_millis(), 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.OnDeviceModelServiceRequest)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t OnDeviceModelServiceRequest::ByteSizeLong(const MessageLite& base) {
  const OnDeviceModelServiceRequest& this_ = static_cast<const OnDeviceModelServiceRequest&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t OnDeviceModelServiceRequest::ByteSizeLong() const {
  const OnDeviceModelServiceRequest& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.OnDeviceModelServiceRequest)
  ::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, 0x0000001fU)) {
    // string input_context_string = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_input_context_string().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_input_context_string());
      }
    }
    // string execution_string = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_execution_string().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_execution_string());
      }
    }
    // uint32 input_context_num_tokens_processed = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_input_context_num_tokens_processed() != 0) {
        total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
            this_._internal_input_context_num_tokens_processed());
      }
    }
    // uint32 execution_num_tokens_processed = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_execution_num_tokens_processed() != 0) {
        total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
            this_._internal_execution_num_tokens_processed());
      }
    }
    // int64 time_from_input_context_processed_to_request_initiated_millis = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (this_._internal_time_from_input_context_processed_to_request_initiated_millis() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_time_from_input_context_processed_to_request_initiated_millis());
      }
    }
  }
  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 OnDeviceModelServiceRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OnDeviceModelServiceRequest*>(&to_msg);
  auto& from = static_cast<const OnDeviceModelServiceRequest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.OnDeviceModelServiceRequest)
  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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!from._internal_input_context_string().empty()) {
        _this->_internal_set_input_context_string(from._internal_input_context_string());
      } else {
        if (_this->_impl_.input_context_string_.IsDefault()) {
          _this->_internal_set_input_context_string("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_execution_string().empty()) {
        _this->_internal_set_execution_string(from._internal_execution_string());
      } else {
        if (_this->_impl_.execution_string_.IsDefault()) {
          _this->_internal_set_execution_string("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_input_context_num_tokens_processed() != 0) {
        _this->_impl_.input_context_num_tokens_processed_ = from._impl_.input_context_num_tokens_processed_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_execution_num_tokens_processed() != 0) {
        _this->_impl_.execution_num_tokens_processed_ = from._impl_.execution_num_tokens_processed_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (from._internal_time_from_input_context_processed_to_request_initiated_millis() != 0) {
        _this->_impl_.time_from_input_context_processed_to_request_initiated_millis_ = from._impl_.time_from_input_context_processed_to_request_initiated_millis_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void OnDeviceModelServiceRequest::InternalSwap(OnDeviceModelServiceRequest* 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_.input_context_string_, &other->_impl_.input_context_string_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.execution_string_, &other->_impl_.execution_string_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.time_from_input_context_processed_to_request_initiated_millis_)
      + sizeof(OnDeviceModelServiceRequest::_impl_.time_from_input_context_processed_to_request_initiated_millis_)
      - PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceRequest, _impl_.input_context_num_tokens_processed_)>(
          reinterpret_cast<char*>(&_impl_.input_context_num_tokens_processed_),
          reinterpret_cast<char*>(&other->_impl_.input_context_num_tokens_processed_));
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  OnDeviceModelServiceResponse* 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_, time_to_first_response_millis_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, time_to_first_response_millis_),
           offsetof(Impl_, has_repeats_) -
               offsetof(Impl_, time_to_first_response_millis_) +
               sizeof(Impl_::has_repeats_));

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OnDeviceModelServiceResponse_class_data_ =
    OnDeviceModelServiceResponse::InternalGenerateClassData_(OnDeviceModelServiceResponse_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OnDeviceModelServiceResponse::GetClassData() const {
  return OnDeviceModelServiceResponse_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OnDeviceModelServiceResponse::GetClassData() const {
  return OnDeviceModelServiceResponse_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const OnDeviceModelServiceResponse::ParseTableT_
    OnDeviceModelServiceResponse::_table_ =
        OnDeviceModelServiceResponse::InternalGenerateParseTable_(OnDeviceModelServiceResponse_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void OnDeviceModelServiceResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.OnDeviceModelServiceResponse)
  ::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_string_.ClearNonDefaultToEmpty();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000001eU)) {
    ::memset(&_impl_.time_to_first_response_millis_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.has_repeats_) -
        reinterpret_cast<char*>(&_impl_.time_to_first_response_millis_)) + sizeof(_impl_.has_repeats_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // int64 time_to_first_response_millis = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_time_to_first_response_millis() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
              stream, this_._internal_time_to_first_response_millis(), target);
    }
  }

  // int64 time_to_completion_millis = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_time_to_completion_millis() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
              stream, this_._internal_time_to_completion_millis(), target);
    }
  }

  // .optimization_guide.proto.OnDeviceModelServiceResponseStatus status = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_status() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          4, this_._internal_status(), target);
    }
  }

  // bool has_repeats = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (this_._internal_has_repeats() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          5, this_._internal_has_repeats(), 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.OnDeviceModelServiceResponse)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t OnDeviceModelServiceResponse::ByteSizeLong(const MessageLite& base) {
  const OnDeviceModelServiceResponse& this_ = static_cast<const OnDeviceModelServiceResponse&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t OnDeviceModelServiceResponse::ByteSizeLong() const {
  const OnDeviceModelServiceResponse& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.OnDeviceModelServiceResponse)
  ::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, 0x0000001fU)) {
    // string output_string = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_output_string().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_output_string());
      }
    }
    // int64 time_to_first_response_millis = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (this_._internal_time_to_first_response_millis() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_time_to_first_response_millis());
      }
    }
    // int64 time_to_completion_millis = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (this_._internal_time_to_completion_millis() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_time_to_completion_millis());
      }
    }
    // .optimization_guide.proto.OnDeviceModelServiceResponseStatus status = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_status() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
      }
    }
    // bool has_repeats = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (this_._internal_has_repeats() != 0) {
        total_size += 2;
      }
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void OnDeviceModelServiceResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OnDeviceModelServiceResponse*>(&to_msg);
  auto& from = static_cast<const OnDeviceModelServiceResponse&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.OnDeviceModelServiceResponse)
  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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!from._internal_output_string().empty()) {
        _this->_internal_set_output_string(from._internal_output_string());
      } else {
        if (_this->_impl_.output_string_.IsDefault()) {
          _this->_internal_set_output_string("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (from._internal_time_to_first_response_millis() != 0) {
        _this->_impl_.time_to_first_response_millis_ = from._impl_.time_to_first_response_millis_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (from._internal_time_to_completion_millis() != 0) {
        _this->_impl_.time_to_completion_millis_ = from._impl_.time_to_completion_millis_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_status() != 0) {
        _this->_impl_.status_ = from._impl_.status_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (from._internal_has_repeats() != 0) {
        _this->_impl_.has_repeats_ = from._impl_.has_repeats_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void OnDeviceModelServiceResponse::InternalSwap(OnDeviceModelServiceResponse* 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_string_, &other->_impl_.output_string_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.has_repeats_)
      + sizeof(OnDeviceModelServiceResponse::_impl_.has_repeats_)
      - PROTOBUF_FIELD_OFFSET(OnDeviceModelServiceResponse, _impl_.time_to_first_response_millis_)>(
          reinterpret_cast<char*>(&_impl_.time_to_first_response_millis_),
          reinterpret_cast<char*>(&other->_impl_.time_to_first_response_millis_));
}

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TextSafetyModelRequest_class_data_ =
    TextSafetyModelRequest::InternalGenerateClassData_(TextSafetyModelRequest_globals_._default);

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

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

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

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

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // string text = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_text().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_text());
      }
    }
    // string url = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_url().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_url());
      }
    }
  }
  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 TextSafetyModelRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextSafetyModelRequest*>(&to_msg);
  auto& from = static_cast<const TextSafetyModelRequest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.TextSafetyModelRequest)
  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)) {
      if (!from._internal_text().empty()) {
        _this->_internal_set_text(from._internal_text());
      } else {
        if (_this->_impl_.text_.IsDefault()) {
          _this->_internal_set_text("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_url().empty()) {
        _this->_internal_set_url(from._internal_url());
      } else {
        if (_this->_impl_.url_.IsDefault()) {
          _this->_internal_set_url("");
        }
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void TextSafetyModelRequest::InternalSwap(TextSafetyModelRequest* 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_.text_, &other->_impl_.text_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena);
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  TextSafetyModelResponse* 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_, is_unsafe_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, is_unsafe_),
           offsetof(Impl_, language_confidence_) -
               offsetof(Impl_, is_unsafe_) +
               sizeof(Impl_::language_confidence_));

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TextSafetyModelResponse_class_data_ =
    TextSafetyModelResponse::InternalGenerateClassData_(TextSafetyModelResponse_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TextSafetyModelResponse::GetClassData() const {
  return TextSafetyModelResponse_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TextSafetyModelResponse::GetClassData() const {
  return TextSafetyModelResponse_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TextSafetyModelResponse::ParseTableT_
    TextSafetyModelResponse::_table_ =
        TextSafetyModelResponse::InternalGenerateParseTable_(TextSafetyModelResponse_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void TextSafetyModelResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.TextSafetyModelResponse)
  ::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_.scores_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.server_execution_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.language_code_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000018U)) {
    ::memset(&_impl_.is_unsafe_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.language_confidence_) -
        reinterpret_cast<char*>(&_impl_.is_unsafe_)) + sizeof(_impl_.language_confidence_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated float scores = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (this_._internal_scores_size() > 0) {
      target = stream->WriteFixedPacked(1, this_._internal_scores(), target);
    }
  }

  // bool is_unsafe = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_is_unsafe() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          2, this_._internal_is_unsafe(), target);
    }
  }

  // string server_execution_id = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_server_execution_id().empty()) {
      const ::std::string& _s = this_._internal_server_execution_id();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.TextSafetyModelResponse.server_execution_id");
      target = stream->WriteStringMaybeAliased(3, _s, target);
    }
  }

  // string language_code = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (!this_._internal_language_code().empty()) {
      const ::std::string& _s = this_._internal_language_code();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.TextSafetyModelResponse.language_code");
      target = stream->WriteStringMaybeAliased(4, _s, target);
    }
  }

  // float language_confidence = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_language_confidence()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          5, this_._internal_language_confidence(), 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.TextSafetyModelResponse)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TextSafetyModelResponse::ByteSizeLong(const MessageLite& base) {
  const TextSafetyModelResponse& this_ = static_cast<const TextSafetyModelResponse&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TextSafetyModelResponse::ByteSizeLong() const {
  const TextSafetyModelResponse& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.TextSafetyModelResponse)
  ::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, 0x0000001fU)) {
    // repeated float scores = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::size_t{4} *
          ::_pbi::FromIntSize(this_._internal_scores_size());
      ::size_t tag_size = data_size == 0
          ? 0
          : 1 + ::_pbi::WireFormatLite::Int32Size(
                              static_cast<::int32_t>(data_size));
      total_size += tag_size + data_size;
    }
    // string server_execution_id = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_server_execution_id().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_server_execution_id());
      }
    }
    // string language_code = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!this_._internal_language_code().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_language_code());
      }
    }
    // bool is_unsafe = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_is_unsafe() != 0) {
        total_size += 2;
      }
    }
    // float language_confidence = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_language_confidence()) != 0) {
        total_size += 5;
      }
    }
  }
  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 TextSafetyModelResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextSafetyModelResponse*>(&to_msg);
  auto& from = static_cast<const TextSafetyModelResponse&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.TextSafetyModelResponse)
  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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_scores()->MergeFrom(from._internal_scores());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_server_execution_id().empty()) {
        _this->_internal_set_server_execution_id(from._internal_server_execution_id());
      } else {
        if (_this->_impl_.server_execution_id_.IsDefault()) {
          _this->_internal_set_server_execution_id("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!from._internal_language_code().empty()) {
        _this->_internal_set_language_code(from._internal_language_code());
      } else {
        if (_this->_impl_.language_code_.IsDefault()) {
          _this->_internal_set_language_code("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_is_unsafe() != 0) {
        _this->_impl_.is_unsafe_ = from._impl_.is_unsafe_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_language_confidence()) != 0) {
        _this->_impl_.language_confidence_ = from._impl_.language_confidence_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void TextSafetyModelResponse::InternalSwap(TextSafetyModelResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.scores_.InternalSwap(&other->_impl_.scores_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_execution_id_, &other->_impl_.server_execution_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.language_code_, &other->_impl_.language_code_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.language_confidence_)
      + sizeof(TextSafetyModelResponse::_impl_.language_confidence_)
      - PROTOBUF_FIELD_OFFSET(TextSafetyModelResponse, _impl_.is_unsafe_)>(
          reinterpret_cast<char*>(&_impl_.is_unsafe_),
          reinterpret_cast<char*>(&other->_impl_.is_unsafe_));
}

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