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

#ifndef lib_2fconfig_2flayout_2eproto_2epb_2eh
#define lib_2fconfig_2flayout_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7036000
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
#include "lib/config/common.pb.h"
#include "lib/external/fl2.pb.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_lib_2fconfig_2flayout_2eproto

// Internal implementation detail -- do not use these members.
struct TableStruct_lib_2fconfig_2flayout_2eproto {
  static const ::uint32_t offsets[];
};
extern "C" {
extern const ::google::protobuf::internal::DescriptorTable descriptor_table_lib_2fconfig_2flayout_2eproto;
}  // extern "C"
enum LayoutProto_Order : int;
extern const uint32_t LayoutProto_Order_internal_data_[];
class LayoutProto;
struct LayoutProtoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern LayoutProtoGlobalsTypeInternal LayoutProto_globals_;
extern const ::google::protobuf::internal::ClassDataFull LayoutProto_class_data_;
#else
extern const LayoutProtoGlobalsTypeInternal LayoutProto_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class LayoutProto_LayoutdataProto;
struct LayoutProto_LayoutdataProtoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern LayoutProto_LayoutdataProtoGlobalsTypeInternal LayoutProto_LayoutdataProto_globals_;
extern const ::google::protobuf::internal::ClassDataFull LayoutProto_LayoutdataProto_class_data_;
#else
extern const LayoutProto_LayoutdataProtoGlobalsTypeInternal LayoutProto_LayoutdataProto_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class SectorListProto;
struct SectorListProtoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern SectorListProtoGlobalsTypeInternal SectorListProto_globals_;
extern const ::google::protobuf::internal::ClassDataFull SectorListProto_class_data_;
#else
extern const SectorListProtoGlobalsTypeInternal SectorListProto_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::LayoutProto_Order_internal_data_>
    internal::EnumTraitsImpl::value<::LayoutProto_Order>;
}  // namespace protobuf
}  // namespace google

enum LayoutProto_Order : int {
  LayoutProto_Order_UNDEFINED = 0,
  LayoutProto_Order_CHS = 1,
  LayoutProto_Order_HCS = 2,
  LayoutProto_Order_HCS_RH1 = 3,
};

extern const uint32_t LayoutProto_Order_internal_data_[];
inline constexpr LayoutProto_Order LayoutProto_Order_Order_MIN =
    static_cast<LayoutProto_Order>(0);
inline constexpr LayoutProto_Order LayoutProto_Order_Order_MAX =
    static_cast<LayoutProto_Order>(3);
[[nodiscard]] inline bool LayoutProto_Order_IsValid(int value) {
  return 0 <= value && value <= 3;
}
inline constexpr int LayoutProto_Order_Order_ARRAYSIZE = 3 + 1;
[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL
LayoutProto_Order_descriptor();
[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(LayoutProto_Order) {
  return LayoutProto_Order_descriptor();
}
template <typename T>
[[nodiscard]] const ::std::string& LayoutProto_Order_Name(T value) {
  static_assert(::std::is_same<T, LayoutProto_Order>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to Order_Name().");
  return LayoutProto_Order_Name(static_cast<LayoutProto_Order>(value));
}
template <>
[[nodiscard]] inline const ::std::string& LayoutProto_Order_Name(LayoutProto_Order value) {
  return ::google::protobuf::internal::NameOfDenseEnum<LayoutProto_Order_descriptor, 0, 3>(
      static_cast<int>(value));
}
[[nodiscard]] inline bool LayoutProto_Order_Parse(
    ::absl::string_view name, LayoutProto_Order* PROTOBUF_NONNULL value) {
  return ::google::protobuf::internal::ParseNamedEnum<LayoutProto_Order>(LayoutProto_Order_descriptor(), name,
                                           value);
}
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


// -------------------------------------------------------------------

class  PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SectorListProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:SectorListProto) */ {
  using Super_ = ::google::protobuf::Message;

 public:
  inline SectorListProto() : SectorListProto(nullptr) {}
  ~SectorListProto() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(SectorListProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(SectorListProto));
  }
#endif

  template <typename = void>
  explicit constexpr SectorListProto(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline SectorListProto(const SectorListProto& from) : SectorListProto(nullptr, from) {}
  inline SectorListProto(SectorListProto&& from) noexcept : SectorListProto(nullptr, ::std::move(from)) {}
  inline SectorListProto& operator=(const SectorListProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline SectorListProto& operator=(SectorListProto&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
  GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  [[nodiscard]] static const SectorListProto& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<SectorListProto>(&SectorListProto_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(SectorListProto& a, SectorListProto& b) { a.Swap(&b); }
  inline void Swap(SectorListProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(SectorListProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  [[nodiscard]] SectorListProto* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return Super_::DefaultConstruct<SectorListProto>(arena);
  }
  using Super_::CopyFrom;
  void CopyFrom(const SectorListProto& from);
  using Super_::MergeFrom;
  void MergeFrom(const SectorListProto& from) { SectorListProto::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  [[nodiscard]] bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] ::size_t ByteSizeLong() const final;
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(SectorListProto* PROTOBUF_NONNULL other);
 private:
  static ::absl::string_view FullMessageName() { return "SectorListProto"; }

  explicit SectorListProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  SectorListProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SectorListProto& from);
  SectorListProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SectorListProto&& from) noexcept
      : SectorListProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kSectorFieldNumber = 1,
    kStartSectorFieldNumber = 2,
    kCountFieldNumber = 3,
    kSkewFieldNumber = 4,
  };
  // repeated int32 sector = 1 [json_name = "sector", (.help) = "sector ID"];
  [[nodiscard]] int sector_size() const;
  private:
  int _internal_sector_size() const;

  public:
  void clear_sector() ;
  [[nodiscard]] ::int32_t sector(int index) const;
  void set_sector(int index, ::int32_t value);
  void add_sector(::int32_t value);
  [[nodiscard]] const ::google::protobuf::RepeatedField<::int32_t>& sector()
      const;
  ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_sector();

  private:
  const ::google::protobuf::RepeatedField<::int32_t>& _internal_sector() const;
  ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_sector();

  public:
  // optional int32 start_sector = 2 [json_name = "startSector", (.help) = "first sector of a continuous run"];
  [[nodiscard]] bool has_start_sector() const;
  void clear_start_sector() ;
  [[nodiscard]] ::int32_t start_sector() const;
  void set_start_sector(::int32_t value);

  private:
  ::int32_t _internal_start_sector() const;
  void _internal_set_start_sector(::int32_t value);

  public:
  // optional int32 count = 3 [json_name = "count", (.help) = "number of sectors in a continuous run"];
  [[nodiscard]] bool has_count() const;
  void clear_count() ;
  [[nodiscard]] ::int32_t count() const;
  void set_count(::int32_t value);

  private:
  ::int32_t _internal_count() const;
  void _internal_set_count(::int32_t value);

  public:
  // optional int32 skew = 4 [default = 1, json_name = "skew", (.help) = "apply this skew between sectors"];
  [[nodiscard]] bool has_skew() const;
  void clear_skew() ;
  [[nodiscard]] ::int32_t skew() const;
  void set_skew(::int32_t value);

  private:
  ::int32_t _internal_skew() const;
  void _internal_set_skew(::int32_t value);

  public:
  // @@protoc_insertion_point(class_scope:SectorListProto)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 4,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const SectorListProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedField<::int32_t> sector_;
    ::int32_t start_sector_;
    ::int32_t count_;
    ::int32_t skew_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_lib_2fconfig_2flayout_2eproto;
};
// -------------------------------------------------------------------

class  PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED LayoutProto_LayoutdataProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:LayoutProto.LayoutdataProto) */ {
  using Super_ = ::google::protobuf::Message;

 public:
  inline LayoutProto_LayoutdataProto() : LayoutProto_LayoutdataProto(nullptr) {}
  ~LayoutProto_LayoutdataProto() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(LayoutProto_LayoutdataProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(LayoutProto_LayoutdataProto));
  }
#endif

  template <typename = void>
  explicit constexpr LayoutProto_LayoutdataProto(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline LayoutProto_LayoutdataProto(const LayoutProto_LayoutdataProto& from) : LayoutProto_LayoutdataProto(nullptr, from) {}
  inline LayoutProto_LayoutdataProto(LayoutProto_LayoutdataProto&& from) noexcept : LayoutProto_LayoutdataProto(nullptr, ::std::move(from)) {}
  inline LayoutProto_LayoutdataProto& operator=(const LayoutProto_LayoutdataProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline LayoutProto_LayoutdataProto& operator=(LayoutProto_LayoutdataProto&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
  GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  [[nodiscard]] static const LayoutProto_LayoutdataProto& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<LayoutProto_LayoutdataProto>(&LayoutProto_LayoutdataProto_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(LayoutProto_LayoutdataProto& a, LayoutProto_LayoutdataProto& b) { a.Swap(&b); }
  inline void Swap(LayoutProto_LayoutdataProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(LayoutProto_LayoutdataProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  [[nodiscard]] LayoutProto_LayoutdataProto* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return Super_::DefaultConstruct<LayoutProto_LayoutdataProto>(arena);
  }
  using Super_::CopyFrom;
  void CopyFrom(const LayoutProto_LayoutdataProto& from);
  using Super_::MergeFrom;
  void MergeFrom(const LayoutProto_LayoutdataProto& from) { LayoutProto_LayoutdataProto::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  [[nodiscard]] bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] ::size_t ByteSizeLong() const final;
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(LayoutProto_LayoutdataProto* PROTOBUF_NONNULL other);
 private:
  static ::absl::string_view FullMessageName() { return "LayoutProto.LayoutdataProto"; }

  explicit LayoutProto_LayoutdataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  LayoutProto_LayoutdataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LayoutProto_LayoutdataProto& from);
  LayoutProto_LayoutdataProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LayoutProto_LayoutdataProto&& from) noexcept
      : LayoutProto_LayoutdataProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kPhysicalFieldNumber = 4,
    kFilesystemFieldNumber = 6,
    kTrackFieldNumber = 1,
    kSideFieldNumber = 2,
    kUpToTrackFieldNumber = 5,
    kSectorSizeFieldNumber = 3,
  };
  // optional .SectorListProto physical = 4 [json_name = "physical", (.help) = "physical order of sectors on disk"];
  [[nodiscard]] bool has_physical() const;
  void clear_physical() ;
  [[nodiscard]] const ::SectorListProto& physical() const;
  [[nodiscard]] ::SectorListProto* PROTOBUF_NULLABLE release_physical();
  ::SectorListProto* PROTOBUF_NONNULL mutable_physical();
  void set_allocated_physical(::SectorListProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_physical(::SectorListProto* PROTOBUF_NULLABLE value);
  ::SectorListProto* PROTOBUF_NULLABLE unsafe_arena_release_physical();

  private:
  const ::SectorListProto& _internal_physical() const;
  ::SectorListProto* PROTOBUF_NONNULL _internal_mutable_physical();

  public:
  // optional .SectorListProto filesystem = 6 [json_name = "filesystem", (.help) = "logical order of sectors in filesystem"];
  [[nodiscard]] bool has_filesystem() const;
  void clear_filesystem() ;
  [[nodiscard]] const ::SectorListProto& filesystem() const;
  [[nodiscard]] ::SectorListProto* PROTOBUF_NULLABLE release_filesystem();
  ::SectorListProto* PROTOBUF_NONNULL mutable_filesystem();
  void set_allocated_filesystem(::SectorListProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_filesystem(::SectorListProto* PROTOBUF_NULLABLE value);
  ::SectorListProto* PROTOBUF_NULLABLE unsafe_arena_release_filesystem();

  private:
  const ::SectorListProto& _internal_filesystem() const;
  ::SectorListProto* PROTOBUF_NONNULL _internal_mutable_filesystem();

  public:
  // optional int32 track = 1 [json_name = "track", (.help) = "if present, this format only applies to this logical track"];
  [[nodiscard]] bool has_track() const;
  void clear_track() ;
  [[nodiscard]] ::int32_t track() const;
  void set_track(::int32_t value);

  private:
  ::int32_t _internal_track() const;
  void _internal_set_track(::int32_t value);

  public:
  // optional int32 side = 2 [json_name = "side", (.help) = "if present, this format only applies to this logical side"];
  [[nodiscard]] bool has_side() const;
  void clear_side() ;
  [[nodiscard]] ::int32_t side() const;
  void set_side(::int32_t value);

  private:
  ::int32_t _internal_side() const;
  void _internal_set_side(::int32_t value);

  public:
  // optional int32 up_to_track = 5 [json_name = "upToTrack", (.help) = "if present, forms a range with track"];
  [[nodiscard]] bool has_up_to_track() const;
  void clear_up_to_track() ;
  [[nodiscard]] ::int32_t up_to_track() const;
  void set_up_to_track(::int32_t value);

  private:
  ::int32_t _internal_up_to_track() const;
  void _internal_set_up_to_track(::int32_t value);

  public:
  // optional int32 sector_size = 3 [default = 512, json_name = "sectorSize", (.help) = "number of bytes per sector"];
  [[nodiscard]] bool has_sector_size() const;
  void clear_sector_size() ;
  [[nodiscard]] ::int32_t sector_size() const;
  void set_sector_size(::int32_t value);

  private:
  ::int32_t _internal_sector_size() const;
  void _internal_set_sector_size(::int32_t value);

  public:
  // @@protoc_insertion_point(class_scope:LayoutProto.LayoutdataProto)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<3, 6,
                          2, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const LayoutProto_LayoutdataProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::SectorListProto* PROTOBUF_NULLABLE physical_;
    ::SectorListProto* PROTOBUF_NULLABLE filesystem_;
    ::int32_t track_;
    ::int32_t side_;
    ::int32_t up_to_track_;
    ::int32_t sector_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_lib_2fconfig_2flayout_2eproto;
};
// -------------------------------------------------------------------

class  PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED LayoutProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:LayoutProto) */ {
  using Super_ = ::google::protobuf::Message;

 public:
  inline LayoutProto() : LayoutProto(nullptr) {}
  ~LayoutProto() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(LayoutProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(LayoutProto));
  }
#endif

  template <typename = void>
  explicit constexpr LayoutProto(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline LayoutProto(const LayoutProto& from) : LayoutProto(nullptr, from) {}
  inline LayoutProto(LayoutProto&& from) noexcept : LayoutProto(nullptr, ::std::move(from)) {}
  inline LayoutProto& operator=(const LayoutProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline LayoutProto& operator=(LayoutProto&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
  GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  [[nodiscard]] static const LayoutProto& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<LayoutProto>(&LayoutProto_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(LayoutProto& a, LayoutProto& b) { a.Swap(&b); }
  inline void Swap(LayoutProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(LayoutProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  [[nodiscard]] LayoutProto* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return Super_::DefaultConstruct<LayoutProto>(arena);
  }
  using Super_::CopyFrom;
  void CopyFrom(const LayoutProto& from);
  using Super_::MergeFrom;
  void MergeFrom(const LayoutProto& from) { LayoutProto::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  [[nodiscard]] bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] ::size_t ByteSizeLong() const final;
  [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  [[nodiscard]] int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(LayoutProto* PROTOBUF_NONNULL other);
 private:
  static ::absl::string_view FullMessageName() { return "LayoutProto"; }

  explicit LayoutProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  LayoutProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LayoutProto& from);
  LayoutProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LayoutProto&& from) noexcept
      : LayoutProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------
  using LayoutdataProto = LayoutProto_LayoutdataProto;
  using Order = LayoutProto_Order;
  static constexpr Order UNDEFINED = LayoutProto_Order_UNDEFINED;
  static constexpr Order CHS = LayoutProto_Order_CHS;
  static constexpr Order HCS = LayoutProto_Order_HCS;
  static constexpr Order HCS_RH1 = LayoutProto_Order_HCS_RH1;
  [[nodiscard]] static inline bool Order_IsValid(int value) {
    return LayoutProto_Order_IsValid(value);
  }
  static constexpr Order Order_MIN = LayoutProto_Order_Order_MIN;
  static constexpr Order Order_MAX = LayoutProto_Order_Order_MAX;
  static constexpr int Order_ARRAYSIZE = LayoutProto_Order_Order_ARRAYSIZE;
  static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Order_descriptor() {
    return LayoutProto_Order_descriptor();
  }
  template <typename T>
  [[nodiscard]] static inline const ::std::string& Order_Name(T value) {
    return LayoutProto_Order_Name(value);
  }
  [[nodiscard]] static inline bool Order_Parse(
      ::absl::string_view name, Order* PROTOBUF_NONNULL value) {
    return LayoutProto_Order_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kLayoutdataFieldNumber = 1,
    kTracksFieldNumber = 2,
    kSidesFieldNumber = 3,
    kSwapSidesFieldNumber = 6,
    kFormatTypeFieldNumber = 7,
    kFilesystemTrackOrderFieldNumber = 4,
    kImageTrackOrderFieldNumber = 5,
  };
  // repeated .LayoutProto.LayoutdataProto layoutdata = 1 [json_name = "layoutdata", (.help) = "per-track layout information (repeatable)"];
  [[nodiscard]] int layoutdata_size() const;
  private:
  int _internal_layoutdata_size() const;

  public:
  void clear_layoutdata() ;
  [[nodiscard]] const ::LayoutProto_LayoutdataProto& layoutdata(int index) const;
  [[nodiscard]] ::LayoutProto_LayoutdataProto* PROTOBUF_NONNULL mutable_layoutdata(int index);
  ::LayoutProto_LayoutdataProto* PROTOBUF_NONNULL add_layoutdata();
  [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>&
  layoutdata() const;
  [[nodiscard]] ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>* PROTOBUF_NONNULL
  mutable_layoutdata();

  private:
  const ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>& _internal_layoutdata() const;
  ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>* PROTOBUF_NONNULL _internal_mutable_layoutdata();

  public:
  // optional int32 tracks = 2 [default = 0, json_name = "tracks", (.help) = "number of tracks in image"];
  [[nodiscard]] bool has_tracks() const;
  void clear_tracks() ;
  [[nodiscard]] ::int32_t tracks() const;
  void set_tracks(::int32_t value);

  private:
  ::int32_t _internal_tracks() const;
  void _internal_set_tracks(::int32_t value);

  public:
  // optional int32 sides = 3 [default = 0, json_name = "sides", (.help) = "number of sides in image"];
  [[nodiscard]] bool has_sides() const;
  void clear_sides() ;
  [[nodiscard]] ::int32_t sides() const;
  void set_sides(::int32_t value);

  private:
  ::int32_t _internal_sides() const;
  void _internal_set_sides(::int32_t value);

  public:
  // optional bool swap_sides = 6 [default = false, json_name = "swapSides", (.help) = "the sides are inverted on this disk"];
  [[nodiscard]] bool has_swap_sides() const;
  void clear_swap_sides() ;
  [[nodiscard]] bool swap_sides() const;
  void set_swap_sides(bool value);

  private:
  bool _internal_swap_sides() const;
  void _internal_set_swap_sides(bool value);

  public:
  // optional .FormatType format_type = 7 [default = FORMATTYPE_UNKNOWN, json_name = "formatType", (.help) = "Format type of image"];
  [[nodiscard]] bool has_format_type() const;
  void clear_format_type() ;
  [[nodiscard]] ::FormatType format_type() const;
  void set_format_type(::FormatType value);

  private:
  ::FormatType _internal_format_type() const;
  void _internal_set_format_type(::FormatType value);

  public:
  // optional .LayoutProto.Order filesystem_track_order = 4 [default = CHS, json_name = "filesystemTrackOrder", (.help) = "the order of sectors in the filesystem"];
  [[nodiscard]] bool has_filesystem_track_order() const;
  void clear_filesystem_track_order() ;
  [[nodiscard]] ::LayoutProto_Order filesystem_track_order() const;
  void set_filesystem_track_order(::LayoutProto_Order value);

  private:
  ::LayoutProto_Order _internal_filesystem_track_order() const;
  void _internal_set_filesystem_track_order(::LayoutProto_Order value);

  public:
  // optional .LayoutProto.Order image_track_order = 5 [default = CHS, json_name = "imageTrackOrder", (.help) = "the order of sectors in disk images"];
  [[nodiscard]] bool has_image_track_order() const;
  void clear_image_track_order() ;
  [[nodiscard]] ::LayoutProto_Order image_track_order() const;
  void set_image_track_order(::LayoutProto_Order value);

  private:
  ::LayoutProto_Order _internal_image_track_order() const;
  void _internal_set_image_track_order(::LayoutProto_Order value);

  public:
  // @@protoc_insertion_point(class_scope:LayoutProto)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<3, 7,
                          4, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const LayoutProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::LayoutProto_LayoutdataProto > layoutdata_;
    ::int32_t tracks_;
    ::int32_t sides_;
    bool swap_sides_;
    int format_type_;
    int filesystem_track_order_;
    int image_track_order_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_lib_2fconfig_2flayout_2eproto;
};

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




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


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// SectorListProto

// repeated int32 sector = 1 [json_name = "sector", (.help) = "sector ID"];
inline int SectorListProto::_internal_sector_size() const {
  return _internal_sector().size();
}
inline int SectorListProto::sector_size() const {
  return _internal_sector_size();
}
inline void SectorListProto::clear_sector() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.sector_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline ::int32_t SectorListProto::sector(int index) const {
  // @@protoc_insertion_point(field_get:SectorListProto.sector)
  return _internal_sector().Get(index);
}
inline void SectorListProto::set_sector(int index, ::int32_t value) {
  _internal_mutable_sector()->Set(index, value);
  // @@protoc_insertion_point(field_set:SectorListProto.sector)
}
inline void SectorListProto::add_sector(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _internal_mutable_sector()
      ->InternalAddWithArena<const ::google::protobuf::MessageLite*>(
          internal_visibility(), this, value);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:SectorListProto.sector)
}
inline const ::google::protobuf::RepeatedField<::int32_t>& SectorListProto::sector() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:SectorListProto.sector)
  return _internal_sector();
}
inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL SectorListProto::mutable_sector()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:SectorListProto.sector)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_sector();
}
inline const ::google::protobuf::RepeatedField<::int32_t>&
SectorListProto::_internal_sector() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.sector_;
}
inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
SectorListProto::_internal_mutable_sector() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.sector_;
}

// optional int32 start_sector = 2 [json_name = "startSector", (.help) = "first sector of a continuous run"];
inline bool SectorListProto::has_start_sector() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void SectorListProto::clear_start_sector() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.start_sector_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::int32_t SectorListProto::start_sector() const {
  // @@protoc_insertion_point(field_get:SectorListProto.start_sector)
  return _internal_start_sector();
}
inline void SectorListProto::set_start_sector(::int32_t value) {
  _internal_set_start_sector(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:SectorListProto.start_sector)
}
inline ::int32_t SectorListProto::_internal_start_sector() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.start_sector_;
}
inline void SectorListProto::_internal_set_start_sector(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.start_sector_ = value;
}

// optional int32 count = 3 [json_name = "count", (.help) = "number of sectors in a continuous run"];
inline bool SectorListProto::has_count() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void SectorListProto::clear_count() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.count_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::int32_t SectorListProto::count() const {
  // @@protoc_insertion_point(field_get:SectorListProto.count)
  return _internal_count();
}
inline void SectorListProto::set_count(::int32_t value) {
  _internal_set_count(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:SectorListProto.count)
}
inline ::int32_t SectorListProto::_internal_count() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.count_;
}
inline void SectorListProto::_internal_set_count(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.count_ = value;
}

// optional int32 skew = 4 [default = 1, json_name = "skew", (.help) = "apply this skew between sectors"];
inline bool SectorListProto::has_skew() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void SectorListProto::clear_skew() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.skew_ = 1;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::int32_t SectorListProto::skew() const {
  // @@protoc_insertion_point(field_get:SectorListProto.skew)
  return _internal_skew();
}
inline void SectorListProto::set_skew(::int32_t value) {
  _internal_set_skew(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:SectorListProto.skew)
}
inline ::int32_t SectorListProto::_internal_skew() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.skew_;
}
inline void SectorListProto::_internal_set_skew(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.skew_ = value;
}

// -------------------------------------------------------------------

// LayoutProto_LayoutdataProto

// optional int32 track = 1 [json_name = "track", (.help) = "if present, this format only applies to this logical track"];
inline bool LayoutProto_LayoutdataProto::has_track() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void LayoutProto_LayoutdataProto::clear_track() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.track_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::int32_t LayoutProto_LayoutdataProto::track() const {
  // @@protoc_insertion_point(field_get:LayoutProto.LayoutdataProto.track)
  return _internal_track();
}
inline void LayoutProto_LayoutdataProto::set_track(::int32_t value) {
  _internal_set_track(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:LayoutProto.LayoutdataProto.track)
}
inline ::int32_t LayoutProto_LayoutdataProto::_internal_track() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.track_;
}
inline void LayoutProto_LayoutdataProto::_internal_set_track(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.track_ = value;
}

// optional int32 up_to_track = 5 [json_name = "upToTrack", (.help) = "if present, forms a range with track"];
inline bool LayoutProto_LayoutdataProto::has_up_to_track() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  return value;
}
inline void LayoutProto_LayoutdataProto::clear_up_to_track() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.up_to_track_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
inline ::int32_t LayoutProto_LayoutdataProto::up_to_track() const {
  // @@protoc_insertion_point(field_get:LayoutProto.LayoutdataProto.up_to_track)
  return _internal_up_to_track();
}
inline void LayoutProto_LayoutdataProto::set_up_to_track(::int32_t value) {
  _internal_set_up_to_track(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  // @@protoc_insertion_point(field_set:LayoutProto.LayoutdataProto.up_to_track)
}
inline ::int32_t LayoutProto_LayoutdataProto::_internal_up_to_track() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.up_to_track_;
}
inline void LayoutProto_LayoutdataProto::_internal_set_up_to_track(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.up_to_track_ = value;
}

// optional int32 side = 2 [json_name = "side", (.help) = "if present, this format only applies to this logical side"];
inline bool LayoutProto_LayoutdataProto::has_side() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void LayoutProto_LayoutdataProto::clear_side() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.side_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::int32_t LayoutProto_LayoutdataProto::side() const {
  // @@protoc_insertion_point(field_get:LayoutProto.LayoutdataProto.side)
  return _internal_side();
}
inline void LayoutProto_LayoutdataProto::set_side(::int32_t value) {
  _internal_set_side(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:LayoutProto.LayoutdataProto.side)
}
inline ::int32_t LayoutProto_LayoutdataProto::_internal_side() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.side_;
}
inline void LayoutProto_LayoutdataProto::_internal_set_side(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.side_ = value;
}

// optional int32 sector_size = 3 [default = 512, json_name = "sectorSize", (.help) = "number of bytes per sector"];
inline bool LayoutProto_LayoutdataProto::has_sector_size() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
  return value;
}
inline void LayoutProto_LayoutdataProto::clear_sector_size() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.sector_size_ = 512;
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
inline ::int32_t LayoutProto_LayoutdataProto::sector_size() const {
  // @@protoc_insertion_point(field_get:LayoutProto.LayoutdataProto.sector_size)
  return _internal_sector_size();
}
inline void LayoutProto_LayoutdataProto::set_sector_size(::int32_t value) {
  _internal_set_sector_size(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  // @@protoc_insertion_point(field_set:LayoutProto.LayoutdataProto.sector_size)
}
inline ::int32_t LayoutProto_LayoutdataProto::_internal_sector_size() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.sector_size_;
}
inline void LayoutProto_LayoutdataProto::_internal_set_sector_size(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.sector_size_ = value;
}

// optional .SectorListProto physical = 4 [json_name = "physical", (.help) = "physical order of sectors on disk"];
inline bool LayoutProto_LayoutdataProto::has_physical() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  PROTOBUF_ASSUME(!value || _impl_.physical_ != nullptr);
  return value;
}
inline void LayoutProto_LayoutdataProto::clear_physical() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.physical_ != nullptr) _impl_.physical_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::SectorListProto& LayoutProto_LayoutdataProto::_internal_physical() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::SectorListProto* p = _impl_.physical_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::SectorListProto>(&::SectorListProto_globals_);
}
inline const ::SectorListProto& LayoutProto_LayoutdataProto::physical() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:LayoutProto.LayoutdataProto.physical)
  return _internal_physical();
}
inline void LayoutProto_LayoutdataProto::unsafe_arena_set_allocated_physical(
    ::SectorListProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.physical_);
  }
  _impl_.physical_ = reinterpret_cast<::SectorListProto*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:LayoutProto.LayoutdataProto.physical)
}
inline ::SectorListProto* PROTOBUF_NULLABLE LayoutProto_LayoutdataProto::release_physical() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::SectorListProto* released = _impl_.physical_;
  _impl_.physical_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::SectorListProto* PROTOBUF_NULLABLE LayoutProto_LayoutdataProto::unsafe_arena_release_physical() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:LayoutProto.LayoutdataProto.physical)

  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::SectorListProto* temp = _impl_.physical_;
  _impl_.physical_ = nullptr;
  return temp;
}
inline ::SectorListProto* PROTOBUF_NONNULL LayoutProto_LayoutdataProto::_internal_mutable_physical() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.physical_ == nullptr) {
    auto* p = Super_::DefaultConstruct<::SectorListProto>(GetArena());
    _impl_.physical_ = reinterpret_cast<::SectorListProto*>(p);
  }
  return _impl_.physical_;
}
inline ::SectorListProto* PROTOBUF_NONNULL LayoutProto_LayoutdataProto::mutable_physical()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::SectorListProto* _msg = _internal_mutable_physical();
  // @@protoc_insertion_point(field_mutable:LayoutProto.LayoutdataProto.physical)
  return _msg;
}
inline void LayoutProto_LayoutdataProto::set_allocated_physical(::SectorListProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.physical_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }

  _impl_.physical_ = reinterpret_cast<::SectorListProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:LayoutProto.LayoutdataProto.physical)
}

// optional .SectorListProto filesystem = 6 [json_name = "filesystem", (.help) = "logical order of sectors in filesystem"];
inline bool LayoutProto_LayoutdataProto::has_filesystem() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.filesystem_ != nullptr);
  return value;
}
inline void LayoutProto_LayoutdataProto::clear_filesystem() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.filesystem_ != nullptr) _impl_.filesystem_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::SectorListProto& LayoutProto_LayoutdataProto::_internal_filesystem() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::SectorListProto* p = _impl_.filesystem_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::SectorListProto>(&::SectorListProto_globals_);
}
inline const ::SectorListProto& LayoutProto_LayoutdataProto::filesystem() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:LayoutProto.LayoutdataProto.filesystem)
  return _internal_filesystem();
}
inline void LayoutProto_LayoutdataProto::unsafe_arena_set_allocated_filesystem(
    ::SectorListProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.filesystem_);
  }
  _impl_.filesystem_ = reinterpret_cast<::SectorListProto*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:LayoutProto.LayoutdataProto.filesystem)
}
inline ::SectorListProto* PROTOBUF_NULLABLE LayoutProto_LayoutdataProto::release_filesystem() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::SectorListProto* released = _impl_.filesystem_;
  _impl_.filesystem_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::SectorListProto* PROTOBUF_NULLABLE LayoutProto_LayoutdataProto::unsafe_arena_release_filesystem() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:LayoutProto.LayoutdataProto.filesystem)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::SectorListProto* temp = _impl_.filesystem_;
  _impl_.filesystem_ = nullptr;
  return temp;
}
inline ::SectorListProto* PROTOBUF_NONNULL LayoutProto_LayoutdataProto::_internal_mutable_filesystem() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.filesystem_ == nullptr) {
    auto* p = Super_::DefaultConstruct<::SectorListProto>(GetArena());
    _impl_.filesystem_ = reinterpret_cast<::SectorListProto*>(p);
  }
  return _impl_.filesystem_;
}
inline ::SectorListProto* PROTOBUF_NONNULL LayoutProto_LayoutdataProto::mutable_filesystem()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::SectorListProto* _msg = _internal_mutable_filesystem();
  // @@protoc_insertion_point(field_mutable:LayoutProto.LayoutdataProto.filesystem)
  return _msg;
}
inline void LayoutProto_LayoutdataProto::set_allocated_filesystem(::SectorListProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.filesystem_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }

  _impl_.filesystem_ = reinterpret_cast<::SectorListProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:LayoutProto.LayoutdataProto.filesystem)
}

// -------------------------------------------------------------------

// LayoutProto

// repeated .LayoutProto.LayoutdataProto layoutdata = 1 [json_name = "layoutdata", (.help) = "per-track layout information (repeatable)"];
inline int LayoutProto::_internal_layoutdata_size() const {
  return _internal_layoutdata().size();
}
inline int LayoutProto::layoutdata_size() const {
  return _internal_layoutdata_size();
}
inline void LayoutProto::clear_layoutdata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.layoutdata_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::LayoutProto_LayoutdataProto& LayoutProto::layoutdata(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:LayoutProto.layoutdata)
  return _internal_layoutdata().Get(index);
}
inline ::LayoutProto_LayoutdataProto* PROTOBUF_NONNULL LayoutProto::mutable_layoutdata(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:LayoutProto.layoutdata)
  return _internal_mutable_layoutdata()->Mutable(index);
}
inline ::LayoutProto_LayoutdataProto* PROTOBUF_NONNULL LayoutProto::add_layoutdata()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::LayoutProto_LayoutdataProto* _add =
      _internal_mutable_layoutdata()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:LayoutProto.layoutdata)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>& LayoutProto::layoutdata() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:LayoutProto.layoutdata)
  return _internal_layoutdata();
}
inline ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>* PROTOBUF_NONNULL
LayoutProto::mutable_layoutdata() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:LayoutProto.layoutdata)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_layoutdata();
}
inline const ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>&
LayoutProto::_internal_layoutdata() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.layoutdata_;
}
inline ::google::protobuf::RepeatedPtrField<::LayoutProto_LayoutdataProto>* PROTOBUF_NONNULL
LayoutProto::_internal_mutable_layoutdata() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.layoutdata_;
}

// optional int32 tracks = 2 [default = 0, json_name = "tracks", (.help) = "number of tracks in image"];
inline bool LayoutProto::has_tracks() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void LayoutProto::clear_tracks() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.tracks_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::int32_t LayoutProto::tracks() const {
  // @@protoc_insertion_point(field_get:LayoutProto.tracks)
  return _internal_tracks();
}
inline void LayoutProto::set_tracks(::int32_t value) {
  _internal_set_tracks(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:LayoutProto.tracks)
}
inline ::int32_t LayoutProto::_internal_tracks() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.tracks_;
}
inline void LayoutProto::_internal_set_tracks(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.tracks_ = value;
}

// optional int32 sides = 3 [default = 0, json_name = "sides", (.help) = "number of sides in image"];
inline bool LayoutProto::has_sides() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void LayoutProto::clear_sides() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.sides_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::int32_t LayoutProto::sides() const {
  // @@protoc_insertion_point(field_get:LayoutProto.sides)
  return _internal_sides();
}
inline void LayoutProto::set_sides(::int32_t value) {
  _internal_set_sides(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:LayoutProto.sides)
}
inline ::int32_t LayoutProto::_internal_sides() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.sides_;
}
inline void LayoutProto::_internal_set_sides(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.sides_ = value;
}

// optional .LayoutProto.Order filesystem_track_order = 4 [default = CHS, json_name = "filesystemTrackOrder", (.help) = "the order of sectors in the filesystem"];
inline bool LayoutProto::has_filesystem_track_order() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
  return value;
}
inline void LayoutProto::clear_filesystem_track_order() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.filesystem_track_order_ = 1;
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
inline ::LayoutProto_Order LayoutProto::filesystem_track_order() const {
  // @@protoc_insertion_point(field_get:LayoutProto.filesystem_track_order)
  return _internal_filesystem_track_order();
}
inline void LayoutProto::set_filesystem_track_order(::LayoutProto_Order value) {
  _internal_set_filesystem_track_order(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  // @@protoc_insertion_point(field_set:LayoutProto.filesystem_track_order)
}
inline ::LayoutProto_Order LayoutProto::_internal_filesystem_track_order() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::LayoutProto_Order>(_impl_.filesystem_track_order_);
}
inline void LayoutProto::_internal_set_filesystem_track_order(::LayoutProto_Order value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::LayoutProto_Order_internal_data_));
                                          _impl_.filesystem_track_order_ = value;
}

// optional .LayoutProto.Order image_track_order = 5 [default = CHS, json_name = "imageTrackOrder", (.help) = "the order of sectors in disk images"];
inline bool LayoutProto::has_image_track_order() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
  return value;
}
inline void LayoutProto::clear_image_track_order() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.image_track_order_ = 1;
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
inline ::LayoutProto_Order LayoutProto::image_track_order() const {
  // @@protoc_insertion_point(field_get:LayoutProto.image_track_order)
  return _internal_image_track_order();
}
inline void LayoutProto::set_image_track_order(::LayoutProto_Order value) {
  _internal_set_image_track_order(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000040U);
  // @@protoc_insertion_point(field_set:LayoutProto.image_track_order)
}
inline ::LayoutProto_Order LayoutProto::_internal_image_track_order() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::LayoutProto_Order>(_impl_.image_track_order_);
}
inline void LayoutProto::_internal_set_image_track_order(::LayoutProto_Order value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::LayoutProto_Order_internal_data_));
                                          _impl_.image_track_order_ = value;
}

// optional bool swap_sides = 6 [default = false, json_name = "swapSides", (.help) = "the sides are inverted on this disk"];
inline bool LayoutProto::has_swap_sides() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void LayoutProto::clear_swap_sides() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.swap_sides_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline bool LayoutProto::swap_sides() const {
  // @@protoc_insertion_point(field_get:LayoutProto.swap_sides)
  return _internal_swap_sides();
}
inline void LayoutProto::set_swap_sides(bool value) {
  _internal_set_swap_sides(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:LayoutProto.swap_sides)
}
inline bool LayoutProto::_internal_swap_sides() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.swap_sides_;
}
inline void LayoutProto::_internal_set_swap_sides(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.swap_sides_ = value;
}

// optional .FormatType format_type = 7 [default = FORMATTYPE_UNKNOWN, json_name = "formatType", (.help) = "Format type of image"];
inline bool LayoutProto::has_format_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  return value;
}
inline void LayoutProto::clear_format_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.format_type_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
inline ::FormatType LayoutProto::format_type() const {
  // @@protoc_insertion_point(field_get:LayoutProto.format_type)
  return _internal_format_type();
}
inline void LayoutProto::set_format_type(::FormatType value) {
  _internal_set_format_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  // @@protoc_insertion_point(field_set:LayoutProto.format_type)
}
inline ::FormatType LayoutProto::_internal_format_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::FormatType>(_impl_.format_type_);
}
inline void LayoutProto::_internal_set_format_type(::FormatType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::FormatType_internal_data_));
                                          _impl_.format_type_ = value;
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)


namespace google {
namespace protobuf {

template <>
struct is_proto_enum<::LayoutProto_Order> : std::true_type {};
template <>
inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::LayoutProto_Order>() {
  return ::LayoutProto_Order_descriptor();
}

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"
// clang-format on

#endif  // lib_2fconfig_2flayout_2eproto_2epb_2eh
