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

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

constexpr Polygon_Vertex::ParseTableT_ Polygon_Vertex::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Polygon_Vertex, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::lens::Polygon_Vertex>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // float y = 2;
      {::_pbi::TcParser::FastF32S1,
       {21, 1, 0,
        PROTOBUF_FIELD_OFFSET(Polygon_Vertex, _impl_.y_)}},
      // float x = 1;
      {::_pbi::TcParser::FastF32S1,
       {13, 0, 0,
        PROTOBUF_FIELD_OFFSET(Polygon_Vertex, _impl_.x_)}},
    }}, {{
      65535, 65535
    }}, {{
      // float x = 1;
      {PROTOBUF_FIELD_OFFSET(Polygon_Vertex, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // float y = 2;
      {PROTOBUF_FIELD_OFFSET(Polygon_Vertex, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

constexpr Polygon::ParseTableT_ Polygon::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Polygon, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::lens::Polygon>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .lens.Polygon.Vertex vertex = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Polygon, _impl_.vertex_)}},
      // .lens.Polygon.VertexOrdering vertex_ordering = 2;
      {::_pbi::TcParser::FastEr0S1,
       {16, 1, 2,
        PROTOBUF_FIELD_OFFSET(Polygon, _impl_.vertex_ordering_)}},
      // .lens.CoordinateType coordinate_type = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 2, 2,
        PROTOBUF_FIELD_OFFSET(Polygon, _impl_.coordinate_type_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .lens.Polygon.Vertex vertex = 1;
      {PROTOBUF_FIELD_OFFSET(Polygon, _impl_.vertex_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .lens.Polygon.VertexOrdering vertex_ordering = 2;
      {PROTOBUF_FIELD_OFFSET(Polygon, _impl_.vertex_ordering_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .lens.CoordinateType coordinate_type = 3;
      {PROTOBUF_FIELD_OFFSET(Polygon, _impl_.coordinate_type_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::lens::Polygon_Vertex>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::lens::Polygon_Vertex_globals_},
        #endif
        {0, 2},
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr Polygon::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        vertex_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::lens::Polygon,
            PROTOBUF_FIELD_OFFSET(::lens::Polygon, _impl_.vertex_)>()
         }
        ,
        vertex_ordering_{static_cast< ::lens::Polygon_VertexOrdering >(0)},
        coordinate_type_{static_cast< ::lens::CoordinateType >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PolygonGlobalsTypeInternal Polygon_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Polygon_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Polygon_globals_.GetClassData();
#else
  return Polygon_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace lens
namespace lens {
PROTOBUF_CONSTINIT const uint32_t Polygon_VertexOrdering_internal_data_[] = {
    196608u, 0u, };
static const char Polygon_VertexOrdering_names[] = {
    "CLOCKWISE"
    "COUNTER_CLOCKWISE"
    "VERTEX_ORDERING_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry Polygon_VertexOrdering_entries[] = {
    {{&Polygon_VertexOrdering_names[0], 9}, 1},
    {{&Polygon_VertexOrdering_names[9], 17}, 2},
    {{&Polygon_VertexOrdering_names[26], 27}, 0},
};

static const int Polygon_VertexOrdering_entries_by_number[] = {
    2,  // 0 -> VERTEX_ORDERING_UNSPECIFIED
    0,  // 1 -> CLOCKWISE
    1,  // 2 -> COUNTER_CLOCKWISE
};

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

const ::std::string& Polygon_VertexOrdering_Name(Polygon_VertexOrdering value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Polygon_VertexOrdering_entries, Polygon_VertexOrdering_entries_by_number, 3,
      Polygon_VertexOrdering_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(Polygon_VertexOrdering_entries,
                                  Polygon_VertexOrdering_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Polygon_VertexOrdering_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t CoordinateType_internal_data_[] = {
    196608u, 0u, };
static const char CoordinateType_names[] = {
    "COORDINATE_TYPE_UNSPECIFIED"
    "IMAGE"
    "NORMALIZED"
};

static const ::google::protobuf::internal::EnumEntry CoordinateType_entries[] = {
    {{&CoordinateType_names[0], 27}, 0},
    {{&CoordinateType_names[27], 5}, 2},
    {{&CoordinateType_names[32], 10}, 1},
};

static const int CoordinateType_entries_by_number[] = {
    0,  // 0 -> COORDINATE_TYPE_UNSPECIFIED
    2,  // 1 -> NORMALIZED
    1,  // 2 -> IMAGE
};

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

const ::std::string& CoordinateType_Name(CoordinateType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      CoordinateType_entries, CoordinateType_entries_by_number, 3,
      CoordinateType_strings);
  (void)kDummy;

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

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

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

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

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

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

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

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Polygon_Vertex::ByteSizeLong(const MessageLite& base) {
  const Polygon_Vertex& this_ = static_cast<const Polygon_Vertex&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Polygon_Vertex::ByteSizeLong() const {
  const Polygon_Vertex& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:lens.Polygon.Vertex)
  ::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(0x00000003U & cached_has_bits) * 5;
  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 Polygon_Vertex::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Polygon_Vertex*>(&to_msg);
  auto& from = static_cast<const Polygon_Vertex&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.Polygon.Vertex)
  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->_impl_.x_ = from._impl_.x_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.y_ = from._impl_.y_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

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

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

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

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

  // .lens.Polygon.VertexOrdering vertex_ordering = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_vertex_ordering(), target);
  }

  // .lens.CoordinateType coordinate_type = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, 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.Polygon)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // repeated .lens.Polygon.Vertex vertex = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_vertex_size();
      for (const auto& msg : this_._internal_vertex()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .lens.Polygon.VertexOrdering vertex_ordering = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_vertex_ordering());
    }
    // .lens.CoordinateType coordinate_type = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      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 Polygon::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Polygon*>(&to_msg);
  auto& from = static_cast<const Polygon&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:lens.Polygon)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_vertex()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_vertex());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.vertex_ordering_ = from._impl_.vertex_ordering_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _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 Polygon::CopyFrom(const Polygon& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:lens.Polygon)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Polygon::InternalSwap(Polygon* 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_.vertex_.InternalSwap(&other->_impl_.vertex_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Polygon, _impl_.coordinate_type_)
      + sizeof(Polygon::_impl_.coordinate_type_)
      - PROTOBUF_FIELD_OFFSET(Polygon, _impl_.vertex_ordering_)>(
          reinterpret_cast<char*>(&_impl_.vertex_ordering_),
          reinterpret_cast<char*>(&other->_impl_.vertex_ordering_));
}

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