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

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

constexpr CenterRotatedBox::ParseTableT_ CenterRotatedBox::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _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
      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::CenterRotatedBox>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional float center_x = 1;
      {::_pbi::TcParser::FastF32S1,
       {13, 0, 0,
        PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.center_x_)}},
      // optional float center_y = 2;
      {::_pbi::TcParser::FastF32S1,
       {21, 1, 0,
        PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.center_y_)}},
      // optional float width = 3;
      {::_pbi::TcParser::FastF32S1,
       {29, 2, 0,
        PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.width_)}},
      // optional float height = 4;
      {::_pbi::TcParser::FastF32S1,
       {37, 3, 0,
        PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.height_)}},
      // optional float rotation_z = 5;
      {::_pbi::TcParser::FastF32S1,
       {45, 4, 0,
        PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.rotation_z_)}},
      // optional .lens.CoordinateType coordinate_type = 6;
      {::_pbi::TcParser::FastEr0S1,
       {48, 5, 2,
        PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.coordinate_type_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional float center_x = 1;
      {PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.center_x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional float center_y = 2;
      {PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.center_y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional float width = 3;
      {PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.width_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional float height = 4;
      {PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.height_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional float rotation_z = 5;
      {PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.rotation_z_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional .lens.CoordinateType coordinate_type = 6;
      {PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.coordinate_type_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr CenterRotatedBox::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        center_x_{0},
        center_y_{0},
        width_{0},
        height_{0},
        rotation_z_{0},
        coordinate_type_{static_cast< ::lens::CoordinateType >(0)} {}

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

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

constexpr ZoomedCrop::ParseTableT_ ZoomedCrop::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::lens::ZoomedCrop>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional float zoom = 4;
      {::_pbi::TcParser::FastF32S1,
       {37, 3, 0,
        PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.zoom_)}},
      // optional .lens.CenterRotatedBox crop = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.crop_)}},
      // optional int32 parent_width = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.parent_width_)}},
      // optional int32 parent_height = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.parent_height_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .lens.CenterRotatedBox crop = 1;
      {PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.crop_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int32 parent_width = 2;
      {PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.parent_width_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 parent_height = 3;
      {PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.parent_height_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional float zoom = 4;
      {PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.zoom_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::CenterRotatedBox>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::CenterRotatedBox_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr ZoomedCrop::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        crop_{nullptr},
        parent_width_{0},
        parent_height_{0},
        zoom_{0} {}

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

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

constexpr Geometry::ParseTableT_ Geometry::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Geometry, _impl_._has_bits_),
      0, // no _extensions_
      5, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967278,  // 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::Geometry>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .lens.CenterRotatedBox bounding_box = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Geometry, _impl_.bounding_box_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .lens.CenterRotatedBox bounding_box = 1;
      {PROTOBUF_FIELD_OFFSET(Geometry, _impl_.bounding_box_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .lens.Polygon segmentation_polygon = 5;
      {PROTOBUF_FIELD_OFFSET(Geometry, _impl_.segmentation_polygon_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::CenterRotatedBox>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::CenterRotatedBox_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::Polygon>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::Polygon_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GeometryGlobalsTypeInternal Geometry_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Geometry_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Geometry_globals_.GetClassData();
#else
  return Geometry_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace lens
namespace lens {
// ===================================================================

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional float center_x = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        1, this_._internal_center_x(), target);
  }

  // optional float center_y = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        2, this_._internal_center_y(), target);
  }

  // optional float width = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        3, this_._internal_width(), target);
  }

  // optional float height = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        4, this_._internal_height(), target);
  }

  // optional float rotation_z = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        5, this_._internal_rotation_z(), target);
  }

  // optional .lens.CoordinateType coordinate_type = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        6, this_._internal_coordinate_type(), 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.CenterRotatedBox)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += ::absl::popcount(0x0000001fU & cached_has_bits) * 5;
   {
    // optional .lens.CoordinateType coordinate_type = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_coordinate_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 CenterRotatedBox::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CenterRotatedBox*>(&to_msg);
  auto& from = static_cast<const CenterRotatedBox&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.CenterRotatedBox)
  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)) {
      _this->_impl_.center_x_ = from._impl_.center_x_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.center_y_ = from._impl_.center_y_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.width_ = from._impl_.width_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.height_ = from._impl_.height_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.rotation_z_ = from._impl_.rotation_z_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.coordinate_type_ = from._impl_.coordinate_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void CenterRotatedBox::InternalSwap(CenterRotatedBox* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.coordinate_type_)
      + sizeof(CenterRotatedBox::_impl_.coordinate_type_)
      - PROTOBUF_FIELD_OFFSET(CenterRotatedBox, _impl_.center_x_)>(
          reinterpret_cast<char*>(&_impl_.center_x_),
          reinterpret_cast<char*>(&other->_impl_.center_x_));
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Geometry_class_data_ =
    Geometry::InternalGenerateClassData_(Geometry_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.bounding_box_ != nullptr);
      _impl_.bounding_box_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.segmentation_polygon_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .lens.CenterRotatedBox bounding_box = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.bounding_box_, this_._impl_.bounding_box_->GetCachedSize(), target,
        stream);
  }

  // repeated .lens.Polygon segmentation_polygon = 5;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_segmentation_polygon_size());
         i < n; i++) {
      const auto& repfield = this_._internal_segmentation_polygon().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              5, 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.Geometry)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // optional .lens.CenterRotatedBox bounding_box = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.bounding_box_);
    }
    // repeated .lens.Polygon segmentation_polygon = 5;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_segmentation_polygon_size();
      for (const auto& msg : this_._internal_segmentation_polygon()) {
        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 Geometry::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Geometry*>(&to_msg);
  auto& from = static_cast<const Geometry&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.Geometry)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void Geometry::InternalSwap(Geometry* 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_.bounding_box_, other->_impl_.bounding_box_);
  _impl_.segmentation_polygon_.InternalSwap(&other->_impl_.segmentation_polygon_);
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ZoomedCrop_class_data_ =
    ZoomedCrop::InternalGenerateClassData_(ZoomedCrop_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    ABSL_DCHECK(_impl_.crop_ != nullptr);
    _impl_.crop_->Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
    ::memset(&_impl_.parent_width_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.zoom_) -
        reinterpret_cast<char*>(&_impl_.parent_width_)) + sizeof(_impl_.zoom_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .lens.CenterRotatedBox crop = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.crop_, this_._impl_.crop_->GetCachedSize(), target,
        stream);
  }

  // optional int32 parent_width = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_parent_width(), target);
  }

  // optional int32 parent_height = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_parent_height(), target);
  }

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 5;
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // optional .lens.CenterRotatedBox crop = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.crop_);
    }
    // optional int32 parent_width = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_parent_width());
    }
    // optional int32 parent_height = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_parent_height());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

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

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

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


void ZoomedCrop::InternalSwap(ZoomedCrop* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.zoom_)
      + sizeof(ZoomedCrop::_impl_.zoom_)
      - PROTOBUF_FIELD_OFFSET(ZoomedCrop, _impl_.crop_)>(
          reinterpret_cast<char*>(&_impl_.crop_),
          reinterpret_cast<char*>(&other->_impl_.crop_));
}

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