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

#include "arch/apple2/apple2.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/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.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;
#ifdef PROTOBUF_MESSAGE_GLOBALS
namespace {
PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData
    file_reflection_data[] = {
        // ::Apple2DecoderProto
        {&::_pbi::kDescriptorMethods, &::descriptor_table_arch_2fapple2_2fapple2_2eproto, /* tracker*/ nullptr,},
        // ::Apple2EncoderProto
        {&::_pbi::kDescriptorMethods, &::descriptor_table_arch_2fapple2_2fapple2_2eproto, /* tracker*/ nullptr,},
};
}  // namespace
#endif
class Apple2EncoderProto::_Internal {
 public:
  using HasBits = decltype(::std::declval<Apple2EncoderProto>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_._has_bits_);
};

constexpr Apple2EncoderProto::ParseTableT_ Apple2EncoderProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _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::MpUnknownFields,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::Apple2EncoderProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional double clock_period_us = 1 [default = 4, json_name = "clockPeriodUs", (.help) = "clock rate on the real device"];
      {::_pbi::TcParser::FastF64S1,
       {9, 1, 0,
        PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_.clock_period_us_)}},
      // optional double rotational_period_ms = 2 [default = 200, json_name = "rotationalPeriodMs", (.help) = "rotational period on the real device"];
      {::_pbi::TcParser::FastF64S1,
       {17, 2, 0,
        PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_.rotational_period_ms_)}},
      // optional uint32 side_one_track_offset = 3 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
      {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Apple2EncoderProto, _impl_.side_one_track_offset_), 0>(),
       {24, 0, 0,
        PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_.side_one_track_offset_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional double clock_period_us = 1 [default = 4, json_name = "clockPeriodUs", (.help) = "clock rate on the real device"];
      {PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_.clock_period_us_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
      // optional double rotational_period_ms = 2 [default = 200, json_name = "rotationalPeriodMs", (.help) = "rotational period on the real device"];
      {PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_.rotational_period_ms_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
      // optional uint32 side_one_track_offset = 3 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
      {PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_.side_one_track_offset_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Apple2EncoderProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : side_one_track_offset_{0u},
        clock_period_us_{4},
        rotational_period_ms_{200} {}

template <typename>
constexpr Apple2EncoderProto::Apple2EncoderProto(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : Super_(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL Apple2EncoderProto::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) Apple2EncoderProto(arena);
}
constexpr auto Apple2EncoderProto::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Apple2EncoderProto), alignof(Apple2EncoderProto));
}
constexpr auto Apple2EncoderProto::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &Apple2EncoderProto::MergeImpl,
          Super_::GetNewImpl<Apple2EncoderProto>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &Apple2EncoderProto::SharedDtor,
          Super_::GetClearImpl<Apple2EncoderProto>(), &Apple2EncoderProto::ByteSizeLong,
              &Apple2EncoderProto::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(Apple2EncoderProto, _impl_._cached_size_),
          false,
      },
#ifdef PROTOBUF_MESSAGE_GLOBALS
      &file_reflection_data[1],
#else   // !PROTOBUF_MESSAGE_GLOBALS
      &::_pbi::kDescriptorMethods,
      &descriptor_table_arch_2fapple2_2fapple2_2eproto,
      nullptr,  // tracker
#endif  // PROTOBUF_MESSAGE_GLOBALS
  };
}
struct Apple2EncoderProtoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr Apple2EncoderProtoGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 Apple2EncoderProto_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(Apple2EncoderProto::InternalGenerateClassData_(
            _default, &Apple2EncoderProto_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<Apple2EncoderProto>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~Apple2EncoderProtoGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) Apple2EncoderProto _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<Apple2EncoderProto>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(Apple2EncoderProtoGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr Apple2DecoderProto::ParseTableT_ Apple2DecoderProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Apple2DecoderProto, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::MpUnknownFields,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::Apple2DecoderProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional uint32 side_one_track_offset = 1 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
      {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Apple2DecoderProto, _impl_.side_one_track_offset_), 0>(),
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(Apple2DecoderProto, _impl_.side_one_track_offset_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional uint32 side_one_track_offset = 1 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
      {PROTOBUF_FIELD_OFFSET(Apple2DecoderProto, _impl_.side_one_track_offset_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Apple2DecoderProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : side_one_track_offset_{0u} {}

template <typename>
constexpr Apple2DecoderProto::Apple2DecoderProto(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : Super_(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL Apple2DecoderProto::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) Apple2DecoderProto(arena);
}
constexpr auto Apple2DecoderProto::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Apple2DecoderProto), alignof(Apple2DecoderProto));
}
constexpr auto Apple2DecoderProto::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &Apple2DecoderProto::MergeImpl,
          Super_::GetNewImpl<Apple2DecoderProto>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &Apple2DecoderProto::SharedDtor,
          Super_::GetClearImpl<Apple2DecoderProto>(), &Apple2DecoderProto::ByteSizeLong,
              &Apple2DecoderProto::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(Apple2DecoderProto, _impl_._cached_size_),
          false,
      },
#ifdef PROTOBUF_MESSAGE_GLOBALS
      &file_reflection_data[0],
#else   // !PROTOBUF_MESSAGE_GLOBALS
      &::_pbi::kDescriptorMethods,
      &descriptor_table_arch_2fapple2_2fapple2_2eproto,
      nullptr,  // tracker
#endif  // PROTOBUF_MESSAGE_GLOBALS
  };
}
struct Apple2DecoderProtoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr Apple2DecoderProtoGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 Apple2DecoderProto_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(Apple2DecoderProto::InternalGenerateClassData_(
            _default, &Apple2DecoderProto_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<Apple2DecoderProto>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~Apple2DecoderProtoGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) Apple2DecoderProto _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<Apple2DecoderProto>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(Apple2DecoderProtoGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Apple2DecoderProtoGlobalsTypeInternal Apple2DecoderProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Apple2DecoderProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Apple2DecoderProto_globals_.GetClassData();
#else
  return Apple2DecoderProto_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
    file_level_enum_descriptors_arch_2fapple2_2fapple2_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
    file_level_service_descriptors_arch_2fapple2_2fapple2_2eproto = nullptr;
const ::uint32_t
    TableStruct_arch_2fapple2_2fapple2_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
        protodesc_cold) = {
        0x081, // bitmap
        PROTOBUF_FIELD_OFFSET(::Apple2DecoderProto, _impl_._has_bits_),
        4, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::Apple2DecoderProto, _impl_.side_one_track_offset_),
        0,
        0x081, // bitmap
        PROTOBUF_FIELD_OFFSET(::Apple2EncoderProto, _impl_._has_bits_),
        6, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::Apple2EncoderProto, _impl_.clock_period_us_),
        PROTOBUF_FIELD_OFFSET(::Apple2EncoderProto, _impl_.rotational_period_ms_),
        PROTOBUF_FIELD_OFFSET(::Apple2EncoderProto, _impl_.side_one_track_offset_),
        1,
        2,
        0,
};

static const ::_pbi::MigrationSchema
    schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
        {0, sizeof(::Apple2DecoderProto)},
        {5, sizeof(::Apple2EncoderProto)},
};
static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const
    file_message_globals[] = {
        &::Apple2DecoderProto_globals_,
        &::Apple2EncoderProto_globals_,
};
const char descriptor_table_protodef_arch_2fapple2_2fapple2_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
    protodesc_cold) = {
    "\n\030arch/apple2/apple2.proto\032\027lib/config/c"
    "ommon.proto\"z\n\022Apple2DecoderProto\022d\n\025sid"
    "e_one_track_offset\030\001 \001(\r:\0010B.\202\265\030*offset "
    "to apply to track numbers on side 1R\022sid"
    "eOneTrackOffset\"\251\002\n\022Apple2EncoderProto\022L"
    "\n\017clock_period_us\030\001 \001(\001:\0014B!\202\265\030\035clock ra"
    "te on the real deviceR\rclockPeriodUs\022_\n\024"
    "rotational_period_ms\030\002 \001(\001:\003200B(\202\265\030$rot"
    "ational period on the real deviceR\022rotat"
    "ionalPeriodMs\022d\n\025side_one_track_offset\030\003"
    " \001(\r:\0010B.\202\265\030*offset to apply to track nu"
    "mbers on side 1R\022sideOneTrackOffset"
};
static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
    descriptor_table_arch_2fapple2_2fapple2_2eproto_deps[1] = {
        &::descriptor_table_lib_2fconfig_2fcommon_2eproto,
};
static ::absl::once_flag descriptor_table_arch_2fapple2_2fapple2_2eproto_once;
PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_arch_2fapple2_2fapple2_2eproto = {
    false,
    false,
    475,
    descriptor_table_protodef_arch_2fapple2_2fapple2_2eproto,
    "arch/apple2/apple2.proto",
    &descriptor_table_arch_2fapple2_2fapple2_2eproto_once,
    descriptor_table_arch_2fapple2_2fapple2_2eproto_deps,
    1,
    2,
    schemas,
    file_message_globals,
    TableStruct_arch_2fapple2_2fapple2_2eproto::offsets,
    file_level_enum_descriptors_arch_2fapple2_2fapple2_2eproto,
    file_level_service_descriptors_arch_2fapple2_2fapple2_2eproto,
};
// ===================================================================

Apple2DecoderProto::Apple2DecoderProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, Apple2DecoderProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : Super_(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:Apple2DecoderProto)
}
Apple2DecoderProto::Apple2DecoderProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Apple2DecoderProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, Apple2DecoderProto_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : Super_(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE Apple2DecoderProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull Apple2DecoderProto_class_data_ =
        Apple2DecoderProto::InternalGenerateClassData_(Apple2DecoderProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Apple2DecoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&Apple2DecoderProto_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(Apple2DecoderProto_class_data_.tc_table);
  return Apple2DecoderProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Apple2DecoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&Apple2DecoderProto_globals_);
  ::google::protobuf::internal::PrefetchToLocalCache(
      ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Apple2DecoderProto_globals_));
  return Apple2DecoderProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Apple2DecoderProto::ParseTableT_
    Apple2DecoderProto::_table_ =
        Apple2DecoderProto::InternalGenerateParseTable_(Apple2DecoderProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Apple2DecoderProto::Clear() {
  auto& this_ [[maybe_unused]] = *this;
  // @@protoc_insertion_point(message_clear_start:Apple2DecoderProto)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;

  this_._impl_.side_one_track_offset_ = 0u;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional uint32 side_one_track_offset = 1 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        1, this_._internal_side_one_track_offset(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target =
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Apple2DecoderProto)
  return target;
}

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

  ::uint32_t cached_has_bits [[maybe_unused]] = 0;

   {
    // optional uint32 side_one_track_offset = 1 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_side_one_track_offset());
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

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

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_impl_.side_one_track_offset_ = from._impl_.side_one_track_offset_;
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

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


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

::google::protobuf::Metadata Apple2DecoderProto::GetMetadata() const {
  return Super_::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================

Apple2EncoderProto::Apple2EncoderProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, Apple2EncoderProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : Super_(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:Apple2EncoderProto)
}
Apple2EncoderProto::Apple2EncoderProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Apple2EncoderProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, Apple2EncoderProto_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : Super_(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE Apple2EncoderProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : clock_period_us_{4},
        rotational_period_ms_{200} {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull Apple2EncoderProto_class_data_ =
        Apple2EncoderProto::InternalGenerateClassData_(Apple2EncoderProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Apple2EncoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&Apple2EncoderProto_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(Apple2EncoderProto_class_data_.tc_table);
  return Apple2EncoderProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Apple2EncoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&Apple2EncoderProto_globals_);
  ::google::protobuf::internal::PrefetchToLocalCache(
      ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Apple2EncoderProto_globals_));
  return Apple2EncoderProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Apple2EncoderProto::ParseTableT_
    Apple2EncoderProto::_table_ =
        Apple2EncoderProto::InternalGenerateParseTable_(Apple2EncoderProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Apple2EncoderProto::Clear() {
  auto& this_ [[maybe_unused]] = *this;
  // @@protoc_insertion_point(message_clear_start:Apple2EncoderProto)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;

  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    this_._impl_.side_one_track_offset_ = 0u;
    this_._impl_.clock_period_us_ = 4;
    this_._impl_.rotational_period_ms_ = 200;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional double clock_period_us = 1 [default = 4, json_name = "clockPeriodUs", (.help) = "clock rate on the real device"];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        1, this_._internal_clock_period_us(), target);
  }

  // optional double rotational_period_ms = 2 [default = 200, json_name = "rotationalPeriodMs", (.help) = "rotational period on the real device"];
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        2, this_._internal_rotational_period_ms(), target);
  }

  // optional uint32 side_one_track_offset = 3 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        3, this_._internal_side_one_track_offset(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target =
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Apple2EncoderProto)
  return target;
}

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

  ::uint32_t cached_has_bits [[maybe_unused]] = 0;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += ::absl::popcount(0x00000006U & cached_has_bits) * 9;
   {
    // optional uint32 side_one_track_offset = 3 [default = 0, json_name = "sideOneTrackOffset", (.help) = "offset to apply to track numbers on side 1"];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_side_one_track_offset());
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

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

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.side_one_track_offset_ = from._impl_.side_one_track_offset_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.clock_period_us_ = from._impl_.clock_period_us_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.rotational_period_ms_ = from._impl_.rotational_period_ms_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

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


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

::google::protobuf::Metadata Apple2EncoderProto::GetMetadata() const {
  return Super_::GetMetadataImpl(GetClassData()->full());
}
// @@protoc_insertion_point(namespace_scope)
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
    _static_init2_ [[maybe_unused]] =
        (::_pbi::AddDescriptors(&descriptor_table_arch_2fapple2_2fapple2_2eproto),
         ::std::false_type{});
#include "google/protobuf/port_undef.inc"
