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

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

constexpr LayerMemberReference::ParseTableT_ LayerMemberReference::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::variations::LayerMemberReference>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // uint32 layer_id = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_id_)}},
      // uint32 layer_member_id = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_member_id_)}},
      // repeated uint32 layer_member_ids = 3;
      {::_pbi::TcParser::FastV32P1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_member_ids_)}},
    }}, {{
      65535, 65535
    }}, {{
      // uint32 layer_id = 1;
      {PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // uint32 layer_member_id = 2;
      {PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_member_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // repeated uint32 layer_member_ids = 3;
      {PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_member_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr LayerMemberReference::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        layer_member_ids_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::variations::LayerMemberReference,
            PROTOBUF_FIELD_OFFSET(::variations::LayerMemberReference, _impl_.layer_member_ids_)>()
         }
        ,
        _layer_member_ids_cached_byte_size_{0},
        layer_id_{0u},
        layer_member_id_{0u} {}

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

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

constexpr Layer_LayerMember_SlotRange::ParseTableT_ Layer_LayerMember_SlotRange::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Layer_LayerMember_SlotRange, _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<::variations::Layer_LayerMember_SlotRange>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // uint32 end = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(Layer_LayerMember_SlotRange, _impl_.end_)}},
      // uint32 start = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(Layer_LayerMember_SlotRange, _impl_.start_)}},
    }}, {{
      65535, 65535
    }}, {{
      // uint32 start = 1;
      {PROTOBUF_FIELD_OFFSET(Layer_LayerMember_SlotRange, _impl_.start_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // uint32 end = 2;
      {PROTOBUF_FIELD_OFFSET(Layer_LayerMember_SlotRange, _impl_.end_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Layer_LayerMember_SlotRange::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        start_{0u},
        end_{0u} {}

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

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

constexpr Layer_LayerMember::ParseTableT_ Layer_LayerMember::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Layer_LayerMember, _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<::variations::Layer_LayerMember>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .variations.Layer.LayerMember.SlotRange slots = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(Layer_LayerMember, _impl_.slots_)}},
      // uint32 id = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(Layer_LayerMember, _impl_.id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // uint32 id = 1;
      {PROTOBUF_FIELD_OFFSET(Layer_LayerMember, _impl_.id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // repeated .variations.Layer.LayerMember.SlotRange slots = 2;
      {PROTOBUF_FIELD_OFFSET(Layer_LayerMember, _impl_.slots_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::variations::Layer_LayerMember_SlotRange>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::variations::Layer_LayerMember_SlotRange_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr Layer_LayerMember::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        slots_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::variations::Layer_LayerMember,
            PROTOBUF_FIELD_OFFSET(::variations::Layer_LayerMember, _impl_.slots_)>()
         }
        ,
        id_{0u} {}

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

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

constexpr Layer::ParseTableT_ Layer::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Layer, _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
      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<::variations::Layer>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // uint32 id = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(Layer, _impl_.id_)}},
      // uint32 num_slots = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(Layer, _impl_.num_slots_)}},
      // repeated .variations.Layer.LayerMember members = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(Layer, _impl_.members_)}},
      // uint32 salt = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(Layer, _impl_.salt_)}},
      // .variations.Layer.EntropyMode entropy_mode = 5;
      {::_pbi::TcParser::FastEr0S1,
       {40, 4, 2,
        PROTOBUF_FIELD_OFFSET(Layer, _impl_.entropy_mode_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // uint32 id = 1;
      {PROTOBUF_FIELD_OFFSET(Layer, _impl_.id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // uint32 num_slots = 2;
      {PROTOBUF_FIELD_OFFSET(Layer, _impl_.num_slots_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // repeated .variations.Layer.LayerMember members = 3;
      {PROTOBUF_FIELD_OFFSET(Layer, _impl_.members_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // uint32 salt = 4;
      {PROTOBUF_FIELD_OFFSET(Layer, _impl_.salt_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // .variations.Layer.EntropyMode entropy_mode = 5;
      {PROTOBUF_FIELD_OFFSET(Layer, _impl_.entropy_mode_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::variations::Layer_LayerMember>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::variations::Layer_LayerMember_globals_},
        #endif
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr Layer::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        members_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::variations::Layer,
            PROTOBUF_FIELD_OFFSET(::variations::Layer, _impl_.members_)>()
         }
        ,
        id_{0u},
        num_slots_{0u},
        salt_{0u},
        entropy_mode_{static_cast< ::variations::Layer_EntropyMode >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST LayerGlobalsTypeInternal Layer_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Layer_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Layer_globals_.GetClassData();
#else
  return Layer_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace variations
namespace variations {
PROTOBUF_CONSTINIT const uint32_t Layer_EntropyMode_internal_data_[] = {
    196608u, 0u, };
static const char Layer_EntropyMode_names[] = {
    "DEFAULT"
    "LIMITED"
    "LOW"
};

static const ::google::protobuf::internal::EnumEntry Layer_EntropyMode_entries[] = {
    {{&Layer_EntropyMode_names[0], 7}, 0},
    {{&Layer_EntropyMode_names[7], 7}, 2},
    {{&Layer_EntropyMode_names[14], 3}, 1},
};

static const int Layer_EntropyMode_entries_by_number[] = {
    0,  // 0 -> DEFAULT
    2,  // 1 -> LOW
    1,  // 2 -> LIMITED
};

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

const ::std::string& Layer_EntropyMode_Name(Layer_EntropyMode value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Layer_EntropyMode_entries, Layer_EntropyMode_entries_by_number, 3,
      Layer_EntropyMode_strings);
  (void)kDummy;

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

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

inline void Layer_LayerMember_SlotRange::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, start_),
           0,
           offsetof(Impl_, end_) -
               offsetof(Impl_, start_) +
               sizeof(Impl_::end_));
}
Layer_LayerMember_SlotRange::~Layer_LayerMember_SlotRange() {
  // @@protoc_insertion_point(destructor:variations.Layer.LayerMember.SlotRange)
  SharedDtor(*this);
}
inline void Layer_LayerMember_SlotRange::SharedDtor(MessageLite& self) {
  Layer_LayerMember_SlotRange& this_ = static_cast<Layer_LayerMember_SlotRange&>(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 Layer_LayerMember_SlotRange_class_data_ =
    Layer_LayerMember_SlotRange::InternalGenerateClassData_(Layer_LayerMember_SlotRange_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Layer_LayerMember_SlotRange::GetClassData() const {
  return Layer_LayerMember_SlotRange_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Layer_LayerMember_SlotRange::GetClassData() const {
  return Layer_LayerMember_SlotRange_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Layer_LayerMember_SlotRange::ParseTableT_
    Layer_LayerMember_SlotRange::_table_ =
        Layer_LayerMember_SlotRange::InternalGenerateParseTable_(Layer_LayerMember_SlotRange_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Layer_LayerMember_SlotRange::Clear() {
// @@protoc_insertion_point(message_clear_start:variations.Layer.LayerMember.SlotRange)
  ::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_.start_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.end_) -
        reinterpret_cast<char*>(&_impl_.start_)) + sizeof(_impl_.end_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // uint32 end = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        2, this_._internal_end(), 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:variations.Layer.LayerMember.SlotRange)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Layer_LayerMember_SlotRange::ByteSizeLong(const MessageLite& base) {
  const Layer_LayerMember_SlotRange& this_ = static_cast<const Layer_LayerMember_SlotRange&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Layer_LayerMember_SlotRange::ByteSizeLong() const {
  const Layer_LayerMember_SlotRange& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:variations.Layer.LayerMember.SlotRange)
  ::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)) {
    // uint32 start = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_start());
    }
    // uint32 end = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_end());
    }
  }
  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 Layer_LayerMember_SlotRange::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Layer_LayerMember_SlotRange*>(&to_msg);
  auto& from = static_cast<const Layer_LayerMember_SlotRange&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:variations.Layer.LayerMember.SlotRange)
  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_.start_ = from._impl_.start_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.end_ = from._impl_.end_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Layer_LayerMember_SlotRange::CopyFrom(const Layer_LayerMember_SlotRange& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:variations.Layer.LayerMember.SlotRange)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

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

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

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

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

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Layer_LayerMember::GetClassData() const {
  return Layer_LayerMember_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Layer_LayerMember::GetClassData() const {
  return Layer_LayerMember_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Layer_LayerMember::ParseTableT_
    Layer_LayerMember::_table_ =
        Layer_LayerMember::InternalGenerateParseTable_(Layer_LayerMember_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Layer_LayerMember::Clear() {
// @@protoc_insertion_point(message_clear_start:variations.Layer.LayerMember)
  ::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_.slots_.Clear();
  }
  _impl_.id_ = 0u;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // repeated .variations.Layer.LayerMember.SlotRange slots = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_slots_size());
         i < n; i++) {
      const auto& repfield = this_._internal_slots().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Layer_LayerMember::ByteSizeLong(const MessageLite& base) {
  const Layer_LayerMember& this_ = static_cast<const Layer_LayerMember&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Layer_LayerMember::ByteSizeLong() const {
  const Layer_LayerMember& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:variations.Layer.LayerMember)
  ::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 .variations.Layer.LayerMember.SlotRange slots = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_slots_size();
      for (const auto& msg : this_._internal_slots()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // uint32 id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          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 Layer_LayerMember::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Layer_LayerMember*>(&to_msg);
  auto& from = static_cast<const Layer_LayerMember&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:variations.Layer.LayerMember)
  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_slots()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_slots());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.id_ = from._impl_.id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Layer_LayerMember::CopyFrom(const Layer_LayerMember& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:variations.Layer.LayerMember)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Layer_LayerMember::InternalSwap(Layer_LayerMember* 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_.slots_.InternalSwap(&other->_impl_.slots_);
  swap(_impl_.id_, other->_impl_.id_);
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Layer* 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_, id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, id_),
           offsetof(Impl_, entropy_mode_) -
               offsetof(Impl_, id_) +
               sizeof(Impl_::entropy_mode_));

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

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

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

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

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

  // uint32 num_slots = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        2, this_._internal_num_slots(), target);
  }

  // repeated .variations.Layer.LayerMember members = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_members_size());
         i < n; i++) {
      const auto& repfield = this_._internal_members().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // uint32 salt = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        4, this_._internal_salt(), target);
  }

  // .variations.Layer.EntropyMode entropy_mode = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this_._internal_entropy_mode(), 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:variations.Layer)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Layer::ByteSizeLong(const MessageLite& base) {
  const Layer& this_ = static_cast<const Layer&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Layer::ByteSizeLong() const {
  const Layer& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:variations.Layer)
  ::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 .variations.Layer.LayerMember members = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_members_size();
      for (const auto& msg : this_._internal_members()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // uint32 id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_id());
    }
    // uint32 num_slots = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_num_slots());
    }
    // uint32 salt = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_salt());
    }
    // .variations.Layer.EntropyMode entropy_mode = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_entropy_mode());
    }
  }
  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 Layer::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Layer*>(&to_msg);
  auto& from = static_cast<const Layer&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:variations.Layer)
  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_members()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_members());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.id_ = from._impl_.id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.num_slots_ = from._impl_.num_slots_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.salt_ = from._impl_.salt_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.entropy_mode_ = from._impl_.entropy_mode_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void Layer::InternalSwap(Layer* 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_.members_.InternalSwap(&other->_impl_.members_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Layer, _impl_.entropy_mode_)
      + sizeof(Layer::_impl_.entropy_mode_)
      - PROTOBUF_FIELD_OFFSET(Layer, _impl_.id_)>(
          reinterpret_cast<char*>(&_impl_.id_),
          reinterpret_cast<char*>(&other->_impl_.id_));
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  LayerMemberReference* 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_, layer_id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, layer_id_),
           offsetof(Impl_, layer_member_id_) -
               offsetof(Impl_, layer_id_) +
               sizeof(Impl_::layer_member_id_));

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

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

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

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

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

  // uint32 layer_member_id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        2, this_._internal_layer_member_id(), target);
  }

  // repeated uint32 layer_member_ids = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    {
      int byte_size = this_._impl_._layer_member_ids_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteUInt32Packed(
            3, this_._internal_layer_member_ids(), byte_size, 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:variations.LayerMemberReference)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t LayerMemberReference::ByteSizeLong(const MessageLite& base) {
  const LayerMemberReference& this_ = static_cast<const LayerMemberReference&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t LayerMemberReference::ByteSizeLong() const {
  const LayerMemberReference& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:variations.LayerMemberReference)
  ::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 uint32 layer_member_ids = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          ::_pbi::WireFormatLite::UInt32SizeWithPackedTagSize(
              this_._internal_layer_member_ids(), 1,
              this_._impl_._layer_member_ids_cached_byte_size_);
    }
    // uint32 layer_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_layer_id());
    }
    // uint32 layer_member_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_layer_member_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 LayerMemberReference::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<LayerMemberReference*>(&to_msg);
  auto& from = static_cast<const LayerMemberReference&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:variations.LayerMemberReference)
  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_layer_member_ids()->MergeFrom(from._internal_layer_member_ids());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.layer_id_ = from._impl_.layer_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.layer_member_id_ = from._impl_.layer_member_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void LayerMemberReference::InternalSwap(LayerMemberReference* 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_.layer_member_ids_.InternalSwap(&other->_impl_.layer_member_ids_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_member_id_)
      + sizeof(LayerMemberReference::_impl_.layer_member_id_)
      - PROTOBUF_FIELD_OFFSET(LayerMemberReference, _impl_.layer_id_)>(
          reinterpret_cast<char*>(&_impl_.layer_id_),
          reinterpret_cast<char*>(&other->_impl_.layer_id_));
}

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