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

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

constexpr UpdaterChatResponse::ParseTableT_ UpdaterChatResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UpdaterChatResponse, _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
      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::UpdaterChatResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.SnippetStatus status = 1 [features = {
      {::_pbi::TcParser::FastV32S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatResponse, _impl_.status_)}},
      // string text_response = 2 [features = {
      {::_pbi::TcParser::FastUS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatResponse, _impl_.text_response_)}},
      // repeated string suggested_prompts = 3;
      {::_pbi::TcParser::FastUR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatResponse, _impl_.suggested_prompts_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.SnippetStatus status = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatResponse, _impl_.status_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // string text_response = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatResponse, _impl_.text_response_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // repeated string suggested_prompts = 3;
      {PROTOBUF_FIELD_OFFSET(UpdaterChatResponse, _impl_.suggested_prompts_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
    }},
    // no aux_entries
    {{
      "\54\0\15\21\0\0\0\0"
      "optimization_guide.proto.UpdaterChatResponse"
      "text_response"
      "suggested_prompts"
    }},
  };
}


inline constexpr UpdaterChatResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        suggested_prompts_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::UpdaterChatResponse,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::UpdaterChatResponse, _impl_.suggested_prompts_)>()
         }
        ,
        text_response_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        status_{static_cast< ::optimization_guide::proto::SnippetStatus >(0)} {}

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

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

constexpr UpdaterChatRequest::ParseTableT_ UpdaterChatRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::UpdaterChatRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string current_time = 4 [features = {
      {::_pbi::TcParser::FastUS1,
       {34, 2, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.current_time_)}},
      // .optimization_guide.proto.UpdaterChatRequest.Mode mode = 1 [features = {
      {::_pbi::TcParser::FastV32S1,
       {8, 3, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.mode_)}},
      // string log_snippet = 2 [features = {
      {::_pbi::TcParser::FastUS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.log_snippet_)}},
      // repeated string conversation_history = 3;
      {::_pbi::TcParser::FastUR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.conversation_history_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.UpdaterChatRequest.Mode mode = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.mode_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // string log_snippet = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.log_snippet_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // repeated string conversation_history = 3;
      {PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.conversation_history_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
      // string current_time = 4 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatRequest, _impl_.current_time_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\53\0\13\24\14\0\0\0"
      "optimization_guide.proto.UpdaterChatRequest"
      "log_snippet"
      "conversation_history"
      "current_time"
    }},
  };
}


inline constexpr UpdaterChatRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        conversation_history_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::UpdaterChatRequest,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::UpdaterChatRequest, _impl_.conversation_history_)>()
         }
        ,
        log_snippet_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        current_time_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        mode_{static_cast< ::optimization_guide::proto::UpdaterChatRequest_Mode >(0)} {}

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

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

constexpr UpdaterChatLoggingData::ParseTableT_ UpdaterChatLoggingData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UpdaterChatLoggingData, _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
      3,  // 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::UpdaterChatLoggingData>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.UpdaterChatRequest request = 1 [features = {
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(UpdaterChatLoggingData, _impl_.request_)}},
      // .optimization_guide.proto.UpdaterChatResponse response = 2 [features = {
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(UpdaterChatLoggingData, _impl_.response_)}},
      // .optimization_guide.proto.ModelExecutionInfo model_execution_info = 3 [features = {
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 2,
        PROTOBUF_FIELD_OFFSET(UpdaterChatLoggingData, _impl_.model_execution_info_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.UpdaterChatRequest request = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatLoggingData, _impl_.request_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.UpdaterChatResponse response = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatLoggingData, _impl_.response_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ModelExecutionInfo model_execution_info = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(UpdaterChatLoggingData, _impl_.model_execution_info_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::UpdaterChatRequest>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::UpdaterChatRequest_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::UpdaterChatResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::UpdaterChatResponse_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ModelExecutionInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ModelExecutionInfo_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST UpdaterChatLoggingDataGlobalsTypeInternal UpdaterChatLoggingData_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* UpdaterChatLoggingData_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return UpdaterChatLoggingData_globals_.GetClassData();
#else
  return UpdaterChatLoggingData_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 UpdaterChatRequest_Mode_internal_data_[] = {
    196608u, 0u, };
static const char UpdaterChatRequest_Mode_names[] = {
    "MODE_CHAT"
    "MODE_SNIPPET_SUMMARIZE"
    "MODE_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry UpdaterChatRequest_Mode_entries[] = {
    {{&UpdaterChatRequest_Mode_names[0], 9}, 1},
    {{&UpdaterChatRequest_Mode_names[9], 22}, 2},
    {{&UpdaterChatRequest_Mode_names[31], 16}, 0},
};

static const int UpdaterChatRequest_Mode_entries_by_number[] = {
    2,  // 0 -> MODE_UNSPECIFIED
    0,  // 1 -> MODE_CHAT
    1,  // 2 -> MODE_SNIPPET_SUMMARIZE
};

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

const ::std::string& UpdaterChatRequest_Mode_Name(UpdaterChatRequest_Mode value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      UpdaterChatRequest_Mode_entries, UpdaterChatRequest_Mode_entries_by_number, 3,
      UpdaterChatRequest_Mode_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(UpdaterChatRequest_Mode_entries,
                                  UpdaterChatRequest_Mode_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : UpdaterChatRequest_Mode_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t SnippetStatus_internal_data_[] = {
    1114112u, 0u, };
static const char SnippetStatus_names[] = {
    "SNIPPET_STATUS_BACKGROUND_EXECUTION"
    "SNIPPET_STATUS_CHECK_SKIPPED"
    "SNIPPET_STATUS_CRASHED"
    "SNIPPET_STATUS_FATAL_ERROR"
    "SNIPPET_STATUS_INSTALL_FAILED"
    "SNIPPET_STATUS_INSTALL_SUCCEEDED"
    "SNIPPET_STATUS_NO_UPDATE"
    "SNIPPET_STATUS_ON_DEMAND_UPDATE_FAILED"
    "SNIPPET_STATUS_ON_DEMAND_UPDATE_SUCCEEDED"
    "SNIPPET_STATUS_SELF_PROMOTED"
    "SNIPPET_STATUS_SELF_PROMOTING"
    "SNIPPET_STATUS_TRANSIENT_ERROR"
    "SNIPPET_STATUS_UNSPECIFIED"
    "SNIPPET_STATUS_UPDATE_DISABLED"
    "SNIPPET_STATUS_UPDATE_FAILED"
    "SNIPPET_STATUS_UPDATE_SUCCEEDED"
    "SNIPPET_STATUS_UPDATE_SUPPRESSED"
};

static const ::google::protobuf::internal::EnumEntry SnippetStatus_entries[] = {
    {{&SnippetStatus_names[0], 35}, 16},
    {{&SnippetStatus_names[35], 28}, 15},
    {{&SnippetStatus_names[63], 22}, 9},
    {{&SnippetStatus_names[85], 26}, 11},
    {{&SnippetStatus_names[111], 29}, 6},
    {{&SnippetStatus_names[140], 32}, 5},
    {{&SnippetStatus_names[172], 24}, 12},
    {{&SnippetStatus_names[196], 38}, 4},
    {{&SnippetStatus_names[234], 41}, 3},
    {{&SnippetStatus_names[275], 28}, 1},
    {{&SnippetStatus_names[303], 29}, 2},
    {{&SnippetStatus_names[332], 30}, 10},
    {{&SnippetStatus_names[362], 26}, 0},
    {{&SnippetStatus_names[388], 30}, 13},
    {{&SnippetStatus_names[418], 28}, 8},
    {{&SnippetStatus_names[446], 31}, 7},
    {{&SnippetStatus_names[477], 32}, 14},
};

static const int SnippetStatus_entries_by_number[] = {
    12,  // 0 -> SNIPPET_STATUS_UNSPECIFIED
    9,  // 1 -> SNIPPET_STATUS_SELF_PROMOTED
    10,  // 2 -> SNIPPET_STATUS_SELF_PROMOTING
    8,  // 3 -> SNIPPET_STATUS_ON_DEMAND_UPDATE_SUCCEEDED
    7,  // 4 -> SNIPPET_STATUS_ON_DEMAND_UPDATE_FAILED
    5,  // 5 -> SNIPPET_STATUS_INSTALL_SUCCEEDED
    4,  // 6 -> SNIPPET_STATUS_INSTALL_FAILED
    15,  // 7 -> SNIPPET_STATUS_UPDATE_SUCCEEDED
    14,  // 8 -> SNIPPET_STATUS_UPDATE_FAILED
    2,  // 9 -> SNIPPET_STATUS_CRASHED
    11,  // 10 -> SNIPPET_STATUS_TRANSIENT_ERROR
    3,  // 11 -> SNIPPET_STATUS_FATAL_ERROR
    6,  // 12 -> SNIPPET_STATUS_NO_UPDATE
    13,  // 13 -> SNIPPET_STATUS_UPDATE_DISABLED
    16,  // 14 -> SNIPPET_STATUS_UPDATE_SUPPRESSED
    1,  // 15 -> SNIPPET_STATUS_CHECK_SKIPPED
    0,  // 16 -> SNIPPET_STATUS_BACKGROUND_EXECUTION
};

bool SnippetStatus_Parse(::absl::string_view name,
                                  SnippetStatus* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SnippetStatus_entries, 17, name, &int_value);
  if (success) {
    *value = static_cast<SnippetStatus>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SnippetStatus_strings[17] = {};

const ::std::string& SnippetStatus_Name(SnippetStatus value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SnippetStatus_entries, SnippetStatus_entries_by_number, 17,
      SnippetStatus_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SnippetStatus_entries,
                                  SnippetStatus_entries_by_number,
                                  17, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SnippetStatus_strings[idx].get();
}
// ===================================================================

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

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

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

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

inline void UpdaterChatLoggingData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, request_),
           0,
           offsetof(Impl_, model_execution_info_) -
               offsetof(Impl_, request_) +
               sizeof(Impl_::model_execution_info_));
}
UpdaterChatLoggingData::~UpdaterChatLoggingData() {
  // @@protoc_insertion_point(destructor:optimization_guide.proto.UpdaterChatLoggingData)
  SharedDtor(*this);
}
inline void UpdaterChatLoggingData::SharedDtor(MessageLite& self) {
  UpdaterChatLoggingData& this_ = static_cast<UpdaterChatLoggingData&>(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_;
  delete this_._impl_.model_execution_info_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UpdaterChatLoggingData_class_data_ =
    UpdaterChatLoggingData::InternalGenerateClassData_(UpdaterChatLoggingData_globals_._default);

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

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

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

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

  // .optimization_guide.proto.ModelExecutionInfo model_execution_info = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.model_execution_info_, this_._impl_.model_execution_info_->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.UpdaterChatLoggingData)
  return target;
}

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

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


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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UpdaterChatRequest_class_data_ =
    UpdaterChatRequest::InternalGenerateClassData_(UpdaterChatRequest_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.UpdaterChatRequest.Mode mode = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (this_._internal_mode() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          1, this_._internal_mode(), target);
    }
  }

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

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

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

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t UpdaterChatRequest::ByteSizeLong(const MessageLite& base) {
  const UpdaterChatRequest& this_ = static_cast<const UpdaterChatRequest&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t UpdaterChatRequest::ByteSizeLong() const {
  const UpdaterChatRequest& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.UpdaterChatRequest)
  ::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)) {
    // repeated string conversation_history = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_conversation_history().size());
      for (int i = 0, n = this_._internal_conversation_history().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_conversation_history().Get(i));
      }
    }
    // string log_snippet = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_log_snippet().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_log_snippet());
      }
    }
    // string current_time = 4 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!this_._internal_current_time().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_current_time());
      }
    }
    // .optimization_guide.proto.UpdaterChatRequest.Mode mode = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (this_._internal_mode() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_mode());
      }
    }
  }
  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 UpdaterChatRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UpdaterChatRequest*>(&to_msg);
  auto& from = static_cast<const UpdaterChatRequest&>(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.UpdaterChatRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_conversation_history()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_conversation_history());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_log_snippet().empty()) {
        _this->_internal_set_log_snippet(from._internal_log_snippet());
      } else {
        if (_this->_impl_.log_snippet_.IsDefault()) {
          _this->_internal_set_log_snippet("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!from._internal_current_time().empty()) {
        _this->_internal_set_current_time(from._internal_current_time());
      } else {
        if (_this->_impl_.current_time_.IsDefault()) {
          _this->_internal_set_current_time("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (from._internal_mode() != 0) {
        _this->_impl_.mode_ = from._impl_.mode_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void UpdaterChatRequest::InternalSwap(UpdaterChatRequest* 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_.conversation_history_.InternalSwap(&other->_impl_.conversation_history_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.log_snippet_, &other->_impl_.log_snippet_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.current_time_, &other->_impl_.current_time_, arena);
  swap(_impl_.mode_, other->_impl_.mode_);
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UpdaterChatResponse_class_data_ =
    UpdaterChatResponse::InternalGenerateClassData_(UpdaterChatResponse_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.SnippetStatus status = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_status(), target);
  }

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

  // repeated string suggested_prompts = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_suggested_prompts_size(); i < n; ++i) {
      const auto& s = this_._internal_suggested_prompts().Get(i);
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.UpdaterChatResponse.suggested_prompts");
      target = stream->WriteString(3, 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.UpdaterChatResponse)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // repeated string suggested_prompts = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_suggested_prompts().size());
      for (int i = 0, n = this_._internal_suggested_prompts().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_suggested_prompts().Get(i));
      }
    }
    // string text_response = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_text_response().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_text_response());
      }
    }
    // .optimization_guide.proto.SnippetStatus status = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
    }
  }
  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 UpdaterChatResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UpdaterChatResponse*>(&to_msg);
  auto& from = static_cast<const UpdaterChatResponse&>(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.UpdaterChatResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_suggested_prompts()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_suggested_prompts());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_text_response().empty()) {
        _this->_internal_set_text_response(from._internal_text_response());
      } else {
        if (_this->_impl_.text_response_.IsDefault()) {
          _this->_internal_set_text_response("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.status_ = from._impl_.status_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void UpdaterChatResponse::InternalSwap(UpdaterChatResponse* 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_.suggested_prompts_.InternalSwap(&other->_impl_.suggested_prompts_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.text_response_, &other->_impl_.text_response_, arena);
  swap(_impl_.status_, other->_impl_.status_);
}

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