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

#ifndef lib_2fusb_2fusb_2eproto_2epb_2eh
#define lib_2fusb_2fusb_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"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_lib_2fusb_2fusb_2eproto

// Internal implementation detail -- do not use these members.
struct TableStruct_lib_2fusb_2fusb_2eproto {
  static const ::uint32_t offsets[];
};
extern "C" {
extern const ::google::protobuf::internal::DescriptorTable descriptor_table_lib_2fusb_2fusb_2eproto;
}  // extern "C"
enum GreaseweazleProto_BusType : int;
extern const uint32_t GreaseweazleProto_BusType_internal_data_[];
class ApplesauceProto;
struct ApplesauceProtoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern ApplesauceProtoGlobalsTypeInternal ApplesauceProto_globals_;
extern const ::google::protobuf::internal::ClassDataFull ApplesauceProto_class_data_;
#else
extern const ApplesauceProtoGlobalsTypeInternal ApplesauceProto_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class GreaseweazleProto;
struct GreaseweazleProtoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern GreaseweazleProtoGlobalsTypeInternal GreaseweazleProto_globals_;
extern const ::google::protobuf::internal::ClassDataFull GreaseweazleProto_class_data_;
#else
extern const GreaseweazleProtoGlobalsTypeInternal GreaseweazleProto_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class UsbProto;
struct UsbProtoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern UsbProtoGlobalsTypeInternal UsbProto_globals_;
extern const ::google::protobuf::internal::ClassDataFull UsbProto_class_data_;
#else
extern const UsbProtoGlobalsTypeInternal UsbProto_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::GreaseweazleProto_BusType_internal_data_>
    internal::EnumTraitsImpl::value<::GreaseweazleProto_BusType>;
}  // namespace protobuf
}  // namespace google

enum GreaseweazleProto_BusType : int {
  GreaseweazleProto_BusType_BUSTYPE_INVALID = 0,
  GreaseweazleProto_BusType_IBMPC = 1,
  GreaseweazleProto_BusType_SHUGART = 2,
  GreaseweazleProto_BusType_APPLE2 = 3,
};

extern const uint32_t GreaseweazleProto_BusType_internal_data_[];
inline constexpr GreaseweazleProto_BusType GreaseweazleProto_BusType_BusType_MIN =
    static_cast<GreaseweazleProto_BusType>(0);
inline constexpr GreaseweazleProto_BusType GreaseweazleProto_BusType_BusType_MAX =
    static_cast<GreaseweazleProto_BusType>(3);
[[nodiscard]] inline bool GreaseweazleProto_BusType_IsValid(int value) {
  return 0 <= value && value <= 3;
}
inline constexpr int GreaseweazleProto_BusType_BusType_ARRAYSIZE = 3 + 1;
[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL
GreaseweazleProto_BusType_descriptor();
[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(GreaseweazleProto_BusType) {
  return GreaseweazleProto_BusType_descriptor();
}
template <typename T>
[[nodiscard]] const ::std::string& GreaseweazleProto_BusType_Name(T value) {
  static_assert(::std::is_same<T, GreaseweazleProto_BusType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to BusType_Name().");
  return GreaseweazleProto_BusType_Name(static_cast<GreaseweazleProto_BusType>(value));
}
template <>
[[nodiscard]] inline const ::std::string& GreaseweazleProto_BusType_Name(GreaseweazleProto_BusType value) {
  return ::google::protobuf::internal::NameOfDenseEnum<GreaseweazleProto_BusType_descriptor, 0, 3>(
      static_cast<int>(value));
}
[[nodiscard]] inline bool GreaseweazleProto_BusType_Parse(
    ::absl::string_view name, GreaseweazleProto_BusType* PROTOBUF_NONNULL value) {
  return ::google::protobuf::internal::ParseNamedEnum<GreaseweazleProto_BusType>(GreaseweazleProto_BusType_descriptor(), name,
                                           value);
}
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


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

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

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

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

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

  inline GreaseweazleProto(const GreaseweazleProto& from) : GreaseweazleProto(nullptr, from) {}
  inline GreaseweazleProto(GreaseweazleProto&& from) noexcept : GreaseweazleProto(nullptr, ::std::move(from)) {}
  inline GreaseweazleProto& operator=(const GreaseweazleProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline GreaseweazleProto& operator=(GreaseweazleProto&& 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 GreaseweazleProto& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<GreaseweazleProto>(&GreaseweazleProto_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(GreaseweazleProto& a, GreaseweazleProto& b) { a.Swap(&b); }
  inline void Swap(GreaseweazleProto* 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(GreaseweazleProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  [[nodiscard]] GreaseweazleProto* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return Super_::DefaultConstruct<GreaseweazleProto>(arena);
  }
  using Super_::CopyFrom;
  void CopyFrom(const GreaseweazleProto& from);
  using Super_::MergeFrom;
  void MergeFrom(const GreaseweazleProto& from) { GreaseweazleProto::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(GreaseweazleProto* PROTOBUF_NONNULL other);
 private:
  static ::absl::string_view FullMessageName() { return "GreaseweazleProto"; }

  explicit GreaseweazleProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GreaseweazleProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GreaseweazleProto& from);
  GreaseweazleProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GreaseweazleProto&& from) noexcept
      : GreaseweazleProto(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 BusType = GreaseweazleProto_BusType;
  static constexpr BusType BUSTYPE_INVALID = GreaseweazleProto_BusType_BUSTYPE_INVALID;
  static constexpr BusType IBMPC = GreaseweazleProto_BusType_IBMPC;
  static constexpr BusType SHUGART = GreaseweazleProto_BusType_SHUGART;
  static constexpr BusType APPLE2 = GreaseweazleProto_BusType_APPLE2;
  [[nodiscard]] static inline bool BusType_IsValid(int value) {
    return GreaseweazleProto_BusType_IsValid(value);
  }
  static constexpr BusType BusType_MIN = GreaseweazleProto_BusType_BusType_MIN;
  static constexpr BusType BusType_MAX = GreaseweazleProto_BusType_BusType_MAX;
  static constexpr int BusType_ARRAYSIZE = GreaseweazleProto_BusType_BusType_ARRAYSIZE;
  static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL BusType_descriptor() {
    return GreaseweazleProto_BusType_descriptor();
  }
  template <typename T>
  [[nodiscard]] static inline const ::std::string& BusType_Name(T value) {
    return GreaseweazleProto_BusType_Name(value);
  }
  [[nodiscard]] static inline bool BusType_Parse(
      ::absl::string_view name, BusType* PROTOBUF_NONNULL value) {
    return GreaseweazleProto_BusType_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kPortFieldNumber = 1,
    kBusTypeFieldNumber = 2,
  };
  // optional string port = 1 [json_name = "port", (.help) = "Greaseweazle serial port to use"];
  [[nodiscard]] bool has_port() const;
  void clear_port() ;
  [[nodiscard]] const ::std::string& port() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_port(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_port();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_port();
  void set_allocated_port(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_port() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_port(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_port();

  public:
  // optional .GreaseweazleProto.BusType bus_type = 2 [default = IBMPC, json_name = "busType", (.help) = "which FDD bus type is in use"];
  [[nodiscard]] bool has_bus_type() const;
  void clear_bus_type() ;
  [[nodiscard]] ::GreaseweazleProto_BusType bus_type() const;
  void set_bus_type(::GreaseweazleProto_BusType value);

  private:
  ::GreaseweazleProto_BusType _internal_bus_type() const;
  void _internal_set_bus_type(::GreaseweazleProto_BusType value);

  public:
  // @@protoc_insertion_point(class_scope:GreaseweazleProto)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          1, 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 GreaseweazleProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr port_;
    int bus_type_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_lib_2fusb_2fusb_2eproto;
};
// -------------------------------------------------------------------

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

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

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

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

  inline ApplesauceProto(const ApplesauceProto& from) : ApplesauceProto(nullptr, from) {}
  inline ApplesauceProto(ApplesauceProto&& from) noexcept : ApplesauceProto(nullptr, ::std::move(from)) {}
  inline ApplesauceProto& operator=(const ApplesauceProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline ApplesauceProto& operator=(ApplesauceProto&& 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 ApplesauceProto& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<ApplesauceProto>(&ApplesauceProto_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(ApplesauceProto& a, ApplesauceProto& b) { a.Swap(&b); }
  inline void Swap(ApplesauceProto* 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(ApplesauceProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  [[nodiscard]] ApplesauceProto* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return Super_::DefaultConstruct<ApplesauceProto>(arena);
  }
  using Super_::CopyFrom;
  void CopyFrom(const ApplesauceProto& from);
  using Super_::MergeFrom;
  void MergeFrom(const ApplesauceProto& from) { ApplesauceProto::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(ApplesauceProto* PROTOBUF_NONNULL other);
 private:
  static ::absl::string_view FullMessageName() { return "ApplesauceProto"; }

  explicit ApplesauceProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  ApplesauceProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ApplesauceProto& from);
  ApplesauceProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ApplesauceProto&& from) noexcept
      : ApplesauceProto(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 {
    kPortFieldNumber = 1,
    kVerboseFieldNumber = 2,
  };
  // optional string port = 1 [json_name = "port", (.help) = "Applesauce serial port to use"];
  [[nodiscard]] bool has_port() const;
  void clear_port() ;
  [[nodiscard]] const ::std::string& port() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_port(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_port();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_port();
  void set_allocated_port(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_port() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_port(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_port();

  public:
  // optional bool verbose = 2 [default = false, json_name = "verbose", (.help) = "Enable verbose protocol logging"];
  [[nodiscard]] bool has_verbose() const;
  void clear_verbose() ;
  [[nodiscard]] bool verbose() const;
  void set_verbose(bool value);

  private:
  bool _internal_verbose() const;
  void _internal_set_verbose(bool value);

  public:
  // @@protoc_insertion_point(class_scope:ApplesauceProto)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          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 ApplesauceProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr port_;
    bool verbose_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_lib_2fusb_2fusb_2eproto;
};
// -------------------------------------------------------------------

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

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

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

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

  inline UsbProto(const UsbProto& from) : UsbProto(nullptr, from) {}
  inline UsbProto(UsbProto&& from) noexcept : UsbProto(nullptr, ::std::move(from)) {}
  inline UsbProto& operator=(const UsbProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline UsbProto& operator=(UsbProto&& 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 UsbProto& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<UsbProto>(&UsbProto_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(UsbProto& a, UsbProto& b) { a.Swap(&b); }
  inline void Swap(UsbProto* 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(UsbProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  [[nodiscard]] UsbProto* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return Super_::DefaultConstruct<UsbProto>(arena);
  }
  using Super_::CopyFrom;
  void CopyFrom(const UsbProto& from);
  using Super_::MergeFrom;
  void MergeFrom(const UsbProto& from) { UsbProto::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(UsbProto* PROTOBUF_NONNULL other);
 private:
  static ::absl::string_view FullMessageName() { return "UsbProto"; }

  explicit UsbProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  UsbProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UsbProto& from);
  UsbProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, UsbProto&& from) noexcept
      : UsbProto(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 {
    kSerialFieldNumber = 1,
    kGreaseweazleFieldNumber = 2,
    kApplesauceFieldNumber = 3,
  };
  // optional string serial = 1 [json_name = "serial", (.help) = "serial number of FluxEngine or Greaseweazle device to use"];
  [[nodiscard]] bool has_serial() const;
  void clear_serial() ;
  [[nodiscard]] const ::std::string& serial() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_serial(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_serial();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_serial();
  void set_allocated_serial(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_serial() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_serial(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_serial();

  public:
  // optional .GreaseweazleProto greaseweazle = 2 [json_name = "greaseweazle", (.help) = "Greaseweazle-specific options"];
  [[nodiscard]] bool has_greaseweazle() const;
  void clear_greaseweazle() ;
  [[nodiscard]] const ::GreaseweazleProto& greaseweazle() const;
  [[nodiscard]] ::GreaseweazleProto* PROTOBUF_NULLABLE release_greaseweazle();
  ::GreaseweazleProto* PROTOBUF_NONNULL mutable_greaseweazle();
  void set_allocated_greaseweazle(::GreaseweazleProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_greaseweazle(::GreaseweazleProto* PROTOBUF_NULLABLE value);
  ::GreaseweazleProto* PROTOBUF_NULLABLE unsafe_arena_release_greaseweazle();

  private:
  const ::GreaseweazleProto& _internal_greaseweazle() const;
  ::GreaseweazleProto* PROTOBUF_NONNULL _internal_mutable_greaseweazle();

  public:
  // optional .ApplesauceProto applesauce = 3 [json_name = "applesauce", (.help) = "Applesauce-specific options"];
  [[nodiscard]] bool has_applesauce() const;
  void clear_applesauce() ;
  [[nodiscard]] const ::ApplesauceProto& applesauce() const;
  [[nodiscard]] ::ApplesauceProto* PROTOBUF_NULLABLE release_applesauce();
  ::ApplesauceProto* PROTOBUF_NONNULL mutable_applesauce();
  void set_allocated_applesauce(::ApplesauceProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_applesauce(::ApplesauceProto* PROTOBUF_NULLABLE value);
  ::ApplesauceProto* PROTOBUF_NULLABLE unsafe_arena_release_applesauce();

  private:
  const ::ApplesauceProto& _internal_applesauce() const;
  ::ApplesauceProto* PROTOBUF_NONNULL _internal_mutable_applesauce();

  public:
  // @@protoc_insertion_point(class_scope:UsbProto)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 3,
                          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 UsbProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr serial_;
    ::GreaseweazleProto* PROTOBUF_NULLABLE greaseweazle_;
    ::ApplesauceProto* PROTOBUF_NULLABLE applesauce_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_lib_2fusb_2fusb_2eproto;
};

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




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


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

// GreaseweazleProto

// optional string port = 1 [json_name = "port", (.help) = "Greaseweazle serial port to use"];
inline bool GreaseweazleProto::has_port() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void GreaseweazleProto::clear_port() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.port_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& GreaseweazleProto::port() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:GreaseweazleProto.port)
  return _internal_port();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void GreaseweazleProto::set_port(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.port_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:GreaseweazleProto.port)
}
inline ::std::string* PROTOBUF_NONNULL GreaseweazleProto::mutable_port()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_port();
  // @@protoc_insertion_point(field_mutable:GreaseweazleProto.port)
  return _s;
}
inline const ::std::string& GreaseweazleProto::_internal_port() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.port_.Get();
}
inline void GreaseweazleProto::_internal_set_port(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.port_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL GreaseweazleProto::_internal_mutable_port() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.port_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE GreaseweazleProto::release_port() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:GreaseweazleProto.port)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.port_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.port_.Set("", GetArena());
  }
  return released;
}
inline void GreaseweazleProto::set_allocated_port(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.port_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.port_.IsDefault()) {
    _impl_.port_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:GreaseweazleProto.port)
}

// optional .GreaseweazleProto.BusType bus_type = 2 [default = IBMPC, json_name = "busType", (.help) = "which FDD bus type is in use"];
inline bool GreaseweazleProto::has_bus_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void GreaseweazleProto::clear_bus_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.bus_type_ = 1;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::GreaseweazleProto_BusType GreaseweazleProto::bus_type() const {
  // @@protoc_insertion_point(field_get:GreaseweazleProto.bus_type)
  return _internal_bus_type();
}
inline void GreaseweazleProto::set_bus_type(::GreaseweazleProto_BusType value) {
  _internal_set_bus_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:GreaseweazleProto.bus_type)
}
inline ::GreaseweazleProto_BusType GreaseweazleProto::_internal_bus_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::GreaseweazleProto_BusType>(_impl_.bus_type_);
}
inline void GreaseweazleProto::_internal_set_bus_type(::GreaseweazleProto_BusType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::GreaseweazleProto_BusType_internal_data_));
                                          _impl_.bus_type_ = value;
}

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

// ApplesauceProto

// optional string port = 1 [json_name = "port", (.help) = "Applesauce serial port to use"];
inline bool ApplesauceProto::has_port() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void ApplesauceProto::clear_port() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.port_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& ApplesauceProto::port() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:ApplesauceProto.port)
  return _internal_port();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void ApplesauceProto::set_port(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.port_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:ApplesauceProto.port)
}
inline ::std::string* PROTOBUF_NONNULL ApplesauceProto::mutable_port()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_port();
  // @@protoc_insertion_point(field_mutable:ApplesauceProto.port)
  return _s;
}
inline const ::std::string& ApplesauceProto::_internal_port() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.port_.Get();
}
inline void ApplesauceProto::_internal_set_port(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.port_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL ApplesauceProto::_internal_mutable_port() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.port_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE ApplesauceProto::release_port() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:ApplesauceProto.port)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.port_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.port_.Set("", GetArena());
  }
  return released;
}
inline void ApplesauceProto::set_allocated_port(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.port_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.port_.IsDefault()) {
    _impl_.port_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:ApplesauceProto.port)
}

// optional bool verbose = 2 [default = false, json_name = "verbose", (.help) = "Enable verbose protocol logging"];
inline bool ApplesauceProto::has_verbose() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void ApplesauceProto::clear_verbose() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.verbose_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline bool ApplesauceProto::verbose() const {
  // @@protoc_insertion_point(field_get:ApplesauceProto.verbose)
  return _internal_verbose();
}
inline void ApplesauceProto::set_verbose(bool value) {
  _internal_set_verbose(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:ApplesauceProto.verbose)
}
inline bool ApplesauceProto::_internal_verbose() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.verbose_;
}
inline void ApplesauceProto::_internal_set_verbose(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.verbose_ = value;
}

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

// UsbProto

// optional string serial = 1 [json_name = "serial", (.help) = "serial number of FluxEngine or Greaseweazle device to use"];
inline bool UsbProto::has_serial() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void UsbProto::clear_serial() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.serial_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& UsbProto::serial() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:UsbProto.serial)
  return _internal_serial();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void UsbProto::set_serial(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.serial_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:UsbProto.serial)
}
inline ::std::string* PROTOBUF_NONNULL UsbProto::mutable_serial()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_serial();
  // @@protoc_insertion_point(field_mutable:UsbProto.serial)
  return _s;
}
inline const ::std::string& UsbProto::_internal_serial() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.serial_.Get();
}
inline void UsbProto::_internal_set_serial(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.serial_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL UsbProto::_internal_mutable_serial() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.serial_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE UsbProto::release_serial() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:UsbProto.serial)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.serial_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.serial_.Set("", GetArena());
  }
  return released;
}
inline void UsbProto::set_allocated_serial(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.serial_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.serial_.IsDefault()) {
    _impl_.serial_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:UsbProto.serial)
}

// optional .GreaseweazleProto greaseweazle = 2 [json_name = "greaseweazle", (.help) = "Greaseweazle-specific options"];
inline bool UsbProto::has_greaseweazle() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.greaseweazle_ != nullptr);
  return value;
}
inline void UsbProto::clear_greaseweazle() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.greaseweazle_ != nullptr) _impl_.greaseweazle_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::GreaseweazleProto& UsbProto::_internal_greaseweazle() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::GreaseweazleProto* p = _impl_.greaseweazle_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::GreaseweazleProto>(&::GreaseweazleProto_globals_);
}
inline const ::GreaseweazleProto& UsbProto::greaseweazle() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:UsbProto.greaseweazle)
  return _internal_greaseweazle();
}
inline void UsbProto::unsafe_arena_set_allocated_greaseweazle(
    ::GreaseweazleProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.greaseweazle_);
  }
  _impl_.greaseweazle_ = reinterpret_cast<::GreaseweazleProto*>(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:UsbProto.greaseweazle)
}
inline ::GreaseweazleProto* PROTOBUF_NULLABLE UsbProto::release_greaseweazle() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::GreaseweazleProto* released = _impl_.greaseweazle_;
  _impl_.greaseweazle_ = 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 ::GreaseweazleProto* PROTOBUF_NULLABLE UsbProto::unsafe_arena_release_greaseweazle() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:UsbProto.greaseweazle)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::GreaseweazleProto* temp = _impl_.greaseweazle_;
  _impl_.greaseweazle_ = nullptr;
  return temp;
}
inline ::GreaseweazleProto* PROTOBUF_NONNULL UsbProto::_internal_mutable_greaseweazle() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.greaseweazle_ == nullptr) {
    auto* p = Super_::DefaultConstruct<::GreaseweazleProto>(GetArena());
    _impl_.greaseweazle_ = reinterpret_cast<::GreaseweazleProto*>(p);
  }
  return _impl_.greaseweazle_;
}
inline ::GreaseweazleProto* PROTOBUF_NONNULL UsbProto::mutable_greaseweazle()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::GreaseweazleProto* _msg = _internal_mutable_greaseweazle();
  // @@protoc_insertion_point(field_mutable:UsbProto.greaseweazle)
  return _msg;
}
inline void UsbProto::set_allocated_greaseweazle(::GreaseweazleProto* 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_.greaseweazle_);
  }

  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_.greaseweazle_ = reinterpret_cast<::GreaseweazleProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:UsbProto.greaseweazle)
}

// optional .ApplesauceProto applesauce = 3 [json_name = "applesauce", (.help) = "Applesauce-specific options"];
inline bool UsbProto::has_applesauce() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  PROTOBUF_ASSUME(!value || _impl_.applesauce_ != nullptr);
  return value;
}
inline void UsbProto::clear_applesauce() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.applesauce_ != nullptr) _impl_.applesauce_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline const ::ApplesauceProto& UsbProto::_internal_applesauce() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::ApplesauceProto* p = _impl_.applesauce_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::ApplesauceProto>(&::ApplesauceProto_globals_);
}
inline const ::ApplesauceProto& UsbProto::applesauce() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:UsbProto.applesauce)
  return _internal_applesauce();
}
inline void UsbProto::unsafe_arena_set_allocated_applesauce(
    ::ApplesauceProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.applesauce_);
  }
  _impl_.applesauce_ = reinterpret_cast<::ApplesauceProto*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:UsbProto.applesauce)
}
inline ::ApplesauceProto* PROTOBUF_NULLABLE UsbProto::release_applesauce() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::ApplesauceProto* released = _impl_.applesauce_;
  _impl_.applesauce_ = 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 ::ApplesauceProto* PROTOBUF_NULLABLE UsbProto::unsafe_arena_release_applesauce() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:UsbProto.applesauce)

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::ApplesauceProto* temp = _impl_.applesauce_;
  _impl_.applesauce_ = nullptr;
  return temp;
}
inline ::ApplesauceProto* PROTOBUF_NONNULL UsbProto::_internal_mutable_applesauce() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.applesauce_ == nullptr) {
    auto* p = Super_::DefaultConstruct<::ApplesauceProto>(GetArena());
    _impl_.applesauce_ = reinterpret_cast<::ApplesauceProto*>(p);
  }
  return _impl_.applesauce_;
}
inline ::ApplesauceProto* PROTOBUF_NONNULL UsbProto::mutable_applesauce()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::ApplesauceProto* _msg = _internal_mutable_applesauce();
  // @@protoc_insertion_point(field_mutable:UsbProto.applesauce)
  return _msg;
}
inline void UsbProto::set_allocated_applesauce(::ApplesauceProto* 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_.applesauce_);
  }

  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], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }

  _impl_.applesauce_ = reinterpret_cast<::ApplesauceProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:UsbProto.applesauce)
}

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

// @@protoc_insertion_point(namespace_scope)


namespace google {
namespace protobuf {

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

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

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

#endif  // lib_2fusb_2fusb_2eproto_2epb_2eh
