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

#include "arch/tartu/tartu.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[] = {
        // ::TartuDecoderProto
        {&::_pbi::kDescriptorMethods, &::descriptor_table_arch_2ftartu_2ftartu_2eproto, /* tracker*/ nullptr,},
        // ::TartuEncoderProto
        {&::_pbi::kDescriptorMethods, &::descriptor_table_arch_2ftartu_2ftartu_2eproto, /* tracker*/ nullptr,},
};
}  // namespace
#endif
class TartuEncoderProto::_Internal {
 public:
  using HasBits = decltype(::std::declval<TartuEncoderProto>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_._has_bits_);
};

constexpr TartuEncoderProto::ParseTableT_ TartuEncoderProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // 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<::TartuEncoderProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional double clock_period_us = 1 [default = 2, json_name = "clockPeriodUs", (.help) = "clock rate on the real device (for MFM)"];
      {::_pbi::TcParser::FastF64S1,
       {9, 0, 0,
        PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.clock_period_us_)}},
      // optional double target_rotational_period_ms = 2 [default = 200, json_name = "targetRotationalPeriodMs", (.help) = "rotational period of target disk"];
      {::_pbi::TcParser::FastF64S1,
       {17, 1, 0,
        PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.target_rotational_period_ms_)}},
      // optional double gap1_us = 3 [default = 1200, json_name = "gap1Us", (.help) = "size of gap 1 (the post-index gap)"];
      {::_pbi::TcParser::FastF64S1,
       {25, 2, 0,
        PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.gap1_us_)}},
      // optional double gap3_us = 4 [default = 150, json_name = "gap3Us", (.help) = "size of gap 3 (the pre-data gap)"];
      {::_pbi::TcParser::FastF64S1,
       {33, 3, 0,
        PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.gap3_us_)}},
      // optional double gap4_us = 5 [default = 180, json_name = "gap4Us", (.help) = "size of gap 4 (the post-data or format gap)"];
      {::_pbi::TcParser::FastF64S1,
       {41, 4, 0,
        PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.gap4_us_)}},
      // optional uint64 header_marker = 6 [default = 12297829380759573844, json_name = "headerMarker", (.help) = "64-bit raw bit pattern of header record marker"];
      {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TartuEncoderProto, _impl_.header_marker_), 5>(),
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.header_marker_)}},
      // optional uint64 data_marker = 7 [default = 12297829380759573829, json_name = "dataMarker", (.help) = "64-bit raw bit pattern of data record marker"];
      {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TartuEncoderProto, _impl_.data_marker_), 6>(),
       {56, 6, 0,
        PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.data_marker_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional double clock_period_us = 1 [default = 2, json_name = "clockPeriodUs", (.help) = "clock rate on the real device (for MFM)"];
      {PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.clock_period_us_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
      // optional double target_rotational_period_ms = 2 [default = 200, json_name = "targetRotationalPeriodMs", (.help) = "rotational period of target disk"];
      {PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.target_rotational_period_ms_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
      // optional double gap1_us = 3 [default = 1200, json_name = "gap1Us", (.help) = "size of gap 1 (the post-index gap)"];
      {PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.gap1_us_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
      // optional double gap3_us = 4 [default = 150, json_name = "gap3Us", (.help) = "size of gap 3 (the pre-data gap)"];
      {PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.gap3_us_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
      // optional double gap4_us = 5 [default = 180, json_name = "gap4Us", (.help) = "size of gap 4 (the post-data or format gap)"];
      {PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.gap4_us_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
      // optional uint64 header_marker = 6 [default = 12297829380759573844, json_name = "headerMarker", (.help) = "64-bit raw bit pattern of header record marker"];
      {PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.header_marker_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional uint64 data_marker = 7 [default = 12297829380759573829, json_name = "dataMarker", (.help) = "64-bit raw bit pattern of data record marker"];
      {PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_.data_marker_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr TartuEncoderProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : clock_period_us_{2},
        target_rotational_period_ms_{200},
        gap1_us_{1200},
        gap3_us_{150},
        gap4_us_{180},
        header_marker_{::uint64_t{12297829380759573844u}},
        data_marker_{::uint64_t{12297829380759573829u}} {}

template <typename>
constexpr TartuEncoderProto::TartuEncoderProto(::_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 TartuEncoderProto::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) TartuEncoderProto(arena);
}
constexpr auto TartuEncoderProto::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TartuEncoderProto), alignof(TartuEncoderProto));
}
constexpr auto TartuEncoderProto::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
          &TartuEncoderProto::MergeImpl,
          Super_::GetNewImpl<TartuEncoderProto>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &TartuEncoderProto::SharedDtor,
          Super_::GetClearImpl<TartuEncoderProto>(), &TartuEncoderProto::ByteSizeLong,
              &TartuEncoderProto::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(TartuEncoderProto, _impl_._cached_size_),
          false,
      },
#ifdef PROTOBUF_MESSAGE_GLOBALS
      &file_reflection_data[1],
#else   // !PROTOBUF_MESSAGE_GLOBALS
      &::_pbi::kDescriptorMethods,
      &descriptor_table_arch_2ftartu_2ftartu_2eproto,
      nullptr,  // tracker
#endif  // PROTOBUF_MESSAGE_GLOBALS
  };
}
struct TartuEncoderProtoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr TartuEncoderProtoGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 TartuEncoderProto_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(TartuEncoderProto::InternalGenerateClassData_(
            _default, &TartuEncoderProto_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<TartuEncoderProto>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~TartuEncoderProtoGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) TartuEncoderProto _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<TartuEncoderProto>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(TartuEncoderProtoGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TartuEncoderProtoGlobalsTypeInternal TartuEncoderProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* TartuEncoderProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return TartuEncoderProto_globals_.GetClassData();
#else
  return TartuEncoderProto_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class TartuDecoderProto::_Internal {
 public:
};

constexpr TartuDecoderProto::ParseTableT_ TartuDecoderProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TartuDecoderProto,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      0, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967295,  // skipmap
      offsetof(ParseTableT_, field_names),  // no field_entries
      0,  // 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<::TartuDecoderProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, // no field_entries, or aux_entries
    {{
    }},
  };
}

template <typename>
constexpr TartuDecoderProto::TartuDecoderProto(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : Super_(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
      ) {
}
inline void* PROTOBUF_NONNULL TartuDecoderProto::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) TartuDecoderProto(arena);
}
constexpr auto TartuDecoderProto::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TartuDecoderProto), alignof(TartuDecoderProto));
}
constexpr auto TartuDecoderProto::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
          &TartuDecoderProto::MergeImpl,
          Super_::GetNewImpl<TartuDecoderProto>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &TartuDecoderProto::SharedDtor,
          Super_::GetClearImpl<TartuDecoderProto>(), &TartuDecoderProto::ByteSizeLong,
              &TartuDecoderProto::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(TartuDecoderProto, _impl_._cached_size_),
          false,
      },
#ifdef PROTOBUF_MESSAGE_GLOBALS
      &file_reflection_data[0],
#else   // !PROTOBUF_MESSAGE_GLOBALS
      &::_pbi::kDescriptorMethods,
      &descriptor_table_arch_2ftartu_2ftartu_2eproto,
      nullptr,  // tracker
#endif  // PROTOBUF_MESSAGE_GLOBALS
  };
}
struct TartuDecoderProtoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr TartuDecoderProtoGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 TartuDecoderProto_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(TartuDecoderProto::InternalGenerateClassData_(
            _default, &TartuDecoderProto_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<TartuDecoderProto>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~TartuDecoderProtoGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) TartuDecoderProto _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<TartuDecoderProto>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(TartuDecoderProtoGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TartuDecoderProtoGlobalsTypeInternal TartuDecoderProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* TartuDecoderProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return TartuDecoderProto_globals_.GetClassData();
#else
  return TartuDecoderProto_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_2ftartu_2ftartu_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
    file_level_service_descriptors_arch_2ftartu_2ftartu_2eproto = nullptr;
const ::uint32_t
    TableStruct_arch_2ftartu_2ftartu_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
        protodesc_cold) = {
        0x000, // bitmap
        0x081, // bitmap
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_._has_bits_),
        10, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_.clock_period_us_),
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_.target_rotational_period_ms_),
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_.gap1_us_),
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_.gap3_us_),
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_.gap4_us_),
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_.header_marker_),
        PROTOBUF_FIELD_OFFSET(::TartuEncoderProto, _impl_.data_marker_),
        0,
        1,
        2,
        3,
        4,
        5,
        6,
};

static const ::_pbi::MigrationSchema
    schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
        {0, sizeof(::TartuDecoderProto)},
        {1, sizeof(::TartuEncoderProto)},
};
static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const
    file_message_globals[] = {
        &::TartuDecoderProto_globals_,
        &::TartuEncoderProto_globals_,
};
const char descriptor_table_protodef_arch_2ftartu_2ftartu_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
    protodesc_cold) = {
    "\n\026arch/tartu/tartu.proto\032\027lib/config/com"
    "mon.proto\"\023\n\021TartuDecoderProto\"\207\005\n\021Tartu"
    "EncoderProto\022V\n\017clock_period_us\030\001 \001(\001:\0012"
    "B+\202\265\030\'clock rate on the real device (for"
    " MFM)R\rclockPeriodUs\022h\n\033target_rotationa"
    "l_period_ms\030\002 \001(\001:\003200B$\202\265\030 rotational p"
    "eriod of target diskR\030targetRotationalPe"
    "riodMs\022E\n\007gap1_us\030\003 \001(\001:\0041200B&\202\265\030\"size "
    "of gap 1 (the post-index gap)R\006gap1Us\022B\n"
    "\007gap3_us\030\004 \001(\001:\003150B$\202\265\030 size of gap 3 ("
    "the pre-data gap)R\006gap3Us\022M\n\007gap4_us\030\005 \001"
    "(\001:\003180B/\202\265\030+size of gap 4 (the post-dat"
    "a or format gap)R\006gap4Us\022m\n\rheader_marke"
    "r\030\006 \001(\004:\02412297829380759573844B2\202\265\030.64-bi"
    "t raw bit pattern of header record marke"
    "rR\014headerMarker\022g\n\013data_marker\030\007 \001(\004:\02412"
    "297829380759573829B0\202\265\030,64-bit raw bit p"
    "attern of data record markerR\ndataMarker"
};
static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
    descriptor_table_arch_2ftartu_2ftartu_2eproto_deps[1] = {
        &::descriptor_table_lib_2fconfig_2fcommon_2eproto,
};
static ::absl::once_flag descriptor_table_arch_2ftartu_2ftartu_2eproto_once;
PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_arch_2ftartu_2ftartu_2eproto = {
    false,
    false,
    720,
    descriptor_table_protodef_arch_2ftartu_2ftartu_2eproto,
    "arch/tartu/tartu.proto",
    &descriptor_table_arch_2ftartu_2ftartu_2eproto_once,
    descriptor_table_arch_2ftartu_2ftartu_2eproto_deps,
    1,
    2,
    schemas,
    file_message_globals,
    TableStruct_arch_2ftartu_2ftartu_2eproto::offsets,
    file_level_enum_descriptors_arch_2ftartu_2ftartu_2eproto,
    file_level_service_descriptors_arch_2ftartu_2ftartu_2eproto,
};
// ===================================================================

TartuDecoderProto::TartuDecoderProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, TartuDecoderProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : Super_(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(arena_constructor:TartuDecoderProto)
}
TartuDecoderProto::TartuDecoderProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const TartuDecoderProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, TartuDecoderProto_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : Super_(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  TartuDecoderProto* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);

  // @@protoc_insertion_point(copy_constructor:TartuDecoderProto)
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull TartuDecoderProto_class_data_ =
        TartuDecoderProto::InternalGenerateClassData_(TartuDecoderProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TartuDecoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&TartuDecoderProto_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(TartuDecoderProto_class_data_.tc_table);
  return TartuDecoderProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TartuDecoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&TartuDecoderProto_globals_);
  ::google::protobuf::internal::PrefetchToLocalCache(
      ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&TartuDecoderProto_globals_));
  return TartuDecoderProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TartuDecoderProto::ParseTableT_
    TartuDecoderProto::_table_ =
        TartuDecoderProto::InternalGenerateParseTable_(TartuDecoderProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS







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

TartuEncoderProto::TartuEncoderProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, TartuEncoderProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : Super_(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:TartuEncoderProto)
}
TartuEncoderProto::TartuEncoderProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TartuEncoderProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : Super_(arena, TartuEncoderProto_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 TartuEncoderProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : clock_period_us_{2},
        target_rotational_period_ms_{200},
        gap1_us_{1200},
        gap3_us_{150},
        gap4_us_{180},
        header_marker_{::uint64_t{12297829380759573844u}},
        data_marker_{::uint64_t{12297829380759573829u}} {}

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TartuEncoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&TartuEncoderProto_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(TartuEncoderProto_class_data_.tc_table);
  return TartuEncoderProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TartuEncoderProto::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&TartuEncoderProto_globals_);
  ::google::protobuf::internal::PrefetchToLocalCache(
      ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&TartuEncoderProto_globals_));
  return TartuEncoderProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TartuEncoderProto::ParseTableT_
    TartuEncoderProto::_table_ =
        TartuEncoderProto::InternalGenerateParseTable_(TartuEncoderProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void TartuEncoderProto::Clear() {
  auto& this_ [[maybe_unused]] = *this;
  // @@protoc_insertion_point(message_clear_start:TartuEncoderProto)
  ::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, 0x0000007fU)) {
    this_._impl_.clock_period_us_ = 2;
    this_._impl_.target_rotational_period_ms_ = 200;
    this_._impl_.gap1_us_ = 1200;
    this_._impl_.gap3_us_ = 150;
    this_._impl_.gap4_us_ = 180;
    this_._impl_.header_marker_ = ::uint64_t{12297829380759573844u};
    this_._impl_.data_marker_ = ::uint64_t{12297829380759573829u};
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL TartuEncoderProto::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const TartuEncoderProto& this_ = static_cast<const TartuEncoderProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL TartuEncoderProto::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const TartuEncoderProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:TartuEncoderProto)
  ::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 = 2, json_name = "clockPeriodUs", (.help) = "clock rate on the real device (for MFM)"];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        1, this_._internal_clock_period_us(), target);
  }

  // optional double target_rotational_period_ms = 2 [default = 200, json_name = "targetRotationalPeriodMs", (.help) = "rotational period of target disk"];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        2, this_._internal_target_rotational_period_ms(), target);
  }

  // optional double gap1_us = 3 [default = 1200, json_name = "gap1Us", (.help) = "size of gap 1 (the post-index gap)"];
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        3, this_._internal_gap1_us(), target);
  }

  // optional double gap3_us = 4 [default = 150, json_name = "gap3Us", (.help) = "size of gap 3 (the pre-data gap)"];
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        4, this_._internal_gap3_us(), target);
  }

  // optional double gap4_us = 5 [default = 180, json_name = "gap4Us", (.help) = "size of gap 4 (the post-data or format gap)"];
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        5, this_._internal_gap4_us(), target);
  }

  // optional uint64 header_marker = 6 [default = 12297829380759573844, json_name = "headerMarker", (.help) = "64-bit raw bit pattern of header record marker"];
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        6, this_._internal_header_marker(), target);
  }

  // optional uint64 data_marker = 7 [default = 12297829380759573829, json_name = "dataMarker", (.help) = "64-bit raw bit pattern of data record marker"];
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        7, this_._internal_data_marker(), 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:TartuEncoderProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TartuEncoderProto::ByteSizeLong(const MessageLite& base) {
  const TartuEncoderProto& this_ = static_cast<const TartuEncoderProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TartuEncoderProto::ByteSizeLong() const {
  const TartuEncoderProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:TartuEncoderProto)
  ::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(0x0000001fU & cached_has_bits) * 9;
  if (BatchCheckHasBit(cached_has_bits, 0x00000060U)) {
    // optional uint64 header_marker = 6 [default = 12297829380759573844, json_name = "headerMarker", (.help) = "64-bit raw bit pattern of header record marker"];
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_header_marker());
    }
    // optional uint64 data_marker = 7 [default = 12297829380759573829, json_name = "dataMarker", (.help) = "64-bit raw bit pattern of data record marker"];
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_data_marker());
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

void TartuEncoderProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TartuEncoderProto*>(&to_msg);
  auto& from = static_cast<const TartuEncoderProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:TartuEncoderProto)
  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, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.clock_period_us_ = from._impl_.clock_period_us_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.target_rotational_period_ms_ = from._impl_.target_rotational_period_ms_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.gap1_us_ = from._impl_.gap1_us_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.gap3_us_ = from._impl_.gap3_us_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.gap4_us_ = from._impl_.gap4_us_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.header_marker_ = from._impl_.header_marker_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.data_marker_ = from._impl_.data_marker_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

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


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

::google::protobuf::Metadata TartuEncoderProto::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_2ftartu_2ftartu_2eproto),
         ::std::false_type{});
#include "google/protobuf/port_undef.inc"
