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

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

constexpr Any::ParseTableT_ Any::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Any, _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<::personal_context::proto::Any>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // bytes value = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(Any, _impl_.value_)}},
      // string type_url = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Any, _impl_.type_url_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string type_url = 1;
      {PROTOBUF_FIELD_OFFSET(Any, _impl_.type_url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // bytes value = 2;
      {PROTOBUF_FIELD_OFFSET(Any, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\32\10\0\0\0\0\0\0"
      "personal_context.proto.Any"
      "type_url"
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST AnyGlobalsTypeInternal Any_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Any_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Any_globals_.GetClassData();
#else
  return Any_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class FetchContextResponse::_Internal {
 public:
  using HasBits = decltype(::std::declval<FetchContextResponse>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(FetchContextResponse, _impl_._has_bits_);
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::personal_context::proto::FetchContextResponse, _impl_._oneof_case_);
};

constexpr FetchContextResponse::ParseTableT_ FetchContextResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FetchContextResponse, _impl_._has_bits_),
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::personal_context::proto::FetchContextResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string server_request_id = 2;
      {::_pbi::TcParser::FastUS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(FetchContextResponse, _impl_.server_request_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .personal_context.proto.Any response_metadata = 1;
      {PROTOBUF_FIELD_OFFSET(FetchContextResponse, _impl_.response_.response_metadata_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // string server_request_id = 2;
      {PROTOBUF_FIELD_OFFSET(FetchContextResponse, _impl_.server_request_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::personal_context::proto::Any>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::personal_context::proto::Any_globals_},
        #endif
    }},
    {{
      "\53\0\21\0\0\0\0\0"
      "personal_context.proto.FetchContextResponse"
      "server_request_id"
    }},
  };
}


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

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

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

constexpr FetchContextRequest::ParseTableT_ FetchContextRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FetchContextRequest, _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<::personal_context::proto::FetchContextRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .personal_context.proto.Any request_metadata = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(FetchContextRequest, _impl_.request_metadata_)}},
      // .personal_context.proto.ContextMemoryFeature feature = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(FetchContextRequest, _impl_.feature_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .personal_context.proto.ContextMemoryFeature feature = 1;
      {PROTOBUF_FIELD_OFFSET(FetchContextRequest, _impl_.feature_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // .personal_context.proto.Any request_metadata = 2;
      {PROTOBUF_FIELD_OFFSET(FetchContextRequest, _impl_.request_metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::personal_context::proto::Any>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::personal_context::proto::Any_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr FetchContextRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        request_metadata_{nullptr},
        feature_{static_cast< ::personal_context::proto::ContextMemoryFeature >(0)} {}

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

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

constexpr FetchPiiEntitiesResponse::ParseTableT_ FetchPiiEntitiesResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesResponse, _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<::personal_context::proto::FetchPiiEntitiesResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string server_request_id = 2;
      {::_pbi::TcParser::FastUS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesResponse, _impl_.server_request_id_)}},
      // repeated .personal_context.proto.Entity entities = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesResponse, _impl_.entities_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .personal_context.proto.Entity entities = 1;
      {PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesResponse, _impl_.entities_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // string server_request_id = 2;
      {PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesResponse, _impl_.server_request_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::personal_context::proto::Entity>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::personal_context::proto::Entity_globals_},
        #endif
    }},
    {{
      "\57\0\21\0\0\0\0\0"
      "personal_context.proto.FetchPiiEntitiesResponse"
      "server_request_id"
    }},
  };
}


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

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

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

constexpr FetchPiiEntitiesRequest::ParseTableT_ FetchPiiEntitiesRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesRequest, _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<::personal_context::proto::FetchPiiEntitiesRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .personal_context.proto.Entity masked_entities = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesRequest, _impl_.masked_entities_)}},
      // .personal_context.proto.ContextMemoryFeature feature = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesRequest, _impl_.feature_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .personal_context.proto.ContextMemoryFeature feature = 1;
      {PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesRequest, _impl_.feature_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // repeated .personal_context.proto.Entity masked_entities = 2;
      {PROTOBUF_FIELD_OFFSET(FetchPiiEntitiesRequest, _impl_.masked_entities_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::personal_context::proto::Entity>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::personal_context::proto::Entity_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr FetchPiiEntitiesRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        masked_entities_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::personal_context::proto::FetchPiiEntitiesRequest,
            PROTOBUF_FIELD_OFFSET(::personal_context::proto::FetchPiiEntitiesRequest, _impl_.masked_entities_)>()
         }
        ,
        feature_{static_cast< ::personal_context::proto::ContextMemoryFeature >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST FetchPiiEntitiesRequestGlobalsTypeInternal FetchPiiEntitiesRequest_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* FetchPiiEntitiesRequest_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return FetchPiiEntitiesRequest_globals_.GetClassData();
#else
  return FetchPiiEntitiesRequest_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace personal_context
namespace personal_context {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t ContextMemoryFeature_internal_data_[] = {
    131072u, 32u, 14u, };
static const char ContextMemoryFeature_names[] = {
    "CONTEXT_MEMORY_FEATURE_AMBIENT_AUTOFILL"
    "CONTEXT_MEMORY_FEATURE_AT_MEMORY"
    "CONTEXT_MEMORY_FEATURE_AUTO_TODOS"
    "CONTEXT_MEMORY_FEATURE_SMART_SEARCH"
    "CONTEXT_MEMORY_FEATURE_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry ContextMemoryFeature_entries[] = {
    {{&ContextMemoryFeature_names[0], 39}, 1},
    {{&ContextMemoryFeature_names[39], 32}, 3},
    {{&ContextMemoryFeature_names[71], 33}, 4},
    {{&ContextMemoryFeature_names[104], 35}, 5},
    {{&ContextMemoryFeature_names[139], 34}, 0},
};

static const int ContextMemoryFeature_entries_by_number[] = {
    4,  // 0 -> CONTEXT_MEMORY_FEATURE_UNSPECIFIED
    0,  // 1 -> CONTEXT_MEMORY_FEATURE_AMBIENT_AUTOFILL
    1,  // 3 -> CONTEXT_MEMORY_FEATURE_AT_MEMORY
    2,  // 4 -> CONTEXT_MEMORY_FEATURE_AUTO_TODOS
    3,  // 5 -> CONTEXT_MEMORY_FEATURE_SMART_SEARCH
};

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

const ::std::string& ContextMemoryFeature_Name(ContextMemoryFeature value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ContextMemoryFeature_entries, ContextMemoryFeature_entries_by_number, 5,
      ContextMemoryFeature_strings);
  (void)kDummy;

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

FetchContextRequest::FetchContextRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FetchContextRequest_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:personal_context.proto.FetchContextRequest)
}
PROTOBUF_NDEBUG_INLINE FetchContextRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::personal_context::proto::FetchContextRequest& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite FetchContextRequest_class_data_ =
    FetchContextRequest::InternalGenerateClassData_(FetchContextRequest_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchContextRequest::GetClassData() const {
  return FetchContextRequest_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchContextRequest::GetClassData() const {
  return FetchContextRequest_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const FetchContextRequest::ParseTableT_
    FetchContextRequest::_table_ =
        FetchContextRequest::InternalGenerateParseTable_(FetchContextRequest_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void FetchContextRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:personal_context.proto.FetchContextRequest)
  ::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_.request_metadata_ != nullptr);
    _impl_.request_metadata_->Clear();
  }
  _impl_.feature_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .personal_context.proto.ContextMemoryFeature feature = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_feature() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          1, this_._internal_feature(), target);
    }
  }

  // .personal_context.proto.Any request_metadata = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.request_metadata_, this_._impl_.request_metadata_->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:personal_context.proto.FetchContextRequest)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t FetchContextRequest::ByteSizeLong(const MessageLite& base) {
  const FetchContextRequest& this_ = static_cast<const FetchContextRequest&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t FetchContextRequest::ByteSizeLong() const {
  const FetchContextRequest& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:personal_context.proto.FetchContextRequest)
  ::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)) {
    // .personal_context.proto.Any request_metadata = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_metadata_);
    }
    // .personal_context.proto.ContextMemoryFeature feature = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (this_._internal_feature() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_feature());
      }
    }
  }
  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 FetchContextRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<FetchContextRequest*>(&to_msg);
  auto& from = static_cast<const FetchContextRequest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:personal_context.proto.FetchContextRequest)
  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_metadata_ != nullptr);
      if (_this->_impl_.request_metadata_ == nullptr) {
        _this->_impl_.request_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_metadata_);
      } else {
        _this->_impl_.request_metadata_->MergeFrom(*from._impl_.request_metadata_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (from._internal_feature() != 0) {
        _this->_impl_.feature_ = from._impl_.feature_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void FetchContextResponse::set_allocated_response_metadata(::personal_context::proto::Any* PROTOBUF_NULLABLE response_metadata) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_response();
  if (response_metadata) {
    ::google::protobuf::Arena* submessage_arena = response_metadata->GetArena();
    if (message_arena != submessage_arena) {
      response_metadata = ::google::protobuf::internal::GetOwnedMessage(message_arena, response_metadata, submessage_arena);
    }
    set_has_response_metadata();
    _impl_.response_.response_metadata_ = response_metadata;
  }
  // @@protoc_insertion_point(field_set_allocated:personal_context.proto.FetchContextResponse.response_metadata)
}
FetchContextResponse::FetchContextResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FetchContextResponse_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:personal_context.proto.FetchContextResponse)
}
PROTOBUF_NDEBUG_INLINE FetchContextResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::personal_context::proto::FetchContextResponse& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        server_request_id_(arena, from.server_request_id_),
        response_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  FetchContextResponse* 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 kResponseMetadata:
        _impl_.response_.response_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_.response_metadata_);
        break;
  }

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

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

void FetchContextResponse::clear_response() {
// @@protoc_insertion_point(one_of_clear_start:personal_context.proto.FetchContextResponse)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (response_case()) {
    case kResponseMetadata: {
      if (GetArena() == nullptr) {
        delete _impl_.response_.response_metadata_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.response_.response_metadata_ != nullptr) {
          _impl_.response_.response_metadata_->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 FetchContextResponse_class_data_ =
    FetchContextResponse::InternalGenerateClassData_(FetchContextResponse_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchContextResponse::GetClassData() const {
  return FetchContextResponse_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchContextResponse::GetClassData() const {
  return FetchContextResponse_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const FetchContextResponse::ParseTableT_
    FetchContextResponse::_table_ =
        FetchContextResponse::InternalGenerateParseTable_(FetchContextResponse_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void FetchContextResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:personal_context.proto.FetchContextResponse)
  ::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_.server_request_id_.ClearNonDefaultToEmpty();
  }
  clear_response();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  // .personal_context.proto.Any response_metadata = 1;
  if (this_.response_case() == kResponseMetadata) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.response_.response_metadata_, this_._impl_.response_.response_metadata_->GetCachedSize(), target,
        stream);
  }

  cached_has_bits = this_._impl_._has_bits_[0];
  // string server_request_id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_server_request_id().empty()) {
      const ::std::string& _s = this_._internal_server_request_id();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "personal_context.proto.FetchContextResponse.server_request_id");
      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:personal_context.proto.FetchContextResponse)
  return target;
}

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

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

   {
    // string server_request_id = 2;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_server_request_id().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_server_request_id());
      }
    }
  }
  switch (this_.response_case()) {
    // .personal_context.proto.Any response_metadata = 1;
    case kResponseMetadata: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.response_metadata_);
      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 FetchContextResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<FetchContextResponse*>(&to_msg);
  auto& from = static_cast<const FetchContextResponse&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:personal_context.proto.FetchContextResponse)
  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_server_request_id().empty()) {
      _this->_internal_set_server_request_id(from._internal_server_request_id());
    } else {
      if (_this->_impl_.server_request_id_.IsDefault()) {
        _this->_internal_set_server_request_id("");
      }
    }
  }
  _this->_impl_._has_bits_[0] |= 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 kResponseMetadata: {
        if (oneof_needs_init) {
          _this->_impl_.response_.response_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_.response_metadata_);
        } else {
          _this->_impl_.response_.response_metadata_->MergeFrom(*from._impl_.response_.response_metadata_);
        }
        break;
      }
      case RESPONSE_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void FetchContextResponse::InternalSwap(FetchContextResponse* 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_.server_request_id_, &other->_impl_.server_request_id_, arena);
  swap(_impl_.response_, other->_impl_.response_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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

void FetchPiiEntitiesRequest::clear_masked_entities() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.masked_entities_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
FetchPiiEntitiesRequest::FetchPiiEntitiesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FetchPiiEntitiesRequest_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:personal_context.proto.FetchPiiEntitiesRequest)
}
PROTOBUF_NDEBUG_INLINE FetchPiiEntitiesRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::personal_context::proto::FetchPiiEntitiesRequest& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        masked_entities_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::personal_context::proto::FetchPiiEntitiesRequest,
              PROTOBUF_FIELD_OFFSET(::personal_context::proto::FetchPiiEntitiesRequest, _impl_.masked_entities_)>()
          , from.masked_entities_
        }
     {}

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

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

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

inline void FetchPiiEntitiesRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.feature_ = {};
}
FetchPiiEntitiesRequest::~FetchPiiEntitiesRequest() {
  // @@protoc_insertion_point(destructor:personal_context.proto.FetchPiiEntitiesRequest)
  SharedDtor(*this);
}
inline void FetchPiiEntitiesRequest::SharedDtor(MessageLite& self) {
  FetchPiiEntitiesRequest& this_ = static_cast<FetchPiiEntitiesRequest&>(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 FetchPiiEntitiesRequest_class_data_ =
    FetchPiiEntitiesRequest::InternalGenerateClassData_(FetchPiiEntitiesRequest_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchPiiEntitiesRequest::GetClassData() const {
  return FetchPiiEntitiesRequest_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FetchPiiEntitiesRequest::GetClassData() const {
  return FetchPiiEntitiesRequest_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const FetchPiiEntitiesRequest::ParseTableT_
    FetchPiiEntitiesRequest::_table_ =
        FetchPiiEntitiesRequest::InternalGenerateParseTable_(FetchPiiEntitiesRequest_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void FetchPiiEntitiesRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:personal_context.proto.FetchPiiEntitiesRequest)
  ::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_.masked_entities_.Clear();
  }
  _impl_.feature_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .personal_context.proto.ContextMemoryFeature feature = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_feature() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          1, this_._internal_feature(), target);
    }
  }

  // repeated .personal_context.proto.Entity masked_entities = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_masked_entities_size());
         i < n; i++) {
      const auto& repfield = this_._internal_masked_entities().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.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:personal_context.proto.FetchPiiEntitiesRequest)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t FetchPiiEntitiesRequest::ByteSizeLong(const MessageLite& base) {
  const FetchPiiEntitiesRequest& this_ = static_cast<const FetchPiiEntitiesRequest&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t FetchPiiEntitiesRequest::ByteSizeLong() const {
  const FetchPiiEntitiesRequest& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:personal_context.proto.FetchPiiEntitiesRequest)
  ::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 .personal_context.proto.Entity masked_entities = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_masked_entities_size();
      for (const auto& msg : this_._internal_masked_entities()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .personal_context.proto.ContextMemoryFeature feature = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (this_._internal_feature() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_feature());
      }
    }
  }
  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 FetchPiiEntitiesRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<FetchPiiEntitiesRequest*>(&to_msg);
  auto& from = static_cast<const FetchPiiEntitiesRequest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:personal_context.proto.FetchPiiEntitiesRequest)
  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_masked_entities()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_masked_entities());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (from._internal_feature() != 0) {
        _this->_impl_.feature_ = from._impl_.feature_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void FetchPiiEntitiesRequest::InternalSwap(FetchPiiEntitiesRequest* 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_.masked_entities_.InternalSwap(&other->_impl_.masked_entities_);
  swap(_impl_.feature_, other->_impl_.feature_);
}

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

void FetchPiiEntitiesResponse::clear_entities() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.entities_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
FetchPiiEntitiesResponse::FetchPiiEntitiesResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FetchPiiEntitiesResponse_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:personal_context.proto.FetchPiiEntitiesResponse)
}
PROTOBUF_NDEBUG_INLINE FetchPiiEntitiesResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::personal_context::proto::FetchPiiEntitiesResponse& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        entities_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::personal_context::proto::FetchPiiEntitiesResponse,
              PROTOBUF_FIELD_OFFSET(::personal_context::proto::FetchPiiEntitiesResponse, _impl_.entities_)>()
          , from.entities_
        }
        ,
        server_request_id_(arena, from.server_request_id_) {}

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite FetchPiiEntitiesResponse_class_data_ =
    FetchPiiEntitiesResponse::InternalGenerateClassData_(FetchPiiEntitiesResponse_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .personal_context.proto.Entity entities = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_entities_size());
         i < n; i++) {
      const auto& repfield = this_._internal_entities().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // string server_request_id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_server_request_id().empty()) {
      const ::std::string& _s = this_._internal_server_request_id();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "personal_context.proto.FetchPiiEntitiesResponse.server_request_id");
      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:personal_context.proto.FetchPiiEntitiesResponse)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t FetchPiiEntitiesResponse::ByteSizeLong(const MessageLite& base) {
  const FetchPiiEntitiesResponse& this_ = static_cast<const FetchPiiEntitiesResponse&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t FetchPiiEntitiesResponse::ByteSizeLong() const {
  const FetchPiiEntitiesResponse& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:personal_context.proto.FetchPiiEntitiesResponse)
  ::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 .personal_context.proto.Entity entities = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_entities_size();
      for (const auto& msg : this_._internal_entities()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string server_request_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_server_request_id().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_server_request_id());
      }
    }
  }
  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 FetchPiiEntitiesResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<FetchPiiEntitiesResponse*>(&to_msg);
  auto& from = static_cast<const FetchPiiEntitiesResponse&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:personal_context.proto.FetchPiiEntitiesResponse)
  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_entities()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_entities());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_server_request_id().empty()) {
        _this->_internal_set_server_request_id(from._internal_server_request_id());
      } else {
        if (_this->_impl_.server_request_id_.IsDefault()) {
          _this->_internal_set_server_request_id("");
        }
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

Any::Any(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Any_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:personal_context.proto.Any)
}
PROTOBUF_NDEBUG_INLINE Any::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::personal_context::proto::Any& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        type_url_(arena, from.type_url_),
        value_(arena, from.value_) {}

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Any_class_data_ =
    Any::InternalGenerateClassData_(Any_globals_._default);

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

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

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

  // bytes value = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_value().empty()) {
      const ::std::string& _s = this_._internal_value();
      target = stream->WriteBytesMaybeAliased(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:personal_context.proto.Any)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Any::ByteSizeLong(const MessageLite& base) {
  const Any& this_ = static_cast<const Any&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Any::ByteSizeLong() const {
  const Any& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:personal_context.proto.Any)
  ::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 type_url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_type_url().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_type_url());
      }
    }
    // bytes value = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_value().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                        this_._internal_value());
      }
    }
  }
  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 Any::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Any*>(&to_msg);
  auto& from = static_cast<const Any&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:personal_context.proto.Any)
  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_type_url().empty()) {
        _this->_internal_set_type_url(from._internal_type_url());
      } else {
        if (_this->_impl_.type_url_.IsDefault()) {
          _this->_internal_set_type_url("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_value().empty()) {
        _this->_internal_set_value(from._internal_value());
      } else {
        if (_this->_impl_.value_.IsDefault()) {
          _this->_internal_set_value("");
        }
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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