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

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

constexpr TextLayout_Word_FormulaMetadata::ParseTableT_ TextLayout_Word_FormulaMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextLayout_Word_FormulaMetadata, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::lens::TextLayout_Word_FormulaMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string latex = 1;
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Word_FormulaMetadata, _impl_.latex_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string latex = 1;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Word_FormulaMetadata, _impl_.latex_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\44\5\0\0\0\0\0\0"
      "lens.TextLayout.Word.FormulaMetadata"
      "latex"
    }},
  };
}


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

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

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

constexpr TextEntityIdentifier::ParseTableT_ TextEntityIdentifier::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextEntityIdentifier, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::lens::TextEntityIdentifier>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // int64 id = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(TextEntityIdentifier, _impl_.id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int64 id = 1;
      {PROTOBUF_FIELD_OFFSET(TextEntityIdentifier, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr TextEntityIdentifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        id_{::int64_t{0}} {}

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

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

constexpr TextLayout_Word::ParseTableT_ TextLayout_Word::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967232,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // 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<::lens::TextLayout_Word>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .lens.TextEntityIdentifier id = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 2, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.id_)}},
      // string plain_text = 2;
      {::_pbi::TcParser::FastUS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.plain_text_)}},
      // string text_separator = 3 [features = {
      {::_pbi::TcParser::FastUS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.text_separator_)}},
      // .lens.Geometry geometry = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 3, 1,
        PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.geometry_)}},
      // .lens.TextLayout.Word.Type type = 5;
      {::_pbi::TcParser::FastV32S1,
       {40, 5, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.type_)}},
      // .lens.TextLayout.Word.FormulaMetadata formula_metadata = 6;
      {::_pbi::TcParser::FastMtS1,
       {50, 4, 2,
        PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.formula_metadata_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .lens.TextEntityIdentifier id = 1;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // string plain_text = 2;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.plain_text_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string text_separator = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.text_separator_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .lens.Geometry geometry = 4;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.geometry_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .lens.TextLayout.Word.Type type = 5;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.type_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // .lens.TextLayout.Word.FormulaMetadata formula_metadata = 6;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.formula_metadata_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::TextEntityIdentifier>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::TextEntityIdentifier_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::Geometry>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::Geometry_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::TextLayout_Word_FormulaMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::TextLayout_Word_FormulaMetadata_globals_},
        #endif
    }},
    {{
      "\24\0\12\16\0\0\0\0"
      "lens.TextLayout.Word"
      "plain_text"
      "text_separator"
    }},
  };
}


inline constexpr TextLayout_Word::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        plain_text_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        text_separator_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        id_{nullptr},
        geometry_{nullptr},
        formula_metadata_{nullptr},
        type_{static_cast< ::lens::TextLayout_Word_Type >(0)} {}

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

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

constexpr TextLayout_Line::ParseTableT_ TextLayout_Line::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextLayout_Line, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::lens::TextLayout_Line>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .lens.Geometry geometry = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(TextLayout_Line, _impl_.geometry_)}},
      // repeated .lens.TextLayout.Word words = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Line, _impl_.words_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .lens.TextLayout.Word words = 1;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Line, _impl_.words_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .lens.Geometry geometry = 2;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Line, _impl_.geometry_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::TextLayout_Word>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::TextLayout_Word_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::Geometry>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::Geometry_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr TextLayout_Line::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        words_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::lens::TextLayout_Line,
            PROTOBUF_FIELD_OFFSET(::lens::TextLayout_Line, _impl_.words_)>()
         }
        ,
        geometry_{nullptr} {}

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

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

constexpr TextLayout_Paragraph::ParseTableT_ TextLayout_Paragraph::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      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<::lens::TextLayout_Paragraph>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .lens.TextEntityIdentifier id = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 2, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.id_)}},
      // repeated .lens.TextLayout.Line lines = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 1,
        PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.lines_)}},
      // .lens.Geometry geometry = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 3, 2,
        PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.geometry_)}},
      // .lens.WritingDirection writing_direction = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 4, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.writing_direction_)}},
      // string content_language = 5;
      {::_pbi::TcParser::FastUS1,
       {42, 1, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.content_language_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .lens.TextEntityIdentifier id = 1;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .lens.TextLayout.Line lines = 2;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.lines_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .lens.Geometry geometry = 3;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.geometry_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .lens.WritingDirection writing_direction = 4;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.writing_direction_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // string content_language = 5;
      {PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.content_language_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::TextEntityIdentifier>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::TextEntityIdentifier_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::TextLayout_Line>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::TextLayout_Line_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::Geometry>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::Geometry_globals_},
        #endif
    }},
    {{
      "\31\0\0\0\0\20\0\0"
      "lens.TextLayout.Paragraph"
      "content_language"
    }},
  };
}


inline constexpr TextLayout_Paragraph::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        lines_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::lens::TextLayout_Paragraph,
            PROTOBUF_FIELD_OFFSET(::lens::TextLayout_Paragraph, _impl_.lines_)>()
         }
        ,
        content_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        id_{nullptr},
        geometry_{nullptr},
        writing_direction_{static_cast< ::lens::WritingDirection >(0)} {}

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

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

constexpr TextLayout::ParseTableT_ TextLayout::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TextLayout, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      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<::lens::TextLayout>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .lens.TextLayout.Paragraph paragraphs = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(TextLayout, _impl_.paragraphs_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .lens.TextLayout.Paragraph paragraphs = 1;
      {PROTOBUF_FIELD_OFFSET(TextLayout, _impl_.paragraphs_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::TextLayout_Paragraph>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::TextLayout_Paragraph_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr TextLayout::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        paragraphs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::lens::TextLayout,
            PROTOBUF_FIELD_OFFSET(::lens::TextLayout, _impl_.paragraphs_)>()
         }
     {}

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

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

constexpr Text::ParseTableT_ Text::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Text, _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<::lens::Text>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string content_language = 2;
      {::_pbi::TcParser::FastUS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(Text, _impl_.content_language_)}},
      // .lens.TextLayout text_layout = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(Text, _impl_.text_layout_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .lens.TextLayout text_layout = 1;
      {PROTOBUF_FIELD_OFFSET(Text, _impl_.text_layout_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // string content_language = 2;
      {PROTOBUF_FIELD_OFFSET(Text, _impl_.content_language_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::TextLayout>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::TextLayout_globals_},
        #endif
    }},
    {{
      "\11\0\20\0\0\0\0\0"
      "lens.Text"
      "content_language"
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TextGlobalsTypeInternal Text_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Text_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Text_globals_.GetClassData();
#else
  return Text_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace lens
namespace lens {
PROTOBUF_CONSTINIT const uint32_t TextLayout_Word_Type_internal_data_[] = {
    131072u, 0u, };
static const char TextLayout_Word_Type_names[] = {
    "FORMULA"
    "TEXT"
};

static const ::google::protobuf::internal::EnumEntry TextLayout_Word_Type_entries[] = {
    {{&TextLayout_Word_Type_names[0], 7}, 1},
    {{&TextLayout_Word_Type_names[7], 4}, 0},
};

static const int TextLayout_Word_Type_entries_by_number[] = {
    1,  // 0 -> TEXT
    0,  // 1 -> FORMULA
};

bool TextLayout_Word_Type_Parse(::absl::string_view name,
                                  TextLayout_Word_Type* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      TextLayout_Word_Type_entries, 2, name, &int_value);
  if (success) {
    *value = static_cast<TextLayout_Word_Type>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    TextLayout_Word_Type_strings[2] = {};

const ::std::string& TextLayout_Word_Type_Name(TextLayout_Word_Type value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      TextLayout_Word_Type_entries, TextLayout_Word_Type_entries_by_number, 2,
      TextLayout_Word_Type_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(TextLayout_Word_Type_entries,
                                  TextLayout_Word_Type_entries_by_number,
                                  2, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : TextLayout_Word_Type_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t WritingDirection_internal_data_[] = {
    196608u, 0u, };
static const char WritingDirection_names[] = {
    "DEFAULT_WRITING_DIRECTION_LEFT_TO_RIGHT"
    "WRITING_DIRECTION_RIGHT_TO_LEFT"
    "WRITING_DIRECTION_TOP_TO_BOTTOM"
};

static const ::google::protobuf::internal::EnumEntry WritingDirection_entries[] = {
    {{&WritingDirection_names[0], 39}, 0},
    {{&WritingDirection_names[39], 31}, 1},
    {{&WritingDirection_names[70], 31}, 2},
};

static const int WritingDirection_entries_by_number[] = {
    0,  // 0 -> DEFAULT_WRITING_DIRECTION_LEFT_TO_RIGHT
    1,  // 1 -> WRITING_DIRECTION_RIGHT_TO_LEFT
    2,  // 2 -> WRITING_DIRECTION_TOP_TO_BOTTOM
};

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

const ::std::string& WritingDirection_Name(WritingDirection value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      WritingDirection_entries, WritingDirection_entries_by_number, 3,
      WritingDirection_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(WritingDirection_entries,
                                  WritingDirection_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : WritingDirection_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t Alignment_internal_data_[] = {
    196608u, 0u, };
static const char Alignment_names[] = {
    "CENTER_ALIGNED"
    "DEFAULT_LEFT_ALIGNED"
    "RIGHT_ALIGNED"
};

static const ::google::protobuf::internal::EnumEntry Alignment_entries[] = {
    {{&Alignment_names[0], 14}, 2},
    {{&Alignment_names[14], 20}, 0},
    {{&Alignment_names[34], 13}, 1},
};

static const int Alignment_entries_by_number[] = {
    1,  // 0 -> DEFAULT_LEFT_ALIGNED
    2,  // 1 -> RIGHT_ALIGNED
    0,  // 2 -> CENTER_ALIGNED
};

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

const ::std::string& Alignment_Name(Alignment value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Alignment_entries, Alignment_entries_by_number, 3,
      Alignment_strings);
  (void)kDummy;

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Text_class_data_ =
    Text::InternalGenerateClassData_(Text_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .lens.TextLayout text_layout = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.text_layout_, this_._impl_.text_layout_->GetCachedSize(), target,
        stream);
  }

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // string content_language = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_content_language().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_content_language());
      }
    }
    // .lens.TextLayout text_layout = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.text_layout_);
    }
  }
  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 Text::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Text*>(&to_msg);
  auto& from = static_cast<const Text&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.Text)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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

TextLayout_Word_FormulaMetadata::TextLayout_Word_FormulaMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TextLayout_Word_FormulaMetadata_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:lens.TextLayout.Word.FormulaMetadata)
}
PROTOBUF_NDEBUG_INLINE TextLayout_Word_FormulaMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::lens::TextLayout_Word_FormulaMetadata& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        latex_(arena, from.latex_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:lens.TextLayout.Word.FormulaMetadata)
}
PROTOBUF_NDEBUG_INLINE TextLayout_Word_FormulaMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        latex_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TextLayout_Word_FormulaMetadata_class_data_ =
    TextLayout_Word_FormulaMetadata::InternalGenerateClassData_(TextLayout_Word_FormulaMetadata_globals_._default);

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

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

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

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

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TextLayout_Word_FormulaMetadata::ByteSizeLong(const MessageLite& base) {
  const TextLayout_Word_FormulaMetadata& this_ = static_cast<const TextLayout_Word_FormulaMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TextLayout_Word_FormulaMetadata::ByteSizeLong() const {
  const TextLayout_Word_FormulaMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:lens.TextLayout.Word.FormulaMetadata)
  ::size_t total_size = 0;

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

   {
    // string latex = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_latex().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_latex());
      }
    }
  }
  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 TextLayout_Word_FormulaMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextLayout_Word_FormulaMetadata*>(&to_msg);
  auto& from = static_cast<const TextLayout_Word_FormulaMetadata&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.TextLayout.Word.FormulaMetadata)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!from._internal_latex().empty()) {
      _this->_internal_set_latex(from._internal_latex());
    } else {
      if (_this->_impl_.latex_.IsDefault()) {
        _this->_internal_set_latex("");
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void TextLayout_Word_FormulaMetadata::CopyFrom(const TextLayout_Word_FormulaMetadata& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:lens.TextLayout.Word.FormulaMetadata)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

void TextLayout_Word::clear_geometry() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.geometry_ != nullptr) _impl_.geometry_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
TextLayout_Word::TextLayout_Word(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TextLayout_Word_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:lens.TextLayout.Word)
}
PROTOBUF_NDEBUG_INLINE TextLayout_Word::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::lens::TextLayout_Word& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        plain_text_(arena, from.plain_text_),
        text_separator_(arena, from.text_separator_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  TextLayout_Word* 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_.id_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.id_)
                : nullptr;
  _impl_.geometry_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.geometry_)
                : nullptr;
  _impl_.formula_metadata_ = (CheckHasBit(cached_has_bits, 0x00000010U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.formula_metadata_)
                : nullptr;
  _impl_.type_ = from._impl_.type_;

  // @@protoc_insertion_point(copy_constructor:lens.TextLayout.Word)
}
PROTOBUF_NDEBUG_INLINE TextLayout_Word::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        plain_text_(arena),
        text_separator_(arena) {}

inline void TextLayout_Word::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, id_),
           0,
           offsetof(Impl_, type_) -
               offsetof(Impl_, id_) +
               sizeof(Impl_::type_));
}
TextLayout_Word::~TextLayout_Word() {
  // @@protoc_insertion_point(destructor:lens.TextLayout.Word)
  SharedDtor(*this);
}
inline void TextLayout_Word::SharedDtor(MessageLite& self) {
  TextLayout_Word& this_ = static_cast<TextLayout_Word&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.plain_text_.Destroy();
  this_._impl_.text_separator_.Destroy();
  delete this_._impl_.id_;
  delete this_._impl_.geometry_;
  delete this_._impl_.formula_metadata_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TextLayout_Word_class_data_ =
    TextLayout_Word::InternalGenerateClassData_(TextLayout_Word_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TextLayout_Word::GetClassData() const {
  return TextLayout_Word_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TextLayout_Word::GetClassData() const {
  return TextLayout_Word_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TextLayout_Word::ParseTableT_
    TextLayout_Word::_table_ =
        TextLayout_Word::InternalGenerateParseTable_(TextLayout_Word_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void TextLayout_Word::Clear() {
// @@protoc_insertion_point(message_clear_start:lens.TextLayout.Word)
  ::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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.plain_text_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.text_separator_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.id_ != nullptr);
      _impl_.id_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.geometry_ != nullptr);
      _impl_.geometry_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(_impl_.formula_metadata_ != nullptr);
      _impl_.formula_metadata_->Clear();
    }
  }
  _impl_.type_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .lens.TextEntityIdentifier id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.id_, this_._impl_.id_->GetCachedSize(), target,
        stream);
  }

  // string plain_text = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_plain_text().empty()) {
      const ::std::string& _s = this_._internal_plain_text();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "lens.TextLayout.Word.plain_text");
      target = stream->WriteStringMaybeAliased(2, _s, target);
    }
  }

  // string text_separator = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_text_separator();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "lens.TextLayout.Word.text_separator");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // .lens.Geometry geometry = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.geometry_, this_._impl_.geometry_->GetCachedSize(), target,
        stream);
  }

  // .lens.TextLayout.Word.Type type = 5;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    if (this_._internal_type() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          5, this_._internal_type(), target);
    }
  }

  // .lens.TextLayout.Word.FormulaMetadata formula_metadata = 6;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        6, *this_._impl_.formula_metadata_, this_._impl_.formula_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:lens.TextLayout.Word)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TextLayout_Word::ByteSizeLong(const MessageLite& base) {
  const TextLayout_Word& this_ = static_cast<const TextLayout_Word&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TextLayout_Word::ByteSizeLong() const {
  const TextLayout_Word& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:lens.TextLayout.Word)
  ::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, 0x0000003fU)) {
    // string plain_text = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_plain_text().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_plain_text());
      }
    }
    // string text_separator = 3 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_text_separator());
    }
    // .lens.TextEntityIdentifier id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.id_);
    }
    // .lens.Geometry geometry = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.geometry_);
    }
    // .lens.TextLayout.Word.FormulaMetadata formula_metadata = 6;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.formula_metadata_);
    }
    // .lens.TextLayout.Word.Type type = 5;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (this_._internal_type() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
      }
    }
  }
  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 TextLayout_Word::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextLayout_Word*>(&to_msg);
  auto& from = static_cast<const TextLayout_Word&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.TextLayout.Word)
  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, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!from._internal_plain_text().empty()) {
        _this->_internal_set_plain_text(from._internal_plain_text());
      } else {
        if (_this->_impl_.plain_text_.IsDefault()) {
          _this->_internal_set_plain_text("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_text_separator(from._internal_text_separator());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.id_ != nullptr);
      if (_this->_impl_.id_ == nullptr) {
        _this->_impl_.id_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.id_);
      } else {
        _this->_impl_.id_->MergeFrom(*from._impl_.id_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.geometry_ != nullptr);
      if (_this->_impl_.geometry_ == nullptr) {
        _this->_impl_.geometry_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.geometry_);
      } else {
        _this->_impl_.geometry_->MergeFrom(*from._impl_.geometry_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(from._impl_.formula_metadata_ != nullptr);
      if (_this->_impl_.formula_metadata_ == nullptr) {
        _this->_impl_.formula_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.formula_metadata_);
      } else {
        _this->_impl_.formula_metadata_->MergeFrom(*from._impl_.formula_metadata_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (from._internal_type() != 0) {
        _this->_impl_.type_ = from._impl_.type_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void TextLayout_Word::CopyFrom(const TextLayout_Word& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:lens.TextLayout.Word)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void TextLayout_Word::InternalSwap(TextLayout_Word* 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_.plain_text_, &other->_impl_.plain_text_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.text_separator_, &other->_impl_.text_separator_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.type_)
      + sizeof(TextLayout_Word::_impl_.type_)
      - PROTOBUF_FIELD_OFFSET(TextLayout_Word, _impl_.id_)>(
          reinterpret_cast<char*>(&_impl_.id_),
          reinterpret_cast<char*>(&other->_impl_.id_));
}

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

void TextLayout_Line::clear_geometry() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.geometry_ != nullptr) _impl_.geometry_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
TextLayout_Line::TextLayout_Line(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TextLayout_Line_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:lens.TextLayout.Line)
}
PROTOBUF_NDEBUG_INLINE TextLayout_Line::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::lens::TextLayout_Line& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        words_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::lens::TextLayout_Line,
              PROTOBUF_FIELD_OFFSET(::lens::TextLayout_Line, _impl_.words_)>()
          , from.words_
        }
     {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TextLayout_Line_class_data_ =
    TextLayout_Line::InternalGenerateClassData_(TextLayout_Line_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TextLayout_Line::GetClassData() const {
  return TextLayout_Line_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TextLayout_Line::GetClassData() const {
  return TextLayout_Line_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TextLayout_Line::ParseTableT_
    TextLayout_Line::_table_ =
        TextLayout_Line::InternalGenerateParseTable_(TextLayout_Line_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void TextLayout_Line::Clear() {
// @@protoc_insertion_point(message_clear_start:lens.TextLayout.Line)
  ::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_.words_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.geometry_ != nullptr);
      _impl_.geometry_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .lens.TextLayout.Word words = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_words_size());
         i < n; i++) {
      const auto& repfield = this_._internal_words().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // .lens.Geometry geometry = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.geometry_, this_._impl_.geometry_->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:lens.TextLayout.Line)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated .lens.TextLayout.Word words = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_words_size();
      for (const auto& msg : this_._internal_words()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .lens.Geometry geometry = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.geometry_);
    }
  }
  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 TextLayout_Line::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextLayout_Line*>(&to_msg);
  auto& from = static_cast<const TextLayout_Line&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.TextLayout.Line)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

void TextLayout_Line::CopyFrom(const TextLayout_Line& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:lens.TextLayout.Line)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void TextLayout_Line::InternalSwap(TextLayout_Line* 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_.words_.InternalSwap(&other->_impl_.words_);
  swap(_impl_.geometry_, other->_impl_.geometry_);
}

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

void TextLayout_Paragraph::clear_geometry() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.geometry_ != nullptr) _impl_.geometry_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
TextLayout_Paragraph::TextLayout_Paragraph(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TextLayout_Paragraph_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:lens.TextLayout.Paragraph)
}
PROTOBUF_NDEBUG_INLINE TextLayout_Paragraph::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::lens::TextLayout_Paragraph& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        lines_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::lens::TextLayout_Paragraph,
              PROTOBUF_FIELD_OFFSET(::lens::TextLayout_Paragraph, _impl_.lines_)>()
          , from.lines_
        }
        ,
        content_language_(arena, from.content_language_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:lens.TextLayout.Paragraph)
}
PROTOBUF_NDEBUG_INLINE TextLayout_Paragraph::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        lines_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::lens::TextLayout_Paragraph,
            PROTOBUF_FIELD_OFFSET(::lens::TextLayout_Paragraph, _impl_.lines_)>()
         }
        ,
        content_language_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TextLayout_Paragraph_class_data_ =
    TextLayout_Paragraph::InternalGenerateClassData_(TextLayout_Paragraph_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.lines_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.content_language_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.id_ != nullptr);
      _impl_.id_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.geometry_ != nullptr);
      _impl_.geometry_->Clear();
    }
  }
  _impl_.writing_direction_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .lens.TextEntityIdentifier id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.id_, this_._impl_.id_->GetCachedSize(), target,
        stream);
  }

  // repeated .lens.TextLayout.Line lines = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_lines_size());
         i < n; i++) {
      const auto& repfield = this_._internal_lines().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // .lens.Geometry geometry = 3;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.geometry_, this_._impl_.geometry_->GetCachedSize(), target,
        stream);
  }

  // .lens.WritingDirection writing_direction = 4;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (this_._internal_writing_direction() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          4, this_._internal_writing_direction(), target);
    }
  }

  // string content_language = 5;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_content_language().empty()) {
      const ::std::string& _s = this_._internal_content_language();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "lens.TextLayout.Paragraph.content_language");
      target = stream->WriteStringMaybeAliased(5, _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:lens.TextLayout.Paragraph)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    // repeated .lens.TextLayout.Line lines = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_lines_size();
      for (const auto& msg : this_._internal_lines()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string content_language = 5;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_content_language().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_content_language());
      }
    }
    // .lens.TextEntityIdentifier id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.id_);
    }
    // .lens.Geometry geometry = 3;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.geometry_);
    }
    // .lens.WritingDirection writing_direction = 4;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (this_._internal_writing_direction() != 0) {
        total_size += 1 +
                      ::_pbi::WireFormatLite::EnumSize(this_._internal_writing_direction());
      }
    }
  }
  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 TextLayout_Paragraph::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextLayout_Paragraph*>(&to_msg);
  auto& from = static_cast<const TextLayout_Paragraph&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.TextLayout.Paragraph)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_lines()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_lines());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_content_language().empty()) {
        _this->_internal_set_content_language(from._internal_content_language());
      } else {
        if (_this->_impl_.content_language_.IsDefault()) {
          _this->_internal_set_content_language("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.id_ != nullptr);
      if (_this->_impl_.id_ == nullptr) {
        _this->_impl_.id_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.id_);
      } else {
        _this->_impl_.id_->MergeFrom(*from._impl_.id_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.geometry_ != nullptr);
      if (_this->_impl_.geometry_ == nullptr) {
        _this->_impl_.geometry_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.geometry_);
      } else {
        _this->_impl_.geometry_->MergeFrom(*from._impl_.geometry_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (from._internal_writing_direction() != 0) {
        _this->_impl_.writing_direction_ = from._impl_.writing_direction_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void TextLayout_Paragraph::CopyFrom(const TextLayout_Paragraph& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:lens.TextLayout.Paragraph)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void TextLayout_Paragraph::InternalSwap(TextLayout_Paragraph* 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_.lines_.InternalSwap(&other->_impl_.lines_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_language_, &other->_impl_.content_language_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.writing_direction_)
      + sizeof(TextLayout_Paragraph::_impl_.writing_direction_)
      - PROTOBUF_FIELD_OFFSET(TextLayout_Paragraph, _impl_.id_)>(
          reinterpret_cast<char*>(&_impl_.id_),
          reinterpret_cast<char*>(&other->_impl_.id_));
}

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

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

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

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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .lens.TextLayout.Paragraph paragraphs = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_paragraphs_size());
         i < n; i++) {
      const auto& repfield = this_._internal_paragraphs().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TextLayout::ByteSizeLong(const MessageLite& base) {
  const TextLayout& this_ = static_cast<const TextLayout&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TextLayout::ByteSizeLong() const {
  const TextLayout& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:lens.TextLayout)
  ::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_);
   {
    // repeated .lens.TextLayout.Paragraph paragraphs = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_paragraphs_size();
      for (const auto& msg : this_._internal_paragraphs()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 TextLayout::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextLayout*>(&to_msg);
  auto& from = static_cast<const TextLayout&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.TextLayout)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_paragraphs()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_paragraphs());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void TextLayout::InternalSwap(TextLayout* 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_.paragraphs_.InternalSwap(&other->_impl_.paragraphs_);
}

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

TextEntityIdentifier::TextEntityIdentifier(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TextEntityIdentifier_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:lens.TextEntityIdentifier)
}
TextEntityIdentifier::TextEntityIdentifier(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TextEntityIdentifier& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TextEntityIdentifier_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 TextEntityIdentifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void TextEntityIdentifier::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.id_ = {};
}
TextEntityIdentifier::~TextEntityIdentifier() {
  // @@protoc_insertion_point(destructor:lens.TextEntityIdentifier)
  SharedDtor(*this);
}
inline void TextEntityIdentifier::SharedDtor(MessageLite& self) {
  TextEntityIdentifier& this_ = static_cast<TextEntityIdentifier&>(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 TextEntityIdentifier_class_data_ =
    TextEntityIdentifier::InternalGenerateClassData_(TextEntityIdentifier_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // int64 id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (this_._internal_id() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
              stream, this_._internal_id(), 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:lens.TextEntityIdentifier)
  return target;
}

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

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

   {
    // int64 id = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (this_._internal_id() != 0) {
        total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
            this_._internal_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 TextEntityIdentifier::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TextEntityIdentifier*>(&to_msg);
  auto& from = static_cast<const TextEntityIdentifier&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.TextEntityIdentifier)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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