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

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

constexpr RectProto::ParseTableT_ RectProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(RectProto, _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<::paint_preview::RectProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 height = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(RectProto, _impl_.height_)}},
      // optional int64 x = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(RectProto, _impl_.x_)}},
      // optional int64 y = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(RectProto, _impl_.y_)}},
      // optional int64 width = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(RectProto, _impl_.width_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 x = 1;
      {PROTOBUF_FIELD_OFFSET(RectProto, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 y = 2;
      {PROTOBUF_FIELD_OFFSET(RectProto, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 width = 3;
      {PROTOBUF_FIELD_OFFSET(RectProto, _impl_.width_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 height = 4;
      {PROTOBUF_FIELD_OFFSET(RectProto, _impl_.height_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr RectProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        x_{::int64_t{0}},
        y_{::int64_t{0}},
        width_{::int64_t{0}},
        height_{::int64_t{0}} {}

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

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

constexpr ContentIdEmbeddingTokenPairProto::ParseTableT_ ContentIdEmbeddingTokenPairProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ContentIdEmbeddingTokenPairProto, _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<::paint_preview::ContentIdEmbeddingTokenPairProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional uint32 content_id = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(ContentIdEmbeddingTokenPairProto, _impl_.content_id_)}},
      // optional uint64 embedding_token_low = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 0, 0,
        PROTOBUF_FIELD_OFFSET(ContentIdEmbeddingTokenPairProto, _impl_.embedding_token_low_)}},
      // optional uint64 embedding_token_high = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 1, 0,
        PROTOBUF_FIELD_OFFSET(ContentIdEmbeddingTokenPairProto, _impl_.embedding_token_high_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional uint32 content_id = 1;
      {PROTOBUF_FIELD_OFFSET(ContentIdEmbeddingTokenPairProto, _impl_.content_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // optional uint64 embedding_token_low = 2;
      {PROTOBUF_FIELD_OFFSET(ContentIdEmbeddingTokenPairProto, _impl_.embedding_token_low_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 embedding_token_high = 3;
      {PROTOBUF_FIELD_OFFSET(ContentIdEmbeddingTokenPairProto, _impl_.embedding_token_high_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr ContentIdEmbeddingTokenPairProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        embedding_token_low_{::uint64_t{0u}},
        embedding_token_high_{::uint64_t{0u}},
        content_id_{0u} {}

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

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

constexpr ChromeVersionProto::ParseTableT_ ChromeVersionProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _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<::paint_preview::ChromeVersionProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional uint64 patch = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.patch_)}},
      // optional uint64 major = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.major_)}},
      // optional uint64 minor = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.minor_)}},
      // optional uint64 build = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.build_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional uint64 major = 1;
      {PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.major_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 minor = 2;
      {PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.minor_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 build = 3;
      {PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.build_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 patch = 4;
      {PROTOBUF_FIELD_OFFSET(ChromeVersionProto, _impl_.patch_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr ChromeVersionProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        major_{::uint64_t{0u}},
        minor_{::uint64_t{0u}},
        build_{::uint64_t{0u}},
        patch_{::uint64_t{0u}} {}

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

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

constexpr MetadataProto::ParseTableT_ MetadataProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(MetadataProto, _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
      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<::paint_preview::MetadataProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional float page_scale_factor = 4;
      {::_pbi::TcParser::FastF32S1,
       {37, 3, 0,
        PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.page_scale_factor_)}},
      // optional string url = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.url_)}},
      // optional uint64 version = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.version_)}},
      // optional .paint_preview.ChromeVersionProto chrome_version = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.chrome_version_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string url = 1;
      {PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional uint64 version = 2;
      {PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional .paint_preview.ChromeVersionProto chrome_version = 3;
      {PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.chrome_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional float page_scale_factor = 4;
      {PROTOBUF_FIELD_OFFSET(MetadataProto, _impl_.page_scale_factor_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::paint_preview::ChromeVersionProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::paint_preview::ChromeVersionProto_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr MetadataProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        chrome_version_{nullptr},
        version_{::uint64_t{0u}},
        page_scale_factor_{0} {}

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

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

constexpr LinkDataProto::ParseTableT_ LinkDataProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(LinkDataProto, _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<::paint_preview::LinkDataProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string url = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(LinkDataProto, _impl_.url_)}},
      // optional .paint_preview.RectProto rect = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(LinkDataProto, _impl_.rect_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .paint_preview.RectProto rect = 1;
      {PROTOBUF_FIELD_OFFSET(LinkDataProto, _impl_.rect_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string url = 2;
      {PROTOBUF_FIELD_OFFSET(LinkDataProto, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::paint_preview::RectProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::paint_preview::RectProto_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr PaintPreviewFrameProto::ParseTableT_ PaintPreviewFrameProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_._has_bits_),
      0, // no _extensions_
      10, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294966272,  // skipmap
      offsetof(ParseTableT_, field_entries),
      10,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::paint_preview::PaintPreviewFrameProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional uint64 embedding_token_low = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 3, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.embedding_token_low_)}},
      // optional uint64 embedding_token_high = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 4, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.embedding_token_high_)}},
      // optional bool is_main_frame = 3;
      {::_pbi::TcParser::FastV8S1,
       {24, 5, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.is_main_frame_)}},
      // optional string file_path = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 2, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.file_path_)}},
      // repeated .paint_preview.LinkDataProto links = 5;
      {::_pbi::TcParser::FastMtR1,
       {42, 0, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.links_)}},
      // repeated .paint_preview.ContentIdEmbeddingTokenPairProto content_id_to_embedding_tokens = 6;
      {::_pbi::TcParser::FastMtR1,
       {50, 1, 1,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.content_id_to_embedding_tokens_)}},
      // optional uint32 scroll_offset_x = 7;
      {::_pbi::TcParser::FastV32S1,
       {56, 6, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.scroll_offset_x_)}},
      // optional uint32 scroll_offset_y = 8;
      {::_pbi::TcParser::FastV32S1,
       {64, 7, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.scroll_offset_y_)}},
      // optional uint32 frame_offset_x = 9;
      {::_pbi::TcParser::FastV32S1,
       {72, 8, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.frame_offset_x_)}},
      // optional uint32 frame_offset_y = 10;
      {::_pbi::TcParser::FastV32S1,
       {80, 9, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.frame_offset_y_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional uint64 embedding_token_low = 1;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.embedding_token_low_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 embedding_token_high = 2;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.embedding_token_high_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional bool is_main_frame = 3;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.is_main_frame_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional string file_path = 4;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.file_path_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .paint_preview.LinkDataProto links = 5;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.links_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .paint_preview.ContentIdEmbeddingTokenPairProto content_id_to_embedding_tokens = 6;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.content_id_to_embedding_tokens_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional uint32 scroll_offset_x = 7;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.scroll_offset_x_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // optional uint32 scroll_offset_y = 8;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.scroll_offset_y_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // optional uint32 frame_offset_x = 9;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.frame_offset_x_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // optional uint32 frame_offset_y = 10;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.frame_offset_y_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::paint_preview::LinkDataProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::paint_preview::LinkDataProto_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::paint_preview::ContentIdEmbeddingTokenPairProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::paint_preview::ContentIdEmbeddingTokenPairProto_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr PaintPreviewFrameProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        links_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::paint_preview::PaintPreviewFrameProto,
            PROTOBUF_FIELD_OFFSET(::paint_preview::PaintPreviewFrameProto, _impl_.links_)>()
         }
        ,
        content_id_to_embedding_tokens_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::paint_preview::PaintPreviewFrameProto,
            PROTOBUF_FIELD_OFFSET(::paint_preview::PaintPreviewFrameProto, _impl_.content_id_to_embedding_tokens_)>()
         }
        ,
        file_path_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        embedding_token_low_{::uint64_t{0u}},
        embedding_token_high_{::uint64_t{0u}},
        is_main_frame_{false},
        scroll_offset_x_{0u},
        scroll_offset_y_{0u},
        frame_offset_x_{0u},
        frame_offset_y_{0u} {}

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

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

constexpr PaintPreviewProto::ParseTableT_ PaintPreviewProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _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<::paint_preview::PaintPreviewProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .paint_preview.PaintPreviewFrameProto root_frame = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.root_frame_)}},
      // repeated .paint_preview.PaintPreviewFrameProto subframes = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 1,
        PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.subframes_)}},
      // optional .paint_preview.MetadataProto metadata = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 2,
        PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.metadata_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .paint_preview.PaintPreviewFrameProto root_frame = 1;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.root_frame_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .paint_preview.PaintPreviewFrameProto subframes = 2;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.subframes_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .paint_preview.MetadataProto metadata = 3;
      {PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.metadata_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::paint_preview::PaintPreviewFrameProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::paint_preview::PaintPreviewFrameProto_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::paint_preview::PaintPreviewFrameProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::paint_preview::PaintPreviewFrameProto_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::paint_preview::MetadataProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::paint_preview::MetadataProto_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr PaintPreviewProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        subframes_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::paint_preview::PaintPreviewProto,
            PROTOBUF_FIELD_OFFSET(::paint_preview::PaintPreviewProto, _impl_.subframes_)>()
         }
        ,
        root_frame_{nullptr},
        metadata_{nullptr} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PaintPreviewProtoGlobalsTypeInternal PaintPreviewProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PaintPreviewProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PaintPreviewProto_globals_.GetClassData();
#else
  return PaintPreviewProto_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace paint_preview
namespace paint_preview {
// ===================================================================

RectProto::RectProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RectProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:paint_preview.RectProto)
}
RectProto::RectProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RectProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RectProto_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE RectProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void RectProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, x_),
           0,
           offsetof(Impl_, height_) -
               offsetof(Impl_, x_) +
               sizeof(Impl_::height_));
}
RectProto::~RectProto() {
  // @@protoc_insertion_point(destructor:paint_preview.RectProto)
  SharedDtor(*this);
}
inline void RectProto::SharedDtor(MessageLite& self) {
  RectProto& this_ = static_cast<RectProto&>(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 RectProto_class_data_ =
    RectProto::InternalGenerateClassData_(RectProto_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    ::memset(&_impl_.x_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.height_) -
        reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.height_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int64 x = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
            stream, this_._internal_x(), target);
  }

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

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

  // optional int64 height = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
            stream, this_._internal_height(), 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:paint_preview.RectProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t RectProto::ByteSizeLong(const MessageLite& base) {
  const RectProto& this_ = static_cast<const RectProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t RectProto::ByteSizeLong() const {
  const RectProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:paint_preview.RectProto)
  ::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)) {
    // optional int64 x = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_x());
    }
    // optional int64 y = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_y());
    }
    // optional int64 width = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_width());
    }
    // optional int64 height = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_height());
    }
  }
  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 RectProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<RectProto*>(&to_msg);
  auto& from = static_cast<const RectProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:paint_preview.RectProto)
  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->_impl_.x_ = from._impl_.x_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.y_ = from._impl_.y_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.width_ = from._impl_.width_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.height_ = from._impl_.height_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite LinkDataProto_class_data_ =
    LinkDataProto::InternalGenerateClassData_(LinkDataProto_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .paint_preview.RectProto rect = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.rect_, this_._impl_.rect_->GetCachedSize(), target,
        stream);
  }

  // optional string url = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_url();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t LinkDataProto::ByteSizeLong(const MessageLite& base) {
  const LinkDataProto& this_ = static_cast<const LinkDataProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t LinkDataProto::ByteSizeLong() const {
  const LinkDataProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:paint_preview.LinkDataProto)
  ::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)) {
    // optional string url = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional .paint_preview.RectProto rect = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.rect_);
    }
  }
  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 LinkDataProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<LinkDataProto*>(&to_msg);
  auto& from = static_cast<const LinkDataProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:paint_preview.LinkDataProto)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void LinkDataProto::InternalSwap(LinkDataProto* 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_.url_, &other->_impl_.url_, arena);
  swap(_impl_.rect_, other->_impl_.rect_);
}

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

ContentIdEmbeddingTokenPairProto::ContentIdEmbeddingTokenPairProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ContentIdEmbeddingTokenPairProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:paint_preview.ContentIdEmbeddingTokenPairProto)
}
ContentIdEmbeddingTokenPairProto::ContentIdEmbeddingTokenPairProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ContentIdEmbeddingTokenPairProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ContentIdEmbeddingTokenPairProto_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE ContentIdEmbeddingTokenPairProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void ContentIdEmbeddingTokenPairProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, embedding_token_low_),
           0,
           offsetof(Impl_, content_id_) -
               offsetof(Impl_, embedding_token_low_) +
               sizeof(Impl_::content_id_));
}
ContentIdEmbeddingTokenPairProto::~ContentIdEmbeddingTokenPairProto() {
  // @@protoc_insertion_point(destructor:paint_preview.ContentIdEmbeddingTokenPairProto)
  SharedDtor(*this);
}
inline void ContentIdEmbeddingTokenPairProto::SharedDtor(MessageLite& self) {
  ContentIdEmbeddingTokenPairProto& this_ = static_cast<ContentIdEmbeddingTokenPairProto&>(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 ContentIdEmbeddingTokenPairProto_class_data_ =
    ContentIdEmbeddingTokenPairProto::InternalGenerateClassData_(ContentIdEmbeddingTokenPairProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ContentIdEmbeddingTokenPairProto::GetClassData() const {
  return ContentIdEmbeddingTokenPairProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ContentIdEmbeddingTokenPairProto::GetClassData() const {
  return ContentIdEmbeddingTokenPairProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentIdEmbeddingTokenPairProto::ParseTableT_
    ContentIdEmbeddingTokenPairProto::_table_ =
        ContentIdEmbeddingTokenPairProto::InternalGenerateParseTable_(ContentIdEmbeddingTokenPairProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void ContentIdEmbeddingTokenPairProto::Clear() {
// @@protoc_insertion_point(message_clear_start:paint_preview.ContentIdEmbeddingTokenPairProto)
  ::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)) {
    ::memset(&_impl_.embedding_token_low_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.content_id_) -
        reinterpret_cast<char*>(&_impl_.embedding_token_low_)) + sizeof(_impl_.content_id_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional uint32 content_id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        1, this_._internal_content_id(), target);
  }

  // optional uint64 embedding_token_low = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_embedding_token_low(), target);
  }

  // optional uint64 embedding_token_high = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        3, this_._internal_embedding_token_high(), 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:paint_preview.ContentIdEmbeddingTokenPairProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ContentIdEmbeddingTokenPairProto::ByteSizeLong(const MessageLite& base) {
  const ContentIdEmbeddingTokenPairProto& this_ = static_cast<const ContentIdEmbeddingTokenPairProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ContentIdEmbeddingTokenPairProto::ByteSizeLong() const {
  const ContentIdEmbeddingTokenPairProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:paint_preview.ContentIdEmbeddingTokenPairProto)
  ::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)) {
    // optional uint64 embedding_token_low = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_embedding_token_low());
    }
    // optional uint64 embedding_token_high = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_embedding_token_high());
    }
    // optional uint32 content_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_content_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 ContentIdEmbeddingTokenPairProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ContentIdEmbeddingTokenPairProto*>(&to_msg);
  auto& from = static_cast<const ContentIdEmbeddingTokenPairProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:paint_preview.ContentIdEmbeddingTokenPairProto)
  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->_impl_.embedding_token_low_ = from._impl_.embedding_token_low_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.embedding_token_high_ = from._impl_.embedding_token_high_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.content_id_ = from._impl_.content_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:paint_preview.PaintPreviewFrameProto)
}
PROTOBUF_NDEBUG_INLINE PaintPreviewFrameProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        links_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::paint_preview::PaintPreviewFrameProto,
            PROTOBUF_FIELD_OFFSET(::paint_preview::PaintPreviewFrameProto, _impl_.links_)>()
         }
        ,
        content_id_to_embedding_tokens_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::paint_preview::PaintPreviewFrameProto,
            PROTOBUF_FIELD_OFFSET(::paint_preview::PaintPreviewFrameProto, _impl_.content_id_to_embedding_tokens_)>()
         }
        ,
        file_path_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PaintPreviewFrameProto_class_data_ =
    PaintPreviewFrameProto::InternalGenerateClassData_(PaintPreviewFrameProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PaintPreviewFrameProto::GetClassData() const {
  return PaintPreviewFrameProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PaintPreviewFrameProto::GetClassData() const {
  return PaintPreviewFrameProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PaintPreviewFrameProto::ParseTableT_
    PaintPreviewFrameProto::_table_ =
        PaintPreviewFrameProto::InternalGenerateParseTable_(PaintPreviewFrameProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PaintPreviewFrameProto::Clear() {
// @@protoc_insertion_point(message_clear_start:paint_preview.PaintPreviewFrameProto)
  ::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_.links_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.content_id_to_embedding_tokens_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.file_path_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
    ::memset(&_impl_.embedding_token_low_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.scroll_offset_y_) -
        reinterpret_cast<char*>(&_impl_.embedding_token_low_)) + sizeof(_impl_.scroll_offset_y_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
    ::memset(&_impl_.frame_offset_x_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.frame_offset_y_) -
        reinterpret_cast<char*>(&_impl_.frame_offset_x_)) + sizeof(_impl_.frame_offset_y_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional uint64 embedding_token_low = 1;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        1, this_._internal_embedding_token_low(), target);
  }

  // optional uint64 embedding_token_high = 2;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_embedding_token_high(), target);
  }

  // optional bool is_main_frame = 3;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_is_main_frame(), target);
  }

  // optional string file_path = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_file_path();
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  // repeated .paint_preview.LinkDataProto links = 5;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_links_size());
         i < n; i++) {
      const auto& repfield = this_._internal_links().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              5, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .paint_preview.ContentIdEmbeddingTokenPairProto content_id_to_embedding_tokens = 6;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_content_id_to_embedding_tokens_size());
         i < n; i++) {
      const auto& repfield = this_._internal_content_id_to_embedding_tokens().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              6, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional uint32 scroll_offset_x = 7;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        7, this_._internal_scroll_offset_x(), target);
  }

  // optional uint32 scroll_offset_y = 8;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        8, this_._internal_scroll_offset_y(), target);
  }

  // optional uint32 frame_offset_x = 9;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        9, this_._internal_frame_offset_x(), target);
  }

  // optional uint32 frame_offset_y = 10;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        10, this_._internal_frame_offset_y(), 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:paint_preview.PaintPreviewFrameProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PaintPreviewFrameProto::ByteSizeLong(const MessageLite& base) {
  const PaintPreviewFrameProto& this_ = static_cast<const PaintPreviewFrameProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PaintPreviewFrameProto::ByteSizeLong() const {
  const PaintPreviewFrameProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:paint_preview.PaintPreviewFrameProto)
  ::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];
  total_size += static_cast<bool>(0x00000020U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000dfU)) {
    // repeated .paint_preview.LinkDataProto links = 5;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_links_size();
      for (const auto& msg : this_._internal_links()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .paint_preview.ContentIdEmbeddingTokenPairProto content_id_to_embedding_tokens = 6;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_content_id_to_embedding_tokens_size();
      for (const auto& msg : this_._internal_content_id_to_embedding_tokens()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string file_path = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_file_path());
    }
    // optional uint64 embedding_token_low = 1;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_embedding_token_low());
    }
    // optional uint64 embedding_token_high = 2;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_embedding_token_high());
    }
    // optional uint32 scroll_offset_x = 7;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_scroll_offset_x());
    }
    // optional uint32 scroll_offset_y = 8;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_scroll_offset_y());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
    // optional uint32 frame_offset_x = 9;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_frame_offset_x());
    }
    // optional uint32 frame_offset_y = 10;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_frame_offset_y());
    }
  }
  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 PaintPreviewFrameProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PaintPreviewFrameProto*>(&to_msg);
  auto& from = static_cast<const PaintPreviewFrameProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:paint_preview.PaintPreviewFrameProto)
  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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_links()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_links());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_content_id_to_embedding_tokens()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_content_id_to_embedding_tokens());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_file_path(from._internal_file_path());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.embedding_token_low_ = from._impl_.embedding_token_low_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.embedding_token_high_ = from._impl_.embedding_token_high_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.is_main_frame_ = from._impl_.is_main_frame_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.scroll_offset_x_ = from._impl_.scroll_offset_x_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.scroll_offset_y_ = from._impl_.scroll_offset_y_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.frame_offset_x_ = from._impl_.frame_offset_x_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.frame_offset_y_ = from._impl_.frame_offset_y_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PaintPreviewFrameProto::InternalSwap(PaintPreviewFrameProto* 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_.links_.InternalSwap(&other->_impl_.links_);
  _impl_.content_id_to_embedding_tokens_.InternalSwap(&other->_impl_.content_id_to_embedding_tokens_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_path_, &other->_impl_.file_path_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.frame_offset_y_)
      + sizeof(PaintPreviewFrameProto::_impl_.frame_offset_y_)
      - PROTOBUF_FIELD_OFFSET(PaintPreviewFrameProto, _impl_.embedding_token_low_)>(
          reinterpret_cast<char*>(&_impl_.embedding_token_low_),
          reinterpret_cast<char*>(&other->_impl_.embedding_token_low_));
}

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

ChromeVersionProto::ChromeVersionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ChromeVersionProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:paint_preview.ChromeVersionProto)
}
ChromeVersionProto::ChromeVersionProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChromeVersionProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ChromeVersionProto_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE ChromeVersionProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void ChromeVersionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, major_),
           0,
           offsetof(Impl_, patch_) -
               offsetof(Impl_, major_) +
               sizeof(Impl_::patch_));
}
ChromeVersionProto::~ChromeVersionProto() {
  // @@protoc_insertion_point(destructor:paint_preview.ChromeVersionProto)
  SharedDtor(*this);
}
inline void ChromeVersionProto::SharedDtor(MessageLite& self) {
  ChromeVersionProto& this_ = static_cast<ChromeVersionProto&>(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 ChromeVersionProto_class_data_ =
    ChromeVersionProto::InternalGenerateClassData_(ChromeVersionProto_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    ::memset(&_impl_.major_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.patch_) -
        reinterpret_cast<char*>(&_impl_.major_)) + sizeof(_impl_.patch_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional uint64 major = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        1, this_._internal_major(), target);
  }

  // optional uint64 minor = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_minor(), target);
  }

  // optional uint64 build = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        3, this_._internal_build(), target);
  }

  // optional uint64 patch = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        4, this_._internal_patch(), 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:paint_preview.ChromeVersionProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ChromeVersionProto::ByteSizeLong(const MessageLite& base) {
  const ChromeVersionProto& this_ = static_cast<const ChromeVersionProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ChromeVersionProto::ByteSizeLong() const {
  const ChromeVersionProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:paint_preview.ChromeVersionProto)
  ::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)) {
    // optional uint64 major = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_major());
    }
    // optional uint64 minor = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_minor());
    }
    // optional uint64 build = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_build());
    }
    // optional uint64 patch = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_patch());
    }
  }
  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 ChromeVersionProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ChromeVersionProto*>(&to_msg);
  auto& from = static_cast<const ChromeVersionProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:paint_preview.ChromeVersionProto)
  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->_impl_.major_ = from._impl_.major_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.minor_ = from._impl_.minor_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.build_ = from._impl_.build_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.patch_ = from._impl_.patch_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite MetadataProto_class_data_ =
    MetadataProto::InternalGenerateClassData_(MetadataProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
MetadataProto::GetClassData() const {
  return MetadataProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
MetadataProto::GetClassData() const {
  return MetadataProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const MetadataProto::ParseTableT_
    MetadataProto::_table_ =
        MetadataProto::InternalGenerateParseTable_(MetadataProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void MetadataProto::Clear() {
// @@protoc_insertion_point(message_clear_start:paint_preview.MetadataProto)
  ::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_.url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.chrome_version_ != nullptr);
      _impl_.chrome_version_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
    ::memset(&_impl_.version_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.page_scale_factor_) -
        reinterpret_cast<char*>(&_impl_.version_)) + sizeof(_impl_.page_scale_factor_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string url = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_url();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional uint64 version = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_version(), target);
  }

  // optional .paint_preview.ChromeVersionProto chrome_version = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.chrome_version_, this_._impl_.chrome_version_->GetCachedSize(), target,
        stream);
  }

  // optional float page_scale_factor = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        4, this_._internal_page_scale_factor(), 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:paint_preview.MetadataProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t MetadataProto::ByteSizeLong(const MessageLite& base) {
  const MetadataProto& this_ = static_cast<const MetadataProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t MetadataProto::ByteSizeLong() const {
  const MetadataProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:paint_preview.MetadataProto)
  ::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];
  total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 5;
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // optional string url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional .paint_preview.ChromeVersionProto chrome_version = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chrome_version_);
    }
    // optional uint64 version = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_version());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void MetadataProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<MetadataProto*>(&to_msg);
  auto& from = static_cast<const MetadataProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:paint_preview.MetadataProto)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PaintPreviewProto_class_data_ =
    PaintPreviewProto::InternalGenerateClassData_(PaintPreviewProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PaintPreviewProto::GetClassData() const {
  return PaintPreviewProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PaintPreviewProto::GetClassData() const {
  return PaintPreviewProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PaintPreviewProto::ParseTableT_
    PaintPreviewProto::_table_ =
        PaintPreviewProto::InternalGenerateParseTable_(PaintPreviewProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PaintPreviewProto::Clear() {
// @@protoc_insertion_point(message_clear_start:paint_preview.PaintPreviewProto)
  ::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_.subframes_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.root_frame_ != nullptr);
      _impl_.root_frame_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.metadata_ != nullptr);
      _impl_.metadata_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .paint_preview.PaintPreviewFrameProto root_frame = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.root_frame_, this_._impl_.root_frame_->GetCachedSize(), target,
        stream);
  }

  // repeated .paint_preview.PaintPreviewFrameProto subframes = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_subframes_size());
         i < n; i++) {
      const auto& repfield = this_._internal_subframes().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional .paint_preview.MetadataProto metadata = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.metadata_, this_._impl_.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:paint_preview.PaintPreviewProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PaintPreviewProto::ByteSizeLong(const MessageLite& base) {
  const PaintPreviewProto& this_ = static_cast<const PaintPreviewProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PaintPreviewProto::ByteSizeLong() const {
  const PaintPreviewProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:paint_preview.PaintPreviewProto)
  ::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 .paint_preview.PaintPreviewFrameProto subframes = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_subframes_size();
      for (const auto& msg : this_._internal_subframes()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional .paint_preview.PaintPreviewFrameProto root_frame = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.root_frame_);
    }
    // optional .paint_preview.MetadataProto metadata = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_);
    }
  }
  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 PaintPreviewProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PaintPreviewProto*>(&to_msg);
  auto& from = static_cast<const PaintPreviewProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:paint_preview.PaintPreviewProto)
  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_subframes()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_subframes());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.root_frame_ != nullptr);
      if (_this->_impl_.root_frame_ == nullptr) {
        _this->_impl_.root_frame_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.root_frame_);
      } else {
        _this->_impl_.root_frame_->MergeFrom(*from._impl_.root_frame_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.metadata_ != nullptr);
      if (_this->_impl_.metadata_ == nullptr) {
        _this->_impl_.metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.metadata_);
      } else {
        _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PaintPreviewProto::InternalSwap(PaintPreviewProto* 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_.subframes_.InternalSwap(&other->_impl_.subframes_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.metadata_)
      + sizeof(PaintPreviewProto::_impl_.metadata_)
      - PROTOBUF_FIELD_OFFSET(PaintPreviewProto, _impl_.root_frame_)>(
          reinterpret_cast<char*>(&_impl_.root_frame_),
          reinterpret_cast<char*>(&other->_impl_.root_frame_));
}

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