diff --git a/.gitignore b/.gitignore index c50dbf0..1289350 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ cmake-build-*/ /build /.vs *.DotSettings.user +.aider* diff --git a/src/backend/CMakeLists.txt b/src/backend/CMakeLists.txt index 1376449..acea152 100644 --- a/src/backend/CMakeLists.txt +++ b/src/backend/CMakeLists.txt @@ -26,6 +26,9 @@ include(cmake_script/detect_os.cmake) include(cmake_script/plugin_host_register.cmake) include(cmake_script/configure_glfw_native.cmake) +include(CTest) +enable_testing() + # 使用自定义函数来配置项目的编译选项。 # @param STANDARD: 指定C++语言标准,此处为 C++23。 # @param INTERFACE_TARGET: 创建一个名为 config_target 的 INTERFACE 目标, @@ -72,3 +75,4 @@ add_subdirectory(src/misc) add_subdirectory(src/vst2_host) add_subdirectory(src/vst3_host) add_subdirectory(src/engine) +add_subdirectory(tests) diff --git a/src/backend/proto/common/domain.grpc.pb.cc b/src/backend/proto/common/domain.grpc.pb.cc deleted file mode 100644 index 6b983fd..0000000 --- a/src/backend/proto/common/domain.grpc.pb.cc +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: common/domain.proto - -#include "common/domain.pb.h" -#include "common/domain.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace daw { -namespace common { - -} // namespace daw -} // namespace common - diff --git a/src/backend/proto/common/domain.grpc.pb.h b/src/backend/proto/common/domain.grpc.pb.h deleted file mode 100644 index 5a76b65..0000000 --- a/src/backend/proto/common/domain.grpc.pb.h +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: common/domain.proto -#ifndef GRPC_common_2fdomain_2eproto__INCLUDED -#define GRPC_common_2fdomain_2eproto__INCLUDED - -#include "common/domain.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace daw { -namespace common { - -} // namespace common -} // namespace daw - - -#include -#endif // GRPC_common_2fdomain_2eproto__INCLUDED diff --git a/src/backend/proto/common/domain.pb.cc b/src/backend/proto/common/domain.pb.cc deleted file mode 100644 index dc174ba..0000000 --- a/src/backend/proto/common/domain.pb.cc +++ /dev/null @@ -1,1780 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: common/domain.proto -// Protobuf C++ Version: 5.29.3 - -#include "common/domain.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace daw { -namespace common { - -inline constexpr PluginId::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PluginId::PluginId(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct PluginIdDefaultTypeInternal { - PROTOBUF_CONSTEXPR PluginIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PluginIdDefaultTypeInternal() {} - union { - PluginId _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PluginIdDefaultTypeInternal _PluginId_default_instance_; - -inline constexpr ParameterId::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ParameterId::ParameterId(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ParameterIdDefaultTypeInternal { - PROTOBUF_CONSTEXPR ParameterIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ParameterIdDefaultTypeInternal() {} - union { - ParameterId _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParameterIdDefaultTypeInternal _ParameterId_default_instance_; - -inline constexpr ParameterChange::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - plugin_id_{nullptr}, - parameter_id_{nullptr}, - sample_offset_{::uint64_t{0u}}, - value_{0} {} - -template -PROTOBUF_CONSTEXPR ParameterChange::ParameterChange(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ParameterChangeDefaultTypeInternal { - PROTOBUF_CONSTEXPR ParameterChangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ParameterChangeDefaultTypeInternal() {} - union { - ParameterChange _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParameterChangeDefaultTypeInternal _ParameterChange_default_instance_; - -inline constexpr MidiEvent::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - raw_midi_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - plugin_id_{nullptr}, - sample_offset_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR MidiEvent::MidiEvent(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct MidiEventDefaultTypeInternal { - PROTOBUF_CONSTEXPR MidiEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MidiEventDefaultTypeInternal() {} - union { - MidiEvent _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MidiEventDefaultTypeInternal _MidiEvent_default_instance_; - -inline constexpr AudioBufferRef::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - plugin_id_{nullptr}, - shm_id_{::uint64_t{0u}}, - offset_{0u}, - frames_{0u}, - format_{static_cast< ::daw::common::SampleFormat >(0)}, - channels_{0u} {} - -template -PROTOBUF_CONSTEXPR AudioBufferRef::AudioBufferRef(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct AudioBufferRefDefaultTypeInternal { - PROTOBUF_CONSTEXPR AudioBufferRefDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AudioBufferRefDefaultTypeInternal() {} - union { - AudioBufferRef _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioBufferRefDefaultTypeInternal _AudioBufferRef_default_instance_; -} // namespace common -} // namespace daw -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2fdomain_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_common_2fdomain_2eproto = nullptr; -const ::uint32_t - TableStruct_common_2fdomain_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::common::PluginId, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::common::PluginId, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterId, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterId, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterChange, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterChange, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterChange, _impl_.plugin_id_), - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterChange, _impl_.parameter_id_), - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterChange, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::daw::common::ParameterChange, _impl_.sample_offset_), - 0, - 1, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::daw::common::MidiEvent, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::daw::common::MidiEvent, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::common::MidiEvent, _impl_.plugin_id_), - PROTOBUF_FIELD_OFFSET(::daw::common::MidiEvent, _impl_.raw_midi_), - PROTOBUF_FIELD_OFFSET(::daw::common::MidiEvent, _impl_.sample_offset_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _impl_.plugin_id_), - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _impl_.shm_id_), - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _impl_.frames_), - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _impl_.format_), - PROTOBUF_FIELD_OFFSET(::daw::common::AudioBufferRef, _impl_.channels_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::daw::common::PluginId)}, - {9, -1, -1, sizeof(::daw::common::ParameterId)}, - {18, 30, -1, sizeof(::daw::common::ParameterChange)}, - {34, 45, -1, sizeof(::daw::common::MidiEvent)}, - {48, 62, -1, sizeof(::daw::common::AudioBufferRef)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::daw::common::_PluginId_default_instance_._instance, - &::daw::common::_ParameterId_default_instance_._instance, - &::daw::common::_ParameterChange_default_instance_._instance, - &::daw::common::_MidiEvent_default_instance_._instance, - &::daw::common::_AudioBufferRef_default_instance_._instance, -}; -const char descriptor_table_protodef_common_2fdomain_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\023common/domain.proto\022\ndaw.common\"\031\n\010Plu" - "ginId\022\r\n\005value\030\001 \001(\r\"\034\n\013ParameterId\022\r\n\005v" - "alue\030\001 \001(\r\"\217\001\n\017ParameterChange\022\'\n\tplugin" - "_id\030\001 \001(\0132\024.daw.common.PluginId\022-\n\014param" - "eter_id\030\002 \001(\0132\027.daw.common.ParameterId\022\r" - "\n\005value\030\003 \001(\002\022\025\n\rsample_offset\030\004 \001(\004\"]\n\t" - "MidiEvent\022\'\n\tplugin_id\030\001 \001(\0132\024.daw.commo" - "n.PluginId\022\020\n\010raw_midi\030\002 \001(\014\022\025\n\rsample_o" - "ffset\030\003 \001(\004\"\245\001\n\016AudioBufferRef\022\'\n\tplugin" - "_id\030\001 \001(\0132\024.daw.common.PluginId\022\016\n\006shm_i" - "d\030\002 \001(\004\022\016\n\006offset\030\003 \001(\r\022\016\n\006frames\030\004 \001(\r\022" - "(\n\006format\030\005 \001(\0162\030.daw.common.SampleForma" - "t\022\020\n\010channels\030\006 \001(\r*)\n\014SampleFormat\022\007\n\003F" - "32\020\000\022\007\n\003F64\020\001\022\007\n\003I16\020\002b\006proto3" -}; -static ::absl::once_flag descriptor_table_common_2fdomain_2eproto_once; -PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_common_2fdomain_2eproto = { - false, - false, - 550, - descriptor_table_protodef_common_2fdomain_2eproto, - "common/domain.proto", - &descriptor_table_common_2fdomain_2eproto_once, - nullptr, - 0, - 5, - schemas, - file_default_instances, - TableStruct_common_2fdomain_2eproto::offsets, - file_level_enum_descriptors_common_2fdomain_2eproto, - file_level_service_descriptors_common_2fdomain_2eproto, -}; -namespace daw { -namespace common { -const ::google::protobuf::EnumDescriptor* SampleFormat_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2fdomain_2eproto); - return file_level_enum_descriptors_common_2fdomain_2eproto[0]; -} -PROTOBUF_CONSTINIT const uint32_t SampleFormat_internal_data_[] = { - 196608u, 0u, }; -bool SampleFormat_IsValid(int value) { - return 0 <= value && value <= 2; -} -// =================================================================== - -class PluginId::_Internal { - public: -}; - -PluginId::PluginId(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.common.PluginId) -} -PluginId::PluginId( - ::google::protobuf::Arena* arena, const PluginId& from) - : PluginId(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE PluginId::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void PluginId::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; -} -PluginId::~PluginId() { - // @@protoc_insertion_point(destructor:daw.common.PluginId) - SharedDtor(*this); -} -inline void PluginId::SharedDtor(MessageLite& self) { - PluginId& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PluginId::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) PluginId(arena); -} -constexpr auto PluginId::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PluginId), - alignof(PluginId)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull PluginId::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_PluginId_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &PluginId::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &PluginId::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &PluginId::ByteSizeLong, - &PluginId::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(PluginId, _impl_._cached_size_), - false, - }, - &PluginId::kDescriptorMethods, - &descriptor_table_common_2fdomain_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* PluginId::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PluginId::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::common::PluginId>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint32 value = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PluginId, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PluginId, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 value = 1; - {PROTOBUF_FIELD_OFFSET(PluginId, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -PROTOBUF_NOINLINE void PluginId::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.common.PluginId) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* PluginId::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const PluginId& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* PluginId::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const PluginId& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.common.PluginId) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 value = 1; - if (this_._internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this_._internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.common.PluginId) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t PluginId::ByteSizeLong(const MessageLite& base) { - const PluginId& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t PluginId::ByteSizeLong() const { - const PluginId& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.common.PluginId) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // uint32 value = 1; - if (this_._internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_value()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void PluginId::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.common.PluginId) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void PluginId::CopyFrom(const PluginId& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.common.PluginId) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void PluginId::InternalSwap(PluginId* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.value_, other->_impl_.value_); -} - -::google::protobuf::Metadata PluginId::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ParameterId::_Internal { - public: -}; - -ParameterId::ParameterId(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.common.ParameterId) -} -ParameterId::ParameterId( - ::google::protobuf::Arena* arena, const ParameterId& from) - : ParameterId(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE ParameterId::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ParameterId::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; -} -ParameterId::~ParameterId() { - // @@protoc_insertion_point(destructor:daw.common.ParameterId) - SharedDtor(*this); -} -inline void ParameterId::SharedDtor(MessageLite& self) { - ParameterId& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* ParameterId::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) ParameterId(arena); -} -constexpr auto ParameterId::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ParameterId), - alignof(ParameterId)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ParameterId::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ParameterId_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ParameterId::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ParameterId::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ParameterId::ByteSizeLong, - &ParameterId::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ParameterId, _impl_._cached_size_), - false, - }, - &ParameterId::kDescriptorMethods, - &descriptor_table_common_2fdomain_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ParameterId::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ParameterId::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::common::ParameterId>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint32 value = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParameterId, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ParameterId, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 value = 1; - {PROTOBUF_FIELD_OFFSET(ParameterId, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -PROTOBUF_NOINLINE void ParameterId::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.common.ParameterId) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ParameterId::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ParameterId& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ParameterId::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ParameterId& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.common.ParameterId) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 value = 1; - if (this_._internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this_._internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.common.ParameterId) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ParameterId::ByteSizeLong(const MessageLite& base) { - const ParameterId& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ParameterId::ByteSizeLong() const { - const ParameterId& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.common.ParameterId) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // uint32 value = 1; - if (this_._internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_value()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void ParameterId::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.common.ParameterId) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ParameterId::CopyFrom(const ParameterId& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.common.ParameterId) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ParameterId::InternalSwap(ParameterId* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.value_, other->_impl_.value_); -} - -::google::protobuf::Metadata ParameterId::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ParameterChange::_Internal { - public: - using HasBits = - decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_._has_bits_); -}; - -ParameterChange::ParameterChange(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.common.ParameterChange) -} -inline PROTOBUF_NDEBUG_INLINE ParameterChange::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::common::ParameterChange& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ParameterChange::ParameterChange( - ::google::protobuf::Arena* arena, - const ParameterChange& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ParameterChange* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.plugin_id_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::daw::common::PluginId>( - arena, *from._impl_.plugin_id_) - : nullptr; - _impl_.parameter_id_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::daw::common::ParameterId>( - arena, *from._impl_.parameter_id_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, sample_offset_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, sample_offset_), - offsetof(Impl_, value_) - - offsetof(Impl_, sample_offset_) + - sizeof(Impl_::value_)); - - // @@protoc_insertion_point(copy_constructor:daw.common.ParameterChange) -} -inline PROTOBUF_NDEBUG_INLINE ParameterChange::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ParameterChange::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, plugin_id_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, plugin_id_) + - sizeof(Impl_::value_)); -} -ParameterChange::~ParameterChange() { - // @@protoc_insertion_point(destructor:daw.common.ParameterChange) - SharedDtor(*this); -} -inline void ParameterChange::SharedDtor(MessageLite& self) { - ParameterChange& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.plugin_id_; - delete this_._impl_.parameter_id_; - this_._impl_.~Impl_(); -} - -inline void* ParameterChange::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) ParameterChange(arena); -} -constexpr auto ParameterChange::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ParameterChange), - alignof(ParameterChange)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ParameterChange::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ParameterChange_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ParameterChange::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ParameterChange::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ParameterChange::ByteSizeLong, - &ParameterChange::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_._cached_size_), - false, - }, - &ParameterChange::kDescriptorMethods, - &descriptor_table_common_2fdomain_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ParameterChange::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 0, 2> ParameterChange::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::common::ParameterChange>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 sample_offset = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ParameterChange, _impl_.sample_offset_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.sample_offset_)}}, - // .daw.common.PluginId plugin_id = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.plugin_id_)}}, - // .daw.common.ParameterId parameter_id = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.parameter_id_)}}, - // float value = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .daw.common.PluginId plugin_id = 1; - {PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.plugin_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .daw.common.ParameterId parameter_id = 2; - {PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.parameter_id_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // float value = 3; - {PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // uint64 sample_offset = 4; - {PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.sample_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::common::PluginId>()}, - {::_pbi::TcParser::GetTable<::daw::common::ParameterId>()}, - }}, {{ - }}, -}; - -PROTOBUF_NOINLINE void ParameterChange::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.common.ParameterChange) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.plugin_id_ != nullptr); - _impl_.plugin_id_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.parameter_id_ != nullptr); - _impl_.parameter_id_->Clear(); - } - } - ::memset(&_impl_.sample_offset_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.value_) - - reinterpret_cast(&_impl_.sample_offset_)) + sizeof(_impl_.value_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ParameterChange::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ParameterChange& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ParameterChange::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ParameterChange& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.common.ParameterChange) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // .daw.common.PluginId plugin_id = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.plugin_id_, this_._impl_.plugin_id_->GetCachedSize(), target, - stream); - } - - // .daw.common.ParameterId parameter_id = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.parameter_id_, this_._impl_.parameter_id_->GetCachedSize(), target, - stream); - } - - // float value = 3; - if (::absl::bit_cast<::uint32_t>(this_._internal_value()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this_._internal_value(), target); - } - - // uint64 sample_offset = 4; - if (this_._internal_sample_offset() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this_._internal_sample_offset(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.common.ParameterChange) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ParameterChange::ByteSizeLong(const MessageLite& base) { - const ParameterChange& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ParameterChange::ByteSizeLong() const { - const ParameterChange& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.common.ParameterChange) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .daw.common.PluginId plugin_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.plugin_id_); - } - // .daw.common.ParameterId parameter_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.parameter_id_); - } - } - { - // uint64 sample_offset = 4; - if (this_._internal_sample_offset() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_sample_offset()); - } - // float value = 3; - if (::absl::bit_cast<::uint32_t>(this_._internal_value()) != 0) { - total_size += 5; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void ParameterChange::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.common.ParameterChange) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.plugin_id_ != nullptr); - if (_this->_impl_.plugin_id_ == nullptr) { - _this->_impl_.plugin_id_ = - ::google::protobuf::Message::CopyConstruct<::daw::common::PluginId>(arena, *from._impl_.plugin_id_); - } else { - _this->_impl_.plugin_id_->MergeFrom(*from._impl_.plugin_id_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.parameter_id_ != nullptr); - if (_this->_impl_.parameter_id_ == nullptr) { - _this->_impl_.parameter_id_ = - ::google::protobuf::Message::CopyConstruct<::daw::common::ParameterId>(arena, *from._impl_.parameter_id_); - } else { - _this->_impl_.parameter_id_->MergeFrom(*from._impl_.parameter_id_); - } - } - } - if (from._internal_sample_offset() != 0) { - _this->_impl_.sample_offset_ = from._impl_.sample_offset_; - } - if (::absl::bit_cast<::uint32_t>(from._internal_value()) != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ParameterChange::CopyFrom(const ParameterChange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.common.ParameterChange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ParameterChange::InternalSwap(ParameterChange* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.value_) - + sizeof(ParameterChange::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(ParameterChange, _impl_.plugin_id_)>( - reinterpret_cast(&_impl_.plugin_id_), - reinterpret_cast(&other->_impl_.plugin_id_)); -} - -::google::protobuf::Metadata ParameterChange::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class MidiEvent::_Internal { - public: - using HasBits = - decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_._has_bits_); -}; - -MidiEvent::MidiEvent(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.common.MidiEvent) -} -inline PROTOBUF_NDEBUG_INLINE MidiEvent::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::common::MidiEvent& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - raw_midi_(arena, from.raw_midi_) {} - -MidiEvent::MidiEvent( - ::google::protobuf::Arena* arena, - const MidiEvent& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - MidiEvent* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.plugin_id_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::daw::common::PluginId>( - arena, *from._impl_.plugin_id_) - : nullptr; - _impl_.sample_offset_ = from._impl_.sample_offset_; - - // @@protoc_insertion_point(copy_constructor:daw.common.MidiEvent) -} -inline PROTOBUF_NDEBUG_INLINE MidiEvent::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - raw_midi_(arena) {} - -inline void MidiEvent::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, plugin_id_), - 0, - offsetof(Impl_, sample_offset_) - - offsetof(Impl_, plugin_id_) + - sizeof(Impl_::sample_offset_)); -} -MidiEvent::~MidiEvent() { - // @@protoc_insertion_point(destructor:daw.common.MidiEvent) - SharedDtor(*this); -} -inline void MidiEvent::SharedDtor(MessageLite& self) { - MidiEvent& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.raw_midi_.Destroy(); - delete this_._impl_.plugin_id_; - this_._impl_.~Impl_(); -} - -inline void* MidiEvent::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) MidiEvent(arena); -} -constexpr auto MidiEvent::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MidiEvent), - alignof(MidiEvent)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull MidiEvent::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_MidiEvent_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &MidiEvent::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &MidiEvent::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &MidiEvent::ByteSizeLong, - &MidiEvent::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_._cached_size_), - false, - }, - &MidiEvent::kDescriptorMethods, - &descriptor_table_common_2fdomain_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* MidiEvent::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> MidiEvent::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::common::MidiEvent>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .daw.common.PluginId plugin_id = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.plugin_id_)}}, - // bytes raw_midi = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.raw_midi_)}}, - // uint64 sample_offset = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MidiEvent, _impl_.sample_offset_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.sample_offset_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .daw.common.PluginId plugin_id = 1; - {PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.plugin_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes raw_midi = 2; - {PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.raw_midi_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 sample_offset = 3; - {PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.sample_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::common::PluginId>()}, - }}, {{ - }}, -}; - -PROTOBUF_NOINLINE void MidiEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.common.MidiEvent) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.raw_midi_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.plugin_id_ != nullptr); - _impl_.plugin_id_->Clear(); - } - _impl_.sample_offset_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* MidiEvent::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const MidiEvent& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* MidiEvent::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const MidiEvent& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.common.MidiEvent) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // .daw.common.PluginId plugin_id = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.plugin_id_, this_._impl_.plugin_id_->GetCachedSize(), target, - stream); - } - - // bytes raw_midi = 2; - if (!this_._internal_raw_midi().empty()) { - const std::string& _s = this_._internal_raw_midi(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // uint64 sample_offset = 3; - if (this_._internal_sample_offset() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this_._internal_sample_offset(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.common.MidiEvent) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t MidiEvent::ByteSizeLong(const MessageLite& base) { - const MidiEvent& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t MidiEvent::ByteSizeLong() const { - const MidiEvent& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.common.MidiEvent) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // bytes raw_midi = 2; - if (!this_._internal_raw_midi().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_raw_midi()); - } - } - { - // .daw.common.PluginId plugin_id = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.plugin_id_); - } - } - { - // uint64 sample_offset = 3; - if (this_._internal_sample_offset() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_sample_offset()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void MidiEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.common.MidiEvent) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_raw_midi().empty()) { - _this->_internal_set_raw_midi(from._internal_raw_midi()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.plugin_id_ != nullptr); - if (_this->_impl_.plugin_id_ == nullptr) { - _this->_impl_.plugin_id_ = - ::google::protobuf::Message::CopyConstruct<::daw::common::PluginId>(arena, *from._impl_.plugin_id_); - } else { - _this->_impl_.plugin_id_->MergeFrom(*from._impl_.plugin_id_); - } - } - if (from._internal_sample_offset() != 0) { - _this->_impl_.sample_offset_ = from._impl_.sample_offset_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void MidiEvent::CopyFrom(const MidiEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.common.MidiEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void MidiEvent::InternalSwap(MidiEvent* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.raw_midi_, &other->_impl_.raw_midi_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.sample_offset_) - + sizeof(MidiEvent::_impl_.sample_offset_) - - PROTOBUF_FIELD_OFFSET(MidiEvent, _impl_.plugin_id_)>( - reinterpret_cast(&_impl_.plugin_id_), - reinterpret_cast(&other->_impl_.plugin_id_)); -} - -::google::protobuf::Metadata MidiEvent::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class AudioBufferRef::_Internal { - public: - using HasBits = - decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_._has_bits_); -}; - -AudioBufferRef::AudioBufferRef(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.common.AudioBufferRef) -} -inline PROTOBUF_NDEBUG_INLINE AudioBufferRef::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::common::AudioBufferRef& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -AudioBufferRef::AudioBufferRef( - ::google::protobuf::Arena* arena, - const AudioBufferRef& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - AudioBufferRef* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.plugin_id_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::daw::common::PluginId>( - arena, *from._impl_.plugin_id_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, shm_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, shm_id_), - offsetof(Impl_, channels_) - - offsetof(Impl_, shm_id_) + - sizeof(Impl_::channels_)); - - // @@protoc_insertion_point(copy_constructor:daw.common.AudioBufferRef) -} -inline PROTOBUF_NDEBUG_INLINE AudioBufferRef::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void AudioBufferRef::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, plugin_id_), - 0, - offsetof(Impl_, channels_) - - offsetof(Impl_, plugin_id_) + - sizeof(Impl_::channels_)); -} -AudioBufferRef::~AudioBufferRef() { - // @@protoc_insertion_point(destructor:daw.common.AudioBufferRef) - SharedDtor(*this); -} -inline void AudioBufferRef::SharedDtor(MessageLite& self) { - AudioBufferRef& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.plugin_id_; - this_._impl_.~Impl_(); -} - -inline void* AudioBufferRef::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) AudioBufferRef(arena); -} -constexpr auto AudioBufferRef::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AudioBufferRef), - alignof(AudioBufferRef)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull AudioBufferRef::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_AudioBufferRef_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &AudioBufferRef::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &AudioBufferRef::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &AudioBufferRef::ByteSizeLong, - &AudioBufferRef::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_._cached_size_), - false, - }, - &AudioBufferRef::kDescriptorMethods, - &descriptor_table_common_2fdomain_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* AudioBufferRef::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 0, 2> AudioBufferRef::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::common::AudioBufferRef>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .daw.common.PluginId plugin_id = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.plugin_id_)}}, - // uint64 shm_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AudioBufferRef, _impl_.shm_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.shm_id_)}}, - // uint32 offset = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AudioBufferRef, _impl_.offset_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.offset_)}}, - // uint32 frames = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AudioBufferRef, _impl_.frames_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.frames_)}}, - // .daw.common.SampleFormat format = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AudioBufferRef, _impl_.format_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.format_)}}, - // uint32 channels = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AudioBufferRef, _impl_.channels_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.channels_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .daw.common.PluginId plugin_id = 1; - {PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.plugin_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 shm_id = 2; - {PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.shm_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint32 offset = 3; - {PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint32 frames = 4; - {PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.frames_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // .daw.common.SampleFormat format = 5; - {PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.format_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // uint32 channels = 6; - {PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.channels_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::common::PluginId>()}, - }}, {{ - }}, -}; - -PROTOBUF_NOINLINE void AudioBufferRef::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.common.AudioBufferRef) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.plugin_id_ != nullptr); - _impl_.plugin_id_->Clear(); - } - ::memset(&_impl_.shm_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.channels_) - - reinterpret_cast(&_impl_.shm_id_)) + sizeof(_impl_.channels_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* AudioBufferRef::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const AudioBufferRef& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* AudioBufferRef::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const AudioBufferRef& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.common.AudioBufferRef) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // .daw.common.PluginId plugin_id = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.plugin_id_, this_._impl_.plugin_id_->GetCachedSize(), target, - stream); - } - - // uint64 shm_id = 2; - if (this_._internal_shm_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_shm_id(), target); - } - - // uint32 offset = 3; - if (this_._internal_offset() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_offset(), target); - } - - // uint32 frames = 4; - if (this_._internal_frames() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this_._internal_frames(), target); - } - - // .daw.common.SampleFormat format = 5; - if (this_._internal_format() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this_._internal_format(), target); - } - - // uint32 channels = 6; - if (this_._internal_channels() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 6, this_._internal_channels(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.common.AudioBufferRef) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t AudioBufferRef::ByteSizeLong(const MessageLite& base) { - const AudioBufferRef& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t AudioBufferRef::ByteSizeLong() const { - const AudioBufferRef& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.common.AudioBufferRef) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // .daw.common.PluginId plugin_id = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.plugin_id_); - } - } - { - // uint64 shm_id = 2; - if (this_._internal_shm_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_shm_id()); - } - // uint32 offset = 3; - if (this_._internal_offset() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_offset()); - } - // uint32 frames = 4; - if (this_._internal_frames() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_frames()); - } - // .daw.common.SampleFormat format = 5; - if (this_._internal_format() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_format()); - } - // uint32 channels = 6; - if (this_._internal_channels() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_channels()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void AudioBufferRef::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.common.AudioBufferRef) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.plugin_id_ != nullptr); - if (_this->_impl_.plugin_id_ == nullptr) { - _this->_impl_.plugin_id_ = - ::google::protobuf::Message::CopyConstruct<::daw::common::PluginId>(arena, *from._impl_.plugin_id_); - } else { - _this->_impl_.plugin_id_->MergeFrom(*from._impl_.plugin_id_); - } - } - if (from._internal_shm_id() != 0) { - _this->_impl_.shm_id_ = from._impl_.shm_id_; - } - if (from._internal_offset() != 0) { - _this->_impl_.offset_ = from._impl_.offset_; - } - if (from._internal_frames() != 0) { - _this->_impl_.frames_ = from._impl_.frames_; - } - if (from._internal_format() != 0) { - _this->_impl_.format_ = from._impl_.format_; - } - if (from._internal_channels() != 0) { - _this->_impl_.channels_ = from._impl_.channels_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AudioBufferRef::CopyFrom(const AudioBufferRef& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.common.AudioBufferRef) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void AudioBufferRef::InternalSwap(AudioBufferRef* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.channels_) - + sizeof(AudioBufferRef::_impl_.channels_) - - PROTOBUF_FIELD_OFFSET(AudioBufferRef, _impl_.plugin_id_)>( - reinterpret_cast(&_impl_.plugin_id_), - reinterpret_cast(&other->_impl_.plugin_id_)); -} - -::google::protobuf::Metadata AudioBufferRef::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace common -} // namespace daw -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type - _static_init2_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_common_2fdomain_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/src/backend/proto/common/domain.pb.h b/src/backend/proto/common/domain.pb.h deleted file mode 100644 index 96b7bd8..0000000 --- a/src/backend/proto/common/domain.pb.h +++ /dev/null @@ -1,1929 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: common/domain.proto -// Protobuf C++ Version: 5.29.3 - -#ifndef common_2fdomain_2eproto_2epb_2eh -#define common_2fdomain_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 5029003 -#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" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_common_2fdomain_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_common_2fdomain_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_common_2fdomain_2eproto; -namespace daw { -namespace common { -class AudioBufferRef; -struct AudioBufferRefDefaultTypeInternal; -extern AudioBufferRefDefaultTypeInternal _AudioBufferRef_default_instance_; -class MidiEvent; -struct MidiEventDefaultTypeInternal; -extern MidiEventDefaultTypeInternal _MidiEvent_default_instance_; -class ParameterChange; -struct ParameterChangeDefaultTypeInternal; -extern ParameterChangeDefaultTypeInternal _ParameterChange_default_instance_; -class ParameterId; -struct ParameterIdDefaultTypeInternal; -extern ParameterIdDefaultTypeInternal _ParameterId_default_instance_; -class PluginId; -struct PluginIdDefaultTypeInternal; -extern PluginIdDefaultTypeInternal _PluginId_default_instance_; -} // namespace common -} // namespace daw -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace daw { -namespace common { -enum SampleFormat : int { - F32 = 0, - F64 = 1, - I16 = 2, - SampleFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SampleFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool SampleFormat_IsValid(int value); -extern const uint32_t SampleFormat_internal_data_[]; -constexpr SampleFormat SampleFormat_MIN = static_cast(0); -constexpr SampleFormat SampleFormat_MAX = static_cast(2); -constexpr int SampleFormat_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -SampleFormat_descriptor(); -template -const std::string& SampleFormat_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to SampleFormat_Name()."); - return SampleFormat_Name(static_cast(value)); -} -template <> -inline const std::string& SampleFormat_Name(SampleFormat value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SampleFormat_Parse(absl::string_view name, SampleFormat* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SampleFormat_descriptor(), name, value); -} - -// =================================================================== - - -// ------------------------------------------------------------------- - -class PluginId final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.common.PluginId) */ { - public: - inline PluginId() : PluginId(nullptr) {} - ~PluginId() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(PluginId* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(PluginId)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR PluginId( - ::google::protobuf::internal::ConstantInitialized); - - inline PluginId(const PluginId& from) : PluginId(nullptr, from) {} - inline PluginId(PluginId&& from) noexcept - : PluginId(nullptr, std::move(from)) {} - inline PluginId& operator=(const PluginId& from) { - CopyFrom(from); - return *this; - } - inline PluginId& operator=(PluginId&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PluginId& default_instance() { - return *internal_default_instance(); - } - static inline const PluginId* internal_default_instance() { - return reinterpret_cast( - &_PluginId_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(PluginId& a, PluginId& b) { a.Swap(&b); } - inline void Swap(PluginId* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PluginId* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PluginId* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PluginId& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const PluginId& from) { PluginId::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(PluginId* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.common.PluginId"; } - - protected: - explicit PluginId(::google::protobuf::Arena* arena); - PluginId(::google::protobuf::Arena* arena, const PluginId& from); - PluginId(::google::protobuf::Arena* arena, PluginId&& from) noexcept - : PluginId(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValueFieldNumber = 1, - }; - // uint32 value = 1; - void clear_value() ; - ::uint32_t value() const; - void set_value(::uint32_t value); - - private: - ::uint32_t _internal_value() const; - void _internal_set_value(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:daw.common.PluginId) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const PluginId& from_msg); - ::uint32_t value_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_common_2fdomain_2eproto; -}; -// ------------------------------------------------------------------- - -class ParameterId final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.common.ParameterId) */ { - public: - inline ParameterId() : ParameterId(nullptr) {} - ~ParameterId() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ParameterId* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ParameterId)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ParameterId( - ::google::protobuf::internal::ConstantInitialized); - - inline ParameterId(const ParameterId& from) : ParameterId(nullptr, from) {} - inline ParameterId(ParameterId&& from) noexcept - : ParameterId(nullptr, std::move(from)) {} - inline ParameterId& operator=(const ParameterId& from) { - CopyFrom(from); - return *this; - } - inline ParameterId& operator=(ParameterId&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ParameterId& default_instance() { - return *internal_default_instance(); - } - static inline const ParameterId* internal_default_instance() { - return reinterpret_cast( - &_ParameterId_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(ParameterId& a, ParameterId& b) { a.Swap(&b); } - inline void Swap(ParameterId* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ParameterId* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ParameterId* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ParameterId& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ParameterId& from) { ParameterId::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ParameterId* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.common.ParameterId"; } - - protected: - explicit ParameterId(::google::protobuf::Arena* arena); - ParameterId(::google::protobuf::Arena* arena, const ParameterId& from); - ParameterId(::google::protobuf::Arena* arena, ParameterId&& from) noexcept - : ParameterId(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValueFieldNumber = 1, - }; - // uint32 value = 1; - void clear_value() ; - ::uint32_t value() const; - void set_value(::uint32_t value); - - private: - ::uint32_t _internal_value() const; - void _internal_set_value(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:daw.common.ParameterId) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ParameterId& from_msg); - ::uint32_t value_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_common_2fdomain_2eproto; -}; -// ------------------------------------------------------------------- - -class ParameterChange final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.common.ParameterChange) */ { - public: - inline ParameterChange() : ParameterChange(nullptr) {} - ~ParameterChange() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ParameterChange* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ParameterChange)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ParameterChange( - ::google::protobuf::internal::ConstantInitialized); - - inline ParameterChange(const ParameterChange& from) : ParameterChange(nullptr, from) {} - inline ParameterChange(ParameterChange&& from) noexcept - : ParameterChange(nullptr, std::move(from)) {} - inline ParameterChange& operator=(const ParameterChange& from) { - CopyFrom(from); - return *this; - } - inline ParameterChange& operator=(ParameterChange&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ParameterChange& default_instance() { - return *internal_default_instance(); - } - static inline const ParameterChange* internal_default_instance() { - return reinterpret_cast( - &_ParameterChange_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(ParameterChange& a, ParameterChange& b) { a.Swap(&b); } - inline void Swap(ParameterChange* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ParameterChange* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ParameterChange* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ParameterChange& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ParameterChange& from) { ParameterChange::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ParameterChange* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.common.ParameterChange"; } - - protected: - explicit ParameterChange(::google::protobuf::Arena* arena); - ParameterChange(::google::protobuf::Arena* arena, const ParameterChange& from); - ParameterChange(::google::protobuf::Arena* arena, ParameterChange&& from) noexcept - : ParameterChange(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPluginIdFieldNumber = 1, - kParameterIdFieldNumber = 2, - kSampleOffsetFieldNumber = 4, - kValueFieldNumber = 3, - }; - // .daw.common.PluginId plugin_id = 1; - bool has_plugin_id() const; - void clear_plugin_id() ; - const ::daw::common::PluginId& plugin_id() const; - PROTOBUF_NODISCARD ::daw::common::PluginId* release_plugin_id(); - ::daw::common::PluginId* mutable_plugin_id(); - void set_allocated_plugin_id(::daw::common::PluginId* value); - void unsafe_arena_set_allocated_plugin_id(::daw::common::PluginId* value); - ::daw::common::PluginId* unsafe_arena_release_plugin_id(); - - private: - const ::daw::common::PluginId& _internal_plugin_id() const; - ::daw::common::PluginId* _internal_mutable_plugin_id(); - - public: - // .daw.common.ParameterId parameter_id = 2; - bool has_parameter_id() const; - void clear_parameter_id() ; - const ::daw::common::ParameterId& parameter_id() const; - PROTOBUF_NODISCARD ::daw::common::ParameterId* release_parameter_id(); - ::daw::common::ParameterId* mutable_parameter_id(); - void set_allocated_parameter_id(::daw::common::ParameterId* value); - void unsafe_arena_set_allocated_parameter_id(::daw::common::ParameterId* value); - ::daw::common::ParameterId* unsafe_arena_release_parameter_id(); - - private: - const ::daw::common::ParameterId& _internal_parameter_id() const; - ::daw::common::ParameterId* _internal_mutable_parameter_id(); - - public: - // uint64 sample_offset = 4; - void clear_sample_offset() ; - ::uint64_t sample_offset() const; - void set_sample_offset(::uint64_t value); - - private: - ::uint64_t _internal_sample_offset() const; - void _internal_set_sample_offset(::uint64_t value); - - public: - // float value = 3; - void clear_value() ; - float value() const; - void set_value(float value); - - private: - float _internal_value() const; - void _internal_set_value(float value); - - public: - // @@protoc_insertion_point(class_scope:daw.common.ParameterChange) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ParameterChange& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::daw::common::PluginId* plugin_id_; - ::daw::common::ParameterId* parameter_id_; - ::uint64_t sample_offset_; - float value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_common_2fdomain_2eproto; -}; -// ------------------------------------------------------------------- - -class MidiEvent final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.common.MidiEvent) */ { - public: - inline MidiEvent() : MidiEvent(nullptr) {} - ~MidiEvent() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(MidiEvent* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(MidiEvent)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR MidiEvent( - ::google::protobuf::internal::ConstantInitialized); - - inline MidiEvent(const MidiEvent& from) : MidiEvent(nullptr, from) {} - inline MidiEvent(MidiEvent&& from) noexcept - : MidiEvent(nullptr, std::move(from)) {} - inline MidiEvent& operator=(const MidiEvent& from) { - CopyFrom(from); - return *this; - } - inline MidiEvent& operator=(MidiEvent&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MidiEvent& default_instance() { - return *internal_default_instance(); - } - static inline const MidiEvent* internal_default_instance() { - return reinterpret_cast( - &_MidiEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(MidiEvent& a, MidiEvent& b) { a.Swap(&b); } - inline void Swap(MidiEvent* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MidiEvent* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MidiEvent* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MidiEvent& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MidiEvent& from) { MidiEvent::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(MidiEvent* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.common.MidiEvent"; } - - protected: - explicit MidiEvent(::google::protobuf::Arena* arena); - MidiEvent(::google::protobuf::Arena* arena, const MidiEvent& from); - MidiEvent(::google::protobuf::Arena* arena, MidiEvent&& from) noexcept - : MidiEvent(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kRawMidiFieldNumber = 2, - kPluginIdFieldNumber = 1, - kSampleOffsetFieldNumber = 3, - }; - // bytes raw_midi = 2; - void clear_raw_midi() ; - const std::string& raw_midi() const; - template - void set_raw_midi(Arg_&& arg, Args_... args); - std::string* mutable_raw_midi(); - PROTOBUF_NODISCARD std::string* release_raw_midi(); - void set_allocated_raw_midi(std::string* value); - - private: - const std::string& _internal_raw_midi() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_raw_midi( - const std::string& value); - std::string* _internal_mutable_raw_midi(); - - public: - // .daw.common.PluginId plugin_id = 1; - bool has_plugin_id() const; - void clear_plugin_id() ; - const ::daw::common::PluginId& plugin_id() const; - PROTOBUF_NODISCARD ::daw::common::PluginId* release_plugin_id(); - ::daw::common::PluginId* mutable_plugin_id(); - void set_allocated_plugin_id(::daw::common::PluginId* value); - void unsafe_arena_set_allocated_plugin_id(::daw::common::PluginId* value); - ::daw::common::PluginId* unsafe_arena_release_plugin_id(); - - private: - const ::daw::common::PluginId& _internal_plugin_id() const; - ::daw::common::PluginId* _internal_mutable_plugin_id(); - - public: - // uint64 sample_offset = 3; - void clear_sample_offset() ; - ::uint64_t sample_offset() const; - void set_sample_offset(::uint64_t value); - - private: - ::uint64_t _internal_sample_offset() const; - void _internal_set_sample_offset(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:daw.common.MidiEvent) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const MidiEvent& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr raw_midi_; - ::daw::common::PluginId* plugin_id_; - ::uint64_t sample_offset_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_common_2fdomain_2eproto; -}; -// ------------------------------------------------------------------- - -class AudioBufferRef final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.common.AudioBufferRef) */ { - public: - inline AudioBufferRef() : AudioBufferRef(nullptr) {} - ~AudioBufferRef() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(AudioBufferRef* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(AudioBufferRef)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR AudioBufferRef( - ::google::protobuf::internal::ConstantInitialized); - - inline AudioBufferRef(const AudioBufferRef& from) : AudioBufferRef(nullptr, from) {} - inline AudioBufferRef(AudioBufferRef&& from) noexcept - : AudioBufferRef(nullptr, std::move(from)) {} - inline AudioBufferRef& operator=(const AudioBufferRef& from) { - CopyFrom(from); - return *this; - } - inline AudioBufferRef& operator=(AudioBufferRef&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AudioBufferRef& default_instance() { - return *internal_default_instance(); - } - static inline const AudioBufferRef* internal_default_instance() { - return reinterpret_cast( - &_AudioBufferRef_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(AudioBufferRef& a, AudioBufferRef& b) { a.Swap(&b); } - inline void Swap(AudioBufferRef* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AudioBufferRef* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AudioBufferRef* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AudioBufferRef& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const AudioBufferRef& from) { AudioBufferRef::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(AudioBufferRef* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.common.AudioBufferRef"; } - - protected: - explicit AudioBufferRef(::google::protobuf::Arena* arena); - AudioBufferRef(::google::protobuf::Arena* arena, const AudioBufferRef& from); - AudioBufferRef(::google::protobuf::Arena* arena, AudioBufferRef&& from) noexcept - : AudioBufferRef(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPluginIdFieldNumber = 1, - kShmIdFieldNumber = 2, - kOffsetFieldNumber = 3, - kFramesFieldNumber = 4, - kFormatFieldNumber = 5, - kChannelsFieldNumber = 6, - }; - // .daw.common.PluginId plugin_id = 1; - bool has_plugin_id() const; - void clear_plugin_id() ; - const ::daw::common::PluginId& plugin_id() const; - PROTOBUF_NODISCARD ::daw::common::PluginId* release_plugin_id(); - ::daw::common::PluginId* mutable_plugin_id(); - void set_allocated_plugin_id(::daw::common::PluginId* value); - void unsafe_arena_set_allocated_plugin_id(::daw::common::PluginId* value); - ::daw::common::PluginId* unsafe_arena_release_plugin_id(); - - private: - const ::daw::common::PluginId& _internal_plugin_id() const; - ::daw::common::PluginId* _internal_mutable_plugin_id(); - - public: - // uint64 shm_id = 2; - void clear_shm_id() ; - ::uint64_t shm_id() const; - void set_shm_id(::uint64_t value); - - private: - ::uint64_t _internal_shm_id() const; - void _internal_set_shm_id(::uint64_t value); - - public: - // uint32 offset = 3; - void clear_offset() ; - ::uint32_t offset() const; - void set_offset(::uint32_t value); - - private: - ::uint32_t _internal_offset() const; - void _internal_set_offset(::uint32_t value); - - public: - // uint32 frames = 4; - void clear_frames() ; - ::uint32_t frames() const; - void set_frames(::uint32_t value); - - private: - ::uint32_t _internal_frames() const; - void _internal_set_frames(::uint32_t value); - - public: - // .daw.common.SampleFormat format = 5; - void clear_format() ; - ::daw::common::SampleFormat format() const; - void set_format(::daw::common::SampleFormat value); - - private: - ::daw::common::SampleFormat _internal_format() const; - void _internal_set_format(::daw::common::SampleFormat value); - - public: - // uint32 channels = 6; - void clear_channels() ; - ::uint32_t channels() const; - void set_channels(::uint32_t value); - - private: - ::uint32_t _internal_channels() const; - void _internal_set_channels(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:daw.common.AudioBufferRef) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 1, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const AudioBufferRef& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::daw::common::PluginId* plugin_id_; - ::uint64_t shm_id_; - ::uint32_t offset_; - ::uint32_t frames_; - int format_; - ::uint32_t channels_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_common_2fdomain_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// PluginId - -// uint32 value = 1; -inline void PluginId::clear_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = 0u; -} -inline ::uint32_t PluginId::value() const { - // @@protoc_insertion_point(field_get:daw.common.PluginId.value) - return _internal_value(); -} -inline void PluginId::set_value(::uint32_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:daw.common.PluginId.value) -} -inline ::uint32_t PluginId::_internal_value() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.value_; -} -inline void PluginId::_internal_set_value(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = value; -} - -// ------------------------------------------------------------------- - -// ParameterId - -// uint32 value = 1; -inline void ParameterId::clear_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = 0u; -} -inline ::uint32_t ParameterId::value() const { - // @@protoc_insertion_point(field_get:daw.common.ParameterId.value) - return _internal_value(); -} -inline void ParameterId::set_value(::uint32_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:daw.common.ParameterId.value) -} -inline ::uint32_t ParameterId::_internal_value() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.value_; -} -inline void ParameterId::_internal_set_value(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = value; -} - -// ------------------------------------------------------------------- - -// ParameterChange - -// .daw.common.PluginId plugin_id = 1; -inline bool ParameterChange::has_plugin_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.plugin_id_ != nullptr); - return value; -} -inline void ParameterChange::clear_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.plugin_id_ != nullptr) _impl_.plugin_id_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::daw::common::PluginId& ParameterChange::_internal_plugin_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::daw::common::PluginId* p = _impl_.plugin_id_; - return p != nullptr ? *p : reinterpret_cast(::daw::common::_PluginId_default_instance_); -} -inline const ::daw::common::PluginId& ParameterChange::plugin_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.common.ParameterChange.plugin_id) - return _internal_plugin_id(); -} -inline void ParameterChange::unsafe_arena_set_allocated_plugin_id(::daw::common::PluginId* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.plugin_id_); - } - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.common.ParameterChange.plugin_id) -} -inline ::daw::common::PluginId* ParameterChange::release_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::common::PluginId* released = _impl_.plugin_id_; - _impl_.plugin_id_ = 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 ::daw::common::PluginId* ParameterChange::unsafe_arena_release_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.common.ParameterChange.plugin_id) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::common::PluginId* temp = _impl_.plugin_id_; - _impl_.plugin_id_ = nullptr; - return temp; -} -inline ::daw::common::PluginId* ParameterChange::_internal_mutable_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.plugin_id_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::daw::common::PluginId>(GetArena()); - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(p); - } - return _impl_.plugin_id_; -} -inline ::daw::common::PluginId* ParameterChange::mutable_plugin_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::daw::common::PluginId* _msg = _internal_mutable_plugin_id(); - // @@protoc_insertion_point(field_mutable:daw.common.ParameterChange.plugin_id) - return _msg; -} -inline void ParameterChange::set_allocated_plugin_id(::daw::common::PluginId* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete (_impl_.plugin_id_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(value); - // @@protoc_insertion_point(field_set_allocated:daw.common.ParameterChange.plugin_id) -} - -// .daw.common.ParameterId parameter_id = 2; -inline bool ParameterChange::has_parameter_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.parameter_id_ != nullptr); - return value; -} -inline void ParameterChange::clear_parameter_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.parameter_id_ != nullptr) _impl_.parameter_id_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::daw::common::ParameterId& ParameterChange::_internal_parameter_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::daw::common::ParameterId* p = _impl_.parameter_id_; - return p != nullptr ? *p : reinterpret_cast(::daw::common::_ParameterId_default_instance_); -} -inline const ::daw::common::ParameterId& ParameterChange::parameter_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.common.ParameterChange.parameter_id) - return _internal_parameter_id(); -} -inline void ParameterChange::unsafe_arena_set_allocated_parameter_id(::daw::common::ParameterId* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.parameter_id_); - } - _impl_.parameter_id_ = reinterpret_cast<::daw::common::ParameterId*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.common.ParameterChange.parameter_id) -} -inline ::daw::common::ParameterId* ParameterChange::release_parameter_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::daw::common::ParameterId* released = _impl_.parameter_id_; - _impl_.parameter_id_ = 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 ::daw::common::ParameterId* ParameterChange::unsafe_arena_release_parameter_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.common.ParameterChange.parameter_id) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::daw::common::ParameterId* temp = _impl_.parameter_id_; - _impl_.parameter_id_ = nullptr; - return temp; -} -inline ::daw::common::ParameterId* ParameterChange::_internal_mutable_parameter_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.parameter_id_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::daw::common::ParameterId>(GetArena()); - _impl_.parameter_id_ = reinterpret_cast<::daw::common::ParameterId*>(p); - } - return _impl_.parameter_id_; -} -inline ::daw::common::ParameterId* ParameterChange::mutable_parameter_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::daw::common::ParameterId* _msg = _internal_mutable_parameter_id(); - // @@protoc_insertion_point(field_mutable:daw.common.ParameterChange.parameter_id) - return _msg; -} -inline void ParameterChange::set_allocated_parameter_id(::daw::common::ParameterId* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete (_impl_.parameter_id_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.parameter_id_ = reinterpret_cast<::daw::common::ParameterId*>(value); - // @@protoc_insertion_point(field_set_allocated:daw.common.ParameterChange.parameter_id) -} - -// float value = 3; -inline void ParameterChange::clear_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = 0; -} -inline float ParameterChange::value() const { - // @@protoc_insertion_point(field_get:daw.common.ParameterChange.value) - return _internal_value(); -} -inline void ParameterChange::set_value(float value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:daw.common.ParameterChange.value) -} -inline float ParameterChange::_internal_value() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.value_; -} -inline void ParameterChange::_internal_set_value(float value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = value; -} - -// uint64 sample_offset = 4; -inline void ParameterChange::clear_sample_offset() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sample_offset_ = ::uint64_t{0u}; -} -inline ::uint64_t ParameterChange::sample_offset() const { - // @@protoc_insertion_point(field_get:daw.common.ParameterChange.sample_offset) - return _internal_sample_offset(); -} -inline void ParameterChange::set_sample_offset(::uint64_t value) { - _internal_set_sample_offset(value); - // @@protoc_insertion_point(field_set:daw.common.ParameterChange.sample_offset) -} -inline ::uint64_t ParameterChange::_internal_sample_offset() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.sample_offset_; -} -inline void ParameterChange::_internal_set_sample_offset(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sample_offset_ = value; -} - -// ------------------------------------------------------------------- - -// MidiEvent - -// .daw.common.PluginId plugin_id = 1; -inline bool MidiEvent::has_plugin_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.plugin_id_ != nullptr); - return value; -} -inline void MidiEvent::clear_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.plugin_id_ != nullptr) _impl_.plugin_id_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::daw::common::PluginId& MidiEvent::_internal_plugin_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::daw::common::PluginId* p = _impl_.plugin_id_; - return p != nullptr ? *p : reinterpret_cast(::daw::common::_PluginId_default_instance_); -} -inline const ::daw::common::PluginId& MidiEvent::plugin_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.common.MidiEvent.plugin_id) - return _internal_plugin_id(); -} -inline void MidiEvent::unsafe_arena_set_allocated_plugin_id(::daw::common::PluginId* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.plugin_id_); - } - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.common.MidiEvent.plugin_id) -} -inline ::daw::common::PluginId* MidiEvent::release_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::common::PluginId* released = _impl_.plugin_id_; - _impl_.plugin_id_ = 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 ::daw::common::PluginId* MidiEvent::unsafe_arena_release_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.common.MidiEvent.plugin_id) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::common::PluginId* temp = _impl_.plugin_id_; - _impl_.plugin_id_ = nullptr; - return temp; -} -inline ::daw::common::PluginId* MidiEvent::_internal_mutable_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.plugin_id_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::daw::common::PluginId>(GetArena()); - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(p); - } - return _impl_.plugin_id_; -} -inline ::daw::common::PluginId* MidiEvent::mutable_plugin_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::daw::common::PluginId* _msg = _internal_mutable_plugin_id(); - // @@protoc_insertion_point(field_mutable:daw.common.MidiEvent.plugin_id) - return _msg; -} -inline void MidiEvent::set_allocated_plugin_id(::daw::common::PluginId* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete (_impl_.plugin_id_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(value); - // @@protoc_insertion_point(field_set_allocated:daw.common.MidiEvent.plugin_id) -} - -// bytes raw_midi = 2; -inline void MidiEvent::clear_raw_midi() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.raw_midi_.ClearToEmpty(); -} -inline const std::string& MidiEvent::raw_midi() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.common.MidiEvent.raw_midi) - return _internal_raw_midi(); -} -template -inline PROTOBUF_ALWAYS_INLINE void MidiEvent::set_raw_midi(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.raw_midi_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.common.MidiEvent.raw_midi) -} -inline std::string* MidiEvent::mutable_raw_midi() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_raw_midi(); - // @@protoc_insertion_point(field_mutable:daw.common.MidiEvent.raw_midi) - return _s; -} -inline const std::string& MidiEvent::_internal_raw_midi() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.raw_midi_.Get(); -} -inline void MidiEvent::_internal_set_raw_midi(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.raw_midi_.Set(value, GetArena()); -} -inline std::string* MidiEvent::_internal_mutable_raw_midi() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.raw_midi_.Mutable( GetArena()); -} -inline std::string* MidiEvent::release_raw_midi() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.common.MidiEvent.raw_midi) - return _impl_.raw_midi_.Release(); -} -inline void MidiEvent::set_allocated_raw_midi(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.raw_midi_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.raw_midi_.IsDefault()) { - _impl_.raw_midi_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.common.MidiEvent.raw_midi) -} - -// uint64 sample_offset = 3; -inline void MidiEvent::clear_sample_offset() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sample_offset_ = ::uint64_t{0u}; -} -inline ::uint64_t MidiEvent::sample_offset() const { - // @@protoc_insertion_point(field_get:daw.common.MidiEvent.sample_offset) - return _internal_sample_offset(); -} -inline void MidiEvent::set_sample_offset(::uint64_t value) { - _internal_set_sample_offset(value); - // @@protoc_insertion_point(field_set:daw.common.MidiEvent.sample_offset) -} -inline ::uint64_t MidiEvent::_internal_sample_offset() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.sample_offset_; -} -inline void MidiEvent::_internal_set_sample_offset(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sample_offset_ = value; -} - -// ------------------------------------------------------------------- - -// AudioBufferRef - -// .daw.common.PluginId plugin_id = 1; -inline bool AudioBufferRef::has_plugin_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.plugin_id_ != nullptr); - return value; -} -inline void AudioBufferRef::clear_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.plugin_id_ != nullptr) _impl_.plugin_id_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::daw::common::PluginId& AudioBufferRef::_internal_plugin_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::daw::common::PluginId* p = _impl_.plugin_id_; - return p != nullptr ? *p : reinterpret_cast(::daw::common::_PluginId_default_instance_); -} -inline const ::daw::common::PluginId& AudioBufferRef::plugin_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.common.AudioBufferRef.plugin_id) - return _internal_plugin_id(); -} -inline void AudioBufferRef::unsafe_arena_set_allocated_plugin_id(::daw::common::PluginId* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.plugin_id_); - } - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.common.AudioBufferRef.plugin_id) -} -inline ::daw::common::PluginId* AudioBufferRef::release_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::common::PluginId* released = _impl_.plugin_id_; - _impl_.plugin_id_ = 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 ::daw::common::PluginId* AudioBufferRef::unsafe_arena_release_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.common.AudioBufferRef.plugin_id) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::common::PluginId* temp = _impl_.plugin_id_; - _impl_.plugin_id_ = nullptr; - return temp; -} -inline ::daw::common::PluginId* AudioBufferRef::_internal_mutable_plugin_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.plugin_id_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::daw::common::PluginId>(GetArena()); - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(p); - } - return _impl_.plugin_id_; -} -inline ::daw::common::PluginId* AudioBufferRef::mutable_plugin_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::daw::common::PluginId* _msg = _internal_mutable_plugin_id(); - // @@protoc_insertion_point(field_mutable:daw.common.AudioBufferRef.plugin_id) - return _msg; -} -inline void AudioBufferRef::set_allocated_plugin_id(::daw::common::PluginId* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete (_impl_.plugin_id_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.plugin_id_ = reinterpret_cast<::daw::common::PluginId*>(value); - // @@protoc_insertion_point(field_set_allocated:daw.common.AudioBufferRef.plugin_id) -} - -// uint64 shm_id = 2; -inline void AudioBufferRef::clear_shm_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.shm_id_ = ::uint64_t{0u}; -} -inline ::uint64_t AudioBufferRef::shm_id() const { - // @@protoc_insertion_point(field_get:daw.common.AudioBufferRef.shm_id) - return _internal_shm_id(); -} -inline void AudioBufferRef::set_shm_id(::uint64_t value) { - _internal_set_shm_id(value); - // @@protoc_insertion_point(field_set:daw.common.AudioBufferRef.shm_id) -} -inline ::uint64_t AudioBufferRef::_internal_shm_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.shm_id_; -} -inline void AudioBufferRef::_internal_set_shm_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.shm_id_ = value; -} - -// uint32 offset = 3; -inline void AudioBufferRef::clear_offset() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.offset_ = 0u; -} -inline ::uint32_t AudioBufferRef::offset() const { - // @@protoc_insertion_point(field_get:daw.common.AudioBufferRef.offset) - return _internal_offset(); -} -inline void AudioBufferRef::set_offset(::uint32_t value) { - _internal_set_offset(value); - // @@protoc_insertion_point(field_set:daw.common.AudioBufferRef.offset) -} -inline ::uint32_t AudioBufferRef::_internal_offset() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.offset_; -} -inline void AudioBufferRef::_internal_set_offset(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.offset_ = value; -} - -// uint32 frames = 4; -inline void AudioBufferRef::clear_frames() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.frames_ = 0u; -} -inline ::uint32_t AudioBufferRef::frames() const { - // @@protoc_insertion_point(field_get:daw.common.AudioBufferRef.frames) - return _internal_frames(); -} -inline void AudioBufferRef::set_frames(::uint32_t value) { - _internal_set_frames(value); - // @@protoc_insertion_point(field_set:daw.common.AudioBufferRef.frames) -} -inline ::uint32_t AudioBufferRef::_internal_frames() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.frames_; -} -inline void AudioBufferRef::_internal_set_frames(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.frames_ = value; -} - -// .daw.common.SampleFormat format = 5; -inline void AudioBufferRef::clear_format() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.format_ = 0; -} -inline ::daw::common::SampleFormat AudioBufferRef::format() const { - // @@protoc_insertion_point(field_get:daw.common.AudioBufferRef.format) - return _internal_format(); -} -inline void AudioBufferRef::set_format(::daw::common::SampleFormat value) { - _internal_set_format(value); - // @@protoc_insertion_point(field_set:daw.common.AudioBufferRef.format) -} -inline ::daw::common::SampleFormat AudioBufferRef::_internal_format() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::daw::common::SampleFormat>(_impl_.format_); -} -inline void AudioBufferRef::_internal_set_format(::daw::common::SampleFormat value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.format_ = value; -} - -// uint32 channels = 6; -inline void AudioBufferRef::clear_channels() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channels_ = 0u; -} -inline ::uint32_t AudioBufferRef::channels() const { - // @@protoc_insertion_point(field_get:daw.common.AudioBufferRef.channels) - return _internal_channels(); -} -inline void AudioBufferRef::set_channels(::uint32_t value) { - _internal_set_channels(value); - // @@protoc_insertion_point(field_set:daw.common.AudioBufferRef.channels) -} -inline ::uint32_t AudioBufferRef::_internal_channels() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channels_; -} -inline void AudioBufferRef::_internal_set_channels(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channels_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace common -} // namespace daw - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::daw::common::SampleFormat> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::daw::common::SampleFormat>() { - return ::daw::common::SampleFormat_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // common_2fdomain_2eproto_2epb_2eh diff --git a/src/backend/proto/ctrl/frontend_to_engine.grpc.pb.cc b/src/backend/proto/ctrl/frontend_to_engine.grpc.pb.cc deleted file mode 100644 index 50ae609..0000000 --- a/src/backend/proto/ctrl/frontend_to_engine.grpc.pb.cc +++ /dev/null @@ -1,649 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: ctrl/frontend_to_engine.proto - -#include "ctrl/frontend_to_engine.pb.h" -#include "ctrl/frontend_to_engine.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace daw { -namespace api { - -static const char* TransportService_method_names[] = { - "/daw.api.TransportService/Play", - "/daw.api.TransportService/Pause", - "/daw.api.TransportService/Stop", - "/daw.api.TransportService/SetTempo", -}; - -std::unique_ptr< TransportService::Stub> TransportService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< TransportService::Stub> stub(new TransportService::Stub(channel, options)); - return stub; -} - -TransportService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Play_(TransportService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Pause_(TransportService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Stop_(TransportService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetTempo_(TransportService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status TransportService::Stub::Play(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Play_, context, request, response); -} - -void TransportService::Stub::async::Play(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Play_, context, request, response, std::move(f)); -} - -void TransportService::Stub::async::Play(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Play_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncPlayRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Play_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncPlayRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPlayRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TransportService::Stub::Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Pause_, context, request, response); -} - -void TransportService::Stub::async::Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Pause_, context, request, response, std::move(f)); -} - -void TransportService::Stub::async::Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Pause_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncPauseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Pause_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncPauseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPauseRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TransportService::Stub::Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); -} - -void TransportService::Stub::async::Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); -} - -void TransportService::Stub::async::Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TransportService::Stub::SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetTempoRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetTempo_, context, request, response); -} - -void TransportService::Stub::async::SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::SetTempoRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTempo_, context, request, response, std::move(f)); -} - -void TransportService::Stub::async::SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTempo_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetTempoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetTempo_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetTempoRaw(context, request, cq); - result->StartCall(); - return result; -} - -TransportService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - TransportService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TransportService::Service* service, - ::grpc::ServerContext* ctx, - const ::google::protobuf::Empty* req, - ::daw::api::StatusResponse* resp) { - return service->Play(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TransportService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TransportService::Service* service, - ::grpc::ServerContext* ctx, - const ::google::protobuf::Empty* req, - ::daw::api::StatusResponse* resp) { - return service->Pause(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TransportService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::google::protobuf::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TransportService::Service* service, - ::grpc::ServerContext* ctx, - const ::google::protobuf::Empty* req, - ::daw::api::StatusResponse* resp) { - return service->Stop(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TransportService_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::daw::api::SetTempoRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TransportService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::SetTempoRequest* req, - ::daw::api::StatusResponse* resp) { - return service->SetTempo(ctx, req, resp); - }, this))); -} - -TransportService::Service::~Service() { -} - -::grpc::Status TransportService::Service::Play(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TransportService::Service::Pause(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TransportService::Service::Stop(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TransportService::Service::SetTempo(::grpc::ServerContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -static const char* ProjectService_method_names[] = { - "/daw.api.ProjectService/NewProject", - "/daw.api.ProjectService/LoadProject", - "/daw.api.ProjectService/SaveProject", -}; - -std::unique_ptr< ProjectService::Stub> ProjectService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< ProjectService::Stub> stub(new ProjectService::Stub(channel, options)); - return stub; -} - -ProjectService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_NewProject_(ProjectService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_LoadProject_(ProjectService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SaveProject_(ProjectService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status ProjectService::Stub::NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::ProjectState* response) { - return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::Empty, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NewProject_, context, request, response); -} - -void ProjectService::Stub::async::NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::google::protobuf::Empty, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewProject_, context, request, response, std::move(f)); -} - -void ProjectService::Stub::async::NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewProject_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::PrepareAsyncNewProjectRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::ProjectState, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NewProject_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::AsyncNewProjectRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncNewProjectRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status ProjectService::Stub::LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::daw::api::ProjectState* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::LoadProjectRequest, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LoadProject_, context, request, response); -} - -void ProjectService::Stub::async::LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::LoadProjectRequest, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadProject_, context, request, response, std::move(f)); -} - -void ProjectService::Stub::async::LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadProject_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::PrepareAsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::ProjectState, ::daw::api::LoadProjectRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LoadProject_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::AsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLoadProjectRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status ProjectService::Stub::SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SaveProject_, context, request, response); -} - -void ProjectService::Stub::async::SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SaveProject_, context, request, response, std::move(f)); -} - -void ProjectService::Stub::async::SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SaveProject_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* ProjectService::Stub::PrepareAsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SaveProjectRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SaveProject_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* ProjectService::Stub::AsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSaveProjectRaw(context, request, cq); - result->StartCall(); - return result; -} - -ProjectService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - ProjectService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ProjectService::Service, ::google::protobuf::Empty, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](ProjectService::Service* service, - ::grpc::ServerContext* ctx, - const ::google::protobuf::Empty* req, - ::daw::api::ProjectState* resp) { - return service->NewProject(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ProjectService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ProjectService::Service, ::daw::api::LoadProjectRequest, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](ProjectService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::LoadProjectRequest* req, - ::daw::api::ProjectState* resp) { - return service->LoadProject(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ProjectService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ProjectService::Service, ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](ProjectService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::SaveProjectRequest* req, - ::daw::api::StatusResponse* resp) { - return service->SaveProject(ctx, req, resp); - }, this))); -} - -ProjectService::Service::~Service() { -} - -::grpc::Status ProjectService::Service::NewProject(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ProjectService::Service::LoadProject(::grpc::ServerContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ProjectService::Service::SaveProject(::grpc::ServerContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -static const char* TrackService_method_names[] = { - "/daw.api.TrackService/AddTrack", - "/daw.api.TrackService/RemoveTrack", - "/daw.api.TrackService/SetTrackVolume", - "/daw.api.TrackService/SetTrackPan", -}; - -std::unique_ptr< TrackService::Stub> TrackService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< TrackService::Stub> stub(new TrackService::Stub(channel, options)); - return stub; -} - -TrackService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_AddTrack_(TrackService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RemoveTrack_(TrackService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetTrackVolume_(TrackService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetTrackPan_(TrackService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status TrackService::Stub::AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::daw::api::TrackInfo* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::AddTrackRequest, ::daw::api::TrackInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddTrack_, context, request, response); -} - -void TrackService::Stub::async::AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::AddTrackRequest, ::daw::api::TrackInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddTrack_, context, request, response, std::move(f)); -} - -void TrackService::Stub::async::AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddTrack_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>* TrackService::Stub::PrepareAsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::TrackInfo, ::daw::api::AddTrackRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddTrack_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>* TrackService::Stub::AsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAddTrackRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TrackService::Stub::RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::TrackIdRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveTrack_, context, request, response); -} - -void TrackService::Stub::async::RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::TrackIdRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveTrack_, context, request, response, std::move(f)); -} - -void TrackService::Stub::async::RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveTrack_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::PrepareAsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::TrackIdRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveTrack_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::AsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRemoveTrackRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TrackService::Stub::SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetTrackVolume_, context, request, response); -} - -void TrackService::Stub::async::SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackVolume_, context, request, response, std::move(f)); -} - -void TrackService::Stub::async::SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackVolume_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::PrepareAsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetTrackVolumeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetTrackVolume_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::AsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetTrackVolumeRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status TrackService::Stub::SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetTrackPan_, context, request, response); -} - -void TrackService::Stub::async::SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackPan_, context, request, response, std::move(f)); -} - -void TrackService::Stub::async::SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackPan_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::PrepareAsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetTrackPanRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetTrackPan_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::AsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetTrackPanRaw(context, request, cq); - result->StartCall(); - return result; -} - -TrackService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - TrackService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::AddTrackRequest, ::daw::api::TrackInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TrackService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::AddTrackRequest* req, - ::daw::api::TrackInfo* resp) { - return service->AddTrack(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TrackService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::TrackIdRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TrackService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::TrackIdRequest* req, - ::daw::api::StatusResponse* resp) { - return service->RemoveTrack(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TrackService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TrackService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::SetTrackVolumeRequest* req, - ::daw::api::StatusResponse* resp) { - return service->SetTrackVolume(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - TrackService_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](TrackService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::SetTrackPanRequest* req, - ::daw::api::StatusResponse* resp) { - return service->SetTrackPan(ctx, req, resp); - }, this))); -} - -TrackService::Service::~Service() { -} - -::grpc::Status TrackService::Service::AddTrack(::grpc::ServerContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TrackService::Service::RemoveTrack(::grpc::ServerContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TrackService::Service::SetTrackVolume(::grpc::ServerContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status TrackService::Service::SetTrackPan(::grpc::ServerContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -static const char* PluginService_method_names[] = { - "/daw.api.PluginService/LoadPlugin", - "/daw.api.PluginService/SetPluginParameter", -}; - -std::unique_ptr< PluginService::Stub> PluginService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< PluginService::Stub> stub(new PluginService::Stub(channel, options)); - return stub; -} - -PluginService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_LoadPlugin_(PluginService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetPluginParameter_(PluginService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status PluginService::Stub::LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::daw::api::PluginInfo* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LoadPlugin_, context, request, response); -} - -void PluginService::Stub::async::LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadPlugin_, context, request, response, std::move(f)); -} - -void PluginService::Stub::async::LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadPlugin_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>* PluginService::Stub::PrepareAsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::PluginInfo, ::daw::api::LoadPluginRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LoadPlugin_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>* PluginService::Stub::AsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLoadPluginRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status PluginService::Stub::SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::daw::api::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPluginParameter_, context, request, response); -} - -void PluginService::Stub::async::SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPluginParameter_, context, request, response, std::move(f)); -} - -void PluginService::Stub::async::SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPluginParameter_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PluginService::Stub::PrepareAsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetPluginParameterRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPluginParameter_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PluginService::Stub::AsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetPluginParameterRaw(context, request, cq); - result->StartCall(); - return result; -} - -PluginService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - PluginService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PluginService::Service, ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](PluginService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::LoadPluginRequest* req, - ::daw::api::PluginInfo* resp) { - return service->LoadPlugin(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - PluginService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PluginService::Service, ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](PluginService::Service* service, - ::grpc::ServerContext* ctx, - const ::daw::api::SetPluginParameterRequest* req, - ::daw::api::StatusResponse* resp) { - return service->SetPluginParameter(ctx, req, resp); - }, this))); -} - -PluginService::Service::~Service() { -} - -::grpc::Status PluginService::Service::LoadPlugin(::grpc::ServerContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status PluginService::Service::SetPluginParameter(::grpc::ServerContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace daw -} // namespace api - diff --git a/src/backend/proto/ctrl/frontend_to_engine.grpc.pb.h b/src/backend/proto/ctrl/frontend_to_engine.grpc.pb.h deleted file mode 100644 index 61faab0..0000000 --- a/src/backend/proto/ctrl/frontend_to_engine.grpc.pb.h +++ /dev/null @@ -1,2282 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: ctrl/frontend_to_engine.proto -#ifndef GRPC_ctrl_2ffrontend_5fto_5fengine_2eproto__INCLUDED -#define GRPC_ctrl_2ffrontend_5fto_5fengine_2eproto__INCLUDED - -#include "ctrl/frontend_to_engine.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace daw { -namespace api { - -// =================================================================== -// Service Definitions (gRPC Control Plane) -// =================================================================== -// -class TransportService final { - public: - static constexpr char const* service_full_name() { - return "daw.api.TransportService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - virtual ::grpc::Status Play(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncPlay(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncPlayRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncPlay(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncPlayRaw(context, request, cq)); - } - virtual ::grpc::Status Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncPause(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncPauseRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncPause(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncPauseRaw(context, request, cq)); - } - virtual ::grpc::Status Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncStop(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncStopRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncStopRaw(context, request, cq)); - } - virtual ::grpc::Status SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncSetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncSetTempoRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncSetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncSetTempoRaw(context, request, cq)); - } - class async_interface { - public: - virtual ~async_interface() {} - virtual void Play(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void Play(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncPlayRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncPlayRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncPauseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncPauseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status Play(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncPlay(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncPlayRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncPlay(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncPlayRaw(context, request, cq)); - } - ::grpc::Status Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncPause(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncPauseRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncPause(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncPauseRaw(context, request, cq)); - } - ::grpc::Status Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncStop(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncStopRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncStopRaw(context, request, cq)); - } - ::grpc::Status SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncSetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncSetTempoRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncSetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncSetTempoRaw(context, request, cq)); - } - class async final : - public StubInterface::async_interface { - public: - void Play(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function) override; - void Play(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function) override; - void Pause(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, std::function) override; - void Stop(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, std::function) override; - void SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class async* async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncPlayRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncPlayRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncPauseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncPauseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncStopRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_Play_; - const ::grpc::internal::RpcMethod rpcmethod_Pause_; - const ::grpc::internal::RpcMethod rpcmethod_Stop_; - const ::grpc::internal::RpcMethod rpcmethod_SetTempo_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - virtual ::grpc::Status Play(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response); - virtual ::grpc::Status Pause(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response); - virtual ::grpc::Status Stop(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response); - virtual ::grpc::Status SetTempo(::grpc::ServerContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response); - }; - template - class WithAsyncMethod_Play : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Play() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_Play() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Play(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPlay(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Pause : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Pause() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_Pause() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Pause(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPause(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_Stop : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Stop() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_Stop() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestStop(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SetTempo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SetTempo() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_SetTempo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTempo(::grpc::ServerContext* /*context*/, const ::daw::api::SetTempoRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetTempo(::grpc::ServerContext* context, ::daw::api::SetTempoRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_Play > > > AsyncService; - template - class WithCallbackMethod_Play : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_Play() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response) { return this->Play(context, request, response); }));} - void SetMessageAllocatorFor_Play( - ::grpc::MessageAllocator< ::google::protobuf::Empty, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_Play() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Play(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* Play( - ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_Pause : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_Pause() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response) { return this->Pause(context, request, response); }));} - void SetMessageAllocatorFor_Pause( - ::grpc::MessageAllocator< ::google::protobuf::Empty, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_Pause() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Pause(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* Pause( - ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_Stop : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::StatusResponse* response) { return this->Stop(context, request, response); }));} - void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::google::protobuf::Empty, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_Stop() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_SetTempo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_SetTempo() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::SetTempoRequest, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response) { return this->SetTempo(context, request, response); }));} - void SetMessageAllocatorFor_SetTempo( - ::grpc::MessageAllocator< ::daw::api::SetTempoRequest, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::SetTempoRequest, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_SetTempo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTempo(::grpc::ServerContext* /*context*/, const ::daw::api::SetTempoRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetTempo( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::SetTempoRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_Play > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; - template - class WithGenericMethod_Play : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Play() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_Play() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Play(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Pause : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Pause() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_Pause() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Pause(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_Stop : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Stop() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_Stop() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SetTempo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SetTempo() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_SetTempo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTempo(::grpc::ServerContext* /*context*/, const ::daw::api::SetTempoRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_Play : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Play() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_Play() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Play(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPlay(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Pause : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Pause() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_Pause() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Pause(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPause(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_Stop : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Stop() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_Stop() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestStop(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SetTempo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SetTempo() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_SetTempo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTempo(::grpc::ServerContext* /*context*/, const ::daw::api::SetTempoRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetTempo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawCallbackMethod_Play : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_Play() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Play(context, request, response); })); - } - ~WithRawCallbackMethod_Play() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Play(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* Play( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_Pause : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_Pause() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Pause(context, request, response); })); - } - ~WithRawCallbackMethod_Pause() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Pause(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* Pause( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_Stop : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); - } - ~WithRawCallbackMethod_Stop() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_SetTempo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_SetTempo() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetTempo(context, request, response); })); - } - ~WithRawCallbackMethod_SetTempo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTempo(::grpc::ServerContext* /*context*/, const ::daw::api::SetTempoRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetTempo( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithStreamedUnaryMethod_Play : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Play() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< - ::google::protobuf::Empty, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::google::protobuf::Empty, ::daw::api::StatusResponse>* streamer) { - return this->StreamedPlay(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Play() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Play(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPlay(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Pause : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Pause() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< - ::google::protobuf::Empty, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::google::protobuf::Empty, ::daw::api::StatusResponse>* streamer) { - return this->StreamedPause(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Pause() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Pause(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPause(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_Stop : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Stop() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< - ::google::protobuf::Empty, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::google::protobuf::Empty, ::daw::api::StatusResponse>* streamer) { - return this->StreamedStop(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Stop() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Stop(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedStop(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SetTempo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SetTempo() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::SetTempoRequest, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::SetTempoRequest, ::daw::api::StatusResponse>* streamer) { - return this->StreamedSetTempo(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SetTempo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SetTempo(::grpc::ServerContext* /*context*/, const ::daw::api::SetTempoRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSetTempo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::SetTempoRequest,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_Play > > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_Play > > > StreamedService; -}; - -class ProjectService final { - public: - static constexpr char const* service_full_name() { - return "daw.api.ProjectService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - virtual ::grpc::Status NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::ProjectState* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>> AsyncNewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>>(AsyncNewProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>> PrepareAsyncNewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>>(PrepareAsyncNewProjectRaw(context, request, cq)); - } - virtual ::grpc::Status LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::daw::api::ProjectState* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>> AsyncLoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>>(AsyncLoadProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>> PrepareAsyncLoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>>(PrepareAsyncLoadProjectRaw(context, request, cq)); - } - virtual ::grpc::Status SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncSaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncSaveProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncSaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncSaveProjectRaw(context, request, cq)); - } - class async_interface { - public: - virtual ~async_interface() {} - virtual void NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response, std::function) = 0; - virtual void NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, std::function) = 0; - virtual void LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>* AsyncNewProjectRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>* PrepareAsyncNewProjectRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>* AsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::ProjectState>* PrepareAsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::daw::api::ProjectState* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>> AsyncNewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>>(AsyncNewProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>> PrepareAsyncNewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>>(PrepareAsyncNewProjectRaw(context, request, cq)); - } - ::grpc::Status LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::daw::api::ProjectState* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>> AsyncLoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>>(AsyncLoadProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>> PrepareAsyncLoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>>(PrepareAsyncLoadProjectRaw(context, request, cq)); - } - ::grpc::Status SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncSaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncSaveProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncSaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncSaveProjectRaw(context, request, cq)); - } - class async final : - public StubInterface::async_interface { - public: - void NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response, std::function) override; - void NewProject(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) override; - void LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, std::function) override; - void LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) override; - void SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, std::function) override; - void SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class async* async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* AsyncNewProjectRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* PrepareAsyncNewProjectRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* AsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* PrepareAsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_NewProject_; - const ::grpc::internal::RpcMethod rpcmethod_LoadProject_; - const ::grpc::internal::RpcMethod rpcmethod_SaveProject_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - virtual ::grpc::Status NewProject(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response); - virtual ::grpc::Status LoadProject(::grpc::ServerContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response); - virtual ::grpc::Status SaveProject(::grpc::ServerContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response); - }; - template - class WithAsyncMethod_NewProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_NewProject() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_NewProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NewProject(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestNewProject(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::ProjectState>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_LoadProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_LoadProject() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_LoadProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadProject(::grpc::ServerContext* /*context*/, const ::daw::api::LoadProjectRequest* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLoadProject(::grpc::ServerContext* context, ::daw::api::LoadProjectRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::ProjectState>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SaveProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SaveProject() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_SaveProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SaveProject(::grpc::ServerContext* /*context*/, const ::daw::api::SaveProjectRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSaveProject(::grpc::ServerContext* context, ::daw::api::SaveProjectRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_NewProject > > AsyncService; - template - class WithCallbackMethod_NewProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_NewProject() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::ProjectState>( - [this]( - ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::daw::api::ProjectState* response) { return this->NewProject(context, request, response); }));} - void SetMessageAllocatorFor_NewProject( - ::grpc::MessageAllocator< ::google::protobuf::Empty, ::daw::api::ProjectState>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::daw::api::ProjectState>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_NewProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NewProject(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* NewProject( - ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::ProjectState* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_LoadProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_LoadProject() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::LoadProjectRequest, ::daw::api::ProjectState>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response) { return this->LoadProject(context, request, response); }));} - void SetMessageAllocatorFor_LoadProject( - ::grpc::MessageAllocator< ::daw::api::LoadProjectRequest, ::daw::api::ProjectState>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::LoadProjectRequest, ::daw::api::ProjectState>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_LoadProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadProject(::grpc::ServerContext* /*context*/, const ::daw::api::LoadProjectRequest* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* LoadProject( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::LoadProjectRequest* /*request*/, ::daw::api::ProjectState* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_SaveProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_SaveProject() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response) { return this->SaveProject(context, request, response); }));} - void SetMessageAllocatorFor_SaveProject( - ::grpc::MessageAllocator< ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_SaveProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SaveProject(::grpc::ServerContext* /*context*/, const ::daw::api::SaveProjectRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SaveProject( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::SaveProjectRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_NewProject > > CallbackService; - typedef CallbackService ExperimentalCallbackService; - template - class WithGenericMethod_NewProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_NewProject() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_NewProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NewProject(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_LoadProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_LoadProject() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_LoadProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadProject(::grpc::ServerContext* /*context*/, const ::daw::api::LoadProjectRequest* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SaveProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SaveProject() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_SaveProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SaveProject(::grpc::ServerContext* /*context*/, const ::daw::api::SaveProjectRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_NewProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_NewProject() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_NewProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NewProject(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestNewProject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_LoadProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_LoadProject() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_LoadProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadProject(::grpc::ServerContext* /*context*/, const ::daw::api::LoadProjectRequest* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLoadProject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SaveProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SaveProject() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_SaveProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SaveProject(::grpc::ServerContext* /*context*/, const ::daw::api::SaveProjectRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSaveProject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawCallbackMethod_NewProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_NewProject() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NewProject(context, request, response); })); - } - ~WithRawCallbackMethod_NewProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status NewProject(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* NewProject( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_LoadProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_LoadProject() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LoadProject(context, request, response); })); - } - ~WithRawCallbackMethod_LoadProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadProject(::grpc::ServerContext* /*context*/, const ::daw::api::LoadProjectRequest* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* LoadProject( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_SaveProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_SaveProject() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SaveProject(context, request, response); })); - } - ~WithRawCallbackMethod_SaveProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SaveProject(::grpc::ServerContext* /*context*/, const ::daw::api::SaveProjectRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SaveProject( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithStreamedUnaryMethod_NewProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_NewProject() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< - ::google::protobuf::Empty, ::daw::api::ProjectState>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::google::protobuf::Empty, ::daw::api::ProjectState>* streamer) { - return this->StreamedNewProject(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_NewProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status NewProject(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedNewProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::daw::api::ProjectState>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_LoadProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_LoadProject() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::LoadProjectRequest, ::daw::api::ProjectState>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::LoadProjectRequest, ::daw::api::ProjectState>* streamer) { - return this->StreamedLoadProject(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_LoadProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status LoadProject(::grpc::ServerContext* /*context*/, const ::daw::api::LoadProjectRequest* /*request*/, ::daw::api::ProjectState* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedLoadProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::LoadProjectRequest,::daw::api::ProjectState>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SaveProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SaveProject() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse>* streamer) { - return this->StreamedSaveProject(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SaveProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SaveProject(::grpc::ServerContext* /*context*/, const ::daw::api::SaveProjectRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSaveProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::SaveProjectRequest,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_NewProject > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_NewProject > > StreamedService; -}; - -class TrackService final { - public: - static constexpr char const* service_full_name() { - return "daw.api.TrackService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - virtual ::grpc::Status AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::daw::api::TrackInfo* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::TrackInfo>> AsyncAddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::TrackInfo>>(AsyncAddTrackRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::TrackInfo>> PrepareAsyncAddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::TrackInfo>>(PrepareAsyncAddTrackRaw(context, request, cq)); - } - virtual ::grpc::Status RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncRemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncRemoveTrackRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncRemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncRemoveTrackRaw(context, request, cq)); - } - virtual ::grpc::Status SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncSetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncSetTrackVolumeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncSetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncSetTrackVolumeRaw(context, request, cq)); - } - virtual ::grpc::Status SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncSetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncSetTrackPanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncSetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncSetTrackPanRaw(context, request, cq)); - } - class async_interface { - public: - virtual ~async_interface() {} - virtual void AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, std::function) = 0; - virtual void AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::TrackInfo>* AsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::TrackInfo>* PrepareAsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::daw::api::TrackInfo* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>> AsyncAddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>>(AsyncAddTrackRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>> PrepareAsyncAddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>>(PrepareAsyncAddTrackRaw(context, request, cq)); - } - ::grpc::Status RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncRemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncRemoveTrackRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncRemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncRemoveTrackRaw(context, request, cq)); - } - ::grpc::Status SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncSetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncSetTrackVolumeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncSetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncSetTrackVolumeRaw(context, request, cq)); - } - ::grpc::Status SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncSetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncSetTrackPanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncSetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncSetTrackPanRaw(context, request, cq)); - } - class async final : - public StubInterface::async_interface { - public: - void AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, std::function) override; - void AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, ::grpc::ClientUnaryReactor* reactor) override; - void RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, std::function) override; - void RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, std::function) override; - void SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, std::function) override; - void SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class async* async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>* AsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>* PrepareAsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_AddTrack_; - const ::grpc::internal::RpcMethod rpcmethod_RemoveTrack_; - const ::grpc::internal::RpcMethod rpcmethod_SetTrackVolume_; - const ::grpc::internal::RpcMethod rpcmethod_SetTrackPan_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - virtual ::grpc::Status AddTrack(::grpc::ServerContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response); - virtual ::grpc::Status RemoveTrack(::grpc::ServerContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response); - virtual ::grpc::Status SetTrackVolume(::grpc::ServerContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response); - virtual ::grpc::Status SetTrackPan(::grpc::ServerContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response); - }; - template - class WithAsyncMethod_AddTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_AddTrack() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_AddTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTrack(::grpc::ServerContext* /*context*/, const ::daw::api::AddTrackRequest* /*request*/, ::daw::api::TrackInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAddTrack(::grpc::ServerContext* context, ::daw::api::AddTrackRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::TrackInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_RemoveTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_RemoveTrack() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_RemoveTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RemoveTrack(::grpc::ServerContext* /*context*/, const ::daw::api::TrackIdRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRemoveTrack(::grpc::ServerContext* context, ::daw::api::TrackIdRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SetTrackVolume : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SetTrackVolume() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_SetTrackVolume() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackVolume(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackVolumeRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetTrackVolume(::grpc::ServerContext* context, ::daw::api::SetTrackVolumeRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SetTrackPan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SetTrackPan() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_SetTrackPan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackPan(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackPanRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetTrackPan(::grpc::ServerContext* context, ::daw::api::SetTrackPanRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_AddTrack > > > AsyncService; - template - class WithCallbackMethod_AddTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_AddTrack() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::AddTrackRequest, ::daw::api::TrackInfo>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response) { return this->AddTrack(context, request, response); }));} - void SetMessageAllocatorFor_AddTrack( - ::grpc::MessageAllocator< ::daw::api::AddTrackRequest, ::daw::api::TrackInfo>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::AddTrackRequest, ::daw::api::TrackInfo>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_AddTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTrack(::grpc::ServerContext* /*context*/, const ::daw::api::AddTrackRequest* /*request*/, ::daw::api::TrackInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* AddTrack( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::AddTrackRequest* /*request*/, ::daw::api::TrackInfo* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_RemoveTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_RemoveTrack() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::TrackIdRequest, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response) { return this->RemoveTrack(context, request, response); }));} - void SetMessageAllocatorFor_RemoveTrack( - ::grpc::MessageAllocator< ::daw::api::TrackIdRequest, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::TrackIdRequest, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_RemoveTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RemoveTrack(::grpc::ServerContext* /*context*/, const ::daw::api::TrackIdRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* RemoveTrack( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::TrackIdRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_SetTrackVolume : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_SetTrackVolume() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response) { return this->SetTrackVolume(context, request, response); }));} - void SetMessageAllocatorFor_SetTrackVolume( - ::grpc::MessageAllocator< ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_SetTrackVolume() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackVolume(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackVolumeRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetTrackVolume( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::SetTrackVolumeRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_SetTrackPan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_SetTrackPan() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response) { return this->SetTrackPan(context, request, response); }));} - void SetMessageAllocatorFor_SetTrackPan( - ::grpc::MessageAllocator< ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_SetTrackPan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackPan(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackPanRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetTrackPan( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::SetTrackPanRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_AddTrack > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; - template - class WithGenericMethod_AddTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_AddTrack() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_AddTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTrack(::grpc::ServerContext* /*context*/, const ::daw::api::AddTrackRequest* /*request*/, ::daw::api::TrackInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_RemoveTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_RemoveTrack() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_RemoveTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RemoveTrack(::grpc::ServerContext* /*context*/, const ::daw::api::TrackIdRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SetTrackVolume : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SetTrackVolume() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_SetTrackVolume() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackVolume(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackVolumeRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SetTrackPan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SetTrackPan() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_SetTrackPan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackPan(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackPanRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_AddTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_AddTrack() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_AddTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTrack(::grpc::ServerContext* /*context*/, const ::daw::api::AddTrackRequest* /*request*/, ::daw::api::TrackInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAddTrack(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_RemoveTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_RemoveTrack() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_RemoveTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RemoveTrack(::grpc::ServerContext* /*context*/, const ::daw::api::TrackIdRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRemoveTrack(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SetTrackVolume : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SetTrackVolume() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_SetTrackVolume() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackVolume(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackVolumeRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetTrackVolume(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SetTrackPan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SetTrackPan() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_SetTrackPan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackPan(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackPanRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetTrackPan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawCallbackMethod_AddTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_AddTrack() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddTrack(context, request, response); })); - } - ~WithRawCallbackMethod_AddTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTrack(::grpc::ServerContext* /*context*/, const ::daw::api::AddTrackRequest* /*request*/, ::daw::api::TrackInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* AddTrack( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_RemoveTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_RemoveTrack() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveTrack(context, request, response); })); - } - ~WithRawCallbackMethod_RemoveTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RemoveTrack(::grpc::ServerContext* /*context*/, const ::daw::api::TrackIdRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* RemoveTrack( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_SetTrackVolume : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_SetTrackVolume() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetTrackVolume(context, request, response); })); - } - ~WithRawCallbackMethod_SetTrackVolume() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackVolume(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackVolumeRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetTrackVolume( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_SetTrackPan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_SetTrackPan() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetTrackPan(context, request, response); })); - } - ~WithRawCallbackMethod_SetTrackPan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetTrackPan(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackPanRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetTrackPan( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithStreamedUnaryMethod_AddTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_AddTrack() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::AddTrackRequest, ::daw::api::TrackInfo>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::AddTrackRequest, ::daw::api::TrackInfo>* streamer) { - return this->StreamedAddTrack(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_AddTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status AddTrack(::grpc::ServerContext* /*context*/, const ::daw::api::AddTrackRequest* /*request*/, ::daw::api::TrackInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedAddTrack(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::AddTrackRequest,::daw::api::TrackInfo>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_RemoveTrack : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_RemoveTrack() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::TrackIdRequest, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::TrackIdRequest, ::daw::api::StatusResponse>* streamer) { - return this->StreamedRemoveTrack(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_RemoveTrack() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status RemoveTrack(::grpc::ServerContext* /*context*/, const ::daw::api::TrackIdRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedRemoveTrack(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::TrackIdRequest,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SetTrackVolume : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SetTrackVolume() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse>* streamer) { - return this->StreamedSetTrackVolume(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SetTrackVolume() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SetTrackVolume(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackVolumeRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSetTrackVolume(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::SetTrackVolumeRequest,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SetTrackPan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SetTrackPan() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse>* streamer) { - return this->StreamedSetTrackPan(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SetTrackPan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SetTrackPan(::grpc::ServerContext* /*context*/, const ::daw::api::SetTrackPanRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSetTrackPan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::SetTrackPanRequest,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_AddTrack > > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_AddTrack > > > StreamedService; -}; - -class PluginService final { - public: - static constexpr char const* service_full_name() { - return "daw.api.PluginService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - virtual ::grpc::Status LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::daw::api::PluginInfo* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::PluginInfo>> AsyncLoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::PluginInfo>>(AsyncLoadPluginRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::PluginInfo>> PrepareAsyncLoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::PluginInfo>>(PrepareAsyncLoadPluginRaw(context, request, cq)); - } - virtual ::grpc::Status SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::daw::api::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> AsyncSetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(AsyncSetPluginParameterRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>> PrepareAsyncSetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>>(PrepareAsyncSetPluginParameterRaw(context, request, cq)); - } - class async_interface { - public: - virtual ~async_interface() {} - virtual void LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, std::function) = 0; - virtual void LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, std::function) = 0; - virtual void SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::PluginInfo>* AsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::PluginInfo>* PrepareAsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* AsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::daw::api::StatusResponse>* PrepareAsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::daw::api::PluginInfo* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>> AsyncLoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>>(AsyncLoadPluginRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>> PrepareAsyncLoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>>(PrepareAsyncLoadPluginRaw(context, request, cq)); - } - ::grpc::Status SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::daw::api::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> AsyncSetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(AsyncSetPluginParameterRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>> PrepareAsyncSetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>>(PrepareAsyncSetPluginParameterRaw(context, request, cq)); - } - class async final : - public StubInterface::async_interface { - public: - void LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, std::function) override; - void LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, ::grpc::ClientUnaryReactor* reactor) override; - void SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, std::function) override; - void SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class async* async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>* AsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>* PrepareAsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* AsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PrepareAsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_LoadPlugin_; - const ::grpc::internal::RpcMethod rpcmethod_SetPluginParameter_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - virtual ::grpc::Status LoadPlugin(::grpc::ServerContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response); - virtual ::grpc::Status SetPluginParameter(::grpc::ServerContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response); - }; - template - class WithAsyncMethod_LoadPlugin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_LoadPlugin() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_LoadPlugin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadPlugin(::grpc::ServerContext* /*context*/, const ::daw::api::LoadPluginRequest* /*request*/, ::daw::api::PluginInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLoadPlugin(::grpc::ServerContext* context, ::daw::api::LoadPluginRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::PluginInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SetPluginParameter : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SetPluginParameter() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_SetPluginParameter() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetPluginParameter(::grpc::ServerContext* /*context*/, const ::daw::api::SetPluginParameterRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetPluginParameter(::grpc::ServerContext* context, ::daw::api::SetPluginParameterRequest* request, ::grpc::ServerAsyncResponseWriter< ::daw::api::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_LoadPlugin > AsyncService; - template - class WithCallbackMethod_LoadPlugin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_LoadPlugin() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response) { return this->LoadPlugin(context, request, response); }));} - void SetMessageAllocatorFor_LoadPlugin( - ::grpc::MessageAllocator< ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_LoadPlugin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadPlugin(::grpc::ServerContext* /*context*/, const ::daw::api::LoadPluginRequest* /*request*/, ::daw::api::PluginInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* LoadPlugin( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::LoadPluginRequest* /*request*/, ::daw::api::PluginInfo* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_SetPluginParameter : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_SetPluginParameter() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response) { return this->SetPluginParameter(context, request, response); }));} - void SetMessageAllocatorFor_SetPluginParameter( - ::grpc::MessageAllocator< ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_SetPluginParameter() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetPluginParameter(::grpc::ServerContext* /*context*/, const ::daw::api::SetPluginParameterRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetPluginParameter( - ::grpc::CallbackServerContext* /*context*/, const ::daw::api::SetPluginParameterRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_LoadPlugin > CallbackService; - typedef CallbackService ExperimentalCallbackService; - template - class WithGenericMethod_LoadPlugin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_LoadPlugin() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_LoadPlugin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadPlugin(::grpc::ServerContext* /*context*/, const ::daw::api::LoadPluginRequest* /*request*/, ::daw::api::PluginInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SetPluginParameter : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SetPluginParameter() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_SetPluginParameter() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetPluginParameter(::grpc::ServerContext* /*context*/, const ::daw::api::SetPluginParameterRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_LoadPlugin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_LoadPlugin() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_LoadPlugin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadPlugin(::grpc::ServerContext* /*context*/, const ::daw::api::LoadPluginRequest* /*request*/, ::daw::api::PluginInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestLoadPlugin(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SetPluginParameter : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SetPluginParameter() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_SetPluginParameter() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetPluginParameter(::grpc::ServerContext* /*context*/, const ::daw::api::SetPluginParameterRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetPluginParameter(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawCallbackMethod_LoadPlugin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_LoadPlugin() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LoadPlugin(context, request, response); })); - } - ~WithRawCallbackMethod_LoadPlugin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status LoadPlugin(::grpc::ServerContext* /*context*/, const ::daw::api::LoadPluginRequest* /*request*/, ::daw::api::PluginInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* LoadPlugin( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_SetPluginParameter : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_SetPluginParameter() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPluginParameter(context, request, response); })); - } - ~WithRawCallbackMethod_SetPluginParameter() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetPluginParameter(::grpc::ServerContext* /*context*/, const ::daw::api::SetPluginParameterRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetPluginParameter( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithStreamedUnaryMethod_LoadPlugin : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_LoadPlugin() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo>* streamer) { - return this->StreamedLoadPlugin(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_LoadPlugin() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status LoadPlugin(::grpc::ServerContext* /*context*/, const ::daw::api::LoadPluginRequest* /*request*/, ::daw::api::PluginInfo* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedLoadPlugin(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::LoadPluginRequest,::daw::api::PluginInfo>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SetPluginParameter : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SetPluginParameter() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< - ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse>* streamer) { - return this->StreamedSetPluginParameter(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SetPluginParameter() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SetPluginParameter(::grpc::ServerContext* /*context*/, const ::daw::api::SetPluginParameterRequest* /*request*/, ::daw::api::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSetPluginParameter(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::daw::api::SetPluginParameterRequest,::daw::api::StatusResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_LoadPlugin > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_LoadPlugin > StreamedService; -}; - -} // namespace api -} // namespace daw - - -#include -#endif // GRPC_ctrl_2ffrontend_5fto_5fengine_2eproto__INCLUDED diff --git a/src/backend/proto/ctrl/frontend_to_engine.pb.cc b/src/backend/proto/ctrl/frontend_to_engine.pb.cc deleted file mode 100644 index 80450c0..0000000 --- a/src/backend/proto/ctrl/frontend_to_engine.pb.cc +++ /dev/null @@ -1,5846 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: ctrl/frontend_to_engine.proto -// Protobuf C++ Version: 5.29.3 - -#include "ctrl/frontend_to_engine.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace daw { -namespace api { - -inline constexpr VUMeterUpdate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : track_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - peak_dbfs_{0}, - rms_dbfs_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR VUMeterUpdate::VUMeterUpdate(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct VUMeterUpdateDefaultTypeInternal { - PROTOBUF_CONSTEXPR VUMeterUpdateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VUMeterUpdateDefaultTypeInternal() {} - union { - VUMeterUpdate _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VUMeterUpdateDefaultTypeInternal _VUMeterUpdate_default_instance_; - -inline constexpr TrackIdRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : track_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR TrackIdRequest::TrackIdRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct TrackIdRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackIdRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackIdRequestDefaultTypeInternal() {} - union { - TrackIdRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackIdRequestDefaultTypeInternal _TrackIdRequest_default_instance_; - -inline constexpr StatusResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : error_message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - success_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StatusResponse::StatusResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct StatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusResponseDefaultTypeInternal() {} - union { - StatusResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; - -inline constexpr SetTrackVolumeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : track_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - volume_db_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SetTrackVolumeRequest::SetTrackVolumeRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SetTrackVolumeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTrackVolumeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetTrackVolumeRequestDefaultTypeInternal() {} - union { - SetTrackVolumeRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTrackVolumeRequestDefaultTypeInternal _SetTrackVolumeRequest_default_instance_; - -inline constexpr SetTrackPanRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : track_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pan_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SetTrackPanRequest::SetTrackPanRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SetTrackPanRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTrackPanRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetTrackPanRequestDefaultTypeInternal() {} - union { - SetTrackPanRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTrackPanRequestDefaultTypeInternal _SetTrackPanRequest_default_instance_; - -inline constexpr SetTempoRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : bpm_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SetTempoRequest::SetTempoRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SetTempoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTempoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetTempoRequestDefaultTypeInternal() {} - union { - SetTempoRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTempoRequestDefaultTypeInternal _SetTempoRequest_default_instance_; - -inline constexpr SetPluginParameterRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : instance_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_{0}, - parameter_id_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SetPluginParameterRequest::SetPluginParameterRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SetPluginParameterRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPluginParameterRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPluginParameterRequestDefaultTypeInternal() {} - union { - SetPluginParameterRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPluginParameterRequestDefaultTypeInternal _SetPluginParameterRequest_default_instance_; - -inline constexpr SaveProjectRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : file_path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SaveProjectRequest::SaveProjectRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SaveProjectRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SaveProjectRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SaveProjectRequestDefaultTypeInternal() {} - union { - SaveProjectRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SaveProjectRequestDefaultTypeInternal _SaveProjectRequest_default_instance_; - -inline constexpr RealtimeCursorPosition::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : time_in_seconds_{0}, - absolute_ticks_{::int64_t{0}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RealtimeCursorPosition::RealtimeCursorPosition(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RealtimeCursorPositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR RealtimeCursorPositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RealtimeCursorPositionDefaultTypeInternal() {} - union { - RealtimeCursorPosition _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RealtimeCursorPositionDefaultTypeInternal _RealtimeCursorPosition_default_instance_; - -inline constexpr PluginParameter::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_{0}, - parameter_id_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PluginParameter::PluginParameter(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct PluginParameterDefaultTypeInternal { - PROTOBUF_CONSTEXPR PluginParameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PluginParameterDefaultTypeInternal() {} - union { - PluginParameter _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PluginParameterDefaultTypeInternal _PluginParameter_default_instance_; - -inline constexpr PlaybackState::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : bar_{0}, - beat_{0}, - bpm_{0}, - tick_{0}, - is_playing_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PlaybackState::PlaybackState(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct PlaybackStateDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlaybackStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PlaybackStateDefaultTypeInternal() {} - union { - PlaybackState _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlaybackStateDefaultTypeInternal _PlaybackState_default_instance_; - -inline constexpr LoadProjectRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : file_path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LoadProjectRequest::LoadProjectRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct LoadProjectRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LoadProjectRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LoadProjectRequestDefaultTypeInternal() {} - union { - LoadProjectRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LoadProjectRequestDefaultTypeInternal _LoadProjectRequest_default_instance_; - -inline constexpr LoadPluginRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : file_path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LoadPluginRequest::LoadPluginRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct LoadPluginRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LoadPluginRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LoadPluginRequestDefaultTypeInternal() {} - union { - LoadPluginRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LoadPluginRequestDefaultTypeInternal _LoadPluginRequest_default_instance_; - -inline constexpr AddTrackRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::daw::api::TrackType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AddTrackRequest::AddTrackRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct AddTrackRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddTrackRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddTrackRequestDefaultTypeInternal() {} - union { - AddTrackRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddTrackRequestDefaultTypeInternal _AddTrackRequest_default_instance_; - -inline constexpr VUMeterData::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : updates_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR VUMeterData::VUMeterData(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct VUMeterDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR VUMeterDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VUMeterDataDefaultTypeInternal() {} - union { - VUMeterData _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VUMeterDataDefaultTypeInternal _VUMeterData_default_instance_; - -inline constexpr PluginInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : parameters_{}, - instance_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - is_bypassed_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PluginInfo::PluginInfo(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct PluginInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR PluginInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PluginInfoDefaultTypeInternal() {} - union { - PluginInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PluginInfoDefaultTypeInternal _PluginInfo_default_instance_; - -inline constexpr TrackInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : plugins_{}, - track_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::daw::api::TrackType >(0)}, - volume_db_{0}, - pan_{0}, - is_muted_{false}, - is_soloed_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR TrackInfo::TrackInfo(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct TrackInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrackInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrackInfoDefaultTypeInternal() {} - union { - TrackInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackInfoDefaultTypeInternal _TrackInfo_default_instance_; - -inline constexpr ProjectState::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - tracks_{}, - project_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - project_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - playback_state_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ProjectState::ProjectState(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ProjectStateDefaultTypeInternal { - PROTOBUF_CONSTEXPR ProjectStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ProjectStateDefaultTypeInternal() {} - union { - ProjectState _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProjectStateDefaultTypeInternal _ProjectState_default_instance_; -} // namespace api -} // namespace daw -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_ctrl_2ffrontend_5fto_5fengine_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_ctrl_2ffrontend_5fto_5fengine_2eproto = nullptr; -const ::uint32_t - TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::StatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::StatusResponse, _impl_.success_), - PROTOBUF_FIELD_OFFSET(::daw::api::StatusResponse, _impl_.error_message_), - PROTOBUF_FIELD_OFFSET(::daw::api::ProjectState, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::daw::api::ProjectState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::ProjectState, _impl_.project_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::ProjectState, _impl_.project_name_), - PROTOBUF_FIELD_OFFSET(::daw::api::ProjectState, _impl_.playback_state_), - PROTOBUF_FIELD_OFFSET(::daw::api::ProjectState, _impl_.tracks_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::LoadProjectRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::LoadProjectRequest, _impl_.file_path_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::SaveProjectRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::SaveProjectRequest, _impl_.file_path_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::PlaybackState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::PlaybackState, _impl_.bar_), - PROTOBUF_FIELD_OFFSET(::daw::api::PlaybackState, _impl_.beat_), - PROTOBUF_FIELD_OFFSET(::daw::api::PlaybackState, _impl_.tick_), - PROTOBUF_FIELD_OFFSET(::daw::api::PlaybackState, _impl_.bpm_), - PROTOBUF_FIELD_OFFSET(::daw::api::PlaybackState, _impl_.is_playing_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::SetTempoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::SetTempoRequest, _impl_.bpm_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.track_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.volume_db_), - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.pan_), - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.is_muted_), - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.is_soloed_), - PROTOBUF_FIELD_OFFSET(::daw::api::TrackInfo, _impl_.plugins_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::AddTrackRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::AddTrackRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::daw::api::AddTrackRequest, _impl_.type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::TrackIdRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::TrackIdRequest, _impl_.track_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::SetTrackVolumeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::SetTrackVolumeRequest, _impl_.track_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::SetTrackVolumeRequest, _impl_.volume_db_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::SetTrackPanRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::SetTrackPanRequest, _impl_.track_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::SetTrackPanRequest, _impl_.pan_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::PluginInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::PluginInfo, _impl_.instance_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::PluginInfo, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::daw::api::PluginInfo, _impl_.is_bypassed_), - PROTOBUF_FIELD_OFFSET(::daw::api::PluginInfo, _impl_.parameters_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::PluginParameter, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::PluginParameter, _impl_.parameter_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::PluginParameter, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::daw::api::PluginParameter, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::SetPluginParameterRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::SetPluginParameterRequest, _impl_.instance_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::SetPluginParameterRequest, _impl_.parameter_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::SetPluginParameterRequest, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::LoadPluginRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::LoadPluginRequest, _impl_.file_path_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::VUMeterUpdate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::VUMeterUpdate, _impl_.track_id_), - PROTOBUF_FIELD_OFFSET(::daw::api::VUMeterUpdate, _impl_.peak_dbfs_), - PROTOBUF_FIELD_OFFSET(::daw::api::VUMeterUpdate, _impl_.rms_dbfs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::VUMeterData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::VUMeterData, _impl_.updates_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::api::RealtimeCursorPosition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::api::RealtimeCursorPosition, _impl_.time_in_seconds_), - PROTOBUF_FIELD_OFFSET(::daw::api::RealtimeCursorPosition, _impl_.absolute_ticks_), -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::daw::api::StatusResponse)}, - {10, 22, -1, sizeof(::daw::api::ProjectState)}, - {26, -1, -1, sizeof(::daw::api::LoadProjectRequest)}, - {35, -1, -1, sizeof(::daw::api::SaveProjectRequest)}, - {44, -1, -1, sizeof(::daw::api::PlaybackState)}, - {57, -1, -1, sizeof(::daw::api::SetTempoRequest)}, - {66, -1, -1, sizeof(::daw::api::TrackInfo)}, - {82, -1, -1, sizeof(::daw::api::AddTrackRequest)}, - {92, -1, -1, sizeof(::daw::api::TrackIdRequest)}, - {101, -1, -1, sizeof(::daw::api::SetTrackVolumeRequest)}, - {111, -1, -1, sizeof(::daw::api::SetTrackPanRequest)}, - {121, -1, -1, sizeof(::daw::api::PluginInfo)}, - {133, -1, -1, sizeof(::daw::api::PluginParameter)}, - {144, -1, -1, sizeof(::daw::api::SetPluginParameterRequest)}, - {155, -1, -1, sizeof(::daw::api::LoadPluginRequest)}, - {164, -1, -1, sizeof(::daw::api::VUMeterUpdate)}, - {175, -1, -1, sizeof(::daw::api::VUMeterData)}, - {184, -1, -1, sizeof(::daw::api::RealtimeCursorPosition)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::daw::api::_StatusResponse_default_instance_._instance, - &::daw::api::_ProjectState_default_instance_._instance, - &::daw::api::_LoadProjectRequest_default_instance_._instance, - &::daw::api::_SaveProjectRequest_default_instance_._instance, - &::daw::api::_PlaybackState_default_instance_._instance, - &::daw::api::_SetTempoRequest_default_instance_._instance, - &::daw::api::_TrackInfo_default_instance_._instance, - &::daw::api::_AddTrackRequest_default_instance_._instance, - &::daw::api::_TrackIdRequest_default_instance_._instance, - &::daw::api::_SetTrackVolumeRequest_default_instance_._instance, - &::daw::api::_SetTrackPanRequest_default_instance_._instance, - &::daw::api::_PluginInfo_default_instance_._instance, - &::daw::api::_PluginParameter_default_instance_._instance, - &::daw::api::_SetPluginParameterRequest_default_instance_._instance, - &::daw::api::_LoadPluginRequest_default_instance_._instance, - &::daw::api::_VUMeterUpdate_default_instance_._instance, - &::daw::api::_VUMeterData_default_instance_._instance, - &::daw::api::_RealtimeCursorPosition_default_instance_._instance, -}; -const char descriptor_table_protodef_ctrl_2ffrontend_5fto_5fengine_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\035ctrl/frontend_to_engine.proto\022\007daw.api" - "\032\033google/protobuf/empty.proto\"8\n\016StatusR" - "esponse\022\017\n\007success\030\001 \001(\010\022\025\n\rerror_messag" - "e\030\002 \001(\t\"\214\001\n\014ProjectState\022\022\n\nproject_id\030\001" - " \001(\t\022\024\n\014project_name\030\002 \001(\t\022.\n\016playback_s" - "tate\030\003 \001(\0132\026.daw.api.PlaybackState\022\"\n\006tr" - "acks\030\004 \003(\0132\022.daw.api.TrackInfo\"\'\n\022LoadPr" - "ojectRequest\022\021\n\tfile_path\030\001 \001(\t\"\'\n\022SaveP" - "rojectRequest\022\021\n\tfile_path\030\001 \001(\t\"Y\n\rPlay" - "backState\022\013\n\003bar\030\001 \001(\005\022\014\n\004beat\030\002 \001(\005\022\014\n\004" - "tick\030\003 \001(\005\022\013\n\003bpm\030\004 \001(\001\022\022\n\nis_playing\030\006 " - "\001(\010\"\036\n\017SetTempoRequest\022\013\n\003bpm\030\001 \001(\001\"\270\001\n\t" - "TrackInfo\022\020\n\010track_id\030\001 \001(\t\022\014\n\004name\030\002 \001(" - "\t\022 \n\004type\030\003 \001(\0162\022.daw.api.TrackType\022\021\n\tv" - "olume_db\030\005 \001(\002\022\013\n\003pan\030\006 \001(\002\022\020\n\010is_muted\030" - "\007 \001(\010\022\021\n\tis_soloed\030\010 \001(\010\022$\n\007plugins\030\t \003(" - "\0132\023.daw.api.PluginInfo\"A\n\017AddTrackReques" - "t\022\014\n\004name\030\001 \001(\t\022 \n\004type\030\002 \001(\0162\022.daw.api." - "TrackType\"\"\n\016TrackIdRequest\022\020\n\010track_id\030" - "\001 \001(\t\"<\n\025SetTrackVolumeRequest\022\020\n\010track_" - "id\030\001 \001(\t\022\021\n\tvolume_db\030\002 \001(\002\"3\n\022SetTrackP" - "anRequest\022\020\n\010track_id\030\001 \001(\t\022\013\n\003pan\030\002 \001(\002" - "\"r\n\nPluginInfo\022\023\n\013instance_id\030\001 \001(\t\022\014\n\004n" - "ame\030\002 \001(\t\022\023\n\013is_bypassed\030\004 \001(\010\022,\n\nparame" - "ters\030\005 \003(\0132\030.daw.api.PluginParameter\"D\n\017" - "PluginParameter\022\024\n\014parameter_id\030\001 \001(\r\022\014\n" - "\004name\030\002 \001(\t\022\r\n\005value\030\003 \001(\001\"U\n\031SetPluginP" - "arameterRequest\022\023\n\013instance_id\030\001 \001(\t\022\024\n\014" - "parameter_id\030\002 \001(\r\022\r\n\005value\030\003 \001(\001\"&\n\021Loa" - "dPluginRequest\022\021\n\tfile_path\030\001 \001(\t\"F\n\rVUM" - "eterUpdate\022\020\n\010track_id\030\001 \001(\t\022\021\n\tpeak_dbf" - "s\030\002 \001(\002\022\020\n\010rms_dbfs\030\003 \001(\002\"6\n\013VUMeterData" - "\022\'\n\007updates\030\001 \003(\0132\026.daw.api.VUMeterUpdat" - "e\"I\n\026RealtimeCursorPosition\022\027\n\017time_in_s" - "econds\030\001 \001(\001\022\026\n\016absolute_ticks\030\002 \001(\003* \n\t" - "TrackType\022\t\n\005AUDIO\020\000\022\010\n\004MIDI\020\0012\375\001\n\020Trans" - "portService\0227\n\004Play\022\026.google.protobuf.Em" - "pty\032\027.daw.api.StatusResponse\0228\n\005Pause\022\026." - "google.protobuf.Empty\032\027.daw.api.StatusRe" - "sponse\0227\n\004Stop\022\026.google.protobuf.Empty\032\027" - ".daw.api.StatusResponse\022=\n\010SetTempo\022\030.da" - "w.api.SetTempoRequest\032\027.daw.api.StatusRe" - "sponse2\325\001\n\016ProjectService\022;\n\nNewProject\022" - "\026.google.protobuf.Empty\032\025.daw.api.Projec" - "tState\022A\n\013LoadProject\022\033.daw.api.LoadProj" - "ectRequest\032\025.daw.api.ProjectState\022C\n\013Sav" - "eProject\022\033.daw.api.SaveProjectRequest\032\027." - "daw.api.StatusResponse2\231\002\n\014TrackService\022" - "8\n\010AddTrack\022\030.daw.api.AddTrackRequest\032\022." - "daw.api.TrackInfo\022\?\n\013RemoveTrack\022\027.daw.a" - "pi.TrackIdRequest\032\027.daw.api.StatusRespon" - "se\022I\n\016SetTrackVolume\022\036.daw.api.SetTrackV" - "olumeRequest\032\027.daw.api.StatusResponse\022C\n" - "\013SetTrackPan\022\033.daw.api.SetTrackPanReques" - "t\032\027.daw.api.StatusResponse2\241\001\n\rPluginSer" - "vice\022=\n\nLoadPlugin\022\032.daw.api.LoadPluginR" - "equest\032\023.daw.api.PluginInfo\022Q\n\022SetPlugin" - "Parameter\022\".daw.api.SetPluginParameterRe" - "quest\032\027.daw.api.StatusResponseb\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fempty_2eproto, -}; -static ::absl::once_flag descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto_once; -PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto = { - false, - false, - 2358, - descriptor_table_protodef_ctrl_2ffrontend_5fto_5fengine_2eproto, - "ctrl/frontend_to_engine.proto", - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto_once, - descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto_deps, - 1, - 18, - schemas, - file_default_instances, - TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto::offsets, - file_level_enum_descriptors_ctrl_2ffrontend_5fto_5fengine_2eproto, - file_level_service_descriptors_ctrl_2ffrontend_5fto_5fengine_2eproto, -}; -namespace daw { -namespace api { -const ::google::protobuf::EnumDescriptor* TrackType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto); - return file_level_enum_descriptors_ctrl_2ffrontend_5fto_5fengine_2eproto[0]; -} -PROTOBUF_CONSTINIT const uint32_t TrackType_internal_data_[] = { - 131072u, 0u, }; -bool TrackType_IsValid(int value) { - return 0 <= value && value <= 1; -} -// =================================================================== - -class StatusResponse::_Internal { - public: -}; - -StatusResponse::StatusResponse(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.StatusResponse) -} -inline PROTOBUF_NDEBUG_INLINE StatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::StatusResponse& from_msg) - : error_message_(arena, from.error_message_), - _cached_size_{0} {} - -StatusResponse::StatusResponse( - ::google::protobuf::Arena* arena, - const StatusResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - StatusResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.success_ = from._impl_.success_; - - // @@protoc_insertion_point(copy_constructor:daw.api.StatusResponse) -} -inline PROTOBUF_NDEBUG_INLINE StatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : error_message_(arena), - _cached_size_{0} {} - -inline void StatusResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.success_ = {}; -} -StatusResponse::~StatusResponse() { - // @@protoc_insertion_point(destructor:daw.api.StatusResponse) - SharedDtor(*this); -} -inline void StatusResponse::SharedDtor(MessageLite& self) { - StatusResponse& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_message_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* StatusResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) StatusResponse(arena); -} -constexpr auto StatusResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(StatusResponse), - alignof(StatusResponse)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull StatusResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_StatusResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &StatusResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &StatusResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &StatusResponse::ByteSizeLong, - &StatusResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._cached_size_), - false, - }, - &StatusResponse::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* StatusResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 44, 2> StatusResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::StatusResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string error_message = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.error_message_)}}, - // bool success = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.success_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool success = 1; - {PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.success_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // string error_message = 2; - {PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_.error_message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\26\0\15\0\0\0\0\0" - "daw.api.StatusResponse" - "error_message" - }}, -}; - -PROTOBUF_NOINLINE void StatusResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.StatusResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.error_message_.ClearToEmpty(); - _impl_.success_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* StatusResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const StatusResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* StatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const StatusResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.StatusResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool success = 1; - if (this_._internal_success() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this_._internal_success(), target); - } - - // string error_message = 2; - if (!this_._internal_error_message().empty()) { - const std::string& _s = this_._internal_error_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.StatusResponse.error_message"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.StatusResponse) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t StatusResponse::ByteSizeLong(const MessageLite& base) { - const StatusResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t StatusResponse::ByteSizeLong() const { - const StatusResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.StatusResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string error_message = 2; - if (!this_._internal_error_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error_message()); - } - // bool success = 1; - if (this_._internal_success() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void StatusResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.StatusResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_error_message().empty()) { - _this->_internal_set_error_message(from._internal_error_message()); - } - if (from._internal_success() != 0) { - _this->_impl_.success_ = from._impl_.success_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void StatusResponse::CopyFrom(const StatusResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.StatusResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void StatusResponse::InternalSwap(StatusResponse* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_message_, &other->_impl_.error_message_, arena); - swap(_impl_.success_, other->_impl_.success_); -} - -::google::protobuf::Metadata StatusResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ProjectState::_Internal { - public: - using HasBits = - decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ProjectState, _impl_._has_bits_); -}; - -ProjectState::ProjectState(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.ProjectState) -} -inline PROTOBUF_NDEBUG_INLINE ProjectState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::ProjectState& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - tracks_{visibility, arena, from.tracks_}, - project_id_(arena, from.project_id_), - project_name_(arena, from.project_name_) {} - -ProjectState::ProjectState( - ::google::protobuf::Arena* arena, - const ProjectState& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ProjectState* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.playback_state_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::daw::api::PlaybackState>( - arena, *from._impl_.playback_state_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:daw.api.ProjectState) -} -inline PROTOBUF_NDEBUG_INLINE ProjectState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - tracks_{visibility, arena}, - project_id_(arena), - project_name_(arena) {} - -inline void ProjectState::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.playback_state_ = {}; -} -ProjectState::~ProjectState() { - // @@protoc_insertion_point(destructor:daw.api.ProjectState) - SharedDtor(*this); -} -inline void ProjectState::SharedDtor(MessageLite& self) { - ProjectState& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.project_id_.Destroy(); - this_._impl_.project_name_.Destroy(); - delete this_._impl_.playback_state_; - this_._impl_.~Impl_(); -} - -inline void* ProjectState::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) ProjectState(arena); -} -constexpr auto ProjectState::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.tracks_) + - decltype(ProjectState::_impl_.tracks_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(ProjectState), alignof(ProjectState), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&ProjectState::PlacementNew_, - sizeof(ProjectState), - alignof(ProjectState)); - } -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ProjectState::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ProjectState_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ProjectState::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ProjectState::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ProjectState::ByteSizeLong, - &ProjectState::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ProjectState, _impl_._cached_size_), - false, - }, - &ProjectState::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ProjectState::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 51, 2> ProjectState::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ProjectState, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::ProjectState>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .daw.api.TrackInfo tracks = 4; - {::_pbi::TcParser::FastMtR1, - {34, 63, 1, PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.tracks_)}}, - // string project_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.project_id_)}}, - // string project_name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.project_name_)}}, - // .daw.api.PlaybackState playback_state = 3; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.playback_state_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string project_id = 1; - {PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.project_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string project_name = 2; - {PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.project_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .daw.api.PlaybackState playback_state = 3; - {PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.playback_state_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .daw.api.TrackInfo tracks = 4; - {PROTOBUF_FIELD_OFFSET(ProjectState, _impl_.tracks_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::api::PlaybackState>()}, - {::_pbi::TcParser::GetTable<::daw::api::TrackInfo>()}, - }}, {{ - "\24\12\14\0\0\0\0\0" - "daw.api.ProjectState" - "project_id" - "project_name" - }}, -}; - -PROTOBUF_NOINLINE void ProjectState::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.ProjectState) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.tracks_.Clear(); - _impl_.project_id_.ClearToEmpty(); - _impl_.project_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.playback_state_ != nullptr); - _impl_.playback_state_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ProjectState::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ProjectState& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ProjectState::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ProjectState& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.ProjectState) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string project_id = 1; - if (!this_._internal_project_id().empty()) { - const std::string& _s = this_._internal_project_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.ProjectState.project_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string project_name = 2; - if (!this_._internal_project_name().empty()) { - const std::string& _s = this_._internal_project_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.ProjectState.project_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // .daw.api.PlaybackState playback_state = 3; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.playback_state_, this_._impl_.playback_state_->GetCachedSize(), target, - stream); - } - - // repeated .daw.api.TrackInfo tracks = 4; - for (unsigned i = 0, n = static_cast( - this_._internal_tracks_size()); - i < n; i++) { - const auto& repfield = this_._internal_tracks().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.ProjectState) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ProjectState::ByteSizeLong(const MessageLite& base) { - const ProjectState& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ProjectState::ByteSizeLong() const { - const ProjectState& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.ProjectState) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .daw.api.TrackInfo tracks = 4; - { - total_size += 1UL * this_._internal_tracks_size(); - for (const auto& msg : this_._internal_tracks()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // string project_id = 1; - if (!this_._internal_project_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_project_id()); - } - // string project_name = 2; - if (!this_._internal_project_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_project_name()); - } - } - { - // .daw.api.PlaybackState playback_state = 3; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.playback_state_); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void ProjectState::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.ProjectState) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_tracks()->MergeFrom( - from._internal_tracks()); - if (!from._internal_project_id().empty()) { - _this->_internal_set_project_id(from._internal_project_id()); - } - if (!from._internal_project_name().empty()) { - _this->_internal_set_project_name(from._internal_project_name()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.playback_state_ != nullptr); - if (_this->_impl_.playback_state_ == nullptr) { - _this->_impl_.playback_state_ = - ::google::protobuf::Message::CopyConstruct<::daw::api::PlaybackState>(arena, *from._impl_.playback_state_); - } else { - _this->_impl_.playback_state_->MergeFrom(*from._impl_.playback_state_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ProjectState::CopyFrom(const ProjectState& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.ProjectState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ProjectState::InternalSwap(ProjectState* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.tracks_.InternalSwap(&other->_impl_.tracks_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.project_id_, &other->_impl_.project_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.project_name_, &other->_impl_.project_name_, arena); - swap(_impl_.playback_state_, other->_impl_.playback_state_); -} - -::google::protobuf::Metadata ProjectState::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class LoadProjectRequest::_Internal { - public: -}; - -LoadProjectRequest::LoadProjectRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.LoadProjectRequest) -} -inline PROTOBUF_NDEBUG_INLINE LoadProjectRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::LoadProjectRequest& from_msg) - : file_path_(arena, from.file_path_), - _cached_size_{0} {} - -LoadProjectRequest::LoadProjectRequest( - ::google::protobuf::Arena* arena, - const LoadProjectRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - LoadProjectRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:daw.api.LoadProjectRequest) -} -inline PROTOBUF_NDEBUG_INLINE LoadProjectRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : file_path_(arena), - _cached_size_{0} {} - -inline void LoadProjectRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -LoadProjectRequest::~LoadProjectRequest() { - // @@protoc_insertion_point(destructor:daw.api.LoadProjectRequest) - SharedDtor(*this); -} -inline void LoadProjectRequest::SharedDtor(MessageLite& self) { - LoadProjectRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.file_path_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* LoadProjectRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) LoadProjectRequest(arena); -} -constexpr auto LoadProjectRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LoadProjectRequest), - alignof(LoadProjectRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull LoadProjectRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_LoadProjectRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &LoadProjectRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &LoadProjectRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &LoadProjectRequest::ByteSizeLong, - &LoadProjectRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(LoadProjectRequest, _impl_._cached_size_), - false, - }, - &LoadProjectRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* LoadProjectRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 44, 2> LoadProjectRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::LoadProjectRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string file_path = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LoadProjectRequest, _impl_.file_path_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string file_path = 1; - {PROTOBUF_FIELD_OFFSET(LoadProjectRequest, _impl_.file_path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\32\11\0\0\0\0\0\0" - "daw.api.LoadProjectRequest" - "file_path" - }}, -}; - -PROTOBUF_NOINLINE void LoadProjectRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.LoadProjectRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.file_path_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* LoadProjectRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const LoadProjectRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* LoadProjectRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const LoadProjectRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.LoadProjectRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string file_path = 1; - if (!this_._internal_file_path().empty()) { - const std::string& _s = this_._internal_file_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.LoadProjectRequest.file_path"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.LoadProjectRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t LoadProjectRequest::ByteSizeLong(const MessageLite& base) { - const LoadProjectRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t LoadProjectRequest::ByteSizeLong() const { - const LoadProjectRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.LoadProjectRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string file_path = 1; - if (!this_._internal_file_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_file_path()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void LoadProjectRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.LoadProjectRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_file_path().empty()) { - _this->_internal_set_file_path(from._internal_file_path()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void LoadProjectRequest::CopyFrom(const LoadProjectRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.LoadProjectRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void LoadProjectRequest::InternalSwap(LoadProjectRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_path_, &other->_impl_.file_path_, arena); -} - -::google::protobuf::Metadata LoadProjectRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class SaveProjectRequest::_Internal { - public: -}; - -SaveProjectRequest::SaveProjectRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.SaveProjectRequest) -} -inline PROTOBUF_NDEBUG_INLINE SaveProjectRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::SaveProjectRequest& from_msg) - : file_path_(arena, from.file_path_), - _cached_size_{0} {} - -SaveProjectRequest::SaveProjectRequest( - ::google::protobuf::Arena* arena, - const SaveProjectRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SaveProjectRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:daw.api.SaveProjectRequest) -} -inline PROTOBUF_NDEBUG_INLINE SaveProjectRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : file_path_(arena), - _cached_size_{0} {} - -inline void SaveProjectRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SaveProjectRequest::~SaveProjectRequest() { - // @@protoc_insertion_point(destructor:daw.api.SaveProjectRequest) - SharedDtor(*this); -} -inline void SaveProjectRequest::SharedDtor(MessageLite& self) { - SaveProjectRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.file_path_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* SaveProjectRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) SaveProjectRequest(arena); -} -constexpr auto SaveProjectRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SaveProjectRequest), - alignof(SaveProjectRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull SaveProjectRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_SaveProjectRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SaveProjectRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SaveProjectRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SaveProjectRequest::ByteSizeLong, - &SaveProjectRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SaveProjectRequest, _impl_._cached_size_), - false, - }, - &SaveProjectRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* SaveProjectRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 44, 2> SaveProjectRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::SaveProjectRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string file_path = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SaveProjectRequest, _impl_.file_path_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string file_path = 1; - {PROTOBUF_FIELD_OFFSET(SaveProjectRequest, _impl_.file_path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\32\11\0\0\0\0\0\0" - "daw.api.SaveProjectRequest" - "file_path" - }}, -}; - -PROTOBUF_NOINLINE void SaveProjectRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.SaveProjectRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.file_path_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* SaveProjectRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const SaveProjectRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* SaveProjectRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const SaveProjectRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.SaveProjectRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string file_path = 1; - if (!this_._internal_file_path().empty()) { - const std::string& _s = this_._internal_file_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.SaveProjectRequest.file_path"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.SaveProjectRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t SaveProjectRequest::ByteSizeLong(const MessageLite& base) { - const SaveProjectRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t SaveProjectRequest::ByteSizeLong() const { - const SaveProjectRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.SaveProjectRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string file_path = 1; - if (!this_._internal_file_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_file_path()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void SaveProjectRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.SaveProjectRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_file_path().empty()) { - _this->_internal_set_file_path(from._internal_file_path()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SaveProjectRequest::CopyFrom(const SaveProjectRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.SaveProjectRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void SaveProjectRequest::InternalSwap(SaveProjectRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_path_, &other->_impl_.file_path_, arena); -} - -::google::protobuf::Metadata SaveProjectRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class PlaybackState::_Internal { - public: -}; - -PlaybackState::PlaybackState(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.PlaybackState) -} -PlaybackState::PlaybackState( - ::google::protobuf::Arena* arena, const PlaybackState& from) - : PlaybackState(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE PlaybackState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void PlaybackState::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, bar_), - 0, - offsetof(Impl_, is_playing_) - - offsetof(Impl_, bar_) + - sizeof(Impl_::is_playing_)); -} -PlaybackState::~PlaybackState() { - // @@protoc_insertion_point(destructor:daw.api.PlaybackState) - SharedDtor(*this); -} -inline void PlaybackState::SharedDtor(MessageLite& self) { - PlaybackState& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PlaybackState::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) PlaybackState(arena); -} -constexpr auto PlaybackState::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PlaybackState), - alignof(PlaybackState)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull PlaybackState::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_PlaybackState_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &PlaybackState::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &PlaybackState::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &PlaybackState::ByteSizeLong, - &PlaybackState::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_._cached_size_), - false, - }, - &PlaybackState::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* PlaybackState::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 0, 2> PlaybackState::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967248, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::PlaybackState>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 bar = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PlaybackState, _impl_.bar_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.bar_)}}, - // int32 beat = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PlaybackState, _impl_.beat_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.beat_)}}, - // int32 tick = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PlaybackState, _impl_.tick_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.tick_)}}, - // double bpm = 4; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.bpm_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // bool is_playing = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.is_playing_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 bar = 1; - {PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.bar_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 beat = 2; - {PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.beat_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 tick = 3; - {PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.tick_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // double bpm = 4; - {PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.bpm_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // bool is_playing = 6; - {PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.is_playing_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -PROTOBUF_NOINLINE void PlaybackState::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.PlaybackState) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.bar_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_playing_) - - reinterpret_cast(&_impl_.bar_)) + sizeof(_impl_.is_playing_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* PlaybackState::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const PlaybackState& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* PlaybackState::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const PlaybackState& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.PlaybackState) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 bar = 1; - if (this_._internal_bar() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this_._internal_bar(), target); - } - - // int32 beat = 2; - if (this_._internal_beat() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_beat(), target); - } - - // int32 tick = 3; - if (this_._internal_tick() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_tick(), target); - } - - // double bpm = 4; - if (::absl::bit_cast<::uint64_t>(this_._internal_bpm()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this_._internal_bpm(), target); - } - - // bool is_playing = 6; - if (this_._internal_is_playing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_playing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.PlaybackState) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t PlaybackState::ByteSizeLong(const MessageLite& base) { - const PlaybackState& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t PlaybackState::ByteSizeLong() const { - const PlaybackState& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.PlaybackState) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // int32 bar = 1; - if (this_._internal_bar() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_bar()); - } - // int32 beat = 2; - if (this_._internal_beat() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_beat()); - } - // double bpm = 4; - if (::absl::bit_cast<::uint64_t>(this_._internal_bpm()) != 0) { - total_size += 9; - } - // int32 tick = 3; - if (this_._internal_tick() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_tick()); - } - // bool is_playing = 6; - if (this_._internal_is_playing() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void PlaybackState::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.PlaybackState) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_bar() != 0) { - _this->_impl_.bar_ = from._impl_.bar_; - } - if (from._internal_beat() != 0) { - _this->_impl_.beat_ = from._impl_.beat_; - } - if (::absl::bit_cast<::uint64_t>(from._internal_bpm()) != 0) { - _this->_impl_.bpm_ = from._impl_.bpm_; - } - if (from._internal_tick() != 0) { - _this->_impl_.tick_ = from._impl_.tick_; - } - if (from._internal_is_playing() != 0) { - _this->_impl_.is_playing_ = from._impl_.is_playing_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void PlaybackState::CopyFrom(const PlaybackState& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.PlaybackState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void PlaybackState::InternalSwap(PlaybackState* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.is_playing_) - + sizeof(PlaybackState::_impl_.is_playing_) - - PROTOBUF_FIELD_OFFSET(PlaybackState, _impl_.bar_)>( - reinterpret_cast(&_impl_.bar_), - reinterpret_cast(&other->_impl_.bar_)); -} - -::google::protobuf::Metadata PlaybackState::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class SetTempoRequest::_Internal { - public: -}; - -SetTempoRequest::SetTempoRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.SetTempoRequest) -} -SetTempoRequest::SetTempoRequest( - ::google::protobuf::Arena* arena, const SetTempoRequest& from) - : SetTempoRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE SetTempoRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetTempoRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.bpm_ = {}; -} -SetTempoRequest::~SetTempoRequest() { - // @@protoc_insertion_point(destructor:daw.api.SetTempoRequest) - SharedDtor(*this); -} -inline void SetTempoRequest::SharedDtor(MessageLite& self) { - SetTempoRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* SetTempoRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) SetTempoRequest(arena); -} -constexpr auto SetTempoRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetTempoRequest), - alignof(SetTempoRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull SetTempoRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_SetTempoRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SetTempoRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SetTempoRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SetTempoRequest::ByteSizeLong, - &SetTempoRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SetTempoRequest, _impl_._cached_size_), - false, - }, - &SetTempoRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* SetTempoRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetTempoRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::SetTempoRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // double bpm = 1; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(SetTempoRequest, _impl_.bpm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double bpm = 1; - {PROTOBUF_FIELD_OFFSET(SetTempoRequest, _impl_.bpm_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -PROTOBUF_NOINLINE void SetTempoRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.SetTempoRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.bpm_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* SetTempoRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const SetTempoRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* SetTempoRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const SetTempoRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.SetTempoRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // double bpm = 1; - if (::absl::bit_cast<::uint64_t>(this_._internal_bpm()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this_._internal_bpm(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.SetTempoRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t SetTempoRequest::ByteSizeLong(const MessageLite& base) { - const SetTempoRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t SetTempoRequest::ByteSizeLong() const { - const SetTempoRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.SetTempoRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // double bpm = 1; - if (::absl::bit_cast<::uint64_t>(this_._internal_bpm()) != 0) { - total_size += 9; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void SetTempoRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.SetTempoRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (::absl::bit_cast<::uint64_t>(from._internal_bpm()) != 0) { - _this->_impl_.bpm_ = from._impl_.bpm_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetTempoRequest::CopyFrom(const SetTempoRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.SetTempoRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void SetTempoRequest::InternalSwap(SetTempoRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.bpm_, other->_impl_.bpm_); -} - -::google::protobuf::Metadata SetTempoRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class TrackInfo::_Internal { - public: -}; - -TrackInfo::TrackInfo(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.TrackInfo) -} -inline PROTOBUF_NDEBUG_INLINE TrackInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::TrackInfo& from_msg) - : plugins_{visibility, arena, from.plugins_}, - track_id_(arena, from.track_id_), - name_(arena, from.name_), - _cached_size_{0} {} - -TrackInfo::TrackInfo( - ::google::protobuf::Arena* arena, - const TrackInfo& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - TrackInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, type_), - offsetof(Impl_, is_soloed_) - - offsetof(Impl_, type_) + - sizeof(Impl_::is_soloed_)); - - // @@protoc_insertion_point(copy_constructor:daw.api.TrackInfo) -} -inline PROTOBUF_NDEBUG_INLINE TrackInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : plugins_{visibility, arena}, - track_id_(arena), - name_(arena), - _cached_size_{0} {} - -inline void TrackInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - 0, - offsetof(Impl_, is_soloed_) - - offsetof(Impl_, type_) + - sizeof(Impl_::is_soloed_)); -} -TrackInfo::~TrackInfo() { - // @@protoc_insertion_point(destructor:daw.api.TrackInfo) - SharedDtor(*this); -} -inline void TrackInfo::SharedDtor(MessageLite& self) { - TrackInfo& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.track_id_.Destroy(); - this_._impl_.name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* TrackInfo::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) TrackInfo(arena); -} -constexpr auto TrackInfo::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.plugins_) + - decltype(TrackInfo::_impl_.plugins_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(TrackInfo), alignof(TrackInfo), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&TrackInfo::PlacementNew_, - sizeof(TrackInfo), - alignof(TrackInfo)); - } -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull TrackInfo::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_TrackInfo_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &TrackInfo::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &TrackInfo::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &TrackInfo::ByteSizeLong, - &TrackInfo::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_._cached_size_), - false, - }, - &TrackInfo::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* TrackInfo::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 8, 1, 46, 2> TrackInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 9, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966792, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::TrackInfo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string track_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.track_id_)}}, - // string name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.name_)}}, - // .daw.api.TrackType type = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TrackInfo, _impl_.type_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // float volume_db = 5; - {::_pbi::TcParser::FastF32S1, - {45, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.volume_db_)}}, - // float pan = 6; - {::_pbi::TcParser::FastF32S1, - {53, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.pan_)}}, - // bool is_muted = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.is_muted_)}}, - // bool is_soloed = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.is_soloed_)}}, - // repeated .daw.api.PluginInfo plugins = 9; - {::_pbi::TcParser::FastMtR1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.plugins_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string track_id = 1; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.track_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .daw.api.TrackType type = 3; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // float volume_db = 5; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.volume_db_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // float pan = 6; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.pan_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // bool is_muted = 7; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.is_muted_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool is_soloed = 8; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.is_soloed_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // repeated .daw.api.PluginInfo plugins = 9; - {PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.plugins_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::api::PluginInfo>()}, - }}, {{ - "\21\10\4\0\0\0\0\0\0\0\0\0\0\0\0\0" - "daw.api.TrackInfo" - "track_id" - "name" - }}, -}; - -PROTOBUF_NOINLINE void TrackInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.TrackInfo) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.plugins_.Clear(); - _impl_.track_id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - ::memset(&_impl_.type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_soloed_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.is_soloed_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* TrackInfo::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const TrackInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* TrackInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const TrackInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.TrackInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - const std::string& _s = this_._internal_track_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.TrackInfo.track_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string name = 2; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.TrackInfo.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // .daw.api.TrackType type = 3; - if (this_._internal_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this_._internal_type(), target); - } - - // float volume_db = 5; - if (::absl::bit_cast<::uint32_t>(this_._internal_volume_db()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 5, this_._internal_volume_db(), target); - } - - // float pan = 6; - if (::absl::bit_cast<::uint32_t>(this_._internal_pan()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 6, this_._internal_pan(), target); - } - - // bool is_muted = 7; - if (this_._internal_is_muted() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this_._internal_is_muted(), target); - } - - // bool is_soloed = 8; - if (this_._internal_is_soloed() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this_._internal_is_soloed(), target); - } - - // repeated .daw.api.PluginInfo plugins = 9; - for (unsigned i = 0, n = static_cast( - this_._internal_plugins_size()); - i < n; i++) { - const auto& repfield = this_._internal_plugins().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.TrackInfo) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t TrackInfo::ByteSizeLong(const MessageLite& base) { - const TrackInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t TrackInfo::ByteSizeLong() const { - const TrackInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.TrackInfo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .daw.api.PluginInfo plugins = 9; - { - total_size += 1UL * this_._internal_plugins_size(); - for (const auto& msg : this_._internal_plugins()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_track_id()); - } - // string name = 2; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // .daw.api.TrackType type = 3; - if (this_._internal_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); - } - // float volume_db = 5; - if (::absl::bit_cast<::uint32_t>(this_._internal_volume_db()) != 0) { - total_size += 5; - } - // float pan = 6; - if (::absl::bit_cast<::uint32_t>(this_._internal_pan()) != 0) { - total_size += 5; - } - // bool is_muted = 7; - if (this_._internal_is_muted() != 0) { - total_size += 2; - } - // bool is_soloed = 8; - if (this_._internal_is_soloed() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void TrackInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.TrackInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_plugins()->MergeFrom( - from._internal_plugins()); - if (!from._internal_track_id().empty()) { - _this->_internal_set_track_id(from._internal_track_id()); - } - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_type() != 0) { - _this->_impl_.type_ = from._impl_.type_; - } - if (::absl::bit_cast<::uint32_t>(from._internal_volume_db()) != 0) { - _this->_impl_.volume_db_ = from._impl_.volume_db_; - } - if (::absl::bit_cast<::uint32_t>(from._internal_pan()) != 0) { - _this->_impl_.pan_ = from._impl_.pan_; - } - if (from._internal_is_muted() != 0) { - _this->_impl_.is_muted_ = from._impl_.is_muted_; - } - if (from._internal_is_soloed() != 0) { - _this->_impl_.is_soloed_ = from._impl_.is_soloed_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TrackInfo::CopyFrom(const TrackInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.TrackInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void TrackInfo::InternalSwap(TrackInfo* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.plugins_.InternalSwap(&other->_impl_.plugins_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.track_id_, &other->_impl_.track_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.is_soloed_) - + sizeof(TrackInfo::_impl_.is_soloed_) - - PROTOBUF_FIELD_OFFSET(TrackInfo, _impl_.type_)>( - reinterpret_cast(&_impl_.type_), - reinterpret_cast(&other->_impl_.type_)); -} - -::google::protobuf::Metadata TrackInfo::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class AddTrackRequest::_Internal { - public: -}; - -AddTrackRequest::AddTrackRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.AddTrackRequest) -} -inline PROTOBUF_NDEBUG_INLINE AddTrackRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::AddTrackRequest& from_msg) - : name_(arena, from.name_), - _cached_size_{0} {} - -AddTrackRequest::AddTrackRequest( - ::google::protobuf::Arena* arena, - const AddTrackRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - AddTrackRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.type_ = from._impl_.type_; - - // @@protoc_insertion_point(copy_constructor:daw.api.AddTrackRequest) -} -inline PROTOBUF_NDEBUG_INLINE AddTrackRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} - -inline void AddTrackRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.type_ = {}; -} -AddTrackRequest::~AddTrackRequest() { - // @@protoc_insertion_point(destructor:daw.api.AddTrackRequest) - SharedDtor(*this); -} -inline void AddTrackRequest::SharedDtor(MessageLite& self) { - AddTrackRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* AddTrackRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) AddTrackRequest(arena); -} -constexpr auto AddTrackRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AddTrackRequest), - alignof(AddTrackRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull AddTrackRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_AddTrackRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &AddTrackRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &AddTrackRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &AddTrackRequest::ByteSizeLong, - &AddTrackRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(AddTrackRequest, _impl_._cached_size_), - false, - }, - &AddTrackRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* AddTrackRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 36, 2> AddTrackRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::AddTrackRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .daw.api.TrackType type = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AddTrackRequest, _impl_.type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(AddTrackRequest, _impl_.type_)}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AddTrackRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(AddTrackRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .daw.api.TrackType type = 2; - {PROTOBUF_FIELD_OFFSET(AddTrackRequest, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\27\4\0\0\0\0\0\0" - "daw.api.AddTrackRequest" - "name" - }}, -}; - -PROTOBUF_NOINLINE void AddTrackRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.AddTrackRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - _impl_.type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* AddTrackRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const AddTrackRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* AddTrackRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const AddTrackRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.AddTrackRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.AddTrackRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // .daw.api.TrackType type = 2; - if (this_._internal_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this_._internal_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.AddTrackRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t AddTrackRequest::ByteSizeLong(const MessageLite& base) { - const AddTrackRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t AddTrackRequest::ByteSizeLong() const { - const AddTrackRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.AddTrackRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string name = 1; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // .daw.api.TrackType type = 2; - if (this_._internal_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void AddTrackRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.AddTrackRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_type() != 0) { - _this->_impl_.type_ = from._impl_.type_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AddTrackRequest::CopyFrom(const AddTrackRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.AddTrackRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void AddTrackRequest::InternalSwap(AddTrackRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.type_, other->_impl_.type_); -} - -::google::protobuf::Metadata AddTrackRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class TrackIdRequest::_Internal { - public: -}; - -TrackIdRequest::TrackIdRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.TrackIdRequest) -} -inline PROTOBUF_NDEBUG_INLINE TrackIdRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::TrackIdRequest& from_msg) - : track_id_(arena, from.track_id_), - _cached_size_{0} {} - -TrackIdRequest::TrackIdRequest( - ::google::protobuf::Arena* arena, - const TrackIdRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - TrackIdRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:daw.api.TrackIdRequest) -} -inline PROTOBUF_NDEBUG_INLINE TrackIdRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : track_id_(arena), - _cached_size_{0} {} - -inline void TrackIdRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -TrackIdRequest::~TrackIdRequest() { - // @@protoc_insertion_point(destructor:daw.api.TrackIdRequest) - SharedDtor(*this); -} -inline void TrackIdRequest::SharedDtor(MessageLite& self) { - TrackIdRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.track_id_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* TrackIdRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) TrackIdRequest(arena); -} -constexpr auto TrackIdRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TrackIdRequest), - alignof(TrackIdRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull TrackIdRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_TrackIdRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &TrackIdRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &TrackIdRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &TrackIdRequest::ByteSizeLong, - &TrackIdRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(TrackIdRequest, _impl_._cached_size_), - false, - }, - &TrackIdRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* TrackIdRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 39, 2> TrackIdRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::TrackIdRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string track_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TrackIdRequest, _impl_.track_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string track_id = 1; - {PROTOBUF_FIELD_OFFSET(TrackIdRequest, _impl_.track_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\26\10\0\0\0\0\0\0" - "daw.api.TrackIdRequest" - "track_id" - }}, -}; - -PROTOBUF_NOINLINE void TrackIdRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.TrackIdRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.track_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* TrackIdRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const TrackIdRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* TrackIdRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const TrackIdRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.TrackIdRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - const std::string& _s = this_._internal_track_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.TrackIdRequest.track_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.TrackIdRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t TrackIdRequest::ByteSizeLong(const MessageLite& base) { - const TrackIdRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t TrackIdRequest::ByteSizeLong() const { - const TrackIdRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.TrackIdRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_track_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void TrackIdRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.TrackIdRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_track_id().empty()) { - _this->_internal_set_track_id(from._internal_track_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TrackIdRequest::CopyFrom(const TrackIdRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.TrackIdRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void TrackIdRequest::InternalSwap(TrackIdRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.track_id_, &other->_impl_.track_id_, arena); -} - -::google::protobuf::Metadata TrackIdRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class SetTrackVolumeRequest::_Internal { - public: -}; - -SetTrackVolumeRequest::SetTrackVolumeRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.SetTrackVolumeRequest) -} -inline PROTOBUF_NDEBUG_INLINE SetTrackVolumeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::SetTrackVolumeRequest& from_msg) - : track_id_(arena, from.track_id_), - _cached_size_{0} {} - -SetTrackVolumeRequest::SetTrackVolumeRequest( - ::google::protobuf::Arena* arena, - const SetTrackVolumeRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SetTrackVolumeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.volume_db_ = from._impl_.volume_db_; - - // @@protoc_insertion_point(copy_constructor:daw.api.SetTrackVolumeRequest) -} -inline PROTOBUF_NDEBUG_INLINE SetTrackVolumeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : track_id_(arena), - _cached_size_{0} {} - -inline void SetTrackVolumeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.volume_db_ = {}; -} -SetTrackVolumeRequest::~SetTrackVolumeRequest() { - // @@protoc_insertion_point(destructor:daw.api.SetTrackVolumeRequest) - SharedDtor(*this); -} -inline void SetTrackVolumeRequest::SharedDtor(MessageLite& self) { - SetTrackVolumeRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.track_id_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* SetTrackVolumeRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) SetTrackVolumeRequest(arena); -} -constexpr auto SetTrackVolumeRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SetTrackVolumeRequest), - alignof(SetTrackVolumeRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull SetTrackVolumeRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_SetTrackVolumeRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SetTrackVolumeRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SetTrackVolumeRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SetTrackVolumeRequest::ByteSizeLong, - &SetTrackVolumeRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SetTrackVolumeRequest, _impl_._cached_size_), - false, - }, - &SetTrackVolumeRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* SetTrackVolumeRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 46, 2> SetTrackVolumeRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::SetTrackVolumeRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // float volume_db = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(SetTrackVolumeRequest, _impl_.volume_db_)}}, - // string track_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetTrackVolumeRequest, _impl_.track_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string track_id = 1; - {PROTOBUF_FIELD_OFFSET(SetTrackVolumeRequest, _impl_.track_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // float volume_db = 2; - {PROTOBUF_FIELD_OFFSET(SetTrackVolumeRequest, _impl_.volume_db_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - "\35\10\0\0\0\0\0\0" - "daw.api.SetTrackVolumeRequest" - "track_id" - }}, -}; - -PROTOBUF_NOINLINE void SetTrackVolumeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.SetTrackVolumeRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.track_id_.ClearToEmpty(); - _impl_.volume_db_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* SetTrackVolumeRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const SetTrackVolumeRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* SetTrackVolumeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const SetTrackVolumeRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.SetTrackVolumeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - const std::string& _s = this_._internal_track_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.SetTrackVolumeRequest.track_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // float volume_db = 2; - if (::absl::bit_cast<::uint32_t>(this_._internal_volume_db()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this_._internal_volume_db(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.SetTrackVolumeRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t SetTrackVolumeRequest::ByteSizeLong(const MessageLite& base) { - const SetTrackVolumeRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t SetTrackVolumeRequest::ByteSizeLong() const { - const SetTrackVolumeRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.SetTrackVolumeRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_track_id()); - } - // float volume_db = 2; - if (::absl::bit_cast<::uint32_t>(this_._internal_volume_db()) != 0) { - total_size += 5; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void SetTrackVolumeRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.SetTrackVolumeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_track_id().empty()) { - _this->_internal_set_track_id(from._internal_track_id()); - } - if (::absl::bit_cast<::uint32_t>(from._internal_volume_db()) != 0) { - _this->_impl_.volume_db_ = from._impl_.volume_db_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetTrackVolumeRequest::CopyFrom(const SetTrackVolumeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.SetTrackVolumeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void SetTrackVolumeRequest::InternalSwap(SetTrackVolumeRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.track_id_, &other->_impl_.track_id_, arena); - swap(_impl_.volume_db_, other->_impl_.volume_db_); -} - -::google::protobuf::Metadata SetTrackVolumeRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class SetTrackPanRequest::_Internal { - public: -}; - -SetTrackPanRequest::SetTrackPanRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.SetTrackPanRequest) -} -inline PROTOBUF_NDEBUG_INLINE SetTrackPanRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::SetTrackPanRequest& from_msg) - : track_id_(arena, from.track_id_), - _cached_size_{0} {} - -SetTrackPanRequest::SetTrackPanRequest( - ::google::protobuf::Arena* arena, - const SetTrackPanRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SetTrackPanRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.pan_ = from._impl_.pan_; - - // @@protoc_insertion_point(copy_constructor:daw.api.SetTrackPanRequest) -} -inline PROTOBUF_NDEBUG_INLINE SetTrackPanRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : track_id_(arena), - _cached_size_{0} {} - -inline void SetTrackPanRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pan_ = {}; -} -SetTrackPanRequest::~SetTrackPanRequest() { - // @@protoc_insertion_point(destructor:daw.api.SetTrackPanRequest) - SharedDtor(*this); -} -inline void SetTrackPanRequest::SharedDtor(MessageLite& self) { - SetTrackPanRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.track_id_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* SetTrackPanRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) SetTrackPanRequest(arena); -} -constexpr auto SetTrackPanRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SetTrackPanRequest), - alignof(SetTrackPanRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull SetTrackPanRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_SetTrackPanRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SetTrackPanRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SetTrackPanRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SetTrackPanRequest::ByteSizeLong, - &SetTrackPanRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SetTrackPanRequest, _impl_._cached_size_), - false, - }, - &SetTrackPanRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* SetTrackPanRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 43, 2> SetTrackPanRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::SetTrackPanRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // float pan = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(SetTrackPanRequest, _impl_.pan_)}}, - // string track_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetTrackPanRequest, _impl_.track_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string track_id = 1; - {PROTOBUF_FIELD_OFFSET(SetTrackPanRequest, _impl_.track_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // float pan = 2; - {PROTOBUF_FIELD_OFFSET(SetTrackPanRequest, _impl_.pan_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - "\32\10\0\0\0\0\0\0" - "daw.api.SetTrackPanRequest" - "track_id" - }}, -}; - -PROTOBUF_NOINLINE void SetTrackPanRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.SetTrackPanRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.track_id_.ClearToEmpty(); - _impl_.pan_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* SetTrackPanRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const SetTrackPanRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* SetTrackPanRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const SetTrackPanRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.SetTrackPanRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - const std::string& _s = this_._internal_track_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.SetTrackPanRequest.track_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // float pan = 2; - if (::absl::bit_cast<::uint32_t>(this_._internal_pan()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this_._internal_pan(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.SetTrackPanRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t SetTrackPanRequest::ByteSizeLong(const MessageLite& base) { - const SetTrackPanRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t SetTrackPanRequest::ByteSizeLong() const { - const SetTrackPanRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.SetTrackPanRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_track_id()); - } - // float pan = 2; - if (::absl::bit_cast<::uint32_t>(this_._internal_pan()) != 0) { - total_size += 5; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void SetTrackPanRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.SetTrackPanRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_track_id().empty()) { - _this->_internal_set_track_id(from._internal_track_id()); - } - if (::absl::bit_cast<::uint32_t>(from._internal_pan()) != 0) { - _this->_impl_.pan_ = from._impl_.pan_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetTrackPanRequest::CopyFrom(const SetTrackPanRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.SetTrackPanRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void SetTrackPanRequest::InternalSwap(SetTrackPanRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.track_id_, &other->_impl_.track_id_, arena); - swap(_impl_.pan_, other->_impl_.pan_); -} - -::google::protobuf::Metadata SetTrackPanRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class PluginInfo::_Internal { - public: -}; - -PluginInfo::PluginInfo(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.PluginInfo) -} -inline PROTOBUF_NDEBUG_INLINE PluginInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::PluginInfo& from_msg) - : parameters_{visibility, arena, from.parameters_}, - instance_id_(arena, from.instance_id_), - name_(arena, from.name_), - _cached_size_{0} {} - -PluginInfo::PluginInfo( - ::google::protobuf::Arena* arena, - const PluginInfo& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - PluginInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.is_bypassed_ = from._impl_.is_bypassed_; - - // @@protoc_insertion_point(copy_constructor:daw.api.PluginInfo) -} -inline PROTOBUF_NDEBUG_INLINE PluginInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : parameters_{visibility, arena}, - instance_id_(arena), - name_(arena), - _cached_size_{0} {} - -inline void PluginInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_bypassed_ = {}; -} -PluginInfo::~PluginInfo() { - // @@protoc_insertion_point(destructor:daw.api.PluginInfo) - SharedDtor(*this); -} -inline void PluginInfo::SharedDtor(MessageLite& self) { - PluginInfo& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.instance_id_.Destroy(); - this_._impl_.name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PluginInfo::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) PluginInfo(arena); -} -constexpr auto PluginInfo::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.parameters_) + - decltype(PluginInfo::_impl_.parameters_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(PluginInfo), alignof(PluginInfo), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&PluginInfo::PlacementNew_, - sizeof(PluginInfo), - alignof(PluginInfo)); - } -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull PluginInfo::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_PluginInfo_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &PluginInfo::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &PluginInfo::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &PluginInfo::ByteSizeLong, - &PluginInfo::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_._cached_size_), - false, - }, - &PluginInfo::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* PluginInfo::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 4, 1, 42, 2> PluginInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967268, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::PluginInfo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string instance_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.instance_id_)}}, - // string name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // bool is_bypassed = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.is_bypassed_)}}, - // repeated .daw.api.PluginParameter parameters = 5; - {::_pbi::TcParser::FastMtR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.parameters_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string instance_id = 1; - {PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.instance_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2; - {PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool is_bypassed = 4; - {PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.is_bypassed_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // repeated .daw.api.PluginParameter parameters = 5; - {PROTOBUF_FIELD_OFFSET(PluginInfo, _impl_.parameters_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::api::PluginParameter>()}, - }}, {{ - "\22\13\4\0\0\0\0\0" - "daw.api.PluginInfo" - "instance_id" - "name" - }}, -}; - -PROTOBUF_NOINLINE void PluginInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.PluginInfo) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.parameters_.Clear(); - _impl_.instance_id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.is_bypassed_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* PluginInfo::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const PluginInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* PluginInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const PluginInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.PluginInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string instance_id = 1; - if (!this_._internal_instance_id().empty()) { - const std::string& _s = this_._internal_instance_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.PluginInfo.instance_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string name = 2; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.PluginInfo.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // bool is_bypassed = 4; - if (this_._internal_is_bypassed() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_bypassed(), target); - } - - // repeated .daw.api.PluginParameter parameters = 5; - for (unsigned i = 0, n = static_cast( - this_._internal_parameters_size()); - i < n; i++) { - const auto& repfield = this_._internal_parameters().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.PluginInfo) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t PluginInfo::ByteSizeLong(const MessageLite& base) { - const PluginInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t PluginInfo::ByteSizeLong() const { - const PluginInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.PluginInfo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .daw.api.PluginParameter parameters = 5; - { - total_size += 1UL * this_._internal_parameters_size(); - for (const auto& msg : this_._internal_parameters()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // string instance_id = 1; - if (!this_._internal_instance_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_instance_id()); - } - // string name = 2; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // bool is_bypassed = 4; - if (this_._internal_is_bypassed() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void PluginInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.PluginInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_parameters()->MergeFrom( - from._internal_parameters()); - if (!from._internal_instance_id().empty()) { - _this->_internal_set_instance_id(from._internal_instance_id()); - } - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_is_bypassed() != 0) { - _this->_impl_.is_bypassed_ = from._impl_.is_bypassed_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void PluginInfo::CopyFrom(const PluginInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.PluginInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void PluginInfo::InternalSwap(PluginInfo* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.parameters_.InternalSwap(&other->_impl_.parameters_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.instance_id_, &other->_impl_.instance_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.is_bypassed_, other->_impl_.is_bypassed_); -} - -::google::protobuf::Metadata PluginInfo::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class PluginParameter::_Internal { - public: -}; - -PluginParameter::PluginParameter(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.PluginParameter) -} -inline PROTOBUF_NDEBUG_INLINE PluginParameter::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::PluginParameter& from_msg) - : name_(arena, from.name_), - _cached_size_{0} {} - -PluginParameter::PluginParameter( - ::google::protobuf::Arena* arena, - const PluginParameter& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - PluginParameter* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, value_), - offsetof(Impl_, parameter_id_) - - offsetof(Impl_, value_) + - sizeof(Impl_::parameter_id_)); - - // @@protoc_insertion_point(copy_constructor:daw.api.PluginParameter) -} -inline PROTOBUF_NDEBUG_INLINE PluginParameter::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} - -inline void PluginParameter::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - 0, - offsetof(Impl_, parameter_id_) - - offsetof(Impl_, value_) + - sizeof(Impl_::parameter_id_)); -} -PluginParameter::~PluginParameter() { - // @@protoc_insertion_point(destructor:daw.api.PluginParameter) - SharedDtor(*this); -} -inline void PluginParameter::SharedDtor(MessageLite& self) { - PluginParameter& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PluginParameter::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) PluginParameter(arena); -} -constexpr auto PluginParameter::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PluginParameter), - alignof(PluginParameter)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull PluginParameter::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_PluginParameter_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &PluginParameter::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &PluginParameter::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &PluginParameter::ByteSizeLong, - &PluginParameter::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_._cached_size_), - false, - }, - &PluginParameter::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* PluginParameter::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 36, 2> PluginParameter::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::PluginParameter>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint32 parameter_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PluginParameter, _impl_.parameter_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.parameter_id_)}}, - // string name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.name_)}}, - // double value = 3; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 parameter_id = 1; - {PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.parameter_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // string name = 2; - {PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double value = 3; - {PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - "\27\0\4\0\0\0\0\0" - "daw.api.PluginParameter" - "name" - }}, -}; - -PROTOBUF_NOINLINE void PluginParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.PluginParameter) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.parameter_id_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.parameter_id_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* PluginParameter::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const PluginParameter& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* PluginParameter::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const PluginParameter& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.PluginParameter) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 parameter_id = 1; - if (this_._internal_parameter_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this_._internal_parameter_id(), target); - } - - // string name = 2; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.PluginParameter.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // double value = 3; - if (::absl::bit_cast<::uint64_t>(this_._internal_value()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this_._internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.PluginParameter) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t PluginParameter::ByteSizeLong(const MessageLite& base) { - const PluginParameter& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t PluginParameter::ByteSizeLong() const { - const PluginParameter& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.PluginParameter) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string name = 2; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // double value = 3; - if (::absl::bit_cast<::uint64_t>(this_._internal_value()) != 0) { - total_size += 9; - } - // uint32 parameter_id = 1; - if (this_._internal_parameter_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_parameter_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void PluginParameter::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.PluginParameter) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (::absl::bit_cast<::uint64_t>(from._internal_value()) != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - if (from._internal_parameter_id() != 0) { - _this->_impl_.parameter_id_ = from._impl_.parameter_id_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void PluginParameter::CopyFrom(const PluginParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.PluginParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void PluginParameter::InternalSwap(PluginParameter* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.parameter_id_) - + sizeof(PluginParameter::_impl_.parameter_id_) - - PROTOBUF_FIELD_OFFSET(PluginParameter, _impl_.value_)>( - reinterpret_cast(&_impl_.value_), - reinterpret_cast(&other->_impl_.value_)); -} - -::google::protobuf::Metadata PluginParameter::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class SetPluginParameterRequest::_Internal { - public: -}; - -SetPluginParameterRequest::SetPluginParameterRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.SetPluginParameterRequest) -} -inline PROTOBUF_NDEBUG_INLINE SetPluginParameterRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::SetPluginParameterRequest& from_msg) - : instance_id_(arena, from.instance_id_), - _cached_size_{0} {} - -SetPluginParameterRequest::SetPluginParameterRequest( - ::google::protobuf::Arena* arena, - const SetPluginParameterRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SetPluginParameterRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, value_), - offsetof(Impl_, parameter_id_) - - offsetof(Impl_, value_) + - sizeof(Impl_::parameter_id_)); - - // @@protoc_insertion_point(copy_constructor:daw.api.SetPluginParameterRequest) -} -inline PROTOBUF_NDEBUG_INLINE SetPluginParameterRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : instance_id_(arena), - _cached_size_{0} {} - -inline void SetPluginParameterRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - 0, - offsetof(Impl_, parameter_id_) - - offsetof(Impl_, value_) + - sizeof(Impl_::parameter_id_)); -} -SetPluginParameterRequest::~SetPluginParameterRequest() { - // @@protoc_insertion_point(destructor:daw.api.SetPluginParameterRequest) - SharedDtor(*this); -} -inline void SetPluginParameterRequest::SharedDtor(MessageLite& self) { - SetPluginParameterRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.instance_id_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* SetPluginParameterRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) SetPluginParameterRequest(arena); -} -constexpr auto SetPluginParameterRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SetPluginParameterRequest), - alignof(SetPluginParameterRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull SetPluginParameterRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_SetPluginParameterRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SetPluginParameterRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SetPluginParameterRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SetPluginParameterRequest::ByteSizeLong, - &SetPluginParameterRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_._cached_size_), - false, - }, - &SetPluginParameterRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* SetPluginParameterRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 53, 2> SetPluginParameterRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::SetPluginParameterRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string instance_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.instance_id_)}}, - // uint32 parameter_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetPluginParameterRequest, _impl_.parameter_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.parameter_id_)}}, - // double value = 3; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string instance_id = 1; - {PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.instance_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint32 parameter_id = 2; - {PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.parameter_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // double value = 3; - {PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - "\41\13\0\0\0\0\0\0" - "daw.api.SetPluginParameterRequest" - "instance_id" - }}, -}; - -PROTOBUF_NOINLINE void SetPluginParameterRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.SetPluginParameterRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.instance_id_.ClearToEmpty(); - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.parameter_id_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.parameter_id_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* SetPluginParameterRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const SetPluginParameterRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* SetPluginParameterRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const SetPluginParameterRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.SetPluginParameterRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string instance_id = 1; - if (!this_._internal_instance_id().empty()) { - const std::string& _s = this_._internal_instance_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.SetPluginParameterRequest.instance_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // uint32 parameter_id = 2; - if (this_._internal_parameter_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this_._internal_parameter_id(), target); - } - - // double value = 3; - if (::absl::bit_cast<::uint64_t>(this_._internal_value()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this_._internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.SetPluginParameterRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t SetPluginParameterRequest::ByteSizeLong(const MessageLite& base) { - const SetPluginParameterRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t SetPluginParameterRequest::ByteSizeLong() const { - const SetPluginParameterRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.SetPluginParameterRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string instance_id = 1; - if (!this_._internal_instance_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_instance_id()); - } - // double value = 3; - if (::absl::bit_cast<::uint64_t>(this_._internal_value()) != 0) { - total_size += 9; - } - // uint32 parameter_id = 2; - if (this_._internal_parameter_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_parameter_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void SetPluginParameterRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.SetPluginParameterRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_instance_id().empty()) { - _this->_internal_set_instance_id(from._internal_instance_id()); - } - if (::absl::bit_cast<::uint64_t>(from._internal_value()) != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - if (from._internal_parameter_id() != 0) { - _this->_impl_.parameter_id_ = from._impl_.parameter_id_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetPluginParameterRequest::CopyFrom(const SetPluginParameterRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.SetPluginParameterRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void SetPluginParameterRequest::InternalSwap(SetPluginParameterRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.instance_id_, &other->_impl_.instance_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.parameter_id_) - + sizeof(SetPluginParameterRequest::_impl_.parameter_id_) - - PROTOBUF_FIELD_OFFSET(SetPluginParameterRequest, _impl_.value_)>( - reinterpret_cast(&_impl_.value_), - reinterpret_cast(&other->_impl_.value_)); -} - -::google::protobuf::Metadata SetPluginParameterRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class LoadPluginRequest::_Internal { - public: -}; - -LoadPluginRequest::LoadPluginRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.LoadPluginRequest) -} -inline PROTOBUF_NDEBUG_INLINE LoadPluginRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::LoadPluginRequest& from_msg) - : file_path_(arena, from.file_path_), - _cached_size_{0} {} - -LoadPluginRequest::LoadPluginRequest( - ::google::protobuf::Arena* arena, - const LoadPluginRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - LoadPluginRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:daw.api.LoadPluginRequest) -} -inline PROTOBUF_NDEBUG_INLINE LoadPluginRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : file_path_(arena), - _cached_size_{0} {} - -inline void LoadPluginRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -LoadPluginRequest::~LoadPluginRequest() { - // @@protoc_insertion_point(destructor:daw.api.LoadPluginRequest) - SharedDtor(*this); -} -inline void LoadPluginRequest::SharedDtor(MessageLite& self) { - LoadPluginRequest& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.file_path_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* LoadPluginRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) LoadPluginRequest(arena); -} -constexpr auto LoadPluginRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LoadPluginRequest), - alignof(LoadPluginRequest)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull LoadPluginRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_LoadPluginRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &LoadPluginRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &LoadPluginRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &LoadPluginRequest::ByteSizeLong, - &LoadPluginRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(LoadPluginRequest, _impl_._cached_size_), - false, - }, - &LoadPluginRequest::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* LoadPluginRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 43, 2> LoadPluginRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::LoadPluginRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string file_path = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LoadPluginRequest, _impl_.file_path_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string file_path = 1; - {PROTOBUF_FIELD_OFFSET(LoadPluginRequest, _impl_.file_path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\31\11\0\0\0\0\0\0" - "daw.api.LoadPluginRequest" - "file_path" - }}, -}; - -PROTOBUF_NOINLINE void LoadPluginRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.LoadPluginRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.file_path_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* LoadPluginRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const LoadPluginRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* LoadPluginRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const LoadPluginRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.LoadPluginRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string file_path = 1; - if (!this_._internal_file_path().empty()) { - const std::string& _s = this_._internal_file_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.LoadPluginRequest.file_path"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.LoadPluginRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t LoadPluginRequest::ByteSizeLong(const MessageLite& base) { - const LoadPluginRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t LoadPluginRequest::ByteSizeLong() const { - const LoadPluginRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.LoadPluginRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string file_path = 1; - if (!this_._internal_file_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_file_path()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void LoadPluginRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.LoadPluginRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_file_path().empty()) { - _this->_internal_set_file_path(from._internal_file_path()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void LoadPluginRequest::CopyFrom(const LoadPluginRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.LoadPluginRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void LoadPluginRequest::InternalSwap(LoadPluginRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_path_, &other->_impl_.file_path_, arena); -} - -::google::protobuf::Metadata LoadPluginRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class VUMeterUpdate::_Internal { - public: -}; - -VUMeterUpdate::VUMeterUpdate(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.VUMeterUpdate) -} -inline PROTOBUF_NDEBUG_INLINE VUMeterUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::VUMeterUpdate& from_msg) - : track_id_(arena, from.track_id_), - _cached_size_{0} {} - -VUMeterUpdate::VUMeterUpdate( - ::google::protobuf::Arena* arena, - const VUMeterUpdate& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - VUMeterUpdate* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, peak_dbfs_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, peak_dbfs_), - offsetof(Impl_, rms_dbfs_) - - offsetof(Impl_, peak_dbfs_) + - sizeof(Impl_::rms_dbfs_)); - - // @@protoc_insertion_point(copy_constructor:daw.api.VUMeterUpdate) -} -inline PROTOBUF_NDEBUG_INLINE VUMeterUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : track_id_(arena), - _cached_size_{0} {} - -inline void VUMeterUpdate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, peak_dbfs_), - 0, - offsetof(Impl_, rms_dbfs_) - - offsetof(Impl_, peak_dbfs_) + - sizeof(Impl_::rms_dbfs_)); -} -VUMeterUpdate::~VUMeterUpdate() { - // @@protoc_insertion_point(destructor:daw.api.VUMeterUpdate) - SharedDtor(*this); -} -inline void VUMeterUpdate::SharedDtor(MessageLite& self) { - VUMeterUpdate& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.track_id_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* VUMeterUpdate::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) VUMeterUpdate(arena); -} -constexpr auto VUMeterUpdate::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(VUMeterUpdate), - alignof(VUMeterUpdate)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull VUMeterUpdate::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_VUMeterUpdate_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &VUMeterUpdate::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &VUMeterUpdate::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &VUMeterUpdate::ByteSizeLong, - &VUMeterUpdate::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_._cached_size_), - false, - }, - &VUMeterUpdate::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* VUMeterUpdate::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 38, 2> VUMeterUpdate::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::VUMeterUpdate>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string track_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.track_id_)}}, - // float peak_dbfs = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.peak_dbfs_)}}, - // float rms_dbfs = 3; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.rms_dbfs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string track_id = 1; - {PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.track_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // float peak_dbfs = 2; - {PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.peak_dbfs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // float rms_dbfs = 3; - {PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.rms_dbfs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - "\25\10\0\0\0\0\0\0" - "daw.api.VUMeterUpdate" - "track_id" - }}, -}; - -PROTOBUF_NOINLINE void VUMeterUpdate::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.VUMeterUpdate) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.track_id_.ClearToEmpty(); - ::memset(&_impl_.peak_dbfs_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.rms_dbfs_) - - reinterpret_cast(&_impl_.peak_dbfs_)) + sizeof(_impl_.rms_dbfs_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* VUMeterUpdate::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const VUMeterUpdate& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* VUMeterUpdate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const VUMeterUpdate& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.VUMeterUpdate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - const std::string& _s = this_._internal_track_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "daw.api.VUMeterUpdate.track_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // float peak_dbfs = 2; - if (::absl::bit_cast<::uint32_t>(this_._internal_peak_dbfs()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this_._internal_peak_dbfs(), target); - } - - // float rms_dbfs = 3; - if (::absl::bit_cast<::uint32_t>(this_._internal_rms_dbfs()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this_._internal_rms_dbfs(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.VUMeterUpdate) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t VUMeterUpdate::ByteSizeLong(const MessageLite& base) { - const VUMeterUpdate& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t VUMeterUpdate::ByteSizeLong() const { - const VUMeterUpdate& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.VUMeterUpdate) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string track_id = 1; - if (!this_._internal_track_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_track_id()); - } - // float peak_dbfs = 2; - if (::absl::bit_cast<::uint32_t>(this_._internal_peak_dbfs()) != 0) { - total_size += 5; - } - // float rms_dbfs = 3; - if (::absl::bit_cast<::uint32_t>(this_._internal_rms_dbfs()) != 0) { - total_size += 5; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void VUMeterUpdate::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.VUMeterUpdate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_track_id().empty()) { - _this->_internal_set_track_id(from._internal_track_id()); - } - if (::absl::bit_cast<::uint32_t>(from._internal_peak_dbfs()) != 0) { - _this->_impl_.peak_dbfs_ = from._impl_.peak_dbfs_; - } - if (::absl::bit_cast<::uint32_t>(from._internal_rms_dbfs()) != 0) { - _this->_impl_.rms_dbfs_ = from._impl_.rms_dbfs_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void VUMeterUpdate::CopyFrom(const VUMeterUpdate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.VUMeterUpdate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void VUMeterUpdate::InternalSwap(VUMeterUpdate* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.track_id_, &other->_impl_.track_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.rms_dbfs_) - + sizeof(VUMeterUpdate::_impl_.rms_dbfs_) - - PROTOBUF_FIELD_OFFSET(VUMeterUpdate, _impl_.peak_dbfs_)>( - reinterpret_cast(&_impl_.peak_dbfs_), - reinterpret_cast(&other->_impl_.peak_dbfs_)); -} - -::google::protobuf::Metadata VUMeterUpdate::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class VUMeterData::_Internal { - public: -}; - -VUMeterData::VUMeterData(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.VUMeterData) -} -inline PROTOBUF_NDEBUG_INLINE VUMeterData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::api::VUMeterData& from_msg) - : updates_{visibility, arena, from.updates_}, - _cached_size_{0} {} - -VUMeterData::VUMeterData( - ::google::protobuf::Arena* arena, - const VUMeterData& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - VUMeterData* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:daw.api.VUMeterData) -} -inline PROTOBUF_NDEBUG_INLINE VUMeterData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : updates_{visibility, arena}, - _cached_size_{0} {} - -inline void VUMeterData::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -VUMeterData::~VUMeterData() { - // @@protoc_insertion_point(destructor:daw.api.VUMeterData) - SharedDtor(*this); -} -inline void VUMeterData::SharedDtor(MessageLite& self) { - VUMeterData& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* VUMeterData::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) VUMeterData(arena); -} -constexpr auto VUMeterData::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(VUMeterData, _impl_.updates_) + - decltype(VUMeterData::_impl_.updates_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::ZeroInit( - sizeof(VUMeterData), alignof(VUMeterData), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&VUMeterData::PlacementNew_, - sizeof(VUMeterData), - alignof(VUMeterData)); - } -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull VUMeterData::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_VUMeterData_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &VUMeterData::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &VUMeterData::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &VUMeterData::ByteSizeLong, - &VUMeterData::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(VUMeterData, _impl_._cached_size_), - false, - }, - &VUMeterData::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* VUMeterData::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> VUMeterData::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::VUMeterData>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .daw.api.VUMeterUpdate updates = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(VUMeterData, _impl_.updates_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .daw.api.VUMeterUpdate updates = 1; - {PROTOBUF_FIELD_OFFSET(VUMeterData, _impl_.updates_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::api::VUMeterUpdate>()}, - }}, {{ - }}, -}; - -PROTOBUF_NOINLINE void VUMeterData::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.VUMeterData) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.updates_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* VUMeterData::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const VUMeterData& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* VUMeterData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const VUMeterData& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.VUMeterData) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .daw.api.VUMeterUpdate updates = 1; - for (unsigned i = 0, n = static_cast( - this_._internal_updates_size()); - i < n; i++) { - const auto& repfield = this_._internal_updates().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.VUMeterData) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t VUMeterData::ByteSizeLong(const MessageLite& base) { - const VUMeterData& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t VUMeterData::ByteSizeLong() const { - const VUMeterData& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.VUMeterData) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .daw.api.VUMeterUpdate updates = 1; - { - total_size += 1UL * this_._internal_updates_size(); - for (const auto& msg : this_._internal_updates()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void VUMeterData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.VUMeterData) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_updates()->MergeFrom( - from._internal_updates()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void VUMeterData::CopyFrom(const VUMeterData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.VUMeterData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void VUMeterData::InternalSwap(VUMeterData* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.updates_.InternalSwap(&other->_impl_.updates_); -} - -::google::protobuf::Metadata VUMeterData::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RealtimeCursorPosition::_Internal { - public: -}; - -RealtimeCursorPosition::RealtimeCursorPosition(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.api.RealtimeCursorPosition) -} -RealtimeCursorPosition::RealtimeCursorPosition( - ::google::protobuf::Arena* arena, const RealtimeCursorPosition& from) - : RealtimeCursorPosition(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE RealtimeCursorPosition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void RealtimeCursorPosition::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_in_seconds_), - 0, - offsetof(Impl_, absolute_ticks_) - - offsetof(Impl_, time_in_seconds_) + - sizeof(Impl_::absolute_ticks_)); -} -RealtimeCursorPosition::~RealtimeCursorPosition() { - // @@protoc_insertion_point(destructor:daw.api.RealtimeCursorPosition) - SharedDtor(*this); -} -inline void RealtimeCursorPosition::SharedDtor(MessageLite& self) { - RealtimeCursorPosition& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* RealtimeCursorPosition::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) RealtimeCursorPosition(arena); -} -constexpr auto RealtimeCursorPosition::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RealtimeCursorPosition), - alignof(RealtimeCursorPosition)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RealtimeCursorPosition::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RealtimeCursorPosition_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RealtimeCursorPosition::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RealtimeCursorPosition::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RealtimeCursorPosition::ByteSizeLong, - &RealtimeCursorPosition::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RealtimeCursorPosition, _impl_._cached_size_), - false, - }, - &RealtimeCursorPosition::kDescriptorMethods, - &descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RealtimeCursorPosition::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> RealtimeCursorPosition::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::api::RealtimeCursorPosition>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int64 absolute_ticks = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RealtimeCursorPosition, _impl_.absolute_ticks_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RealtimeCursorPosition, _impl_.absolute_ticks_)}}, - // double time_in_seconds = 1; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(RealtimeCursorPosition, _impl_.time_in_seconds_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double time_in_seconds = 1; - {PROTOBUF_FIELD_OFFSET(RealtimeCursorPosition, _impl_.time_in_seconds_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // int64 absolute_ticks = 2; - {PROTOBUF_FIELD_OFFSET(RealtimeCursorPosition, _impl_.absolute_ticks_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -PROTOBUF_NOINLINE void RealtimeCursorPosition::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.api.RealtimeCursorPosition) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.time_in_seconds_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.absolute_ticks_) - - reinterpret_cast(&_impl_.time_in_seconds_)) + sizeof(_impl_.absolute_ticks_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RealtimeCursorPosition::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RealtimeCursorPosition& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RealtimeCursorPosition::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RealtimeCursorPosition& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.api.RealtimeCursorPosition) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // double time_in_seconds = 1; - if (::absl::bit_cast<::uint64_t>(this_._internal_time_in_seconds()) != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this_._internal_time_in_seconds(), target); - } - - // int64 absolute_ticks = 2; - if (this_._internal_absolute_ticks() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this_._internal_absolute_ticks(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.api.RealtimeCursorPosition) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RealtimeCursorPosition::ByteSizeLong(const MessageLite& base) { - const RealtimeCursorPosition& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RealtimeCursorPosition::ByteSizeLong() const { - const RealtimeCursorPosition& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.api.RealtimeCursorPosition) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // double time_in_seconds = 1; - if (::absl::bit_cast<::uint64_t>(this_._internal_time_in_seconds()) != 0) { - total_size += 9; - } - // int64 absolute_ticks = 2; - if (this_._internal_absolute_ticks() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_absolute_ticks()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void RealtimeCursorPosition::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.api.RealtimeCursorPosition) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (::absl::bit_cast<::uint64_t>(from._internal_time_in_seconds()) != 0) { - _this->_impl_.time_in_seconds_ = from._impl_.time_in_seconds_; - } - if (from._internal_absolute_ticks() != 0) { - _this->_impl_.absolute_ticks_ = from._impl_.absolute_ticks_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void RealtimeCursorPosition::CopyFrom(const RealtimeCursorPosition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.api.RealtimeCursorPosition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RealtimeCursorPosition::InternalSwap(RealtimeCursorPosition* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RealtimeCursorPosition, _impl_.absolute_ticks_) - + sizeof(RealtimeCursorPosition::_impl_.absolute_ticks_) - - PROTOBUF_FIELD_OFFSET(RealtimeCursorPosition, _impl_.time_in_seconds_)>( - reinterpret_cast(&_impl_.time_in_seconds_), - reinterpret_cast(&other->_impl_.time_in_seconds_)); -} - -::google::protobuf::Metadata RealtimeCursorPosition::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace api -} // namespace daw -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type - _static_init2_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/src/backend/proto/ctrl/frontend_to_engine.pb.h b/src/backend/proto/ctrl/frontend_to_engine.pb.h deleted file mode 100644 index dcece63..0000000 --- a/src/backend/proto/ctrl/frontend_to_engine.pb.h +++ /dev/null @@ -1,5797 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: ctrl/frontend_to_engine.proto -// Protobuf C++ Version: 5.29.3 - -#ifndef ctrl_2ffrontend_5fto_5fengine_2eproto_2epb_2eh -#define ctrl_2ffrontend_5fto_5fengine_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 5029003 -#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 "google/protobuf/empty.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_ctrl_2ffrontend_5fto_5fengine_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_ctrl_2ffrontend_5fto_5fengine_2eproto; -namespace daw { -namespace api { -class AddTrackRequest; -struct AddTrackRequestDefaultTypeInternal; -extern AddTrackRequestDefaultTypeInternal _AddTrackRequest_default_instance_; -class LoadPluginRequest; -struct LoadPluginRequestDefaultTypeInternal; -extern LoadPluginRequestDefaultTypeInternal _LoadPluginRequest_default_instance_; -class LoadProjectRequest; -struct LoadProjectRequestDefaultTypeInternal; -extern LoadProjectRequestDefaultTypeInternal _LoadProjectRequest_default_instance_; -class PlaybackState; -struct PlaybackStateDefaultTypeInternal; -extern PlaybackStateDefaultTypeInternal _PlaybackState_default_instance_; -class PluginInfo; -struct PluginInfoDefaultTypeInternal; -extern PluginInfoDefaultTypeInternal _PluginInfo_default_instance_; -class PluginParameter; -struct PluginParameterDefaultTypeInternal; -extern PluginParameterDefaultTypeInternal _PluginParameter_default_instance_; -class ProjectState; -struct ProjectStateDefaultTypeInternal; -extern ProjectStateDefaultTypeInternal _ProjectState_default_instance_; -class RealtimeCursorPosition; -struct RealtimeCursorPositionDefaultTypeInternal; -extern RealtimeCursorPositionDefaultTypeInternal _RealtimeCursorPosition_default_instance_; -class SaveProjectRequest; -struct SaveProjectRequestDefaultTypeInternal; -extern SaveProjectRequestDefaultTypeInternal _SaveProjectRequest_default_instance_; -class SetPluginParameterRequest; -struct SetPluginParameterRequestDefaultTypeInternal; -extern SetPluginParameterRequestDefaultTypeInternal _SetPluginParameterRequest_default_instance_; -class SetTempoRequest; -struct SetTempoRequestDefaultTypeInternal; -extern SetTempoRequestDefaultTypeInternal _SetTempoRequest_default_instance_; -class SetTrackPanRequest; -struct SetTrackPanRequestDefaultTypeInternal; -extern SetTrackPanRequestDefaultTypeInternal _SetTrackPanRequest_default_instance_; -class SetTrackVolumeRequest; -struct SetTrackVolumeRequestDefaultTypeInternal; -extern SetTrackVolumeRequestDefaultTypeInternal _SetTrackVolumeRequest_default_instance_; -class StatusResponse; -struct StatusResponseDefaultTypeInternal; -extern StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; -class TrackIdRequest; -struct TrackIdRequestDefaultTypeInternal; -extern TrackIdRequestDefaultTypeInternal _TrackIdRequest_default_instance_; -class TrackInfo; -struct TrackInfoDefaultTypeInternal; -extern TrackInfoDefaultTypeInternal _TrackInfo_default_instance_; -class VUMeterData; -struct VUMeterDataDefaultTypeInternal; -extern VUMeterDataDefaultTypeInternal _VUMeterData_default_instance_; -class VUMeterUpdate; -struct VUMeterUpdateDefaultTypeInternal; -extern VUMeterUpdateDefaultTypeInternal _VUMeterUpdate_default_instance_; -} // namespace api -} // namespace daw -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace daw { -namespace api { -enum TrackType : int { - AUDIO = 0, - MIDI = 1, - TrackType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - TrackType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool TrackType_IsValid(int value); -extern const uint32_t TrackType_internal_data_[]; -constexpr TrackType TrackType_MIN = static_cast(0); -constexpr TrackType TrackType_MAX = static_cast(1); -constexpr int TrackType_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -TrackType_descriptor(); -template -const std::string& TrackType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to TrackType_Name()."); - return TrackType_Name(static_cast(value)); -} -template <> -inline const std::string& TrackType_Name(TrackType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool TrackType_Parse(absl::string_view name, TrackType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TrackType_descriptor(), name, value); -} - -// =================================================================== - - -// ------------------------------------------------------------------- - -class VUMeterUpdate final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.VUMeterUpdate) */ { - public: - inline VUMeterUpdate() : VUMeterUpdate(nullptr) {} - ~VUMeterUpdate() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(VUMeterUpdate* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(VUMeterUpdate)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR VUMeterUpdate( - ::google::protobuf::internal::ConstantInitialized); - - inline VUMeterUpdate(const VUMeterUpdate& from) : VUMeterUpdate(nullptr, from) {} - inline VUMeterUpdate(VUMeterUpdate&& from) noexcept - : VUMeterUpdate(nullptr, std::move(from)) {} - inline VUMeterUpdate& operator=(const VUMeterUpdate& from) { - CopyFrom(from); - return *this; - } - inline VUMeterUpdate& operator=(VUMeterUpdate&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const VUMeterUpdate& default_instance() { - return *internal_default_instance(); - } - static inline const VUMeterUpdate* internal_default_instance() { - return reinterpret_cast( - &_VUMeterUpdate_default_instance_); - } - static constexpr int kIndexInFileMessages = 15; - friend void swap(VUMeterUpdate& a, VUMeterUpdate& b) { a.Swap(&b); } - inline void Swap(VUMeterUpdate* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(VUMeterUpdate* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - VUMeterUpdate* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const VUMeterUpdate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const VUMeterUpdate& from) { VUMeterUpdate::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(VUMeterUpdate* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.VUMeterUpdate"; } - - protected: - explicit VUMeterUpdate(::google::protobuf::Arena* arena); - VUMeterUpdate(::google::protobuf::Arena* arena, const VUMeterUpdate& from); - VUMeterUpdate(::google::protobuf::Arena* arena, VUMeterUpdate&& from) noexcept - : VUMeterUpdate(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTrackIdFieldNumber = 1, - kPeakDbfsFieldNumber = 2, - kRmsDbfsFieldNumber = 3, - }; - // string track_id = 1; - void clear_track_id() ; - const std::string& track_id() const; - template - void set_track_id(Arg_&& arg, Args_... args); - std::string* mutable_track_id(); - PROTOBUF_NODISCARD std::string* release_track_id(); - void set_allocated_track_id(std::string* value); - - private: - const std::string& _internal_track_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_track_id( - const std::string& value); - std::string* _internal_mutable_track_id(); - - public: - // float peak_dbfs = 2; - void clear_peak_dbfs() ; - float peak_dbfs() const; - void set_peak_dbfs(float value); - - private: - float _internal_peak_dbfs() const; - void _internal_set_peak_dbfs(float value); - - public: - // float rms_dbfs = 3; - void clear_rms_dbfs() ; - float rms_dbfs() const; - void set_rms_dbfs(float value); - - private: - float _internal_rms_dbfs() const; - void _internal_set_rms_dbfs(float value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.VUMeterUpdate) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 38, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const VUMeterUpdate& from_msg); - ::google::protobuf::internal::ArenaStringPtr track_id_; - float peak_dbfs_; - float rms_dbfs_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class TrackIdRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.TrackIdRequest) */ { - public: - inline TrackIdRequest() : TrackIdRequest(nullptr) {} - ~TrackIdRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(TrackIdRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(TrackIdRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR TrackIdRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline TrackIdRequest(const TrackIdRequest& from) : TrackIdRequest(nullptr, from) {} - inline TrackIdRequest(TrackIdRequest&& from) noexcept - : TrackIdRequest(nullptr, std::move(from)) {} - inline TrackIdRequest& operator=(const TrackIdRequest& from) { - CopyFrom(from); - return *this; - } - inline TrackIdRequest& operator=(TrackIdRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TrackIdRequest& default_instance() { - return *internal_default_instance(); - } - static inline const TrackIdRequest* internal_default_instance() { - return reinterpret_cast( - &_TrackIdRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 8; - friend void swap(TrackIdRequest& a, TrackIdRequest& b) { a.Swap(&b); } - inline void Swap(TrackIdRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TrackIdRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TrackIdRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TrackIdRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TrackIdRequest& from) { TrackIdRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(TrackIdRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.TrackIdRequest"; } - - protected: - explicit TrackIdRequest(::google::protobuf::Arena* arena); - TrackIdRequest(::google::protobuf::Arena* arena, const TrackIdRequest& from); - TrackIdRequest(::google::protobuf::Arena* arena, TrackIdRequest&& from) noexcept - : TrackIdRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTrackIdFieldNumber = 1, - }; - // string track_id = 1; - void clear_track_id() ; - const std::string& track_id() const; - template - void set_track_id(Arg_&& arg, Args_... args); - std::string* mutable_track_id(); - PROTOBUF_NODISCARD std::string* release_track_id(); - void set_allocated_track_id(std::string* value); - - private: - const std::string& _internal_track_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_track_id( - const std::string& value); - std::string* _internal_mutable_track_id(); - - public: - // @@protoc_insertion_point(class_scope:daw.api.TrackIdRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 39, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const TrackIdRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr track_id_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class StatusResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.StatusResponse) */ { - public: - inline StatusResponse() : StatusResponse(nullptr) {} - ~StatusResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(StatusResponse* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(StatusResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR StatusResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline StatusResponse(const StatusResponse& from) : StatusResponse(nullptr, from) {} - inline StatusResponse(StatusResponse&& from) noexcept - : StatusResponse(nullptr, std::move(from)) {} - inline StatusResponse& operator=(const StatusResponse& from) { - CopyFrom(from); - return *this; - } - inline StatusResponse& operator=(StatusResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const StatusResponse& default_instance() { - return *internal_default_instance(); - } - static inline const StatusResponse* internal_default_instance() { - return reinterpret_cast( - &_StatusResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(StatusResponse& a, StatusResponse& b) { a.Swap(&b); } - inline void Swap(StatusResponse* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StatusResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - StatusResponse* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StatusResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const StatusResponse& from) { StatusResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(StatusResponse* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.StatusResponse"; } - - protected: - explicit StatusResponse(::google::protobuf::Arena* arena); - StatusResponse(::google::protobuf::Arena* arena, const StatusResponse& from); - StatusResponse(::google::protobuf::Arena* arena, StatusResponse&& from) noexcept - : StatusResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kErrorMessageFieldNumber = 2, - kSuccessFieldNumber = 1, - }; - // string error_message = 2; - void clear_error_message() ; - const std::string& error_message() const; - template - void set_error_message(Arg_&& arg, Args_... args); - std::string* mutable_error_message(); - PROTOBUF_NODISCARD std::string* release_error_message(); - void set_allocated_error_message(std::string* value); - - private: - const std::string& _internal_error_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error_message( - const std::string& value); - std::string* _internal_mutable_error_message(); - - public: - // bool success = 1; - void clear_success() ; - bool success() const; - void set_success(bool value); - - private: - bool _internal_success() const; - void _internal_set_success(bool value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.StatusResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 44, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const StatusResponse& from_msg); - ::google::protobuf::internal::ArenaStringPtr error_message_; - bool success_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class SetTrackVolumeRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.SetTrackVolumeRequest) */ { - public: - inline SetTrackVolumeRequest() : SetTrackVolumeRequest(nullptr) {} - ~SetTrackVolumeRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SetTrackVolumeRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SetTrackVolumeRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SetTrackVolumeRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SetTrackVolumeRequest(const SetTrackVolumeRequest& from) : SetTrackVolumeRequest(nullptr, from) {} - inline SetTrackVolumeRequest(SetTrackVolumeRequest&& from) noexcept - : SetTrackVolumeRequest(nullptr, std::move(from)) {} - inline SetTrackVolumeRequest& operator=(const SetTrackVolumeRequest& from) { - CopyFrom(from); - return *this; - } - inline SetTrackVolumeRequest& operator=(SetTrackVolumeRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetTrackVolumeRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetTrackVolumeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetTrackVolumeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 9; - friend void swap(SetTrackVolumeRequest& a, SetTrackVolumeRequest& b) { a.Swap(&b); } - inline void Swap(SetTrackVolumeRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetTrackVolumeRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetTrackVolumeRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetTrackVolumeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SetTrackVolumeRequest& from) { SetTrackVolumeRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SetTrackVolumeRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.SetTrackVolumeRequest"; } - - protected: - explicit SetTrackVolumeRequest(::google::protobuf::Arena* arena); - SetTrackVolumeRequest(::google::protobuf::Arena* arena, const SetTrackVolumeRequest& from); - SetTrackVolumeRequest(::google::protobuf::Arena* arena, SetTrackVolumeRequest&& from) noexcept - : SetTrackVolumeRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTrackIdFieldNumber = 1, - kVolumeDbFieldNumber = 2, - }; - // string track_id = 1; - void clear_track_id() ; - const std::string& track_id() const; - template - void set_track_id(Arg_&& arg, Args_... args); - std::string* mutable_track_id(); - PROTOBUF_NODISCARD std::string* release_track_id(); - void set_allocated_track_id(std::string* value); - - private: - const std::string& _internal_track_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_track_id( - const std::string& value); - std::string* _internal_mutable_track_id(); - - public: - // float volume_db = 2; - void clear_volume_db() ; - float volume_db() const; - void set_volume_db(float value); - - private: - float _internal_volume_db() const; - void _internal_set_volume_db(float value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.SetTrackVolumeRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 46, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const SetTrackVolumeRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr track_id_; - float volume_db_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class SetTrackPanRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.SetTrackPanRequest) */ { - public: - inline SetTrackPanRequest() : SetTrackPanRequest(nullptr) {} - ~SetTrackPanRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SetTrackPanRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SetTrackPanRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SetTrackPanRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SetTrackPanRequest(const SetTrackPanRequest& from) : SetTrackPanRequest(nullptr, from) {} - inline SetTrackPanRequest(SetTrackPanRequest&& from) noexcept - : SetTrackPanRequest(nullptr, std::move(from)) {} - inline SetTrackPanRequest& operator=(const SetTrackPanRequest& from) { - CopyFrom(from); - return *this; - } - inline SetTrackPanRequest& operator=(SetTrackPanRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetTrackPanRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetTrackPanRequest* internal_default_instance() { - return reinterpret_cast( - &_SetTrackPanRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 10; - friend void swap(SetTrackPanRequest& a, SetTrackPanRequest& b) { a.Swap(&b); } - inline void Swap(SetTrackPanRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetTrackPanRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetTrackPanRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetTrackPanRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SetTrackPanRequest& from) { SetTrackPanRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SetTrackPanRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.SetTrackPanRequest"; } - - protected: - explicit SetTrackPanRequest(::google::protobuf::Arena* arena); - SetTrackPanRequest(::google::protobuf::Arena* arena, const SetTrackPanRequest& from); - SetTrackPanRequest(::google::protobuf::Arena* arena, SetTrackPanRequest&& from) noexcept - : SetTrackPanRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTrackIdFieldNumber = 1, - kPanFieldNumber = 2, - }; - // string track_id = 1; - void clear_track_id() ; - const std::string& track_id() const; - template - void set_track_id(Arg_&& arg, Args_... args); - std::string* mutable_track_id(); - PROTOBUF_NODISCARD std::string* release_track_id(); - void set_allocated_track_id(std::string* value); - - private: - const std::string& _internal_track_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_track_id( - const std::string& value); - std::string* _internal_mutable_track_id(); - - public: - // float pan = 2; - void clear_pan() ; - float pan() const; - void set_pan(float value); - - private: - float _internal_pan() const; - void _internal_set_pan(float value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.SetTrackPanRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 43, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const SetTrackPanRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr track_id_; - float pan_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class SetTempoRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.SetTempoRequest) */ { - public: - inline SetTempoRequest() : SetTempoRequest(nullptr) {} - ~SetTempoRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SetTempoRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SetTempoRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SetTempoRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SetTempoRequest(const SetTempoRequest& from) : SetTempoRequest(nullptr, from) {} - inline SetTempoRequest(SetTempoRequest&& from) noexcept - : SetTempoRequest(nullptr, std::move(from)) {} - inline SetTempoRequest& operator=(const SetTempoRequest& from) { - CopyFrom(from); - return *this; - } - inline SetTempoRequest& operator=(SetTempoRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetTempoRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetTempoRequest* internal_default_instance() { - return reinterpret_cast( - &_SetTempoRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(SetTempoRequest& a, SetTempoRequest& b) { a.Swap(&b); } - inline void Swap(SetTempoRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetTempoRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetTempoRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetTempoRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SetTempoRequest& from) { SetTempoRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SetTempoRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.SetTempoRequest"; } - - protected: - explicit SetTempoRequest(::google::protobuf::Arena* arena); - SetTempoRequest(::google::protobuf::Arena* arena, const SetTempoRequest& from); - SetTempoRequest(::google::protobuf::Arena* arena, SetTempoRequest&& from) noexcept - : SetTempoRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBpmFieldNumber = 1, - }; - // double bpm = 1; - void clear_bpm() ; - double bpm() const; - void set_bpm(double value); - - private: - double _internal_bpm() const; - void _internal_set_bpm(double value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.SetTempoRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const SetTempoRequest& from_msg); - double bpm_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class SetPluginParameterRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.SetPluginParameterRequest) */ { - public: - inline SetPluginParameterRequest() : SetPluginParameterRequest(nullptr) {} - ~SetPluginParameterRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SetPluginParameterRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SetPluginParameterRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SetPluginParameterRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SetPluginParameterRequest(const SetPluginParameterRequest& from) : SetPluginParameterRequest(nullptr, from) {} - inline SetPluginParameterRequest(SetPluginParameterRequest&& from) noexcept - : SetPluginParameterRequest(nullptr, std::move(from)) {} - inline SetPluginParameterRequest& operator=(const SetPluginParameterRequest& from) { - CopyFrom(from); - return *this; - } - inline SetPluginParameterRequest& operator=(SetPluginParameterRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetPluginParameterRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetPluginParameterRequest* internal_default_instance() { - return reinterpret_cast( - &_SetPluginParameterRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 13; - friend void swap(SetPluginParameterRequest& a, SetPluginParameterRequest& b) { a.Swap(&b); } - inline void Swap(SetPluginParameterRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetPluginParameterRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetPluginParameterRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetPluginParameterRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SetPluginParameterRequest& from) { SetPluginParameterRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SetPluginParameterRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.SetPluginParameterRequest"; } - - protected: - explicit SetPluginParameterRequest(::google::protobuf::Arena* arena); - SetPluginParameterRequest(::google::protobuf::Arena* arena, const SetPluginParameterRequest& from); - SetPluginParameterRequest(::google::protobuf::Arena* arena, SetPluginParameterRequest&& from) noexcept - : SetPluginParameterRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kInstanceIdFieldNumber = 1, - kValueFieldNumber = 3, - kParameterIdFieldNumber = 2, - }; - // string instance_id = 1; - void clear_instance_id() ; - const std::string& instance_id() const; - template - void set_instance_id(Arg_&& arg, Args_... args); - std::string* mutable_instance_id(); - PROTOBUF_NODISCARD std::string* release_instance_id(); - void set_allocated_instance_id(std::string* value); - - private: - const std::string& _internal_instance_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_instance_id( - const std::string& value); - std::string* _internal_mutable_instance_id(); - - public: - // double value = 3; - void clear_value() ; - double value() const; - void set_value(double value); - - private: - double _internal_value() const; - void _internal_set_value(double value); - - public: - // uint32 parameter_id = 2; - void clear_parameter_id() ; - ::uint32_t parameter_id() const; - void set_parameter_id(::uint32_t value); - - private: - ::uint32_t _internal_parameter_id() const; - void _internal_set_parameter_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.SetPluginParameterRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 53, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const SetPluginParameterRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr instance_id_; - double value_; - ::uint32_t parameter_id_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class SaveProjectRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.SaveProjectRequest) */ { - public: - inline SaveProjectRequest() : SaveProjectRequest(nullptr) {} - ~SaveProjectRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SaveProjectRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SaveProjectRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SaveProjectRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SaveProjectRequest(const SaveProjectRequest& from) : SaveProjectRequest(nullptr, from) {} - inline SaveProjectRequest(SaveProjectRequest&& from) noexcept - : SaveProjectRequest(nullptr, std::move(from)) {} - inline SaveProjectRequest& operator=(const SaveProjectRequest& from) { - CopyFrom(from); - return *this; - } - inline SaveProjectRequest& operator=(SaveProjectRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SaveProjectRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SaveProjectRequest* internal_default_instance() { - return reinterpret_cast( - &_SaveProjectRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(SaveProjectRequest& a, SaveProjectRequest& b) { a.Swap(&b); } - inline void Swap(SaveProjectRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SaveProjectRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SaveProjectRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SaveProjectRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SaveProjectRequest& from) { SaveProjectRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SaveProjectRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.SaveProjectRequest"; } - - protected: - explicit SaveProjectRequest(::google::protobuf::Arena* arena); - SaveProjectRequest(::google::protobuf::Arena* arena, const SaveProjectRequest& from); - SaveProjectRequest(::google::protobuf::Arena* arena, SaveProjectRequest&& from) noexcept - : SaveProjectRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFilePathFieldNumber = 1, - }; - // string file_path = 1; - void clear_file_path() ; - const std::string& file_path() const; - template - void set_file_path(Arg_&& arg, Args_... args); - std::string* mutable_file_path(); - PROTOBUF_NODISCARD std::string* release_file_path(); - void set_allocated_file_path(std::string* value); - - private: - const std::string& _internal_file_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_path( - const std::string& value); - std::string* _internal_mutable_file_path(); - - public: - // @@protoc_insertion_point(class_scope:daw.api.SaveProjectRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 44, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const SaveProjectRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr file_path_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class RealtimeCursorPosition final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.RealtimeCursorPosition) */ { - public: - inline RealtimeCursorPosition() : RealtimeCursorPosition(nullptr) {} - ~RealtimeCursorPosition() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RealtimeCursorPosition* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RealtimeCursorPosition)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RealtimeCursorPosition( - ::google::protobuf::internal::ConstantInitialized); - - inline RealtimeCursorPosition(const RealtimeCursorPosition& from) : RealtimeCursorPosition(nullptr, from) {} - inline RealtimeCursorPosition(RealtimeCursorPosition&& from) noexcept - : RealtimeCursorPosition(nullptr, std::move(from)) {} - inline RealtimeCursorPosition& operator=(const RealtimeCursorPosition& from) { - CopyFrom(from); - return *this; - } - inline RealtimeCursorPosition& operator=(RealtimeCursorPosition&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RealtimeCursorPosition& default_instance() { - return *internal_default_instance(); - } - static inline const RealtimeCursorPosition* internal_default_instance() { - return reinterpret_cast( - &_RealtimeCursorPosition_default_instance_); - } - static constexpr int kIndexInFileMessages = 17; - friend void swap(RealtimeCursorPosition& a, RealtimeCursorPosition& b) { a.Swap(&b); } - inline void Swap(RealtimeCursorPosition* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RealtimeCursorPosition* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RealtimeCursorPosition* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RealtimeCursorPosition& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RealtimeCursorPosition& from) { RealtimeCursorPosition::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RealtimeCursorPosition* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.RealtimeCursorPosition"; } - - protected: - explicit RealtimeCursorPosition(::google::protobuf::Arena* arena); - RealtimeCursorPosition(::google::protobuf::Arena* arena, const RealtimeCursorPosition& from); - RealtimeCursorPosition(::google::protobuf::Arena* arena, RealtimeCursorPosition&& from) noexcept - : RealtimeCursorPosition(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTimeInSecondsFieldNumber = 1, - kAbsoluteTicksFieldNumber = 2, - }; - // double time_in_seconds = 1; - void clear_time_in_seconds() ; - double time_in_seconds() const; - void set_time_in_seconds(double value); - - private: - double _internal_time_in_seconds() const; - void _internal_set_time_in_seconds(double value); - - public: - // int64 absolute_ticks = 2; - void clear_absolute_ticks() ; - ::int64_t absolute_ticks() const; - void set_absolute_ticks(::int64_t value); - - private: - ::int64_t _internal_absolute_ticks() const; - void _internal_set_absolute_ticks(::int64_t value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.RealtimeCursorPosition) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RealtimeCursorPosition& from_msg); - double time_in_seconds_; - ::int64_t absolute_ticks_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class PluginParameter final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.PluginParameter) */ { - public: - inline PluginParameter() : PluginParameter(nullptr) {} - ~PluginParameter() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(PluginParameter* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(PluginParameter)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR PluginParameter( - ::google::protobuf::internal::ConstantInitialized); - - inline PluginParameter(const PluginParameter& from) : PluginParameter(nullptr, from) {} - inline PluginParameter(PluginParameter&& from) noexcept - : PluginParameter(nullptr, std::move(from)) {} - inline PluginParameter& operator=(const PluginParameter& from) { - CopyFrom(from); - return *this; - } - inline PluginParameter& operator=(PluginParameter&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PluginParameter& default_instance() { - return *internal_default_instance(); - } - static inline const PluginParameter* internal_default_instance() { - return reinterpret_cast( - &_PluginParameter_default_instance_); - } - static constexpr int kIndexInFileMessages = 12; - friend void swap(PluginParameter& a, PluginParameter& b) { a.Swap(&b); } - inline void Swap(PluginParameter* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PluginParameter* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PluginParameter* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PluginParameter& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const PluginParameter& from) { PluginParameter::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(PluginParameter* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.PluginParameter"; } - - protected: - explicit PluginParameter(::google::protobuf::Arena* arena); - PluginParameter(::google::protobuf::Arena* arena, const PluginParameter& from); - PluginParameter(::google::protobuf::Arena* arena, PluginParameter&& from) noexcept - : PluginParameter(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 2, - kValueFieldNumber = 3, - kParameterIdFieldNumber = 1, - }; - // string name = 2; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // double value = 3; - void clear_value() ; - double value() const; - void set_value(double value); - - private: - double _internal_value() const; - void _internal_set_value(double value); - - public: - // uint32 parameter_id = 1; - void clear_parameter_id() ; - ::uint32_t parameter_id() const; - void set_parameter_id(::uint32_t value); - - private: - ::uint32_t _internal_parameter_id() const; - void _internal_set_parameter_id(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.PluginParameter) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 36, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const PluginParameter& from_msg); - ::google::protobuf::internal::ArenaStringPtr name_; - double value_; - ::uint32_t parameter_id_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class PlaybackState final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.PlaybackState) */ { - public: - inline PlaybackState() : PlaybackState(nullptr) {} - ~PlaybackState() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(PlaybackState* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(PlaybackState)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR PlaybackState( - ::google::protobuf::internal::ConstantInitialized); - - inline PlaybackState(const PlaybackState& from) : PlaybackState(nullptr, from) {} - inline PlaybackState(PlaybackState&& from) noexcept - : PlaybackState(nullptr, std::move(from)) {} - inline PlaybackState& operator=(const PlaybackState& from) { - CopyFrom(from); - return *this; - } - inline PlaybackState& operator=(PlaybackState&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PlaybackState& default_instance() { - return *internal_default_instance(); - } - static inline const PlaybackState* internal_default_instance() { - return reinterpret_cast( - &_PlaybackState_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(PlaybackState& a, PlaybackState& b) { a.Swap(&b); } - inline void Swap(PlaybackState* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PlaybackState* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PlaybackState* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PlaybackState& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const PlaybackState& from) { PlaybackState::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(PlaybackState* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.PlaybackState"; } - - protected: - explicit PlaybackState(::google::protobuf::Arena* arena); - PlaybackState(::google::protobuf::Arena* arena, const PlaybackState& from); - PlaybackState(::google::protobuf::Arena* arena, PlaybackState&& from) noexcept - : PlaybackState(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBarFieldNumber = 1, - kBeatFieldNumber = 2, - kBpmFieldNumber = 4, - kTickFieldNumber = 3, - kIsPlayingFieldNumber = 6, - }; - // int32 bar = 1; - void clear_bar() ; - ::int32_t bar() const; - void set_bar(::int32_t value); - - private: - ::int32_t _internal_bar() const; - void _internal_set_bar(::int32_t value); - - public: - // int32 beat = 2; - void clear_beat() ; - ::int32_t beat() const; - void set_beat(::int32_t value); - - private: - ::int32_t _internal_beat() const; - void _internal_set_beat(::int32_t value); - - public: - // double bpm = 4; - void clear_bpm() ; - double bpm() const; - void set_bpm(double value); - - private: - double _internal_bpm() const; - void _internal_set_bpm(double value); - - public: - // int32 tick = 3; - void clear_tick() ; - ::int32_t tick() const; - void set_tick(::int32_t value); - - private: - ::int32_t _internal_tick() const; - void _internal_set_tick(::int32_t value); - - public: - // bool is_playing = 6; - void clear_is_playing() ; - bool is_playing() const; - void set_is_playing(bool value); - - private: - bool _internal_is_playing() const; - void _internal_set_is_playing(bool value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.PlaybackState) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const PlaybackState& from_msg); - ::int32_t bar_; - ::int32_t beat_; - double bpm_; - ::int32_t tick_; - bool is_playing_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class LoadProjectRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.LoadProjectRequest) */ { - public: - inline LoadProjectRequest() : LoadProjectRequest(nullptr) {} - ~LoadProjectRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(LoadProjectRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(LoadProjectRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR LoadProjectRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline LoadProjectRequest(const LoadProjectRequest& from) : LoadProjectRequest(nullptr, from) {} - inline LoadProjectRequest(LoadProjectRequest&& from) noexcept - : LoadProjectRequest(nullptr, std::move(from)) {} - inline LoadProjectRequest& operator=(const LoadProjectRequest& from) { - CopyFrom(from); - return *this; - } - inline LoadProjectRequest& operator=(LoadProjectRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LoadProjectRequest& default_instance() { - return *internal_default_instance(); - } - static inline const LoadProjectRequest* internal_default_instance() { - return reinterpret_cast( - &_LoadProjectRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(LoadProjectRequest& a, LoadProjectRequest& b) { a.Swap(&b); } - inline void Swap(LoadProjectRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LoadProjectRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LoadProjectRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LoadProjectRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const LoadProjectRequest& from) { LoadProjectRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(LoadProjectRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.LoadProjectRequest"; } - - protected: - explicit LoadProjectRequest(::google::protobuf::Arena* arena); - LoadProjectRequest(::google::protobuf::Arena* arena, const LoadProjectRequest& from); - LoadProjectRequest(::google::protobuf::Arena* arena, LoadProjectRequest&& from) noexcept - : LoadProjectRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFilePathFieldNumber = 1, - }; - // string file_path = 1; - void clear_file_path() ; - const std::string& file_path() const; - template - void set_file_path(Arg_&& arg, Args_... args); - std::string* mutable_file_path(); - PROTOBUF_NODISCARD std::string* release_file_path(); - void set_allocated_file_path(std::string* value); - - private: - const std::string& _internal_file_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_path( - const std::string& value); - std::string* _internal_mutable_file_path(); - - public: - // @@protoc_insertion_point(class_scope:daw.api.LoadProjectRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 44, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const LoadProjectRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr file_path_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class LoadPluginRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.LoadPluginRequest) */ { - public: - inline LoadPluginRequest() : LoadPluginRequest(nullptr) {} - ~LoadPluginRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(LoadPluginRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(LoadPluginRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR LoadPluginRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline LoadPluginRequest(const LoadPluginRequest& from) : LoadPluginRequest(nullptr, from) {} - inline LoadPluginRequest(LoadPluginRequest&& from) noexcept - : LoadPluginRequest(nullptr, std::move(from)) {} - inline LoadPluginRequest& operator=(const LoadPluginRequest& from) { - CopyFrom(from); - return *this; - } - inline LoadPluginRequest& operator=(LoadPluginRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LoadPluginRequest& default_instance() { - return *internal_default_instance(); - } - static inline const LoadPluginRequest* internal_default_instance() { - return reinterpret_cast( - &_LoadPluginRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 14; - friend void swap(LoadPluginRequest& a, LoadPluginRequest& b) { a.Swap(&b); } - inline void Swap(LoadPluginRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LoadPluginRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LoadPluginRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LoadPluginRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const LoadPluginRequest& from) { LoadPluginRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(LoadPluginRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.LoadPluginRequest"; } - - protected: - explicit LoadPluginRequest(::google::protobuf::Arena* arena); - LoadPluginRequest(::google::protobuf::Arena* arena, const LoadPluginRequest& from); - LoadPluginRequest(::google::protobuf::Arena* arena, LoadPluginRequest&& from) noexcept - : LoadPluginRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFilePathFieldNumber = 1, - }; - // string file_path = 1; - void clear_file_path() ; - const std::string& file_path() const; - template - void set_file_path(Arg_&& arg, Args_... args); - std::string* mutable_file_path(); - PROTOBUF_NODISCARD std::string* release_file_path(); - void set_allocated_file_path(std::string* value); - - private: - const std::string& _internal_file_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_path( - const std::string& value); - std::string* _internal_mutable_file_path(); - - public: - // @@protoc_insertion_point(class_scope:daw.api.LoadPluginRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 43, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const LoadPluginRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr file_path_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class AddTrackRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.AddTrackRequest) */ { - public: - inline AddTrackRequest() : AddTrackRequest(nullptr) {} - ~AddTrackRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(AddTrackRequest* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(AddTrackRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR AddTrackRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline AddTrackRequest(const AddTrackRequest& from) : AddTrackRequest(nullptr, from) {} - inline AddTrackRequest(AddTrackRequest&& from) noexcept - : AddTrackRequest(nullptr, std::move(from)) {} - inline AddTrackRequest& operator=(const AddTrackRequest& from) { - CopyFrom(from); - return *this; - } - inline AddTrackRequest& operator=(AddTrackRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AddTrackRequest& default_instance() { - return *internal_default_instance(); - } - static inline const AddTrackRequest* internal_default_instance() { - return reinterpret_cast( - &_AddTrackRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(AddTrackRequest& a, AddTrackRequest& b) { a.Swap(&b); } - inline void Swap(AddTrackRequest* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AddTrackRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AddTrackRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AddTrackRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const AddTrackRequest& from) { AddTrackRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(AddTrackRequest* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.AddTrackRequest"; } - - protected: - explicit AddTrackRequest(::google::protobuf::Arena* arena); - AddTrackRequest(::google::protobuf::Arena* arena, const AddTrackRequest& from); - AddTrackRequest(::google::protobuf::Arena* arena, AddTrackRequest&& from) noexcept - : AddTrackRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kTypeFieldNumber = 2, - }; - // string name = 1; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .daw.api.TrackType type = 2; - void clear_type() ; - ::daw::api::TrackType type() const; - void set_type(::daw::api::TrackType value); - - private: - ::daw::api::TrackType _internal_type() const; - void _internal_set_type(::daw::api::TrackType value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.AddTrackRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 36, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const AddTrackRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr name_; - int type_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class VUMeterData final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.VUMeterData) */ { - public: - inline VUMeterData() : VUMeterData(nullptr) {} - ~VUMeterData() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(VUMeterData* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(VUMeterData)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR VUMeterData( - ::google::protobuf::internal::ConstantInitialized); - - inline VUMeterData(const VUMeterData& from) : VUMeterData(nullptr, from) {} - inline VUMeterData(VUMeterData&& from) noexcept - : VUMeterData(nullptr, std::move(from)) {} - inline VUMeterData& operator=(const VUMeterData& from) { - CopyFrom(from); - return *this; - } - inline VUMeterData& operator=(VUMeterData&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const VUMeterData& default_instance() { - return *internal_default_instance(); - } - static inline const VUMeterData* internal_default_instance() { - return reinterpret_cast( - &_VUMeterData_default_instance_); - } - static constexpr int kIndexInFileMessages = 16; - friend void swap(VUMeterData& a, VUMeterData& b) { a.Swap(&b); } - inline void Swap(VUMeterData* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(VUMeterData* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - VUMeterData* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const VUMeterData& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const VUMeterData& from) { VUMeterData::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(VUMeterData* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.VUMeterData"; } - - protected: - explicit VUMeterData(::google::protobuf::Arena* arena); - VUMeterData(::google::protobuf::Arena* arena, const VUMeterData& from); - VUMeterData(::google::protobuf::Arena* arena, VUMeterData&& from) noexcept - : VUMeterData(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kUpdatesFieldNumber = 1, - }; - // repeated .daw.api.VUMeterUpdate updates = 1; - int updates_size() const; - private: - int _internal_updates_size() const; - - public: - void clear_updates() ; - ::daw::api::VUMeterUpdate* mutable_updates(int index); - ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>* mutable_updates(); - - private: - const ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>& _internal_updates() const; - ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>* _internal_mutable_updates(); - public: - const ::daw::api::VUMeterUpdate& updates(int index) const; - ::daw::api::VUMeterUpdate* add_updates(); - const ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>& updates() const; - // @@protoc_insertion_point(class_scope:daw.api.VUMeterData) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const VUMeterData& from_msg); - ::google::protobuf::RepeatedPtrField< ::daw::api::VUMeterUpdate > updates_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class PluginInfo final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.PluginInfo) */ { - public: - inline PluginInfo() : PluginInfo(nullptr) {} - ~PluginInfo() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(PluginInfo* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(PluginInfo)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR PluginInfo( - ::google::protobuf::internal::ConstantInitialized); - - inline PluginInfo(const PluginInfo& from) : PluginInfo(nullptr, from) {} - inline PluginInfo(PluginInfo&& from) noexcept - : PluginInfo(nullptr, std::move(from)) {} - inline PluginInfo& operator=(const PluginInfo& from) { - CopyFrom(from); - return *this; - } - inline PluginInfo& operator=(PluginInfo&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PluginInfo& default_instance() { - return *internal_default_instance(); - } - static inline const PluginInfo* internal_default_instance() { - return reinterpret_cast( - &_PluginInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 11; - friend void swap(PluginInfo& a, PluginInfo& b) { a.Swap(&b); } - inline void Swap(PluginInfo* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PluginInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PluginInfo* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PluginInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const PluginInfo& from) { PluginInfo::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(PluginInfo* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.PluginInfo"; } - - protected: - explicit PluginInfo(::google::protobuf::Arena* arena); - PluginInfo(::google::protobuf::Arena* arena, const PluginInfo& from); - PluginInfo(::google::protobuf::Arena* arena, PluginInfo&& from) noexcept - : PluginInfo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kParametersFieldNumber = 5, - kInstanceIdFieldNumber = 1, - kNameFieldNumber = 2, - kIsBypassedFieldNumber = 4, - }; - // repeated .daw.api.PluginParameter parameters = 5; - int parameters_size() const; - private: - int _internal_parameters_size() const; - - public: - void clear_parameters() ; - ::daw::api::PluginParameter* mutable_parameters(int index); - ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>* mutable_parameters(); - - private: - const ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>& _internal_parameters() const; - ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>* _internal_mutable_parameters(); - public: - const ::daw::api::PluginParameter& parameters(int index) const; - ::daw::api::PluginParameter* add_parameters(); - const ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>& parameters() const; - // string instance_id = 1; - void clear_instance_id() ; - const std::string& instance_id() const; - template - void set_instance_id(Arg_&& arg, Args_... args); - std::string* mutable_instance_id(); - PROTOBUF_NODISCARD std::string* release_instance_id(); - void set_allocated_instance_id(std::string* value); - - private: - const std::string& _internal_instance_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_instance_id( - const std::string& value); - std::string* _internal_mutable_instance_id(); - - public: - // string name = 2; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // bool is_bypassed = 4; - void clear_is_bypassed() ; - bool is_bypassed() const; - void set_is_bypassed(bool value); - - private: - bool _internal_is_bypassed() const; - void _internal_set_is_bypassed(bool value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.PluginInfo) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 4, 1, - 42, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const PluginInfo& from_msg); - ::google::protobuf::RepeatedPtrField< ::daw::api::PluginParameter > parameters_; - ::google::protobuf::internal::ArenaStringPtr instance_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - bool is_bypassed_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class TrackInfo final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.TrackInfo) */ { - public: - inline TrackInfo() : TrackInfo(nullptr) {} - ~TrackInfo() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(TrackInfo* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(TrackInfo)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR TrackInfo( - ::google::protobuf::internal::ConstantInitialized); - - inline TrackInfo(const TrackInfo& from) : TrackInfo(nullptr, from) {} - inline TrackInfo(TrackInfo&& from) noexcept - : TrackInfo(nullptr, std::move(from)) {} - inline TrackInfo& operator=(const TrackInfo& from) { - CopyFrom(from); - return *this; - } - inline TrackInfo& operator=(TrackInfo&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TrackInfo& default_instance() { - return *internal_default_instance(); - } - static inline const TrackInfo* internal_default_instance() { - return reinterpret_cast( - &_TrackInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(TrackInfo& a, TrackInfo& b) { a.Swap(&b); } - inline void Swap(TrackInfo* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TrackInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TrackInfo* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TrackInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TrackInfo& from) { TrackInfo::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(TrackInfo* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.TrackInfo"; } - - protected: - explicit TrackInfo(::google::protobuf::Arena* arena); - TrackInfo(::google::protobuf::Arena* arena, const TrackInfo& from); - TrackInfo(::google::protobuf::Arena* arena, TrackInfo&& from) noexcept - : TrackInfo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPluginsFieldNumber = 9, - kTrackIdFieldNumber = 1, - kNameFieldNumber = 2, - kTypeFieldNumber = 3, - kVolumeDbFieldNumber = 5, - kPanFieldNumber = 6, - kIsMutedFieldNumber = 7, - kIsSoloedFieldNumber = 8, - }; - // repeated .daw.api.PluginInfo plugins = 9; - int plugins_size() const; - private: - int _internal_plugins_size() const; - - public: - void clear_plugins() ; - ::daw::api::PluginInfo* mutable_plugins(int index); - ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>* mutable_plugins(); - - private: - const ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>& _internal_plugins() const; - ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>* _internal_mutable_plugins(); - public: - const ::daw::api::PluginInfo& plugins(int index) const; - ::daw::api::PluginInfo* add_plugins(); - const ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>& plugins() const; - // string track_id = 1; - void clear_track_id() ; - const std::string& track_id() const; - template - void set_track_id(Arg_&& arg, Args_... args); - std::string* mutable_track_id(); - PROTOBUF_NODISCARD std::string* release_track_id(); - void set_allocated_track_id(std::string* value); - - private: - const std::string& _internal_track_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_track_id( - const std::string& value); - std::string* _internal_mutable_track_id(); - - public: - // string name = 2; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .daw.api.TrackType type = 3; - void clear_type() ; - ::daw::api::TrackType type() const; - void set_type(::daw::api::TrackType value); - - private: - ::daw::api::TrackType _internal_type() const; - void _internal_set_type(::daw::api::TrackType value); - - public: - // float volume_db = 5; - void clear_volume_db() ; - float volume_db() const; - void set_volume_db(float value); - - private: - float _internal_volume_db() const; - void _internal_set_volume_db(float value); - - public: - // float pan = 6; - void clear_pan() ; - float pan() const; - void set_pan(float value); - - private: - float _internal_pan() const; - void _internal_set_pan(float value); - - public: - // bool is_muted = 7; - void clear_is_muted() ; - bool is_muted() const; - void set_is_muted(bool value); - - private: - bool _internal_is_muted() const; - void _internal_set_is_muted(bool value); - - public: - // bool is_soloed = 8; - void clear_is_soloed() ; - bool is_soloed() const; - void set_is_soloed(bool value); - - private: - bool _internal_is_soloed() const; - void _internal_set_is_soloed(bool value); - - public: - // @@protoc_insertion_point(class_scope:daw.api.TrackInfo) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 8, 1, - 46, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const TrackInfo& from_msg); - ::google::protobuf::RepeatedPtrField< ::daw::api::PluginInfo > plugins_; - ::google::protobuf::internal::ArenaStringPtr track_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - int type_; - float volume_db_; - float pan_; - bool is_muted_; - bool is_soloed_; - ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectState final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.api.ProjectState) */ { - public: - inline ProjectState() : ProjectState(nullptr) {} - ~ProjectState() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ProjectState* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ProjectState)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ProjectState( - ::google::protobuf::internal::ConstantInitialized); - - inline ProjectState(const ProjectState& from) : ProjectState(nullptr, from) {} - inline ProjectState(ProjectState&& from) noexcept - : ProjectState(nullptr, std::move(from)) {} - inline ProjectState& operator=(const ProjectState& from) { - CopyFrom(from); - return *this; - } - inline ProjectState& operator=(ProjectState&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ProjectState& default_instance() { - return *internal_default_instance(); - } - static inline const ProjectState* internal_default_instance() { - return reinterpret_cast( - &_ProjectState_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(ProjectState& a, ProjectState& b) { a.Swap(&b); } - inline void Swap(ProjectState* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ProjectState* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ProjectState* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ProjectState& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ProjectState& from) { ProjectState::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ProjectState* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.api.ProjectState"; } - - protected: - explicit ProjectState(::google::protobuf::Arena* arena); - ProjectState(::google::protobuf::Arena* arena, const ProjectState& from); - ProjectState(::google::protobuf::Arena* arena, ProjectState&& from) noexcept - : ProjectState(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTracksFieldNumber = 4, - kProjectIdFieldNumber = 1, - kProjectNameFieldNumber = 2, - kPlaybackStateFieldNumber = 3, - }; - // repeated .daw.api.TrackInfo tracks = 4; - int tracks_size() const; - private: - int _internal_tracks_size() const; - - public: - void clear_tracks() ; - ::daw::api::TrackInfo* mutable_tracks(int index); - ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>* mutable_tracks(); - - private: - const ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>& _internal_tracks() const; - ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>* _internal_mutable_tracks(); - public: - const ::daw::api::TrackInfo& tracks(int index) const; - ::daw::api::TrackInfo* add_tracks(); - const ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>& tracks() const; - // string project_id = 1; - void clear_project_id() ; - const std::string& project_id() const; - template - void set_project_id(Arg_&& arg, Args_... args); - std::string* mutable_project_id(); - PROTOBUF_NODISCARD std::string* release_project_id(); - void set_allocated_project_id(std::string* value); - - private: - const std::string& _internal_project_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_project_id( - const std::string& value); - std::string* _internal_mutable_project_id(); - - public: - // string project_name = 2; - void clear_project_name() ; - const std::string& project_name() const; - template - void set_project_name(Arg_&& arg, Args_... args); - std::string* mutable_project_name(); - PROTOBUF_NODISCARD std::string* release_project_name(); - void set_allocated_project_name(std::string* value); - - private: - const std::string& _internal_project_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_project_name( - const std::string& value); - std::string* _internal_mutable_project_name(); - - public: - // .daw.api.PlaybackState playback_state = 3; - bool has_playback_state() const; - void clear_playback_state() ; - const ::daw::api::PlaybackState& playback_state() const; - PROTOBUF_NODISCARD ::daw::api::PlaybackState* release_playback_state(); - ::daw::api::PlaybackState* mutable_playback_state(); - void set_allocated_playback_state(::daw::api::PlaybackState* value); - void unsafe_arena_set_allocated_playback_state(::daw::api::PlaybackState* value); - ::daw::api::PlaybackState* unsafe_arena_release_playback_state(); - - private: - const ::daw::api::PlaybackState& _internal_playback_state() const; - ::daw::api::PlaybackState* _internal_mutable_playback_state(); - - public: - // @@protoc_insertion_point(class_scope:daw.api.ProjectState) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 51, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ProjectState& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::daw::api::TrackInfo > tracks_; - ::google::protobuf::internal::ArenaStringPtr project_id_; - ::google::protobuf::internal::ArenaStringPtr project_name_; - ::daw::api::PlaybackState* playback_state_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_ctrl_2ffrontend_5fto_5fengine_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// StatusResponse - -// bool success = 1; -inline void StatusResponse::clear_success() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.success_ = false; -} -inline bool StatusResponse::success() const { - // @@protoc_insertion_point(field_get:daw.api.StatusResponse.success) - return _internal_success(); -} -inline void StatusResponse::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:daw.api.StatusResponse.success) -} -inline bool StatusResponse::_internal_success() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.success_; -} -inline void StatusResponse::_internal_set_success(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.success_ = value; -} - -// string error_message = 2; -inline void StatusResponse::clear_error_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_message_.ClearToEmpty(); -} -inline const std::string& StatusResponse::error_message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.StatusResponse.error_message) - return _internal_error_message(); -} -template -inline PROTOBUF_ALWAYS_INLINE void StatusResponse::set_error_message(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_message_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.StatusResponse.error_message) -} -inline std::string* StatusResponse::mutable_error_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error_message(); - // @@protoc_insertion_point(field_mutable:daw.api.StatusResponse.error_message) - return _s; -} -inline const std::string& StatusResponse::_internal_error_message() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_message_.Get(); -} -inline void StatusResponse::_internal_set_error_message(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_message_.Set(value, GetArena()); -} -inline std::string* StatusResponse::_internal_mutable_error_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_message_.Mutable( GetArena()); -} -inline std::string* StatusResponse::release_error_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.StatusResponse.error_message) - return _impl_.error_message_.Release(); -} -inline void StatusResponse::set_allocated_error_message(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_message_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_message_.IsDefault()) { - _impl_.error_message_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.StatusResponse.error_message) -} - -// ------------------------------------------------------------------- - -// ProjectState - -// string project_id = 1; -inline void ProjectState::clear_project_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_id_.ClearToEmpty(); -} -inline const std::string& ProjectState::project_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.ProjectState.project_id) - return _internal_project_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ProjectState::set_project_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.ProjectState.project_id) -} -inline std::string* ProjectState::mutable_project_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_project_id(); - // @@protoc_insertion_point(field_mutable:daw.api.ProjectState.project_id) - return _s; -} -inline const std::string& ProjectState::_internal_project_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.project_id_.Get(); -} -inline void ProjectState::_internal_set_project_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_id_.Set(value, GetArena()); -} -inline std::string* ProjectState::_internal_mutable_project_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.project_id_.Mutable( GetArena()); -} -inline std::string* ProjectState::release_project_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.ProjectState.project_id) - return _impl_.project_id_.Release(); -} -inline void ProjectState::set_allocated_project_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.project_id_.IsDefault()) { - _impl_.project_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.ProjectState.project_id) -} - -// string project_name = 2; -inline void ProjectState::clear_project_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_name_.ClearToEmpty(); -} -inline const std::string& ProjectState::project_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.ProjectState.project_name) - return _internal_project_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ProjectState::set_project_name(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.ProjectState.project_name) -} -inline std::string* ProjectState::mutable_project_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_project_name(); - // @@protoc_insertion_point(field_mutable:daw.api.ProjectState.project_name) - return _s; -} -inline const std::string& ProjectState::_internal_project_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.project_name_.Get(); -} -inline void ProjectState::_internal_set_project_name(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_name_.Set(value, GetArena()); -} -inline std::string* ProjectState::_internal_mutable_project_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.project_name_.Mutable( GetArena()); -} -inline std::string* ProjectState::release_project_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.ProjectState.project_name) - return _impl_.project_name_.Release(); -} -inline void ProjectState::set_allocated_project_name(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.project_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.project_name_.IsDefault()) { - _impl_.project_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.ProjectState.project_name) -} - -// .daw.api.PlaybackState playback_state = 3; -inline bool ProjectState::has_playback_state() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.playback_state_ != nullptr); - return value; -} -inline void ProjectState::clear_playback_state() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.playback_state_ != nullptr) _impl_.playback_state_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::daw::api::PlaybackState& ProjectState::_internal_playback_state() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::daw::api::PlaybackState* p = _impl_.playback_state_; - return p != nullptr ? *p : reinterpret_cast(::daw::api::_PlaybackState_default_instance_); -} -inline const ::daw::api::PlaybackState& ProjectState::playback_state() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.ProjectState.playback_state) - return _internal_playback_state(); -} -inline void ProjectState::unsafe_arena_set_allocated_playback_state(::daw::api::PlaybackState* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.playback_state_); - } - _impl_.playback_state_ = reinterpret_cast<::daw::api::PlaybackState*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.api.ProjectState.playback_state) -} -inline ::daw::api::PlaybackState* ProjectState::release_playback_state() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::api::PlaybackState* released = _impl_.playback_state_; - _impl_.playback_state_ = 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 ::daw::api::PlaybackState* ProjectState::unsafe_arena_release_playback_state() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.ProjectState.playback_state) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::daw::api::PlaybackState* temp = _impl_.playback_state_; - _impl_.playback_state_ = nullptr; - return temp; -} -inline ::daw::api::PlaybackState* ProjectState::_internal_mutable_playback_state() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.playback_state_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::daw::api::PlaybackState>(GetArena()); - _impl_.playback_state_ = reinterpret_cast<::daw::api::PlaybackState*>(p); - } - return _impl_.playback_state_; -} -inline ::daw::api::PlaybackState* ProjectState::mutable_playback_state() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::daw::api::PlaybackState* _msg = _internal_mutable_playback_state(); - // @@protoc_insertion_point(field_mutable:daw.api.ProjectState.playback_state) - return _msg; -} -inline void ProjectState::set_allocated_playback_state(::daw::api::PlaybackState* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete (_impl_.playback_state_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.playback_state_ = reinterpret_cast<::daw::api::PlaybackState*>(value); - // @@protoc_insertion_point(field_set_allocated:daw.api.ProjectState.playback_state) -} - -// repeated .daw.api.TrackInfo tracks = 4; -inline int ProjectState::_internal_tracks_size() const { - return _internal_tracks().size(); -} -inline int ProjectState::tracks_size() const { - return _internal_tracks_size(); -} -inline void ProjectState::clear_tracks() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.tracks_.Clear(); -} -inline ::daw::api::TrackInfo* ProjectState::mutable_tracks(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:daw.api.ProjectState.tracks) - return _internal_mutable_tracks()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>* ProjectState::mutable_tracks() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:daw.api.ProjectState.tracks) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_tracks(); -} -inline const ::daw::api::TrackInfo& ProjectState::tracks(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.ProjectState.tracks) - return _internal_tracks().Get(index); -} -inline ::daw::api::TrackInfo* ProjectState::add_tracks() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::daw::api::TrackInfo* _add = _internal_mutable_tracks()->Add(); - // @@protoc_insertion_point(field_add:daw.api.ProjectState.tracks) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>& ProjectState::tracks() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:daw.api.ProjectState.tracks) - return _internal_tracks(); -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>& -ProjectState::_internal_tracks() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.tracks_; -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::TrackInfo>* -ProjectState::_internal_mutable_tracks() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.tracks_; -} - -// ------------------------------------------------------------------- - -// LoadProjectRequest - -// string file_path = 1; -inline void LoadProjectRequest::clear_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.ClearToEmpty(); -} -inline const std::string& LoadProjectRequest::file_path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.LoadProjectRequest.file_path) - return _internal_file_path(); -} -template -inline PROTOBUF_ALWAYS_INLINE void LoadProjectRequest::set_file_path(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.LoadProjectRequest.file_path) -} -inline std::string* LoadProjectRequest::mutable_file_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_file_path(); - // @@protoc_insertion_point(field_mutable:daw.api.LoadProjectRequest.file_path) - return _s; -} -inline const std::string& LoadProjectRequest::_internal_file_path() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.file_path_.Get(); -} -inline void LoadProjectRequest::_internal_set_file_path(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.Set(value, GetArena()); -} -inline std::string* LoadProjectRequest::_internal_mutable_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.file_path_.Mutable( GetArena()); -} -inline std::string* LoadProjectRequest::release_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.LoadProjectRequest.file_path) - return _impl_.file_path_.Release(); -} -inline void LoadProjectRequest::set_allocated_file_path(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.file_path_.IsDefault()) { - _impl_.file_path_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.LoadProjectRequest.file_path) -} - -// ------------------------------------------------------------------- - -// SaveProjectRequest - -// string file_path = 1; -inline void SaveProjectRequest::clear_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.ClearToEmpty(); -} -inline const std::string& SaveProjectRequest::file_path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.SaveProjectRequest.file_path) - return _internal_file_path(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SaveProjectRequest::set_file_path(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.SaveProjectRequest.file_path) -} -inline std::string* SaveProjectRequest::mutable_file_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_file_path(); - // @@protoc_insertion_point(field_mutable:daw.api.SaveProjectRequest.file_path) - return _s; -} -inline const std::string& SaveProjectRequest::_internal_file_path() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.file_path_.Get(); -} -inline void SaveProjectRequest::_internal_set_file_path(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.Set(value, GetArena()); -} -inline std::string* SaveProjectRequest::_internal_mutable_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.file_path_.Mutable( GetArena()); -} -inline std::string* SaveProjectRequest::release_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.SaveProjectRequest.file_path) - return _impl_.file_path_.Release(); -} -inline void SaveProjectRequest::set_allocated_file_path(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.file_path_.IsDefault()) { - _impl_.file_path_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.SaveProjectRequest.file_path) -} - -// ------------------------------------------------------------------- - -// PlaybackState - -// int32 bar = 1; -inline void PlaybackState::clear_bar() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bar_ = 0; -} -inline ::int32_t PlaybackState::bar() const { - // @@protoc_insertion_point(field_get:daw.api.PlaybackState.bar) - return _internal_bar(); -} -inline void PlaybackState::set_bar(::int32_t value) { - _internal_set_bar(value); - // @@protoc_insertion_point(field_set:daw.api.PlaybackState.bar) -} -inline ::int32_t PlaybackState::_internal_bar() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bar_; -} -inline void PlaybackState::_internal_set_bar(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bar_ = value; -} - -// int32 beat = 2; -inline void PlaybackState::clear_beat() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.beat_ = 0; -} -inline ::int32_t PlaybackState::beat() const { - // @@protoc_insertion_point(field_get:daw.api.PlaybackState.beat) - return _internal_beat(); -} -inline void PlaybackState::set_beat(::int32_t value) { - _internal_set_beat(value); - // @@protoc_insertion_point(field_set:daw.api.PlaybackState.beat) -} -inline ::int32_t PlaybackState::_internal_beat() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.beat_; -} -inline void PlaybackState::_internal_set_beat(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.beat_ = value; -} - -// int32 tick = 3; -inline void PlaybackState::clear_tick() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.tick_ = 0; -} -inline ::int32_t PlaybackState::tick() const { - // @@protoc_insertion_point(field_get:daw.api.PlaybackState.tick) - return _internal_tick(); -} -inline void PlaybackState::set_tick(::int32_t value) { - _internal_set_tick(value); - // @@protoc_insertion_point(field_set:daw.api.PlaybackState.tick) -} -inline ::int32_t PlaybackState::_internal_tick() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.tick_; -} -inline void PlaybackState::_internal_set_tick(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.tick_ = value; -} - -// double bpm = 4; -inline void PlaybackState::clear_bpm() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bpm_ = 0; -} -inline double PlaybackState::bpm() const { - // @@protoc_insertion_point(field_get:daw.api.PlaybackState.bpm) - return _internal_bpm(); -} -inline void PlaybackState::set_bpm(double value) { - _internal_set_bpm(value); - // @@protoc_insertion_point(field_set:daw.api.PlaybackState.bpm) -} -inline double PlaybackState::_internal_bpm() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bpm_; -} -inline void PlaybackState::_internal_set_bpm(double value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bpm_ = value; -} - -// bool is_playing = 6; -inline void PlaybackState::clear_is_playing() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_playing_ = false; -} -inline bool PlaybackState::is_playing() const { - // @@protoc_insertion_point(field_get:daw.api.PlaybackState.is_playing) - return _internal_is_playing(); -} -inline void PlaybackState::set_is_playing(bool value) { - _internal_set_is_playing(value); - // @@protoc_insertion_point(field_set:daw.api.PlaybackState.is_playing) -} -inline bool PlaybackState::_internal_is_playing() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_playing_; -} -inline void PlaybackState::_internal_set_is_playing(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_playing_ = value; -} - -// ------------------------------------------------------------------- - -// SetTempoRequest - -// double bpm = 1; -inline void SetTempoRequest::clear_bpm() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bpm_ = 0; -} -inline double SetTempoRequest::bpm() const { - // @@protoc_insertion_point(field_get:daw.api.SetTempoRequest.bpm) - return _internal_bpm(); -} -inline void SetTempoRequest::set_bpm(double value) { - _internal_set_bpm(value); - // @@protoc_insertion_point(field_set:daw.api.SetTempoRequest.bpm) -} -inline double SetTempoRequest::_internal_bpm() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bpm_; -} -inline void SetTempoRequest::_internal_set_bpm(double value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bpm_ = value; -} - -// ------------------------------------------------------------------- - -// TrackInfo - -// string track_id = 1; -inline void TrackInfo::clear_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.ClearToEmpty(); -} -inline const std::string& TrackInfo::track_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.track_id) - return _internal_track_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TrackInfo::set_track_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.TrackInfo.track_id) -} -inline std::string* TrackInfo::mutable_track_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_track_id(); - // @@protoc_insertion_point(field_mutable:daw.api.TrackInfo.track_id) - return _s; -} -inline const std::string& TrackInfo::_internal_track_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.track_id_.Get(); -} -inline void TrackInfo::_internal_set_track_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(value, GetArena()); -} -inline std::string* TrackInfo::_internal_mutable_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.track_id_.Mutable( GetArena()); -} -inline std::string* TrackInfo::release_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.TrackInfo.track_id) - return _impl_.track_id_.Release(); -} -inline void TrackInfo::set_allocated_track_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.track_id_.IsDefault()) { - _impl_.track_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.TrackInfo.track_id) -} - -// string name = 2; -inline void TrackInfo::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& TrackInfo::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TrackInfo::set_name(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.TrackInfo.name) -} -inline std::string* TrackInfo::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:daw.api.TrackInfo.name) - return _s; -} -inline const std::string& TrackInfo::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void TrackInfo::_internal_set_name(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* TrackInfo::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* TrackInfo::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.TrackInfo.name) - return _impl_.name_.Release(); -} -inline void TrackInfo::set_allocated_name(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.TrackInfo.name) -} - -// .daw.api.TrackType type = 3; -inline void TrackInfo::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_ = 0; -} -inline ::daw::api::TrackType TrackInfo::type() const { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.type) - return _internal_type(); -} -inline void TrackInfo::set_type(::daw::api::TrackType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:daw.api.TrackInfo.type) -} -inline ::daw::api::TrackType TrackInfo::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::daw::api::TrackType>(_impl_.type_); -} -inline void TrackInfo::_internal_set_type(::daw::api::TrackType value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_ = value; -} - -// float volume_db = 5; -inline void TrackInfo::clear_volume_db() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.volume_db_ = 0; -} -inline float TrackInfo::volume_db() const { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.volume_db) - return _internal_volume_db(); -} -inline void TrackInfo::set_volume_db(float value) { - _internal_set_volume_db(value); - // @@protoc_insertion_point(field_set:daw.api.TrackInfo.volume_db) -} -inline float TrackInfo::_internal_volume_db() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.volume_db_; -} -inline void TrackInfo::_internal_set_volume_db(float value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.volume_db_ = value; -} - -// float pan = 6; -inline void TrackInfo::clear_pan() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pan_ = 0; -} -inline float TrackInfo::pan() const { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.pan) - return _internal_pan(); -} -inline void TrackInfo::set_pan(float value) { - _internal_set_pan(value); - // @@protoc_insertion_point(field_set:daw.api.TrackInfo.pan) -} -inline float TrackInfo::_internal_pan() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.pan_; -} -inline void TrackInfo::_internal_set_pan(float value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pan_ = value; -} - -// bool is_muted = 7; -inline void TrackInfo::clear_is_muted() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_muted_ = false; -} -inline bool TrackInfo::is_muted() const { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.is_muted) - return _internal_is_muted(); -} -inline void TrackInfo::set_is_muted(bool value) { - _internal_set_is_muted(value); - // @@protoc_insertion_point(field_set:daw.api.TrackInfo.is_muted) -} -inline bool TrackInfo::_internal_is_muted() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_muted_; -} -inline void TrackInfo::_internal_set_is_muted(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_muted_ = value; -} - -// bool is_soloed = 8; -inline void TrackInfo::clear_is_soloed() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_soloed_ = false; -} -inline bool TrackInfo::is_soloed() const { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.is_soloed) - return _internal_is_soloed(); -} -inline void TrackInfo::set_is_soloed(bool value) { - _internal_set_is_soloed(value); - // @@protoc_insertion_point(field_set:daw.api.TrackInfo.is_soloed) -} -inline bool TrackInfo::_internal_is_soloed() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_soloed_; -} -inline void TrackInfo::_internal_set_is_soloed(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_soloed_ = value; -} - -// repeated .daw.api.PluginInfo plugins = 9; -inline int TrackInfo::_internal_plugins_size() const { - return _internal_plugins().size(); -} -inline int TrackInfo::plugins_size() const { - return _internal_plugins_size(); -} -inline void TrackInfo::clear_plugins() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.plugins_.Clear(); -} -inline ::daw::api::PluginInfo* TrackInfo::mutable_plugins(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:daw.api.TrackInfo.plugins) - return _internal_mutable_plugins()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>* TrackInfo::mutable_plugins() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:daw.api.TrackInfo.plugins) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_plugins(); -} -inline const ::daw::api::PluginInfo& TrackInfo::plugins(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.TrackInfo.plugins) - return _internal_plugins().Get(index); -} -inline ::daw::api::PluginInfo* TrackInfo::add_plugins() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::daw::api::PluginInfo* _add = _internal_mutable_plugins()->Add(); - // @@protoc_insertion_point(field_add:daw.api.TrackInfo.plugins) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>& TrackInfo::plugins() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:daw.api.TrackInfo.plugins) - return _internal_plugins(); -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>& -TrackInfo::_internal_plugins() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.plugins_; -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::PluginInfo>* -TrackInfo::_internal_mutable_plugins() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.plugins_; -} - -// ------------------------------------------------------------------- - -// AddTrackRequest - -// string name = 1; -inline void AddTrackRequest::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& AddTrackRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.AddTrackRequest.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AddTrackRequest::set_name(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.AddTrackRequest.name) -} -inline std::string* AddTrackRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:daw.api.AddTrackRequest.name) - return _s; -} -inline const std::string& AddTrackRequest::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void AddTrackRequest::_internal_set_name(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* AddTrackRequest::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* AddTrackRequest::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.AddTrackRequest.name) - return _impl_.name_.Release(); -} -inline void AddTrackRequest::set_allocated_name(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.AddTrackRequest.name) -} - -// .daw.api.TrackType type = 2; -inline void AddTrackRequest::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_ = 0; -} -inline ::daw::api::TrackType AddTrackRequest::type() const { - // @@protoc_insertion_point(field_get:daw.api.AddTrackRequest.type) - return _internal_type(); -} -inline void AddTrackRequest::set_type(::daw::api::TrackType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:daw.api.AddTrackRequest.type) -} -inline ::daw::api::TrackType AddTrackRequest::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::daw::api::TrackType>(_impl_.type_); -} -inline void AddTrackRequest::_internal_set_type(::daw::api::TrackType value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_ = value; -} - -// ------------------------------------------------------------------- - -// TrackIdRequest - -// string track_id = 1; -inline void TrackIdRequest::clear_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.ClearToEmpty(); -} -inline const std::string& TrackIdRequest::track_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.TrackIdRequest.track_id) - return _internal_track_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TrackIdRequest::set_track_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.TrackIdRequest.track_id) -} -inline std::string* TrackIdRequest::mutable_track_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_track_id(); - // @@protoc_insertion_point(field_mutable:daw.api.TrackIdRequest.track_id) - return _s; -} -inline const std::string& TrackIdRequest::_internal_track_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.track_id_.Get(); -} -inline void TrackIdRequest::_internal_set_track_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(value, GetArena()); -} -inline std::string* TrackIdRequest::_internal_mutable_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.track_id_.Mutable( GetArena()); -} -inline std::string* TrackIdRequest::release_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.TrackIdRequest.track_id) - return _impl_.track_id_.Release(); -} -inline void TrackIdRequest::set_allocated_track_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.track_id_.IsDefault()) { - _impl_.track_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.TrackIdRequest.track_id) -} - -// ------------------------------------------------------------------- - -// SetTrackVolumeRequest - -// string track_id = 1; -inline void SetTrackVolumeRequest::clear_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.ClearToEmpty(); -} -inline const std::string& SetTrackVolumeRequest::track_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.SetTrackVolumeRequest.track_id) - return _internal_track_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SetTrackVolumeRequest::set_track_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.SetTrackVolumeRequest.track_id) -} -inline std::string* SetTrackVolumeRequest::mutable_track_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_track_id(); - // @@protoc_insertion_point(field_mutable:daw.api.SetTrackVolumeRequest.track_id) - return _s; -} -inline const std::string& SetTrackVolumeRequest::_internal_track_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.track_id_.Get(); -} -inline void SetTrackVolumeRequest::_internal_set_track_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(value, GetArena()); -} -inline std::string* SetTrackVolumeRequest::_internal_mutable_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.track_id_.Mutable( GetArena()); -} -inline std::string* SetTrackVolumeRequest::release_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.SetTrackVolumeRequest.track_id) - return _impl_.track_id_.Release(); -} -inline void SetTrackVolumeRequest::set_allocated_track_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.track_id_.IsDefault()) { - _impl_.track_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.SetTrackVolumeRequest.track_id) -} - -// float volume_db = 2; -inline void SetTrackVolumeRequest::clear_volume_db() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.volume_db_ = 0; -} -inline float SetTrackVolumeRequest::volume_db() const { - // @@protoc_insertion_point(field_get:daw.api.SetTrackVolumeRequest.volume_db) - return _internal_volume_db(); -} -inline void SetTrackVolumeRequest::set_volume_db(float value) { - _internal_set_volume_db(value); - // @@protoc_insertion_point(field_set:daw.api.SetTrackVolumeRequest.volume_db) -} -inline float SetTrackVolumeRequest::_internal_volume_db() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.volume_db_; -} -inline void SetTrackVolumeRequest::_internal_set_volume_db(float value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.volume_db_ = value; -} - -// ------------------------------------------------------------------- - -// SetTrackPanRequest - -// string track_id = 1; -inline void SetTrackPanRequest::clear_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.ClearToEmpty(); -} -inline const std::string& SetTrackPanRequest::track_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.SetTrackPanRequest.track_id) - return _internal_track_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SetTrackPanRequest::set_track_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.SetTrackPanRequest.track_id) -} -inline std::string* SetTrackPanRequest::mutable_track_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_track_id(); - // @@protoc_insertion_point(field_mutable:daw.api.SetTrackPanRequest.track_id) - return _s; -} -inline const std::string& SetTrackPanRequest::_internal_track_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.track_id_.Get(); -} -inline void SetTrackPanRequest::_internal_set_track_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(value, GetArena()); -} -inline std::string* SetTrackPanRequest::_internal_mutable_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.track_id_.Mutable( GetArena()); -} -inline std::string* SetTrackPanRequest::release_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.SetTrackPanRequest.track_id) - return _impl_.track_id_.Release(); -} -inline void SetTrackPanRequest::set_allocated_track_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.track_id_.IsDefault()) { - _impl_.track_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.SetTrackPanRequest.track_id) -} - -// float pan = 2; -inline void SetTrackPanRequest::clear_pan() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pan_ = 0; -} -inline float SetTrackPanRequest::pan() const { - // @@protoc_insertion_point(field_get:daw.api.SetTrackPanRequest.pan) - return _internal_pan(); -} -inline void SetTrackPanRequest::set_pan(float value) { - _internal_set_pan(value); - // @@protoc_insertion_point(field_set:daw.api.SetTrackPanRequest.pan) -} -inline float SetTrackPanRequest::_internal_pan() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.pan_; -} -inline void SetTrackPanRequest::_internal_set_pan(float value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pan_ = value; -} - -// ------------------------------------------------------------------- - -// PluginInfo - -// string instance_id = 1; -inline void PluginInfo::clear_instance_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.ClearToEmpty(); -} -inline const std::string& PluginInfo::instance_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.PluginInfo.instance_id) - return _internal_instance_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void PluginInfo::set_instance_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.PluginInfo.instance_id) -} -inline std::string* PluginInfo::mutable_instance_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_instance_id(); - // @@protoc_insertion_point(field_mutable:daw.api.PluginInfo.instance_id) - return _s; -} -inline const std::string& PluginInfo::_internal_instance_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.instance_id_.Get(); -} -inline void PluginInfo::_internal_set_instance_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.Set(value, GetArena()); -} -inline std::string* PluginInfo::_internal_mutable_instance_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.instance_id_.Mutable( GetArena()); -} -inline std::string* PluginInfo::release_instance_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.PluginInfo.instance_id) - return _impl_.instance_id_.Release(); -} -inline void PluginInfo::set_allocated_instance_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.instance_id_.IsDefault()) { - _impl_.instance_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.PluginInfo.instance_id) -} - -// string name = 2; -inline void PluginInfo::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& PluginInfo::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.PluginInfo.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void PluginInfo::set_name(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.PluginInfo.name) -} -inline std::string* PluginInfo::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:daw.api.PluginInfo.name) - return _s; -} -inline const std::string& PluginInfo::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void PluginInfo::_internal_set_name(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* PluginInfo::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* PluginInfo::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.PluginInfo.name) - return _impl_.name_.Release(); -} -inline void PluginInfo::set_allocated_name(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.PluginInfo.name) -} - -// bool is_bypassed = 4; -inline void PluginInfo::clear_is_bypassed() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bypassed_ = false; -} -inline bool PluginInfo::is_bypassed() const { - // @@protoc_insertion_point(field_get:daw.api.PluginInfo.is_bypassed) - return _internal_is_bypassed(); -} -inline void PluginInfo::set_is_bypassed(bool value) { - _internal_set_is_bypassed(value); - // @@protoc_insertion_point(field_set:daw.api.PluginInfo.is_bypassed) -} -inline bool PluginInfo::_internal_is_bypassed() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_bypassed_; -} -inline void PluginInfo::_internal_set_is_bypassed(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bypassed_ = value; -} - -// repeated .daw.api.PluginParameter parameters = 5; -inline int PluginInfo::_internal_parameters_size() const { - return _internal_parameters().size(); -} -inline int PluginInfo::parameters_size() const { - return _internal_parameters_size(); -} -inline void PluginInfo::clear_parameters() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.parameters_.Clear(); -} -inline ::daw::api::PluginParameter* PluginInfo::mutable_parameters(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:daw.api.PluginInfo.parameters) - return _internal_mutable_parameters()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>* PluginInfo::mutable_parameters() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:daw.api.PluginInfo.parameters) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_parameters(); -} -inline const ::daw::api::PluginParameter& PluginInfo::parameters(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.PluginInfo.parameters) - return _internal_parameters().Get(index); -} -inline ::daw::api::PluginParameter* PluginInfo::add_parameters() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::daw::api::PluginParameter* _add = _internal_mutable_parameters()->Add(); - // @@protoc_insertion_point(field_add:daw.api.PluginInfo.parameters) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>& PluginInfo::parameters() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:daw.api.PluginInfo.parameters) - return _internal_parameters(); -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>& -PluginInfo::_internal_parameters() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.parameters_; -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::PluginParameter>* -PluginInfo::_internal_mutable_parameters() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.parameters_; -} - -// ------------------------------------------------------------------- - -// PluginParameter - -// uint32 parameter_id = 1; -inline void PluginParameter::clear_parameter_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.parameter_id_ = 0u; -} -inline ::uint32_t PluginParameter::parameter_id() const { - // @@protoc_insertion_point(field_get:daw.api.PluginParameter.parameter_id) - return _internal_parameter_id(); -} -inline void PluginParameter::set_parameter_id(::uint32_t value) { - _internal_set_parameter_id(value); - // @@protoc_insertion_point(field_set:daw.api.PluginParameter.parameter_id) -} -inline ::uint32_t PluginParameter::_internal_parameter_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.parameter_id_; -} -inline void PluginParameter::_internal_set_parameter_id(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.parameter_id_ = value; -} - -// string name = 2; -inline void PluginParameter::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& PluginParameter::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.PluginParameter.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void PluginParameter::set_name(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.PluginParameter.name) -} -inline std::string* PluginParameter::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:daw.api.PluginParameter.name) - return _s; -} -inline const std::string& PluginParameter::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void PluginParameter::_internal_set_name(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* PluginParameter::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* PluginParameter::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.PluginParameter.name) - return _impl_.name_.Release(); -} -inline void PluginParameter::set_allocated_name(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.PluginParameter.name) -} - -// double value = 3; -inline void PluginParameter::clear_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = 0; -} -inline double PluginParameter::value() const { - // @@protoc_insertion_point(field_get:daw.api.PluginParameter.value) - return _internal_value(); -} -inline void PluginParameter::set_value(double value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:daw.api.PluginParameter.value) -} -inline double PluginParameter::_internal_value() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.value_; -} -inline void PluginParameter::_internal_set_value(double value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = value; -} - -// ------------------------------------------------------------------- - -// SetPluginParameterRequest - -// string instance_id = 1; -inline void SetPluginParameterRequest::clear_instance_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.ClearToEmpty(); -} -inline const std::string& SetPluginParameterRequest::instance_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.SetPluginParameterRequest.instance_id) - return _internal_instance_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SetPluginParameterRequest::set_instance_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.SetPluginParameterRequest.instance_id) -} -inline std::string* SetPluginParameterRequest::mutable_instance_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_instance_id(); - // @@protoc_insertion_point(field_mutable:daw.api.SetPluginParameterRequest.instance_id) - return _s; -} -inline const std::string& SetPluginParameterRequest::_internal_instance_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.instance_id_.Get(); -} -inline void SetPluginParameterRequest::_internal_set_instance_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.Set(value, GetArena()); -} -inline std::string* SetPluginParameterRequest::_internal_mutable_instance_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.instance_id_.Mutable( GetArena()); -} -inline std::string* SetPluginParameterRequest::release_instance_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.SetPluginParameterRequest.instance_id) - return _impl_.instance_id_.Release(); -} -inline void SetPluginParameterRequest::set_allocated_instance_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.instance_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.instance_id_.IsDefault()) { - _impl_.instance_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.SetPluginParameterRequest.instance_id) -} - -// uint32 parameter_id = 2; -inline void SetPluginParameterRequest::clear_parameter_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.parameter_id_ = 0u; -} -inline ::uint32_t SetPluginParameterRequest::parameter_id() const { - // @@protoc_insertion_point(field_get:daw.api.SetPluginParameterRequest.parameter_id) - return _internal_parameter_id(); -} -inline void SetPluginParameterRequest::set_parameter_id(::uint32_t value) { - _internal_set_parameter_id(value); - // @@protoc_insertion_point(field_set:daw.api.SetPluginParameterRequest.parameter_id) -} -inline ::uint32_t SetPluginParameterRequest::_internal_parameter_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.parameter_id_; -} -inline void SetPluginParameterRequest::_internal_set_parameter_id(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.parameter_id_ = value; -} - -// double value = 3; -inline void SetPluginParameterRequest::clear_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = 0; -} -inline double SetPluginParameterRequest::value() const { - // @@protoc_insertion_point(field_get:daw.api.SetPluginParameterRequest.value) - return _internal_value(); -} -inline void SetPluginParameterRequest::set_value(double value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:daw.api.SetPluginParameterRequest.value) -} -inline double SetPluginParameterRequest::_internal_value() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.value_; -} -inline void SetPluginParameterRequest::_internal_set_value(double value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.value_ = value; -} - -// ------------------------------------------------------------------- - -// LoadPluginRequest - -// string file_path = 1; -inline void LoadPluginRequest::clear_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.ClearToEmpty(); -} -inline const std::string& LoadPluginRequest::file_path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.LoadPluginRequest.file_path) - return _internal_file_path(); -} -template -inline PROTOBUF_ALWAYS_INLINE void LoadPluginRequest::set_file_path(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.LoadPluginRequest.file_path) -} -inline std::string* LoadPluginRequest::mutable_file_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_file_path(); - // @@protoc_insertion_point(field_mutable:daw.api.LoadPluginRequest.file_path) - return _s; -} -inline const std::string& LoadPluginRequest::_internal_file_path() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.file_path_.Get(); -} -inline void LoadPluginRequest::_internal_set_file_path(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.Set(value, GetArena()); -} -inline std::string* LoadPluginRequest::_internal_mutable_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.file_path_.Mutable( GetArena()); -} -inline std::string* LoadPluginRequest::release_file_path() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.LoadPluginRequest.file_path) - return _impl_.file_path_.Release(); -} -inline void LoadPluginRequest::set_allocated_file_path(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.file_path_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.file_path_.IsDefault()) { - _impl_.file_path_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.LoadPluginRequest.file_path) -} - -// ------------------------------------------------------------------- - -// VUMeterUpdate - -// string track_id = 1; -inline void VUMeterUpdate::clear_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.ClearToEmpty(); -} -inline const std::string& VUMeterUpdate::track_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.VUMeterUpdate.track_id) - return _internal_track_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void VUMeterUpdate::set_track_id(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:daw.api.VUMeterUpdate.track_id) -} -inline std::string* VUMeterUpdate::mutable_track_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_track_id(); - // @@protoc_insertion_point(field_mutable:daw.api.VUMeterUpdate.track_id) - return _s; -} -inline const std::string& VUMeterUpdate::_internal_track_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.track_id_.Get(); -} -inline void VUMeterUpdate::_internal_set_track_id(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.Set(value, GetArena()); -} -inline std::string* VUMeterUpdate::_internal_mutable_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.track_id_.Mutable( GetArena()); -} -inline std::string* VUMeterUpdate::release_track_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:daw.api.VUMeterUpdate.track_id) - return _impl_.track_id_.Release(); -} -inline void VUMeterUpdate::set_allocated_track_id(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.track_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.track_id_.IsDefault()) { - _impl_.track_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:daw.api.VUMeterUpdate.track_id) -} - -// float peak_dbfs = 2; -inline void VUMeterUpdate::clear_peak_dbfs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.peak_dbfs_ = 0; -} -inline float VUMeterUpdate::peak_dbfs() const { - // @@protoc_insertion_point(field_get:daw.api.VUMeterUpdate.peak_dbfs) - return _internal_peak_dbfs(); -} -inline void VUMeterUpdate::set_peak_dbfs(float value) { - _internal_set_peak_dbfs(value); - // @@protoc_insertion_point(field_set:daw.api.VUMeterUpdate.peak_dbfs) -} -inline float VUMeterUpdate::_internal_peak_dbfs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.peak_dbfs_; -} -inline void VUMeterUpdate::_internal_set_peak_dbfs(float value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.peak_dbfs_ = value; -} - -// float rms_dbfs = 3; -inline void VUMeterUpdate::clear_rms_dbfs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.rms_dbfs_ = 0; -} -inline float VUMeterUpdate::rms_dbfs() const { - // @@protoc_insertion_point(field_get:daw.api.VUMeterUpdate.rms_dbfs) - return _internal_rms_dbfs(); -} -inline void VUMeterUpdate::set_rms_dbfs(float value) { - _internal_set_rms_dbfs(value); - // @@protoc_insertion_point(field_set:daw.api.VUMeterUpdate.rms_dbfs) -} -inline float VUMeterUpdate::_internal_rms_dbfs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.rms_dbfs_; -} -inline void VUMeterUpdate::_internal_set_rms_dbfs(float value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.rms_dbfs_ = value; -} - -// ------------------------------------------------------------------- - -// VUMeterData - -// repeated .daw.api.VUMeterUpdate updates = 1; -inline int VUMeterData::_internal_updates_size() const { - return _internal_updates().size(); -} -inline int VUMeterData::updates_size() const { - return _internal_updates_size(); -} -inline void VUMeterData::clear_updates() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.updates_.Clear(); -} -inline ::daw::api::VUMeterUpdate* VUMeterData::mutable_updates(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:daw.api.VUMeterData.updates) - return _internal_mutable_updates()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>* VUMeterData::mutable_updates() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:daw.api.VUMeterData.updates) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_updates(); -} -inline const ::daw::api::VUMeterUpdate& VUMeterData::updates(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.api.VUMeterData.updates) - return _internal_updates().Get(index); -} -inline ::daw::api::VUMeterUpdate* VUMeterData::add_updates() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::daw::api::VUMeterUpdate* _add = _internal_mutable_updates()->Add(); - // @@protoc_insertion_point(field_add:daw.api.VUMeterData.updates) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>& VUMeterData::updates() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:daw.api.VUMeterData.updates) - return _internal_updates(); -} -inline const ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>& -VUMeterData::_internal_updates() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.updates_; -} -inline ::google::protobuf::RepeatedPtrField<::daw::api::VUMeterUpdate>* -VUMeterData::_internal_mutable_updates() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.updates_; -} - -// ------------------------------------------------------------------- - -// RealtimeCursorPosition - -// double time_in_seconds = 1; -inline void RealtimeCursorPosition::clear_time_in_seconds() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.time_in_seconds_ = 0; -} -inline double RealtimeCursorPosition::time_in_seconds() const { - // @@protoc_insertion_point(field_get:daw.api.RealtimeCursorPosition.time_in_seconds) - return _internal_time_in_seconds(); -} -inline void RealtimeCursorPosition::set_time_in_seconds(double value) { - _internal_set_time_in_seconds(value); - // @@protoc_insertion_point(field_set:daw.api.RealtimeCursorPosition.time_in_seconds) -} -inline double RealtimeCursorPosition::_internal_time_in_seconds() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.time_in_seconds_; -} -inline void RealtimeCursorPosition::_internal_set_time_in_seconds(double value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.time_in_seconds_ = value; -} - -// int64 absolute_ticks = 2; -inline void RealtimeCursorPosition::clear_absolute_ticks() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.absolute_ticks_ = ::int64_t{0}; -} -inline ::int64_t RealtimeCursorPosition::absolute_ticks() const { - // @@protoc_insertion_point(field_get:daw.api.RealtimeCursorPosition.absolute_ticks) - return _internal_absolute_ticks(); -} -inline void RealtimeCursorPosition::set_absolute_ticks(::int64_t value) { - _internal_set_absolute_ticks(value); - // @@protoc_insertion_point(field_set:daw.api.RealtimeCursorPosition.absolute_ticks) -} -inline ::int64_t RealtimeCursorPosition::_internal_absolute_ticks() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.absolute_ticks_; -} -inline void RealtimeCursorPosition::_internal_set_absolute_ticks(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.absolute_ticks_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace api -} // namespace daw - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::daw::api::TrackType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::daw::api::TrackType>() { - return ::daw::api::TrackType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // ctrl_2ffrontend_5fto_5fengine_2eproto_2epb_2eh diff --git a/src/backend/proto/rt/rt_envelope.grpc.pb.cc b/src/backend/proto/rt/rt_envelope.grpc.pb.cc deleted file mode 100644 index 2e4379c..0000000 --- a/src/backend/proto/rt/rt_envelope.grpc.pb.cc +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: rt/rt_envelope.proto - -#include "rt/rt_envelope.pb.h" -#include "rt/rt_envelope.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace daw { -namespace rt { - -} // namespace daw -} // namespace rt - diff --git a/src/backend/proto/rt/rt_envelope.grpc.pb.h b/src/backend/proto/rt/rt_envelope.grpc.pb.h deleted file mode 100644 index 6a4ee70..0000000 --- a/src/backend/proto/rt/rt_envelope.grpc.pb.h +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: rt/rt_envelope.proto -#ifndef GRPC_rt_2frt_5fenvelope_2eproto__INCLUDED -#define GRPC_rt_2frt_5fenvelope_2eproto__INCLUDED - -#include "rt/rt_envelope.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace daw { -namespace rt { - -} // namespace rt -} // namespace daw - - -#include -#endif // GRPC_rt_2frt_5fenvelope_2eproto__INCLUDED diff --git a/src/backend/proto/rt/rt_envelope.pb.cc b/src/backend/proto/rt/rt_envelope.pb.cc deleted file mode 100644 index 5d5925c..0000000 --- a/src/backend/proto/rt/rt_envelope.pb.cc +++ /dev/null @@ -1,630 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: rt/rt_envelope.proto -// Protobuf C++ Version: 5.29.3 - -#include "rt/rt_envelope.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace daw { -namespace rt { - -inline constexpr RTEnvelope::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : seq_{::uint64_t{0u}}, - timestamp_us_{::uint64_t{0u}}, - payload_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR RTEnvelope::RTEnvelope(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RTEnvelopeDefaultTypeInternal { - PROTOBUF_CONSTEXPR RTEnvelopeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RTEnvelopeDefaultTypeInternal() {} - union { - RTEnvelope _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RTEnvelopeDefaultTypeInternal _RTEnvelope_default_instance_; -} // namespace rt -} // namespace daw -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_rt_2frt_5fenvelope_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_rt_2frt_5fenvelope_2eproto = nullptr; -const ::uint32_t - TableStruct_rt_2frt_5fenvelope_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::daw::rt::RTEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::daw::rt::RTEnvelope, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::daw::rt::RTEnvelope, _impl_.seq_), - PROTOBUF_FIELD_OFFSET(::daw::rt::RTEnvelope, _impl_.timestamp_us_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::daw::rt::RTEnvelope, _impl_.payload_), -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::daw::rt::RTEnvelope)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::daw::rt::_RTEnvelope_default_instance_._instance, -}; -const char descriptor_table_protodef_rt_2frt_5fenvelope_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\024rt/rt_envelope.proto\022\006daw.rt\032\023common/d" - "omain.proto\"\310\001\n\nRTEnvelope\022\013\n\003seq\030\001 \001(\004\022" - "\024\n\014timestamp_us\030\002 \001(\004\0223\n\014param_change\030\n " - "\001(\0132\033.daw.common.ParameterChangeH\000\022%\n\004mi" - "di\030\013 \001(\0132\025.daw.common.MidiEventH\000\0220\n\nbuf" - "fer_ref\030\014 \001(\0132\032.daw.common.AudioBufferRe" - "fH\000B\t\n\007payloadb\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_rt_2frt_5fenvelope_2eproto_deps[1] = - { - &::descriptor_table_common_2fdomain_2eproto, -}; -static ::absl::once_flag descriptor_table_rt_2frt_5fenvelope_2eproto_once; -PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_rt_2frt_5fenvelope_2eproto = { - false, - false, - 262, - descriptor_table_protodef_rt_2frt_5fenvelope_2eproto, - "rt/rt_envelope.proto", - &descriptor_table_rt_2frt_5fenvelope_2eproto_once, - descriptor_table_rt_2frt_5fenvelope_2eproto_deps, - 1, - 1, - schemas, - file_default_instances, - TableStruct_rt_2frt_5fenvelope_2eproto::offsets, - file_level_enum_descriptors_rt_2frt_5fenvelope_2eproto, - file_level_service_descriptors_rt_2frt_5fenvelope_2eproto, -}; -namespace daw { -namespace rt { -// =================================================================== - -class RTEnvelope::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::daw::rt::RTEnvelope, _impl_._oneof_case_); -}; - -void RTEnvelope::set_allocated_param_change(::daw::common::ParameterChange* param_change) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_payload(); - if (param_change) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(param_change)->GetArena(); - if (message_arena != submessage_arena) { - param_change = ::google::protobuf::internal::GetOwnedMessage(message_arena, param_change, submessage_arena); - } - set_has_param_change(); - _impl_.payload_.param_change_ = param_change; - } - // @@protoc_insertion_point(field_set_allocated:daw.rt.RTEnvelope.param_change) -} -void RTEnvelope::clear_param_change() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (payload_case() == kParamChange) { - if (GetArena() == nullptr) { - delete _impl_.payload_.param_change_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.param_change_); - } - clear_has_payload(); - } -} -void RTEnvelope::set_allocated_midi(::daw::common::MidiEvent* midi) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_payload(); - if (midi) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(midi)->GetArena(); - if (message_arena != submessage_arena) { - midi = ::google::protobuf::internal::GetOwnedMessage(message_arena, midi, submessage_arena); - } - set_has_midi(); - _impl_.payload_.midi_ = midi; - } - // @@protoc_insertion_point(field_set_allocated:daw.rt.RTEnvelope.midi) -} -void RTEnvelope::clear_midi() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (payload_case() == kMidi) { - if (GetArena() == nullptr) { - delete _impl_.payload_.midi_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.midi_); - } - clear_has_payload(); - } -} -void RTEnvelope::set_allocated_buffer_ref(::daw::common::AudioBufferRef* buffer_ref) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_payload(); - if (buffer_ref) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(buffer_ref)->GetArena(); - if (message_arena != submessage_arena) { - buffer_ref = ::google::protobuf::internal::GetOwnedMessage(message_arena, buffer_ref, submessage_arena); - } - set_has_buffer_ref(); - _impl_.payload_.buffer_ref_ = buffer_ref; - } - // @@protoc_insertion_point(field_set_allocated:daw.rt.RTEnvelope.buffer_ref) -} -void RTEnvelope::clear_buffer_ref() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (payload_case() == kBufferRef) { - if (GetArena() == nullptr) { - delete _impl_.payload_.buffer_ref_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.buffer_ref_); - } - clear_has_payload(); - } -} -RTEnvelope::RTEnvelope(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:daw.rt.RTEnvelope) -} -inline PROTOBUF_NDEBUG_INLINE RTEnvelope::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::daw::rt::RTEnvelope& from_msg) - : payload_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -RTEnvelope::RTEnvelope( - ::google::protobuf::Arena* arena, - const RTEnvelope& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RTEnvelope* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, seq_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, seq_), - offsetof(Impl_, timestamp_us_) - - offsetof(Impl_, seq_) + - sizeof(Impl_::timestamp_us_)); - switch (payload_case()) { - case PAYLOAD_NOT_SET: - break; - case kParamChange: - _impl_.payload_.param_change_ = ::google::protobuf::Message::CopyConstruct<::daw::common::ParameterChange>(arena, *from._impl_.payload_.param_change_); - break; - case kMidi: - _impl_.payload_.midi_ = ::google::protobuf::Message::CopyConstruct<::daw::common::MidiEvent>(arena, *from._impl_.payload_.midi_); - break; - case kBufferRef: - _impl_.payload_.buffer_ref_ = ::google::protobuf::Message::CopyConstruct<::daw::common::AudioBufferRef>(arena, *from._impl_.payload_.buffer_ref_); - break; - } - - // @@protoc_insertion_point(copy_constructor:daw.rt.RTEnvelope) -} -inline PROTOBUF_NDEBUG_INLINE RTEnvelope::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : payload_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void RTEnvelope::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, seq_), - 0, - offsetof(Impl_, timestamp_us_) - - offsetof(Impl_, seq_) + - sizeof(Impl_::timestamp_us_)); -} -RTEnvelope::~RTEnvelope() { - // @@protoc_insertion_point(destructor:daw.rt.RTEnvelope) - SharedDtor(*this); -} -inline void RTEnvelope::SharedDtor(MessageLite& self) { - RTEnvelope& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - if (this_.has_payload()) { - this_.clear_payload(); - } - this_._impl_.~Impl_(); -} - -void RTEnvelope::clear_payload() { -// @@protoc_insertion_point(one_of_clear_start:daw.rt.RTEnvelope) - ::google::protobuf::internal::TSanWrite(&_impl_); - switch (payload_case()) { - case kParamChange: { - if (GetArena() == nullptr) { - delete _impl_.payload_.param_change_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.param_change_); - } - break; - } - case kMidi: { - if (GetArena() == nullptr) { - delete _impl_.payload_.midi_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.midi_); - } - break; - } - case kBufferRef: { - if (GetArena() == nullptr) { - delete _impl_.payload_.buffer_ref_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.buffer_ref_); - } - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = PAYLOAD_NOT_SET; -} - - -inline void* RTEnvelope::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) RTEnvelope(arena); -} -constexpr auto RTEnvelope::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RTEnvelope), - alignof(RTEnvelope)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RTEnvelope::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RTEnvelope_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RTEnvelope::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RTEnvelope::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RTEnvelope::ByteSizeLong, - &RTEnvelope::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_._cached_size_), - false, - }, - &RTEnvelope::kDescriptorMethods, - &descriptor_table_rt_2frt_5fenvelope_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RTEnvelope::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 5, 3, 0, 2> RTEnvelope::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963708, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::daw::rt::RTEnvelope>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 timestamp_us = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RTEnvelope, _impl_.timestamp_us_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.timestamp_us_)}}, - // uint64 seq = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RTEnvelope, _impl_.seq_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.seq_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 seq = 1; - {PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.seq_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 timestamp_us = 2; - {PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.timestamp_us_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .daw.common.ParameterChange param_change = 10; - {PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.payload_.param_change_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .daw.common.MidiEvent midi = 11; - {PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.payload_.midi_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .daw.common.AudioBufferRef buffer_ref = 12; - {PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.payload_.buffer_ref_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::daw::common::ParameterChange>()}, - {::_pbi::TcParser::GetTable<::daw::common::MidiEvent>()}, - {::_pbi::TcParser::GetTable<::daw::common::AudioBufferRef>()}, - }}, {{ - }}, -}; - -PROTOBUF_NOINLINE void RTEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:daw.rt.RTEnvelope) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.seq_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.timestamp_us_) - - reinterpret_cast(&_impl_.seq_)) + sizeof(_impl_.timestamp_us_)); - clear_payload(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RTEnvelope::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RTEnvelope& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RTEnvelope::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RTEnvelope& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:daw.rt.RTEnvelope) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 seq = 1; - if (this_._internal_seq() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_seq(), target); - } - - // uint64 timestamp_us = 2; - if (this_._internal_timestamp_us() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_timestamp_us(), target); - } - - switch (this_.payload_case()) { - case kParamChange: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, *this_._impl_.payload_.param_change_, this_._impl_.payload_.param_change_->GetCachedSize(), target, - stream); - break; - } - case kMidi: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, *this_._impl_.payload_.midi_, this_._impl_.payload_.midi_->GetCachedSize(), target, - stream); - break; - } - case kBufferRef: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *this_._impl_.payload_.buffer_ref_, this_._impl_.payload_.buffer_ref_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:daw.rt.RTEnvelope) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RTEnvelope::ByteSizeLong(const MessageLite& base) { - const RTEnvelope& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RTEnvelope::ByteSizeLong() const { - const RTEnvelope& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:daw.rt.RTEnvelope) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // uint64 seq = 1; - if (this_._internal_seq() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_seq()); - } - // uint64 timestamp_us = 2; - if (this_._internal_timestamp_us() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_timestamp_us()); - } - } - switch (this_.payload_case()) { - // .daw.common.ParameterChange param_change = 10; - case kParamChange: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_.param_change_); - break; - } - // .daw.common.MidiEvent midi = 11; - case kMidi: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_.midi_); - break; - } - // .daw.common.AudioBufferRef buffer_ref = 12; - case kBufferRef: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_.buffer_ref_); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void RTEnvelope::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:daw.rt.RTEnvelope) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_seq() != 0) { - _this->_impl_.seq_ = from._impl_.seq_; - } - if (from._internal_timestamp_us() != 0) { - _this->_impl_.timestamp_us_ = from._impl_.timestamp_us_; - } - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_payload(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kParamChange: { - if (oneof_needs_init) { - _this->_impl_.payload_.param_change_ = - ::google::protobuf::Message::CopyConstruct<::daw::common::ParameterChange>(arena, *from._impl_.payload_.param_change_); - } else { - _this->_impl_.payload_.param_change_->MergeFrom(from._internal_param_change()); - } - break; - } - case kMidi: { - if (oneof_needs_init) { - _this->_impl_.payload_.midi_ = - ::google::protobuf::Message::CopyConstruct<::daw::common::MidiEvent>(arena, *from._impl_.payload_.midi_); - } else { - _this->_impl_.payload_.midi_->MergeFrom(from._internal_midi()); - } - break; - } - case kBufferRef: { - if (oneof_needs_init) { - _this->_impl_.payload_.buffer_ref_ = - ::google::protobuf::Message::CopyConstruct<::daw::common::AudioBufferRef>(arena, *from._impl_.payload_.buffer_ref_); - } else { - _this->_impl_.payload_.buffer_ref_->MergeFrom(from._internal_buffer_ref()); - } - break; - } - case PAYLOAD_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void RTEnvelope::CopyFrom(const RTEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:daw.rt.RTEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RTEnvelope::InternalSwap(RTEnvelope* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.timestamp_us_) - + sizeof(RTEnvelope::_impl_.timestamp_us_) - - PROTOBUF_FIELD_OFFSET(RTEnvelope, _impl_.seq_)>( - reinterpret_cast(&_impl_.seq_), - reinterpret_cast(&other->_impl_.seq_)); - swap(_impl_.payload_, other->_impl_.payload_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata RTEnvelope::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace rt -} // namespace daw -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type - _static_init2_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_rt_2frt_5fenvelope_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/src/backend/proto/rt/rt_envelope.pb.h b/src/backend/proto/rt/rt_envelope.pb.h deleted file mode 100644 index c1d7a03..0000000 --- a/src/backend/proto/rt/rt_envelope.pb.h +++ /dev/null @@ -1,643 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: rt/rt_envelope.proto -// Protobuf C++ Version: 5.29.3 - -#ifndef rt_2frt_5fenvelope_2eproto_2epb_2eh -#define rt_2frt_5fenvelope_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 5029003 -#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/unknown_field_set.h" -#include "common/domain.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_rt_2frt_5fenvelope_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_rt_2frt_5fenvelope_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_rt_2frt_5fenvelope_2eproto; -namespace daw { -namespace rt { -class RTEnvelope; -struct RTEnvelopeDefaultTypeInternal; -extern RTEnvelopeDefaultTypeInternal _RTEnvelope_default_instance_; -} // namespace rt -} // namespace daw -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace daw { -namespace rt { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class RTEnvelope final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:daw.rt.RTEnvelope) */ { - public: - inline RTEnvelope() : RTEnvelope(nullptr) {} - ~RTEnvelope() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RTEnvelope* msg, std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RTEnvelope)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RTEnvelope( - ::google::protobuf::internal::ConstantInitialized); - - inline RTEnvelope(const RTEnvelope& from) : RTEnvelope(nullptr, from) {} - inline RTEnvelope(RTEnvelope&& from) noexcept - : RTEnvelope(nullptr, std::move(from)) {} - inline RTEnvelope& operator=(const RTEnvelope& from) { - CopyFrom(from); - return *this; - } - inline RTEnvelope& operator=(RTEnvelope&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - 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); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RTEnvelope& default_instance() { - return *internal_default_instance(); - } - enum PayloadCase { - kParamChange = 10, - kMidi = 11, - kBufferRef = 12, - PAYLOAD_NOT_SET = 0, - }; - static inline const RTEnvelope* internal_default_instance() { - return reinterpret_cast( - &_RTEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(RTEnvelope& a, RTEnvelope& b) { a.Swap(&b); } - inline void Swap(RTEnvelope* other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RTEnvelope* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RTEnvelope* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RTEnvelope& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RTEnvelope& from) { RTEnvelope::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RTEnvelope* other); - private: - template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "daw.rt.RTEnvelope"; } - - protected: - explicit RTEnvelope(::google::protobuf::Arena* arena); - RTEnvelope(::google::protobuf::Arena* arena, const RTEnvelope& from); - RTEnvelope(::google::protobuf::Arena* arena, RTEnvelope&& from) noexcept - : RTEnvelope(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; - - public: - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSeqFieldNumber = 1, - kTimestampUsFieldNumber = 2, - kParamChangeFieldNumber = 10, - kMidiFieldNumber = 11, - kBufferRefFieldNumber = 12, - }; - // uint64 seq = 1; - void clear_seq() ; - ::uint64_t seq() const; - void set_seq(::uint64_t value); - - private: - ::uint64_t _internal_seq() const; - void _internal_set_seq(::uint64_t value); - - public: - // uint64 timestamp_us = 2; - void clear_timestamp_us() ; - ::uint64_t timestamp_us() const; - void set_timestamp_us(::uint64_t value); - - private: - ::uint64_t _internal_timestamp_us() const; - void _internal_set_timestamp_us(::uint64_t value); - - public: - // .daw.common.ParameterChange param_change = 10; - bool has_param_change() const; - private: - bool _internal_has_param_change() const; - - public: - void clear_param_change() ; - const ::daw::common::ParameterChange& param_change() const; - PROTOBUF_NODISCARD ::daw::common::ParameterChange* release_param_change(); - ::daw::common::ParameterChange* mutable_param_change(); - void set_allocated_param_change(::daw::common::ParameterChange* value); - void unsafe_arena_set_allocated_param_change(::daw::common::ParameterChange* value); - ::daw::common::ParameterChange* unsafe_arena_release_param_change(); - - private: - const ::daw::common::ParameterChange& _internal_param_change() const; - ::daw::common::ParameterChange* _internal_mutable_param_change(); - - public: - // .daw.common.MidiEvent midi = 11; - bool has_midi() const; - private: - bool _internal_has_midi() const; - - public: - void clear_midi() ; - const ::daw::common::MidiEvent& midi() const; - PROTOBUF_NODISCARD ::daw::common::MidiEvent* release_midi(); - ::daw::common::MidiEvent* mutable_midi(); - void set_allocated_midi(::daw::common::MidiEvent* value); - void unsafe_arena_set_allocated_midi(::daw::common::MidiEvent* value); - ::daw::common::MidiEvent* unsafe_arena_release_midi(); - - private: - const ::daw::common::MidiEvent& _internal_midi() const; - ::daw::common::MidiEvent* _internal_mutable_midi(); - - public: - // .daw.common.AudioBufferRef buffer_ref = 12; - bool has_buffer_ref() const; - private: - bool _internal_has_buffer_ref() const; - - public: - void clear_buffer_ref() ; - const ::daw::common::AudioBufferRef& buffer_ref() const; - PROTOBUF_NODISCARD ::daw::common::AudioBufferRef* release_buffer_ref(); - ::daw::common::AudioBufferRef* mutable_buffer_ref(); - void set_allocated_buffer_ref(::daw::common::AudioBufferRef* value); - void unsafe_arena_set_allocated_buffer_ref(::daw::common::AudioBufferRef* value); - ::daw::common::AudioBufferRef* unsafe_arena_release_buffer_ref(); - - private: - const ::daw::common::AudioBufferRef& _internal_buffer_ref() const; - ::daw::common::AudioBufferRef* _internal_mutable_buffer_ref(); - - public: - void clear_payload(); - PayloadCase payload_case() const; - // @@protoc_insertion_point(class_scope:daw.rt.RTEnvelope) - private: - class _Internal; - void set_has_param_change(); - void set_has_midi(); - void set_has_buffer_ref(); - inline bool has_payload() const; - inline void clear_has_payload(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 5, 3, - 0, 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RTEnvelope& from_msg); - ::uint64_t seq_; - ::uint64_t timestamp_us_; - union PayloadUnion { - constexpr PayloadUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::daw::common::ParameterChange* param_change_; - ::daw::common::MidiEvent* midi_; - ::daw::common::AudioBufferRef* buffer_ref_; - } payload_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_rt_2frt_5fenvelope_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// RTEnvelope - -// uint64 seq = 1; -inline void RTEnvelope::clear_seq() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.seq_ = ::uint64_t{0u}; -} -inline ::uint64_t RTEnvelope::seq() const { - // @@protoc_insertion_point(field_get:daw.rt.RTEnvelope.seq) - return _internal_seq(); -} -inline void RTEnvelope::set_seq(::uint64_t value) { - _internal_set_seq(value); - // @@protoc_insertion_point(field_set:daw.rt.RTEnvelope.seq) -} -inline ::uint64_t RTEnvelope::_internal_seq() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.seq_; -} -inline void RTEnvelope::_internal_set_seq(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.seq_ = value; -} - -// uint64 timestamp_us = 2; -inline void RTEnvelope::clear_timestamp_us() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.timestamp_us_ = ::uint64_t{0u}; -} -inline ::uint64_t RTEnvelope::timestamp_us() const { - // @@protoc_insertion_point(field_get:daw.rt.RTEnvelope.timestamp_us) - return _internal_timestamp_us(); -} -inline void RTEnvelope::set_timestamp_us(::uint64_t value) { - _internal_set_timestamp_us(value); - // @@protoc_insertion_point(field_set:daw.rt.RTEnvelope.timestamp_us) -} -inline ::uint64_t RTEnvelope::_internal_timestamp_us() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.timestamp_us_; -} -inline void RTEnvelope::_internal_set_timestamp_us(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.timestamp_us_ = value; -} - -// .daw.common.ParameterChange param_change = 10; -inline bool RTEnvelope::has_param_change() const { - return payload_case() == kParamChange; -} -inline bool RTEnvelope::_internal_has_param_change() const { - return payload_case() == kParamChange; -} -inline void RTEnvelope::set_has_param_change() { - _impl_._oneof_case_[0] = kParamChange; -} -inline ::daw::common::ParameterChange* RTEnvelope::release_param_change() { - // @@protoc_insertion_point(field_release:daw.rt.RTEnvelope.param_change) - if (payload_case() == kParamChange) { - clear_has_payload(); - auto* temp = _impl_.payload_.param_change_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.payload_.param_change_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::daw::common::ParameterChange& RTEnvelope::_internal_param_change() const { - return payload_case() == kParamChange ? *_impl_.payload_.param_change_ : reinterpret_cast<::daw::common::ParameterChange&>(::daw::common::_ParameterChange_default_instance_); -} -inline const ::daw::common::ParameterChange& RTEnvelope::param_change() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.rt.RTEnvelope.param_change) - return _internal_param_change(); -} -inline ::daw::common::ParameterChange* RTEnvelope::unsafe_arena_release_param_change() { - // @@protoc_insertion_point(field_unsafe_arena_release:daw.rt.RTEnvelope.param_change) - if (payload_case() == kParamChange) { - clear_has_payload(); - auto* temp = _impl_.payload_.param_change_; - _impl_.payload_.param_change_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RTEnvelope::unsafe_arena_set_allocated_param_change(::daw::common::ParameterChange* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_payload(); - if (value) { - set_has_param_change(); - _impl_.payload_.param_change_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.rt.RTEnvelope.param_change) -} -inline ::daw::common::ParameterChange* RTEnvelope::_internal_mutable_param_change() { - if (payload_case() != kParamChange) { - clear_payload(); - set_has_param_change(); - _impl_.payload_.param_change_ = - ::google::protobuf::Message::DefaultConstruct<::daw::common::ParameterChange>(GetArena()); - } - return _impl_.payload_.param_change_; -} -inline ::daw::common::ParameterChange* RTEnvelope::mutable_param_change() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::daw::common::ParameterChange* _msg = _internal_mutable_param_change(); - // @@protoc_insertion_point(field_mutable:daw.rt.RTEnvelope.param_change) - return _msg; -} - -// .daw.common.MidiEvent midi = 11; -inline bool RTEnvelope::has_midi() const { - return payload_case() == kMidi; -} -inline bool RTEnvelope::_internal_has_midi() const { - return payload_case() == kMidi; -} -inline void RTEnvelope::set_has_midi() { - _impl_._oneof_case_[0] = kMidi; -} -inline ::daw::common::MidiEvent* RTEnvelope::release_midi() { - // @@protoc_insertion_point(field_release:daw.rt.RTEnvelope.midi) - if (payload_case() == kMidi) { - clear_has_payload(); - auto* temp = _impl_.payload_.midi_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.payload_.midi_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::daw::common::MidiEvent& RTEnvelope::_internal_midi() const { - return payload_case() == kMidi ? *_impl_.payload_.midi_ : reinterpret_cast<::daw::common::MidiEvent&>(::daw::common::_MidiEvent_default_instance_); -} -inline const ::daw::common::MidiEvent& RTEnvelope::midi() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.rt.RTEnvelope.midi) - return _internal_midi(); -} -inline ::daw::common::MidiEvent* RTEnvelope::unsafe_arena_release_midi() { - // @@protoc_insertion_point(field_unsafe_arena_release:daw.rt.RTEnvelope.midi) - if (payload_case() == kMidi) { - clear_has_payload(); - auto* temp = _impl_.payload_.midi_; - _impl_.payload_.midi_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RTEnvelope::unsafe_arena_set_allocated_midi(::daw::common::MidiEvent* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_payload(); - if (value) { - set_has_midi(); - _impl_.payload_.midi_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.rt.RTEnvelope.midi) -} -inline ::daw::common::MidiEvent* RTEnvelope::_internal_mutable_midi() { - if (payload_case() != kMidi) { - clear_payload(); - set_has_midi(); - _impl_.payload_.midi_ = - ::google::protobuf::Message::DefaultConstruct<::daw::common::MidiEvent>(GetArena()); - } - return _impl_.payload_.midi_; -} -inline ::daw::common::MidiEvent* RTEnvelope::mutable_midi() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::daw::common::MidiEvent* _msg = _internal_mutable_midi(); - // @@protoc_insertion_point(field_mutable:daw.rt.RTEnvelope.midi) - return _msg; -} - -// .daw.common.AudioBufferRef buffer_ref = 12; -inline bool RTEnvelope::has_buffer_ref() const { - return payload_case() == kBufferRef; -} -inline bool RTEnvelope::_internal_has_buffer_ref() const { - return payload_case() == kBufferRef; -} -inline void RTEnvelope::set_has_buffer_ref() { - _impl_._oneof_case_[0] = kBufferRef; -} -inline ::daw::common::AudioBufferRef* RTEnvelope::release_buffer_ref() { - // @@protoc_insertion_point(field_release:daw.rt.RTEnvelope.buffer_ref) - if (payload_case() == kBufferRef) { - clear_has_payload(); - auto* temp = _impl_.payload_.buffer_ref_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.payload_.buffer_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::daw::common::AudioBufferRef& RTEnvelope::_internal_buffer_ref() const { - return payload_case() == kBufferRef ? *_impl_.payload_.buffer_ref_ : reinterpret_cast<::daw::common::AudioBufferRef&>(::daw::common::_AudioBufferRef_default_instance_); -} -inline const ::daw::common::AudioBufferRef& RTEnvelope::buffer_ref() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:daw.rt.RTEnvelope.buffer_ref) - return _internal_buffer_ref(); -} -inline ::daw::common::AudioBufferRef* RTEnvelope::unsafe_arena_release_buffer_ref() { - // @@protoc_insertion_point(field_unsafe_arena_release:daw.rt.RTEnvelope.buffer_ref) - if (payload_case() == kBufferRef) { - clear_has_payload(); - auto* temp = _impl_.payload_.buffer_ref_; - _impl_.payload_.buffer_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RTEnvelope::unsafe_arena_set_allocated_buffer_ref(::daw::common::AudioBufferRef* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_payload(); - if (value) { - set_has_buffer_ref(); - _impl_.payload_.buffer_ref_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:daw.rt.RTEnvelope.buffer_ref) -} -inline ::daw::common::AudioBufferRef* RTEnvelope::_internal_mutable_buffer_ref() { - if (payload_case() != kBufferRef) { - clear_payload(); - set_has_buffer_ref(); - _impl_.payload_.buffer_ref_ = - ::google::protobuf::Message::DefaultConstruct<::daw::common::AudioBufferRef>(GetArena()); - } - return _impl_.payload_.buffer_ref_; -} -inline ::daw::common::AudioBufferRef* RTEnvelope::mutable_buffer_ref() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::daw::common::AudioBufferRef* _msg = _internal_mutable_buffer_ref(); - // @@protoc_insertion_point(field_mutable:daw.rt.RTEnvelope.buffer_ref) - return _msg; -} - -inline bool RTEnvelope::has_payload() const { - return payload_case() != PAYLOAD_NOT_SET; -} -inline void RTEnvelope::clear_has_payload() { - _impl_._oneof_case_[0] = PAYLOAD_NOT_SET; -} -inline RTEnvelope::PayloadCase RTEnvelope::payload_case() const { - return RTEnvelope::PayloadCase(_impl_._oneof_case_[0]); -} -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace rt -} // namespace daw - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // rt_2frt_5fenvelope_2eproto_2epb_2eh diff --git a/src/backend/src/engine/CMakeLists.txt b/src/backend/src/engine/CMakeLists.txt index 12826a2..8fcd3a0 100644 --- a/src/backend/src/engine/CMakeLists.txt +++ b/src/backend/src/engine/CMakeLists.txt @@ -15,7 +15,7 @@ retrieve_files(${CMAKE_CURRENT_SOURCE_DIR}/src SRC_FILES) # @param ${PROJECT_NAME}: 目标名称。 # @param ${SRC_FILES}: 构成该目标的所有源文件。 add_executable(${PROJECT_NAME} ${SRC_FILES}) -add_plugin_host_dependency(${PROJECT_NAME}) +#add_plugin_host_dependency(${PROJECT_NAME}) # 将依赖库链接到我们的可执行文件目标。 # @param ${PROJECT_NAME}: 要链接的目标。 diff --git a/src/backend/src/engine/src/host/plugin_host.cpp b/src/backend/src/engine/src/host/plugin_host.cpp new file mode 100644 index 0000000..1fc03ef --- /dev/null +++ b/src/backend/src/engine/src/host/plugin_host.cpp @@ -0,0 +1 @@ +#include "plugin_host.h" diff --git a/src/backend/src/engine/src/host/plugin_host.h b/src/backend/src/engine/src/host/plugin_host.h new file mode 100644 index 0000000..4200e80 --- /dev/null +++ b/src/backend/src/engine/src/host/plugin_host.h @@ -0,0 +1,34 @@ +#pragma once +#include + +#include "midi_type.h" + +class plugin_host { +public: + virtual void process(std::span in_buffers, std::span out_buffers, int32_t in_frames) = 0; + virtual void process(std::span in_buffers, std::span out_buffers, int32_t in_frames) = 0; + + virtual auto send_events(std::span ev) -> bool = 0; + + [[nodiscard]] virtual auto get_name() -> std::string = 0; + [[nodiscard]] virtual auto get_vendor() -> std::string = 0; + [[nodiscard]] virtual auto get_version() -> std::string = 0; + [[nodiscard]] virtual auto get_product() -> std::string = 0; + + [[nodiscard]] virtual auto get_input_count() const noexcept -> int = 0; + [[nodiscard]] virtual auto get_output_count() const noexcept -> int = 0; + [[nodiscard]] virtual auto get_parameter_count() const noexcept -> int = 0; + [[nodiscard]] virtual auto can_double() const noexcept -> bool = 0; + [[nodiscard]] virtual auto is_synth() const noexcept -> bool = 0; + [[nodiscard]] virtual auto get_unique_id() const noexcept -> int = 0; + [[nodiscard]] virtual auto is_valid() const noexcept -> bool = 0; + + [[nodiscard]] virtual auto get_parameter(int idx) -> float = 0; + virtual void set_parameter(int idx, float v) = 0; + virtual void set_sample_rate(float in_sample_rate) = 0; + virtual void set_block_size(int32_t in_block_size) = 0; + [[nodiscard]] virtual auto get_program_name() -> std::string = 0; + virtual void set_program_name(const std::string& name) = 0; + virtual void set_program(int idx) = 0; + [[nodiscard]] virtual auto get_program() -> int32_t = 0; +}; diff --git a/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/aeffect.h b/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/aeffect.h new file mode 100644 index 0000000..6bba888 --- /dev/null +++ b/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/aeffect.h @@ -0,0 +1,351 @@ +//------------------------------------------------------------------------------------------------------- +// VST Plug-Ins SDK +// Version 2.4 $Date: 2006/06/20 17:22:55 $ +// +// Category : VST 2.x Interfaces +// Filename : aeffect.h +// Created by : Steinberg Media Technologies +// Description : Definition of AEffect structure +// +// © 2006, Steinberg Media Technologies, All Rights Reserved +//------------------------------------------------------------------------------------------------------- + +#ifndef __aeffect__ +#define __aeffect__ + +// gcc based compiler, or CodeWarrior on Mac OS X +#if ((defined(__GNUC__) && (defined(__APPLE_CPP__) || defined(__APPLE_CC__))) || (defined (__MWERKS__) && defined (__MACH__))) + #ifndef TARGET_API_MAC_CARBON + #define TARGET_API_MAC_CARBON 1 + #endif + #if __ppc__ + #ifndef VST_FORCE_DEPRECATED + #define VST_FORCE_DEPRECATED 0 + #endif + #endif +#endif + +#if TARGET_API_MAC_CARBON + #ifdef __LP64__ + #pragma options align=power + #else + #pragma options align=mac68k + #endif + #define VSTCALLBACK +#elif defined __BORLANDC__ + #pragma -a8 +#elif defined(__GNUC__) + #pragma pack(push,8) + #define VSTCALLBACK __cdecl +#elif defined(WIN32) || defined(__FLAT__) || defined CBUILDER + #pragma pack(push) + #pragma pack(8) + #define VSTCALLBACK __cdecl +#else + #define VSTCALLBACK +#endif +//------------------------------------------------------------------------------------------------------- + +#include // for strncpy + +//------------------------------------------------------------------------------------------------------- +// VST Version +//------------------------------------------------------------------------------------------------------- + +/** Define SDK Version (you can generate different versions (from 2.0 to 2.4) of this SDK by setting the unwanted extensions to 0). */ +#define VST_2_1_EXTENSIONS 1 ///< Version 2.1 extensions (08-06-2000) +#define VST_2_2_EXTENSIONS 1 ///< Version 2.2 extensions (08-06-2001) +#define VST_2_3_EXTENSIONS 1 ///< Version 2.3 extensions (20-05-2003) +#ifndef VST_2_4_EXTENSIONS +#define VST_2_4_EXTENSIONS 1 ///< Version 2.4 extensions (01-01-2006) +#endif + +/** Current VST Version */ +#if VST_2_4_EXTENSIONS + #define kVstVersion 2400 +#elif VST_2_3_EXTENSIONS + #define kVstVersion 2300 +#elif VST_2_2_EXTENSIONS + #define kVstVersion 2200 +#elif VST_2_1_EXTENSIONS + #define kVstVersion 2100 +#else + #define kVstVersion 2 +#endif + +/** Disable for Hosts to serve Plug-ins below VST 2.4 */ +#ifndef VST_FORCE_DEPRECATED +#define VST_FORCE_DEPRECATED VST_2_4_EXTENSIONS +#endif + +/** Declares identifier as deprecated. */ +#if VST_FORCE_DEPRECATED +#define DECLARE_VST_DEPRECATED(identifier) __##identifier##Deprecated +#else +#define DECLARE_VST_DEPRECATED(identifier) identifier +#endif + +/** Define for 64 Bit Platform. */ +#ifndef VST_64BIT_PLATFORM +#define VST_64BIT_PLATFORM _WIN64 || __LP64__ +#endif + +//------------------------------------------------------------------------------------------------------- +// Integral Types +//------------------------------------------------------------------------------------------------------- + +#ifdef WIN32 +typedef short VstInt16; ///< 16 bit integer type +typedef int VstInt32; ///< 32 bit integer type +typedef __int64 VstInt64; ///< 64 bit integer type +#else +#include +typedef int16_t VstInt16; ///< 16 bit integer type +typedef int32_t VstInt32; ///< 32 bit integer type +typedef int64_t VstInt64; ///< 64 bit integer type +#endif + +//------------------------------------------------------------------------------------------------------- +// Generic Types +//------------------------------------------------------------------------------------------------------- + +#if VST_64BIT_PLATFORM +typedef VstInt64 VstIntPtr; ///< platform-dependent integer type, same size as pointer +#else +typedef VstInt32 VstIntPtr; ///< platform-dependent integer type, same size as pointer +#endif + +//------------------------------------------------------------------------------------------------------- +// Misc. Definition +//------------------------------------------------------------------------------------------------------- +#undef CCONST +struct AEffect; + +/// @cond ignore +typedef VstIntPtr (VSTCALLBACK *audioMasterCallback) (AEffect* effect, VstInt32 opcode, VstInt32 index, VstIntPtr value, void* ptr, float opt); +typedef VstIntPtr (VSTCALLBACK *AEffectDispatcherProc) (AEffect* effect, VstInt32 opcode, VstInt32 index, VstIntPtr value, void* ptr, float opt); +typedef void (VSTCALLBACK *AEffectProcessProc) (AEffect* effect, float** inputs, float** outputs, VstInt32 sampleFrames); +typedef void (VSTCALLBACK *AEffectProcessDoubleProc) (AEffect* effect, double** inputs, double** outputs, VstInt32 sampleFrames); +typedef void (VSTCALLBACK *AEffectSetParameterProc) (AEffect* effect, VstInt32 index, float parameter); +typedef float (VSTCALLBACK *AEffectGetParameterProc) (AEffect* effect, VstInt32 index); +/// @endcond + +/** Four Character Constant (for AEffect->uniqueID) */ +#define CCONST(a, b, c, d) \ + ((((VstInt32)a) << 24) | (((VstInt32)b) << 16) | (((VstInt32)c) << 8) | (((VstInt32)d) << 0)) + +/** AEffect magic number */ +#define kEffectMagic CCONST ('V', 's', 't', 'P') + +//------------------------------------------------------------------------------------------------------- +/** Basic VST Effect "C" Interface. */ +//------------------------------------------------------------------------------------------------------- +struct AEffect +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 magic; ///< must be #kEffectMagic ('VstP') + + /** Host to Plug-in dispatcher @see AudioEffect::dispatcher */ + AEffectDispatcherProc dispatcher; + + /** \deprecated Accumulating process mode is deprecated in VST 2.4! Use AEffect::processReplacing instead! */ + AEffectProcessProc DECLARE_VST_DEPRECATED (process); + + /** Set new value of automatable parameter @see AudioEffect::setParameter */ + AEffectSetParameterProc setParameter; + + /** Returns current value of automatable parameter @see AudioEffect::getParameter*/ + AEffectGetParameterProc getParameter; + + VstInt32 numPrograms; ///< number of programs + VstInt32 numParams; ///< all programs are assumed to have numParams parameters + VstInt32 numInputs; ///< number of audio inputs + VstInt32 numOutputs; ///< number of audio outputs + + VstInt32 flags; ///< @see VstAEffectFlags + + VstIntPtr resvd1; ///< reserved for Host, must be 0 + VstIntPtr resvd2; ///< reserved for Host, must be 0 + + VstInt32 initialDelay; ///< for algorithms which need input in the first place (Group delay or latency in Samples). This value should be initialized in a resume state. + + VstInt32 DECLARE_VST_DEPRECATED (realQualities); ///< \deprecated unused member + VstInt32 DECLARE_VST_DEPRECATED (offQualities); ///< \deprecated unused member + float DECLARE_VST_DEPRECATED (ioRatio); ///< \deprecated unused member + + void* object; ///< #AudioEffect class pointer + void* user; ///< user-defined pointer + + VstInt32 uniqueID; ///< registered unique identifier (register it at Steinberg 3rd party support Web). This is used to identify a plug-in during save+load of preset and project. + VstInt32 version; ///< plug-in version (example 1100 for version 1.1.0.0) + + /** Process audio samples in replacing mode @see AudioEffect::processReplacing */ + AEffectProcessProc processReplacing; + +#if VST_2_4_EXTENSIONS + /** Process double-precision audio samples in replacing mode @see AudioEffect::processDoubleReplacing */ + AEffectProcessDoubleProc processDoubleReplacing; + + char future[56]; ///< reserved for future use (please zero) +#else + char future[60]; ///< reserved for future use (please zero) +#endif +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** AEffect flags */ +//------------------------------------------------------------------------------------------------------- +enum VstAEffectFlags +{ +//------------------------------------------------------------------------------------------------------- + effFlagsHasEditor = 1 << 0, ///< set if the plug-in provides a custom editor + effFlagsCanReplacing = 1 << 4, ///< supports replacing process mode (which should the default mode in VST 2.4) + effFlagsProgramChunks = 1 << 5, ///< program data is handled in formatless chunks + effFlagsIsSynth = 1 << 8, ///< plug-in is a synth (VSTi), Host may assign mixer channels for its outputs + effFlagsNoSoundInStop = 1 << 9, ///< plug-in does not produce sound when input is all silence + +#if VST_2_4_EXTENSIONS + effFlagsCanDoubleReplacing = 1 << 12, ///< plug-in supports double precision processing +#endif + + DECLARE_VST_DEPRECATED (effFlagsHasClip) = 1 << 1, ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effFlagsHasVu) = 1 << 2, ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effFlagsCanMono) = 1 << 3, ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effFlagsExtIsAsync) = 1 << 10, ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effFlagsExtHasBuffer) = 1 << 11 ///< \deprecated deprecated in VST 2.4 +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Basic dispatcher Opcodes (Host to Plug-in) */ +//------------------------------------------------------------------------------------------------------- +enum AEffectOpcodes +{ + effOpen = 0, ///< no arguments @see AudioEffect::open + effClose, ///< no arguments @see AudioEffect::close + + effSetProgram, ///< [value]: new program number @see AudioEffect::setProgram + effGetProgram, ///< [return value]: current program number @see AudioEffect::getProgram + effSetProgramName, ///< [ptr]: char* with new program name, limited to #kVstMaxProgNameLen @see AudioEffect::setProgramName + effGetProgramName, ///< [ptr]: char buffer for current program name, limited to #kVstMaxProgNameLen @see AudioEffect::getProgramName + + effGetParamLabel, ///< [ptr]: char buffer for parameter label, limited to #kVstMaxParamStrLen @see AudioEffect::getParameterLabel + effGetParamDisplay, ///< [ptr]: char buffer for parameter display, limited to #kVstMaxParamStrLen @see AudioEffect::getParameterDisplay + effGetParamName, ///< [ptr]: char buffer for parameter name, limited to #kVstMaxParamStrLen @see AudioEffect::getParameterName + + DECLARE_VST_DEPRECATED (effGetVu), ///< \deprecated deprecated in VST 2.4 + + effSetSampleRate, ///< [opt]: new sample rate for audio processing @see AudioEffect::setSampleRate + effSetBlockSize, ///< [value]: new maximum block size for audio processing @see AudioEffect::setBlockSize + effMainsChanged, ///< [value]: 0 means "turn off", 1 means "turn on" @see AudioEffect::suspend @see AudioEffect::resume + + effEditGetRect, ///< [ptr]: #ERect** receiving pointer to editor size @see ERect @see AEffEditor::getRect + effEditOpen, ///< [ptr]: system dependent Window pointer, e.g. HWND on Windows @see AEffEditor::open + effEditClose, ///< no arguments @see AEffEditor::close + + DECLARE_VST_DEPRECATED (effEditDraw), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effEditMouse), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effEditKey), ///< \deprecated deprecated in VST 2.4 + + effEditIdle, ///< no arguments @see AEffEditor::idle + + DECLARE_VST_DEPRECATED (effEditTop), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effEditSleep), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (effIdentify), ///< \deprecated deprecated in VST 2.4 + + effGetChunk, ///< [ptr]: void** for chunk data address [index]: 0 for bank, 1 for program @see AudioEffect::getChunk + effSetChunk, ///< [ptr]: chunk data [value]: byte size [index]: 0 for bank, 1 for program @see AudioEffect::setChunk + + effNumOpcodes +}; + +//------------------------------------------------------------------------------------------------------- +/** Basic dispatcher Opcodes (Plug-in to Host) */ +//------------------------------------------------------------------------------------------------------- +enum AudioMasterOpcodes +{ +//------------------------------------------------------------------------------------------------------- + audioMasterAutomate = 0, ///< [index]: parameter index [opt]: parameter value @see AudioEffect::setParameterAutomated + audioMasterVersion, ///< [return value]: Host VST version (for example 2400 for VST 2.4) @see AudioEffect::getMasterVersion + audioMasterCurrentId, ///< [return value]: current unique identifier on shell plug-in @see AudioEffect::getCurrentUniqueId + audioMasterIdle, ///< no arguments @see AudioEffect::masterIdle + DECLARE_VST_DEPRECATED (audioMasterPinConnected) ///< \deprecated deprecated in VST 2.4 r2 +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** String length limits (in characters excl. 0 byte) */ +//------------------------------------------------------------------------------------------------------- +enum VstStringConstants +{ +//------------------------------------------------------------------------------------------------------- + kVstMaxProgNameLen = 24, ///< used for #effGetProgramName, #effSetProgramName, #effGetProgramNameIndexed + kVstMaxParamStrLen = 8, ///< used for #effGetParamLabel, #effGetParamDisplay, #effGetParamName + kVstMaxVendorStrLen = 64, ///< used for #effGetVendorString, #audioMasterGetVendorString + kVstMaxProductStrLen = 64, ///< used for #effGetProductString, #audioMasterGetProductString + kVstMaxEffectNameLen = 32 ///< used for #effGetEffectName +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** String copy taking care of null terminator. */ +//------------------------------------------------------------------------------------------------------- +inline char* vst_strncpy (char* dst, const char* src, size_t maxLen) +{ + char* result = strncpy (dst, src, maxLen); + dst[maxLen] = 0; + return result; +} + +//------------------------------------------------------------------------------------------------------- +/** String concatenation taking care of null terminator. */ +//------------------------------------------------------------------------------------------------------- +inline char* vst_strncat (char* dst, const char* src, size_t maxLen) +{ + char* result = strncat (dst, src, maxLen); + dst[maxLen] = 0; + return result; +} + +//------------------------------------------------------------------------------------------------------- +/** Cast #VstIntPtr to pointer. */ +//------------------------------------------------------------------------------------------------------- +template inline T* FromVstPtr (VstIntPtr& arg) +{ + T** address = (T**)&arg; + return *address; +} + +//------------------------------------------------------------------------------------------------------- +/** Cast pointer to #VstIntPtr. */ +//------------------------------------------------------------------------------------------------------- +template inline VstIntPtr ToVstPtr (T* ptr) +{ + VstIntPtr* address = (VstIntPtr*)&ptr; + return *address; +} + +//------------------------------------------------------------------------------------------------------- +/** Structure used for #effEditGetRect. */ +//------------------------------------------------------------------------------------------------------- +struct ERect +{ +//------------------------------------------------------------------------------------------------------- + VstInt16 top; ///< top coordinate + VstInt16 left; ///< left coordinate + VstInt16 bottom; ///< bottom coordinate + VstInt16 right; ///< right coordinate +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +#if TARGET_API_MAC_CARBON + #pragma options align=reset +#elif defined(WIN32) || defined(__FLAT__) || defined(__GNUC__) + #pragma pack(pop) +#elif defined __BORLANDC__ + #pragma -a- +#endif + +#endif // __aeffect__ diff --git a/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/aeffectx.h b/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/aeffectx.h new file mode 100644 index 0000000..5b23015 --- /dev/null +++ b/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/aeffectx.h @@ -0,0 +1,1143 @@ +//------------------------------------------------------------------------------------------------------- +// VST Plug-Ins SDK +// Version 2.4 $Date: 2006/06/20 12:43:42 $ +// +// Category : VST 2.x Interfaces +// Filename : aeffectx.h +// Created by : Steinberg Media Technologies +// Description : Definition of auxiliary structures, extensions from VST 1.0 to VST 2.4 +// +// © 2006, Steinberg Media Technologies, All Rights Reserved +//------------------------------------------------------------------------------------------------------- + +#ifndef __aeffectx__ +#define __aeffectx__ + +#ifndef __aeffect__ +#include "aeffect.h" +#endif + +//------------------------------------------------------------------------------------------------------- +#if TARGET_API_MAC_CARBON + #ifdef __LP64__ + #pragma options align=power + #else + #pragma options align=mac68k + #endif +#elif defined __BORLANDC__ + #pragma -a8 +#elif defined(__GNUC__) + #pragma pack(push,8) +#elif defined(WIN32) || defined(__FLAT__) + #pragma pack(push) + #pragma pack(8) +#endif +//------------------------------------------------------------------------------------------------------- + +//------------------------------------------------------------------------------------------------------- +/** String length limits (in characters excl. 0 byte). */ +//------------------------------------------------------------------------------------------------------- +enum Vst2StringConstants +{ +//------------------------------------------------------------------------------------------------------- + kVstMaxNameLen = 64, ///< used for #MidiProgramName, #MidiProgramCategory, #MidiKeyName, #VstSpeakerProperties, #VstPinProperties + kVstMaxLabelLen = 64, ///< used for #VstParameterProperties->label, #VstPinProperties->label + kVstMaxShortLabelLen = 8, ///< used for #VstParameterProperties->shortLabel, #VstPinProperties->shortLabel + kVstMaxCategLabelLen = 24, ///< used for #VstParameterProperties->label + kVstMaxFileNameLen = 100 ///< used for #VstAudioFile->name +//------------------------------------------------------------------------------------------------------- +}; +//------------------------------------------------------------------------------------------------------- +// VstEvent +//------------------------------------------------------------------------------------------------------- +//------------------------------------------------------------------------------------------------------- +/** A generic timestamped event. */ +//------------------------------------------------------------------------------------------------------- +struct VstEvent +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 type; ///< @see VstEventTypes + VstInt32 byteSize; ///< size of this event, excl. type and byteSize + VstInt32 deltaFrames; ///< sample frames related to the current block start sample position + VstInt32 flags; ///< generic flags, none defined yet + + char data[16]; ///< data size may vary, depending on event type +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** VstEvent Types used by #VstEvent. */ +//------------------------------------------------------------------------------------------------------- +enum VstEventTypes +{ +//------------------------------------------------------------------------------------------------------- + kVstMidiType = 1, ///< MIDI event @see VstMidiEvent + DECLARE_VST_DEPRECATED (kVstAudioType), ///< \deprecated unused event type + DECLARE_VST_DEPRECATED (kVstVideoType), ///< \deprecated unused event type + DECLARE_VST_DEPRECATED (kVstParameterType), ///< \deprecated unused event type + DECLARE_VST_DEPRECATED (kVstTriggerType), ///< \deprecated unused event type + kVstSysExType ///< MIDI system exclusive @see VstMidiSysexEvent +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** A block of events for the current processed audio block. */ +//------------------------------------------------------------------------------------------------------- +struct VstEvents +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 numEvents; ///< number of Events in array + VstIntPtr reserved; ///< zero (Reserved for future use) + VstEvent* events[2]; ///< event pointer array, variable size +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** MIDI Event (to be casted from VstEvent). */ +//------------------------------------------------------------------------------------------------------- +struct VstMidiEvent +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 type; ///< #kVstMidiType + VstInt32 byteSize; ///< sizeof (VstMidiEvent) + VstInt32 deltaFrames; ///< sample frames related to the current block start sample position + VstInt32 flags; ///< @see VstMidiEventFlags + VstInt32 noteLength; ///< (in sample frames) of entire note, if available, else 0 + VstInt32 noteOffset; ///< offset (in sample frames) into note from note start if available, else 0 + char midiData[4]; ///< 1 to 3 MIDI bytes; midiData[3] is reserved (zero) + char detune; ///< -64 to +63 cents; for scales other than 'well-tempered' ('microtuning') + char noteOffVelocity; ///< Note Off Velocity [0, 127] + char reserved1; ///< zero (Reserved for future use) + char reserved2; ///< zero (Reserved for future use) +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Flags used in #VstMidiEvent. */ +//------------------------------------------------------------------------------------------------------- +enum VstMidiEventFlags +{ +//------------------------------------------------------------------------------------------------------- + kVstMidiEventIsRealtime = 1 << 0 ///< means that this event is played life (not in playback from a sequencer track).\n This allows the Plug-In to handle these flagged events with higher priority, especially when the Plug-In has a big latency (AEffect::initialDelay) +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** MIDI Sysex Event (to be casted from #VstEvent). */ +//------------------------------------------------------------------------------------------------------- +struct VstMidiSysexEvent +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 type; ///< #kVstSysexType + VstInt32 byteSize; ///< sizeof (VstMidiSysexEvent) + VstInt32 deltaFrames; ///< sample frames related to the current block start sample position + VstInt32 flags; ///< none defined yet (should be zero) + VstInt32 dumpBytes; ///< byte size of sysexDump + VstIntPtr resvd1; ///< zero (Reserved for future use) + char* sysexDump; ///< sysex dump + VstIntPtr resvd2; ///< zero (Reserved for future use) +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +// VstTimeInfo +//------------------------------------------------------------------------------------------------------- +//------------------------------------------------------------------------------------------------------- +/** VstTimeInfo requested via #audioMasterGetTime. @see AudioEffectX::getTimeInfo + +\note VstTimeInfo::samplePos :Current Position. It must always be valid, and should not cost a lot to ask for. The sample position is ahead of the time displayed to the user. In sequencer stop mode, its value does not change. A 32 bit integer is too small for sample positions, and it's a double to make it easier to convert between ppq and samples. +\note VstTimeInfo::ppqPos : At tempo 120, 1 quarter makes 1/2 second, so 2.0 ppq translates to 48000 samples at 48kHz sample rate. +.25 ppq is one sixteenth note then. if you need something like 480ppq, you simply multiply ppq by that scaler. +\note VstTimeInfo::barStartPos : Say we're at bars/beats readout 3.3.3. That's 2 bars + 2 q + 2 sixteenth, makes 2 * 4 + 2 + .25 = 10.25 ppq. at tempo 120, that's 10.25 * .5 = 5.125 seconds, times 48000 = 246000 samples (if my calculator servers me well :-). +\note VstTimeInfo::samplesToNextClock : MIDI Clock Resolution (24 per Quarter Note), can be negative the distance to the next midi clock (24 ppq, pulses per quarter) in samples. unless samplePos falls precicely on a midi clock, this will either be negative such that the previous MIDI clock is addressed, or positive when referencing the following (future) MIDI clock. +*/ +//------------------------------------------------------------------------------------------------------- +struct VstTimeInfo +{ +//------------------------------------------------------------------------------------------------------- + double samplePos; ///< current Position in audio samples (always valid) + double sampleRate; ///< current Sample Rate in Herz (always valid) + double nanoSeconds; ///< System Time in nanoseconds (10^-9 second) + double ppqPos; ///< Musical Position, in Quarter Note (1.0 equals 1 Quarter Note) + double tempo; ///< current Tempo in BPM (Beats Per Minute) + double barStartPos; ///< last Bar Start Position, in Quarter Note + double cycleStartPos; ///< Cycle Start (left locator), in Quarter Note + double cycleEndPos; ///< Cycle End (right locator), in Quarter Note + VstInt32 timeSigNumerator; ///< Time Signature Numerator (e.g. 3 for 3/4) + VstInt32 timeSigDenominator; ///< Time Signature Denominator (e.g. 4 for 3/4) + VstInt32 smpteOffset; ///< SMPTE offset (in SMPTE subframes (bits; 1/80 of a frame)). The current SMPTE position can be calculated using #samplePos, #sampleRate, and #smpteFrameRate. + VstInt32 smpteFrameRate; ///< @see VstSmpteFrameRate + VstInt32 samplesToNextClock; ///< MIDI Clock Resolution (24 Per Quarter Note), can be negative (nearest clock) + VstInt32 flags; ///< @see VstTimeInfoFlags +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Flags used in #VstTimeInfo. */ +//------------------------------------------------------------------------------------------------------- +enum VstTimeInfoFlags +{ +//------------------------------------------------------------------------------------------------------- + kVstTransportChanged = 1, ///< indicates that play, cycle or record state has changed + kVstTransportPlaying = 1 << 1, ///< set if Host sequencer is currently playing + kVstTransportCycleActive = 1 << 2, ///< set if Host sequencer is in cycle mode + kVstTransportRecording = 1 << 3, ///< set if Host sequencer is in record mode + kVstAutomationWriting = 1 << 6, ///< set if automation write mode active (record parameter changes) + kVstAutomationReading = 1 << 7, ///< set if automation read mode active (play parameter changes) + kVstNanosValid = 1 << 8, ///< VstTimeInfo::nanoSeconds valid + kVstPpqPosValid = 1 << 9, ///< VstTimeInfo::ppqPos valid + kVstTempoValid = 1 << 10, ///< VstTimeInfo::tempo valid + kVstBarsValid = 1 << 11, ///< VstTimeInfo::barStartPos valid + kVstCyclePosValid = 1 << 12, ///< VstTimeInfo::cycleStartPos and VstTimeInfo::cycleEndPos valid + kVstTimeSigValid = 1 << 13, ///< VstTimeInfo::timeSigNumerator and VstTimeInfo::timeSigDenominator valid + kVstSmpteValid = 1 << 14, ///< VstTimeInfo::smpteOffset and VstTimeInfo::smpteFrameRate valid + kVstClockValid = 1 << 15 ///< VstTimeInfo::samplesToNextClock valid +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** SMPTE Frame Rates. */ +//------------------------------------------------------------------------------------------------------- +enum VstSmpteFrameRate +{ +//------------------------------------------------------------------------------------------------------- + kVstSmpte24fps = 0, ///< 24 fps + kVstSmpte25fps = 1, ///< 25 fps + kVstSmpte2997fps = 2, ///< 29.97 fps + kVstSmpte30fps = 3, ///< 30 fps + kVstSmpte2997dfps = 4, ///< 29.97 drop + kVstSmpte30dfps = 5, ///< 30 drop + + kVstSmpteFilm16mm = 6, ///< Film 16mm + kVstSmpteFilm35mm = 7, ///< Film 35mm + kVstSmpte239fps = 10, ///< HDTV: 23.976 fps + kVstSmpte249fps = 11, ///< HDTV: 24.976 fps + kVstSmpte599fps = 12, ///< HDTV: 59.94 fps + kVstSmpte60fps = 13 ///< HDTV: 60 fps +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Variable IO for Offline Processing. */ +//------------------------------------------------------------------------------------------------------- +struct VstVariableIo +{ +//------------------------------------------------------------------------------------------------------- + float** inputs; ///< input audio buffers + float** outputs; ///< output audio buffers + VstInt32 numSamplesInput; ///< number of incoming samples + VstInt32 numSamplesOutput; ///< number of outgoing samples + VstInt32* numSamplesInputProcessed; ///< number of samples actually processed of input + VstInt32* numSamplesOutputProcessed; ///< number of samples actually processed of output +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Language code returned by audioMasterGetLanguage. */ +//------------------------------------------------------------------------------------------------------- +enum VstHostLanguage +{ +//------------------------------------------------------------------------------------------------------- + kVstLangEnglish = 1, ///< English + kVstLangGerman, ///< German + kVstLangFrench, ///< French + kVstLangItalian, ///< Italian + kVstLangSpanish, ///< Spanish + kVstLangJapanese ///< Japanese +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** VST 2.x dispatcher Opcodes (Plug-in to Host). Extension of #AudioMasterOpcodes */ +//------------------------------------------------------------------------------------------------------- +enum AudioMasterOpcodesX +{ +//------------------------------------------------------------------------------------------------------- + DECLARE_VST_DEPRECATED (audioMasterWantMidi) = DECLARE_VST_DEPRECATED (audioMasterPinConnected) + 2, ///< \deprecated deprecated in VST 2.4 + + audioMasterGetTime, ///< [return value]: #VstTimeInfo* or null if not supported [value]: request mask @see VstTimeInfoFlags @see AudioEffectX::getTimeInfo + audioMasterProcessEvents, ///< [ptr]: pointer to #VstEvents @see VstEvents @see AudioEffectX::sendVstEventsToHost + + DECLARE_VST_DEPRECATED (audioMasterSetTime), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (audioMasterTempoAt), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (audioMasterGetNumAutomatableParameters), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (audioMasterGetParameterQuantization), ///< \deprecated deprecated in VST 2.4 + + audioMasterIOChanged, ///< [return value]: 1 if supported @see AudioEffectX::ioChanged + + DECLARE_VST_DEPRECATED (audioMasterNeedIdle), ///< \deprecated deprecated in VST 2.4 + + audioMasterSizeWindow, ///< [index]: new width [value]: new height [return value]: 1 if supported @see AudioEffectX::sizeWindow + audioMasterGetSampleRate, ///< [return value]: current sample rate @see AudioEffectX::updateSampleRate + audioMasterGetBlockSize, ///< [return value]: current block size @see AudioEffectX::updateBlockSize + audioMasterGetInputLatency, ///< [return value]: input latency in audio samples @see AudioEffectX::getInputLatency + audioMasterGetOutputLatency, ///< [return value]: output latency in audio samples @see AudioEffectX::getOutputLatency + + DECLARE_VST_DEPRECATED (audioMasterGetPreviousPlug), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (audioMasterGetNextPlug), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (audioMasterWillReplaceOrAccumulate), ///< \deprecated deprecated in VST 2.4 + + audioMasterGetCurrentProcessLevel, ///< [return value]: current process level @see VstProcessLevels + audioMasterGetAutomationState, ///< [return value]: current automation state @see VstAutomationStates + + audioMasterOfflineStart, ///< [index]: numNewAudioFiles [value]: numAudioFiles [ptr]: #VstAudioFile* @see AudioEffectX::offlineStart + audioMasterOfflineRead, ///< [index]: bool readSource [value]: #VstOfflineOption* @see VstOfflineOption [ptr]: #VstOfflineTask* @see VstOfflineTask @see AudioEffectX::offlineRead + audioMasterOfflineWrite, ///< @see audioMasterOfflineRead @see AudioEffectX::offlineRead + audioMasterOfflineGetCurrentPass, ///< @see AudioEffectX::offlineGetCurrentPass + audioMasterOfflineGetCurrentMetaPass, ///< @see AudioEffectX::offlineGetCurrentMetaPass + + DECLARE_VST_DEPRECATED (audioMasterSetOutputSampleRate), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (audioMasterGetOutputSpeakerArrangement), ///< \deprecated deprecated in VST 2.4 + + audioMasterGetVendorString, ///< [ptr]: char buffer for vendor string, limited to #kVstMaxVendorStrLen @see AudioEffectX::getHostVendorString + audioMasterGetProductString, ///< [ptr]: char buffer for vendor string, limited to #kVstMaxProductStrLen @see AudioEffectX::getHostProductString + audioMasterGetVendorVersion, ///< [return value]: vendor-specific version @see AudioEffectX::getHostVendorVersion + audioMasterVendorSpecific, ///< no definition, vendor specific handling @see AudioEffectX::hostVendorSpecific + + DECLARE_VST_DEPRECATED (audioMasterSetIcon), ///< \deprecated deprecated in VST 2.4 + + audioMasterCanDo, ///< [ptr]: "can do" string [return value]: 1 for supported + audioMasterGetLanguage, ///< [return value]: language code @see VstHostLanguage + + DECLARE_VST_DEPRECATED (audioMasterOpenWindow), ///< \deprecated deprecated in VST 2.4 + DECLARE_VST_DEPRECATED (audioMasterCloseWindow), ///< \deprecated deprecated in VST 2.4 + + audioMasterGetDirectory, ///< [return value]: FSSpec on MAC, else char* @see AudioEffectX::getDirectory + audioMasterUpdateDisplay, ///< no arguments + audioMasterBeginEdit, ///< [index]: parameter index @see AudioEffectX::beginEdit + audioMasterEndEdit, ///< [index]: parameter index @see AudioEffectX::endEdit + audioMasterOpenFileSelector, ///< [ptr]: VstFileSelect* [return value]: 1 if supported @see AudioEffectX::openFileSelector + audioMasterCloseFileSelector, ///< [ptr]: VstFileSelect* @see AudioEffectX::closeFileSelector + + DECLARE_VST_DEPRECATED (audioMasterEditFile), ///< \deprecated deprecated in VST 2.4 + + DECLARE_VST_DEPRECATED (audioMasterGetChunkFile), ///< \deprecated deprecated in VST 2.4 [ptr]: char[2048] or sizeof (FSSpec) [return value]: 1 if supported @see AudioEffectX::getChunkFile + + DECLARE_VST_DEPRECATED (audioMasterGetInputSpeakerArrangement) ///< \deprecated deprecated in VST 2.4 +}; + +//------------------------------------------------------------------------------------------------------- +/** VST 2.x dispatcher Opcodes (Host to Plug-in). Extension of #AEffectOpcodes */ +//------------------------------------------------------------------------------------------------------- +enum AEffectXOpcodes +{ +//------------------------------------------------------------------------------------------------------- + effProcessEvents = effSetChunk + 1 ///< [ptr]: #VstEvents* @see AudioEffectX::processEvents + + , effCanBeAutomated ///< [index]: parameter index [return value]: 1=true, 0=false @see AudioEffectX::canParameterBeAutomated + , effString2Parameter ///< [index]: parameter index [ptr]: parameter string [return value]: true for success @see AudioEffectX::string2parameter + + , DECLARE_VST_DEPRECATED (effGetNumProgramCategories) ///< \deprecated deprecated in VST 2.4 + + , effGetProgramNameIndexed ///< [index]: program index [ptr]: buffer for program name, limited to #kVstMaxProgNameLen [return value]: true for success @see AudioEffectX::getProgramNameIndexed + + , DECLARE_VST_DEPRECATED (effCopyProgram) ///< \deprecated deprecated in VST 2.4 + , DECLARE_VST_DEPRECATED (effConnectInput) ///< \deprecated deprecated in VST 2.4 + , DECLARE_VST_DEPRECATED (effConnectOutput) ///< \deprecated deprecated in VST 2.4 + + , effGetInputProperties ///< [index]: input index [ptr]: #VstPinProperties* [return value]: 1 if supported @see AudioEffectX::getInputProperties + , effGetOutputProperties ///< [index]: output index [ptr]: #VstPinProperties* [return value]: 1 if supported @see AudioEffectX::getOutputProperties + , effGetPlugCategory ///< [return value]: category @see VstPlugCategory @see AudioEffectX::getPlugCategory + + , DECLARE_VST_DEPRECATED (effGetCurrentPosition) ///< \deprecated deprecated in VST 2.4 + , DECLARE_VST_DEPRECATED (effGetDestinationBuffer) ///< \deprecated deprecated in VST 2.4 + + , effOfflineNotify ///< [ptr]: #VstAudioFile array [value]: count [index]: start flag @see AudioEffectX::offlineNotify + , effOfflinePrepare ///< [ptr]: #VstOfflineTask array [value]: count @see AudioEffectX::offlinePrepare + , effOfflineRun ///< [ptr]: #VstOfflineTask array [value]: count @see AudioEffectX::offlineRun + + , effProcessVarIo ///< [ptr]: #VstVariableIo* @see AudioEffectX::processVariableIo + , effSetSpeakerArrangement ///< [value]: input #VstSpeakerArrangement* [ptr]: output #VstSpeakerArrangement* @see AudioEffectX::setSpeakerArrangement + + , DECLARE_VST_DEPRECATED (effSetBlockSizeAndSampleRate) ///< \deprecated deprecated in VST 2.4 + + , effSetBypass ///< [value]: 1 = bypass, 0 = no bypass @see AudioEffectX::setBypass + , effGetEffectName ///< [ptr]: buffer for effect name, limited to #kVstMaxEffectNameLen @see AudioEffectX::getEffectName + + , DECLARE_VST_DEPRECATED (effGetErrorText) ///< \deprecated deprecated in VST 2.4 + + , effGetVendorString ///< [ptr]: buffer for effect vendor string, limited to #kVstMaxVendorStrLen @see AudioEffectX::getVendorString + , effGetProductString ///< [ptr]: buffer for effect vendor string, limited to #kVstMaxProductStrLen @see AudioEffectX::getProductString + , effGetVendorVersion ///< [return value]: vendor-specific version @see AudioEffectX::getVendorVersion + , effVendorSpecific ///< no definition, vendor specific handling @see AudioEffectX::vendorSpecific + , effCanDo ///< [ptr]: "can do" string [return value]: 0: "don't know" -1: "no" 1: "yes" @see AudioEffectX::canDo + , effGetTailSize ///< [return value]: tail size (for example the reverb time of a reverb plug-in); 0 is default (return 1 for 'no tail') + + , DECLARE_VST_DEPRECATED (effIdle) ///< \deprecated deprecated in VST 2.4 + , DECLARE_VST_DEPRECATED (effGetIcon) ///< \deprecated deprecated in VST 2.4 + , DECLARE_VST_DEPRECATED (effSetViewPosition) ///< \deprecated deprecated in VST 2.4 + + , effGetParameterProperties ///< [index]: parameter index [ptr]: #VstParameterProperties* [return value]: 1 if supported @see AudioEffectX::getParameterProperties + + , DECLARE_VST_DEPRECATED (effKeysRequired) ///< \deprecated deprecated in VST 2.4 + + , effGetVstVersion ///< [return value]: VST version @see AudioEffectX::getVstVersion + +#if VST_2_1_EXTENSIONS + , effEditKeyDown ///< [index]: ASCII character [value]: virtual key [opt]: modifiers [return value]: 1 if key used @see AEffEditor::onKeyDown + , effEditKeyUp ///< [index]: ASCII character [value]: virtual key [opt]: modifiers [return value]: 1 if key used @see AEffEditor::onKeyUp + , effSetEditKnobMode ///< [value]: knob mode 0: circular, 1: circular relativ, 2: linear (CKnobMode in VSTGUI) @see AEffEditor::setKnobMode + + , effGetMidiProgramName ///< [index]: MIDI channel [ptr]: #MidiProgramName* [return value]: number of used programs, 0 if unsupported @see AudioEffectX::getMidiProgramName + , effGetCurrentMidiProgram ///< [index]: MIDI channel [ptr]: #MidiProgramName* [return value]: index of current program @see AudioEffectX::getCurrentMidiProgram + , effGetMidiProgramCategory ///< [index]: MIDI channel [ptr]: #MidiProgramCategory* [return value]: number of used categories, 0 if unsupported @see AudioEffectX::getMidiProgramCategory + , effHasMidiProgramsChanged ///< [index]: MIDI channel [return value]: 1 if the #MidiProgramName(s) or #MidiKeyName(s) have changed @see AudioEffectX::hasMidiProgramsChanged + , effGetMidiKeyName ///< [index]: MIDI channel [ptr]: #MidiKeyName* [return value]: true if supported, false otherwise @see AudioEffectX::getMidiKeyName + + , effBeginSetProgram ///< no arguments @see AudioEffectX::beginSetProgram + , effEndSetProgram ///< no arguments @see AudioEffectX::endSetProgram +#endif // VST_2_1_EXTENSIONS + +#if VST_2_3_EXTENSIONS + , effGetSpeakerArrangement ///< [value]: input #VstSpeakerArrangement* [ptr]: output #VstSpeakerArrangement* @see AudioEffectX::getSpeakerArrangement + , effShellGetNextPlugin ///< [ptr]: buffer for plug-in name, limited to #kVstMaxProductStrLen [return value]: next plugin's uniqueID @see AudioEffectX::getNextShellPlugin + + , effStartProcess ///< no arguments @see AudioEffectX::startProcess + , effStopProcess ///< no arguments @see AudioEffectX::stopProcess + , effSetTotalSampleToProcess ///< [value]: number of samples to process, offline only! @see AudioEffectX::setTotalSampleToProcess + , effSetPanLaw ///< [value]: pan law [opt]: gain @see VstPanLawType @see AudioEffectX::setPanLaw + + , effBeginLoadBank ///< [ptr]: #VstPatchChunkInfo* [return value]: -1: bank can't be loaded, 1: bank can be loaded, 0: unsupported @see AudioEffectX::beginLoadBank + , effBeginLoadProgram ///< [ptr]: #VstPatchChunkInfo* [return value]: -1: prog can't be loaded, 1: prog can be loaded, 0: unsupported @see AudioEffectX::beginLoadProgram +#endif // VST_2_3_EXTENSIONS + +#if VST_2_4_EXTENSIONS + , effSetProcessPrecision ///< [value]: @see VstProcessPrecision @see AudioEffectX::setProcessPrecision + , effGetNumMidiInputChannels ///< [return value]: number of used MIDI input channels (1-15) @see AudioEffectX::getNumMidiInputChannels + , effGetNumMidiOutputChannels ///< [return value]: number of used MIDI output channels (1-15) @see AudioEffectX::getNumMidiOutputChannels +#endif // VST_2_4_EXTENSIONS +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Symbolic precision constants used for effSetProcessPrecision. */ +//------------------------------------------------------------------------------------------------------- +enum VstProcessPrecision +{ + kVstProcessPrecision32 = 0, ///< single precision float (32bits) + kVstProcessPrecision64 ///< double precision (64bits) +}; + +//------------------------------------------------------------------------------------------------------- +/** Parameter Properties used in #effGetParameterProperties. */ +//------------------------------------------------------------------------------------------------------- +struct VstParameterProperties +{ +//------------------------------------------------------------------------------------------------------- + float stepFloat; ///< float step + float smallStepFloat; ///< small float step + float largeStepFloat; ///< large float step + char label[kVstMaxLabelLen];///< parameter label + VstInt32 flags; ///< @see VstParameterFlags + VstInt32 minInteger; ///< integer minimum + VstInt32 maxInteger; ///< integer maximum + VstInt32 stepInteger; ///< integer step + VstInt32 largeStepInteger; ///< large integer step + char shortLabel[kVstMaxShortLabelLen]; ///< short label, recommended: 6 + delimiter + + // The following are for remote controller display purposes. + // Note that the kVstParameterSupportsDisplayIndex flag must be set. + // Host can scan all parameters, and find out in what order + // to display them: + + VstInt16 displayIndex; ///< index where this parameter should be displayed (starting with 0) + + // Host can also possibly display the parameter group (category), such as... + // --------------------------- + // Osc 1 + // Wave Detune Octave Mod + // --------------------------- + // ...if the plug-in supports it (flag #kVstParameterSupportsDisplayCategory) + + VstInt16 category; ///< 0: no category, else group index + 1 + VstInt16 numParametersInCategory; ///< number of parameters in category + VstInt16 reserved; ///< zero + char categoryLabel[kVstMaxCategLabelLen]; ///< category label, e.g. "Osc 1" + + char future[16]; ///< reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Flags used in #VstParameterProperties. */ +//------------------------------------------------------------------------------------------------------- +enum VstParameterFlags +{ +//------------------------------------------------------------------------------------------------------- + kVstParameterIsSwitch = 1 << 0, ///< parameter is a switch (on/off) + kVstParameterUsesIntegerMinMax = 1 << 1, ///< minInteger, maxInteger valid + kVstParameterUsesFloatStep = 1 << 2, ///< stepFloat, smallStepFloat, largeStepFloat valid + kVstParameterUsesIntStep = 1 << 3, ///< stepInteger, largeStepInteger valid + kVstParameterSupportsDisplayIndex = 1 << 4, ///< displayIndex valid + kVstParameterSupportsDisplayCategory = 1 << 5, ///< category, etc. valid + kVstParameterCanRamp = 1 << 6 ///< set if parameter value can ramp up/down +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Pin Properties used in #effGetInputProperties and #effGetOutputProperties. */ +//------------------------------------------------------------------------------------------------------- +struct VstPinProperties +{ +//------------------------------------------------------------------------------------------------------- + char label[kVstMaxLabelLen]; ///< pin name + VstInt32 flags; ///< @see VstPinPropertiesFlags + VstInt32 arrangementType; ///< @see VstSpeakerArrangementType + char shortLabel[kVstMaxShortLabelLen]; ///< short name (recommended: 6 + delimiter) + + char future[48]; ///< reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Flags used in #VstPinProperties. */ +//------------------------------------------------------------------------------------------------------- +enum VstPinPropertiesFlags +{ +//------------------------------------------------------------------------------------------------------- + kVstPinIsActive = 1 << 0, ///< pin is active, ignored by Host + kVstPinIsStereo = 1 << 1, ///< pin is first of a stereo pair + kVstPinUseSpeaker = 1 << 2 ///< #VstPinProperties::arrangementType is valid and can be used to get the wanted arrangement +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Plug-in Categories. */ +//------------------------------------------------------------------------------------------------------- +enum VstPlugCategory +{ +//------------------------------------------------------------------------------------------------------- + kPlugCategUnknown = 0, ///< Unknown, category not implemented + kPlugCategEffect, ///< Simple Effect + kPlugCategSynth, ///< VST Instrument (Synths, samplers,...) + kPlugCategAnalysis, ///< Scope, Tuner, ... + kPlugCategMastering, ///< Dynamics, ... + kPlugCategSpacializer, ///< Panners, ... + kPlugCategRoomFx, ///< Delays and Reverbs + kPlugSurroundFx, ///< Dedicated surround processor + kPlugCategRestoration, ///< Denoiser, ... + kPlugCategOfflineProcess, ///< Offline Process + kPlugCategShell, ///< Plug-in is container of other plug-ins @see effShellGetNextPlugin + kPlugCategGenerator, ///< ToneGenerator, ... + + kPlugCategMaxCount ///< Marker to count the categories +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +// MIDI Programs +//------------------------------------------------------------------------------------------------------- +//------------------------------------------------------------------------------------------------------- +/** MIDI Program Description. */ +//------------------------------------------------------------------------------------------------------- +struct MidiProgramName +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 thisProgramIndex; ///< 0 or greater: fill struct for this program index + char name[kVstMaxNameLen]; ///< program name + char midiProgram; ///< -1:off, 0-127 + char midiBankMsb; ///< -1:off, 0-127 + char midiBankLsb; ///< -1:off, 0-127 + char reserved; ///< zero + VstInt32 parentCategoryIndex; ///< -1:no parent category + VstInt32 flags; ///< omni etc. @see VstMidiProgramNameFlags +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Flags used in MidiProgramName. */ +//------------------------------------------------------------------------------------------------------- +enum VstMidiProgramNameFlags +{ +//------------------------------------------------------------------------------------------------------- + kMidiIsOmni = 1 ///< default is multi. for omni mode, channel 0 is used for inquiries and program changes +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** MIDI Program Category. */ +//------------------------------------------------------------------------------------------------------- +struct MidiProgramCategory +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 thisCategoryIndex; ///< 0 or greater: fill struct for this category index. + char name[kVstMaxNameLen]; ///< name + VstInt32 parentCategoryIndex; ///< -1:no parent category + VstInt32 flags; ///< reserved, none defined yet, zero. +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** MIDI Key Description. */ +//------------------------------------------------------------------------------------------------------- +struct MidiKeyName +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 thisProgramIndex; ///< 0 or greater: fill struct for this program index. + VstInt32 thisKeyNumber; ///< 0 - 127. fill struct for this key number. + char keyName[kVstMaxNameLen]; ///< key name, empty means regular key names + VstInt32 reserved; ///< zero + VstInt32 flags; ///< reserved, none defined yet, zero. +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +// Surround Setup +//------------------------------------------------------------------------------------------------------- +//------------------------------------------------------------------------------------------------------- +/** Speaker Properties. + The origin for azimuth is right (as by math conventions dealing with radians). + The elevation origin is also right, visualizing a rotation of a circle across the + -pi/pi axis of the horizontal circle. Thus, an elevation of -pi/2 corresponds + to bottom, and a speaker standing on the left, and 'beaming' upwards would have + an azimuth of -pi, and an elevation of pi/2. + For user interface representation, grads are more likely to be used, and the + origins will obviously 'shift' accordingly. */ +//------------------------------------------------------------------------------------------------------- +struct VstSpeakerProperties +{ +//------------------------------------------------------------------------------------------------------- + float azimuth; ///< unit: rad, range: -PI...PI, exception: 10.f for LFE channel + float elevation; ///< unit: rad, range: -PI/2...PI/2, exception: 10.f for LFE channel + float radius; ///< unit: meter, exception: 0.f for LFE channel + float reserved; ///< zero (reserved for future use) + char name[kVstMaxNameLen]; ///< for new setups, new names should be given (L/R/C... won't do) + VstInt32 type; ///< @see VstSpeakerType + + char future[28]; ///< reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Speaker Arrangement. */ +//------------------------------------------------------------------------------------------------------- +struct VstSpeakerArrangement +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 type; ///< e.g. #kSpeakerArr51 for 5.1 @see VstSpeakerArrangementType + VstInt32 numChannels; ///< number of channels in this speaker arrangement + VstSpeakerProperties speakers[8]; ///< variable sized speaker array +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Speaker Types. */ +//------------------------------------------------------------------------------------------------------- +enum VstSpeakerType +{ +//------------------------------------------------------------------------------------------------------- + kSpeakerUndefined = 0x7fffffff, ///< Undefined + kSpeakerM = 0, ///< Mono (M) + kSpeakerL, ///< Left (L) + kSpeakerR, ///< Right (R) + kSpeakerC, ///< Center (C) + kSpeakerLfe, ///< Subbass (Lfe) + kSpeakerLs, ///< Left Surround (Ls) + kSpeakerRs, ///< Right Surround (Rs) + kSpeakerLc, ///< Left of Center (Lc) + kSpeakerRc, ///< Right of Center (Rc) + kSpeakerS, ///< Surround (S) + kSpeakerCs = kSpeakerS, ///< Center of Surround (Cs) = Surround (S) + kSpeakerSl, ///< Side Left (Sl) + kSpeakerSr, ///< Side Right (Sr) + kSpeakerTm, ///< Top Middle (Tm) + kSpeakerTfl, ///< Top Front Left (Tfl) + kSpeakerTfc, ///< Top Front Center (Tfc) + kSpeakerTfr, ///< Top Front Right (Tfr) + kSpeakerTrl, ///< Top Rear Left (Trl) + kSpeakerTrc, ///< Top Rear Center (Trc) + kSpeakerTrr, ///< Top Rear Right (Trr) + kSpeakerLfe2 ///< Subbass 2 (Lfe2) +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** User-defined speaker types, to be extended in the negative range. + Will be handled as their corresponding speaker types with abs values: + e.g abs(#kSpeakerU1) == #kSpeakerL, abs(#kSpeakerU2) == #kSpeakerR) */ +//------------------------------------------------------------------------------------------------------- +enum VstUserSpeakerType +{ +//------------------------------------------------------------------------------------------------------- + kSpeakerU32 = -32, + kSpeakerU31, + kSpeakerU30, + kSpeakerU29, + kSpeakerU28, + kSpeakerU27, + kSpeakerU26, + kSpeakerU25, + kSpeakerU24, + kSpeakerU23, + kSpeakerU22, + kSpeakerU21, + kSpeakerU20, ///< == #kSpeakerLfe2 + kSpeakerU19, ///< == #kSpeakerTrr + kSpeakerU18, ///< == #kSpeakerTrc + kSpeakerU17, ///< == #kSpeakerTrl + kSpeakerU16, ///< == #kSpeakerTfr + kSpeakerU15, ///< == #kSpeakerTfc + kSpeakerU14, ///< == #kSpeakerTfl + kSpeakerU13, ///< == #kSpeakerTm + kSpeakerU12, ///< == #kSpeakerSr + kSpeakerU11, ///< == #kSpeakerSl + kSpeakerU10, ///< == #kSpeakerCs + kSpeakerU9, ///< == #kSpeakerS + kSpeakerU8, ///< == #kSpeakerRc + kSpeakerU7, ///< == #kSpeakerLc + kSpeakerU6, ///< == #kSpeakerRs + kSpeakerU5, ///< == #kSpeakerLs + kSpeakerU4, ///< == #kSpeakerLfe + kSpeakerU3, ///< == #kSpeakerC + kSpeakerU2, ///< == #kSpeakerR + kSpeakerU1 ///< == #kSpeakerL +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Speaker Arrangement Types*/ +//------------------------------------------------------------------------------------------------------- +enum VstSpeakerArrangementType +{ +//------------------------------------------------------------------------------------------------------- + kSpeakerArrUserDefined = -2,///< user defined + kSpeakerArrEmpty = -1, ///< empty arrangement + kSpeakerArrMono = 0, ///< M + kSpeakerArrStereo, ///< L R + kSpeakerArrStereoSurround, ///< Ls Rs + kSpeakerArrStereoCenter, ///< Lc Rc + kSpeakerArrStereoSide, ///< Sl Sr + kSpeakerArrStereoCLfe, ///< C Lfe + kSpeakerArr30Cine, ///< L R C + kSpeakerArr30Music, ///< L R S + kSpeakerArr31Cine, ///< L R C Lfe + kSpeakerArr31Music, ///< L R Lfe S + kSpeakerArr40Cine, ///< L R C S (LCRS) + kSpeakerArr40Music, ///< L R Ls Rs (Quadro) + kSpeakerArr41Cine, ///< L R C Lfe S (LCRS+Lfe) + kSpeakerArr41Music, ///< L R Lfe Ls Rs (Quadro+Lfe) + kSpeakerArr50, ///< L R C Ls Rs + kSpeakerArr51, ///< L R C Lfe Ls Rs + kSpeakerArr60Cine, ///< L R C Ls Rs Cs + kSpeakerArr60Music, ///< L R Ls Rs Sl Sr + kSpeakerArr61Cine, ///< L R C Lfe Ls Rs Cs + kSpeakerArr61Music, ///< L R Lfe Ls Rs Sl Sr + kSpeakerArr70Cine, ///< L R C Ls Rs Lc Rc + kSpeakerArr70Music, ///< L R C Ls Rs Sl Sr + kSpeakerArr71Cine, ///< L R C Lfe Ls Rs Lc Rc + kSpeakerArr71Music, ///< L R C Lfe Ls Rs Sl Sr + kSpeakerArr80Cine, ///< L R C Ls Rs Lc Rc Cs + kSpeakerArr80Music, ///< L R C Ls Rs Cs Sl Sr + kSpeakerArr81Cine, ///< L R C Lfe Ls Rs Lc Rc Cs + kSpeakerArr81Music, ///< L R C Lfe Ls Rs Cs Sl Sr + kSpeakerArr102, ///< L R C Lfe Ls Rs Tfl Tfc Tfr Trl Trr Lfe2 + kNumSpeakerArr +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +// Offline Processing +//------------------------------------------------------------------------------------------------------- +//------------------------------------------------------------------------------------------------------- +/** Offline Task Description. */ +//------------------------------------------------------------------------------------------------------- +struct VstOfflineTask +{ +//------------------------------------------------------------------------------------------------------- + char processName[96]; ///< set by plug-in + + // audio access + double readPosition; ///< set by plug-in/Host + double writePosition; ///< set by plug-in/Host + VstInt32 readCount; ///< set by plug-in/Host + VstInt32 writeCount; ///< set by plug-in + VstInt32 sizeInputBuffer; ///< set by Host + VstInt32 sizeOutputBuffer; ///< set by Host + void* inputBuffer; ///< set by Host + void* outputBuffer; ///< set by Host + double positionToProcessFrom; ///< set by Host + double numFramesToProcess; ///< set by Host + double maxFramesToWrite; ///< set by plug-in + + // other data access + void* extraBuffer; ///< set by plug-in + VstInt32 value; ///< set by Host or plug-in + VstInt32 index; ///< set by Host or plug-in + + // file attributes + double numFramesInSourceFile; ///< set by Host + double sourceSampleRate; ///< set by Host or plug-in + double destinationSampleRate; ///< set by Host or plug-in + VstInt32 numSourceChannels; ///< set by Host or plug-in + VstInt32 numDestinationChannels;///< set by Host or plug-in + VstInt32 sourceFormat; ///< set by Host + VstInt32 destinationFormat; ///< set by plug-in + char outputText[512]; ///< set by plug-in or Host + + // progress notification + double progress; ///< set by plug-in + VstInt32 progressMode; ///< Reserved for future use + char progressText[100]; ///< set by plug-in + + VstInt32 flags; ///< set by Host and plug-in; see enum #VstOfflineTaskFlags + VstInt32 returnValue; ///< Reserved for future use + void* hostOwned; ///< set by Host + void* plugOwned; ///< set by plug-in + + char future[1024]; ///< Reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Flags used in #VstOfflineTask. */ +//------------------------------------------------------------------------------------------------------- +enum VstOfflineTaskFlags +{ +//------------------------------------------------------------------------------------------------------- + kVstOfflineUnvalidParameter = 1 << 0, ///< set by Host + kVstOfflineNewFile = 1 << 1, ///< set by Host + + kVstOfflinePlugError = 1 << 10, ///< set by plug-in + kVstOfflineInterleavedAudio = 1 << 11, ///< set by plug-in + kVstOfflineTempOutputFile = 1 << 12, ///< set by plug-in + kVstOfflineFloatOutputFile = 1 << 13, ///< set by plug-in + kVstOfflineRandomWrite = 1 << 14, ///< set by plug-in + kVstOfflineStretch = 1 << 15, ///< set by plug-in + kVstOfflineNoThread = 1 << 16 ///< set by plug-in +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Option passed to #offlineRead/#offlineWrite. */ +//------------------------------------------------------------------------------------------------------- +enum VstOfflineOption +{ +//------------------------------------------------------------------------------------------------------- + kVstOfflineAudio, ///< reading/writing audio samples + kVstOfflinePeaks, ///< reading graphic representation + kVstOfflineParameter, ///< reading/writing parameters + kVstOfflineMarker, ///< reading/writing marker + kVstOfflineCursor, ///< reading/moving edit cursor + kVstOfflineSelection, ///< reading/changing selection + kVstOfflineQueryFiles ///< to request the Host to call asynchronously #offlineNotify +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Structure passed to #offlineNotify and #offlineStart */ +//------------------------------------------------------------------------------------------------------- +struct VstAudioFile +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 flags; ///< see enum #VstAudioFileFlags + void* hostOwned; ///< any data private to Host + void* plugOwned; ///< any data private to plug-in + char name[kVstMaxFileNameLen]; ///< file title + VstInt32 uniqueId; ///< uniquely identify a file during a session + double sampleRate; ///< file sample rate + VstInt32 numChannels; ///< number of channels (1 for mono, 2 for stereo...) + double numFrames; ///< number of frames in the audio file + VstInt32 format; ///< Reserved for future use + double editCursorPosition; ///< -1 if no such cursor + double selectionStart; ///< frame index of first selected frame, or -1 + double selectionSize; ///< number of frames in selection, or 0 + VstInt32 selectedChannelsMask; ///< 1 bit per channel + VstInt32 numMarkers; ///< number of markers in the file + VstInt32 timeRulerUnit; ///< see doc for possible values + double timeRulerOffset; ///< offset in time ruler (positive or negative) + double tempo; ///< as BPM (Beats Per Minute) + VstInt32 timeSigNumerator; ///< time signature numerator + VstInt32 timeSigDenominator; ///< time signature denominator + VstInt32 ticksPerBlackNote; ///< resolution + VstInt32 smpteFrameRate; ///< SMPTE rate (set as in #VstTimeInfo) + + char future[64]; ///< Reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Flags used in #VstAudioFile. */ +//------------------------------------------------------------------------------------------------------- +enum VstAudioFileFlags +{ +//------------------------------------------------------------------------------------------------------- + kVstOfflineReadOnly = 1 << 0, ///< set by Host (in call #offlineNotify) + kVstOfflineNoRateConversion = 1 << 1, ///< set by Host (in call #offlineNotify) + kVstOfflineNoChannelChange = 1 << 2, ///< set by Host (in call #offlineNotify) + + kVstOfflineCanProcessSelection = 1 << 10, ///< set by plug-in (in call #offlineStart) + kVstOfflineNoCrossfade = 1 << 11, ///< set by plug-in (in call #offlineStart) + kVstOfflineWantRead = 1 << 12, ///< set by plug-in (in call #offlineStart) + kVstOfflineWantWrite = 1 << 13, ///< set by plug-in (in call #offlineStart) + kVstOfflineWantWriteMarker = 1 << 14, ///< set by plug-in (in call #offlineStart) + kVstOfflineWantMoveCursor = 1 << 15, ///< set by plug-in (in call #offlineStart) + kVstOfflineWantSelect = 1 << 16 ///< set by plug-in (in call #offlineStart) +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Audio file marker. */ +//------------------------------------------------------------------------------------------------------- +struct VstAudioFileMarker +{ +//------------------------------------------------------------------------------------------------------- + double position; ///< marker position + char name[32]; ///< marker name + VstInt32 type; ///< marker type + VstInt32 id; ///< marker identifier + VstInt32 reserved; ///< reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +// Others +//------------------------------------------------------------------------------------------------------- + +//------------------------------------------------------------------------------------------------------- +/** \deprecated Structure used for #openWindow and #closeWindow (deprecated in VST 2.4). */ +//------------------------------------------------------------------------------------------------------- +struct DECLARE_VST_DEPRECATED (VstWindow) +{ +//------------------------------------------------------------------------------------------------------- + char title[128]; + VstInt16 xPos; + VstInt16 yPos; + VstInt16 width; + VstInt16 height; + VstInt32 style; + void* parent; + void* userHandle; + void* winHandle; + + char future[104]; +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Structure used for keyUp/keyDown. */ +//------------------------------------------------------------------------------------------------------- +struct VstKeyCode +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 character; ///< ASCII character + unsigned char virt; ///< @see VstVirtualKey + unsigned char modifier; ///< @see VstModifierKey +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Platform-independent definition of Virtual Keys (used in #VstKeyCode). */ +//------------------------------------------------------------------------------------------------------- +enum VstVirtualKey +{ +//------------------------------------------------------------------------------------------------------- + VKEY_BACK = 1, + VKEY_TAB, + VKEY_CLEAR, + VKEY_RETURN, + VKEY_PAUSE, + VKEY_ESCAPE, + VKEY_SPACE, + VKEY_NEXT, + VKEY_END, + VKEY_HOME, + VKEY_LEFT, + VKEY_UP, + VKEY_RIGHT, + VKEY_DOWN, + VKEY_PAGEUP, + VKEY_PAGEDOWN, + VKEY_SELECT, + VKEY_PRINT, + VKEY_ENTER, + VKEY_SNAPSHOT, + VKEY_INSERT, + VKEY_DELETE, + VKEY_HELP, + VKEY_NUMPAD0, + VKEY_NUMPAD1, + VKEY_NUMPAD2, + VKEY_NUMPAD3, + VKEY_NUMPAD4, + VKEY_NUMPAD5, + VKEY_NUMPAD6, + VKEY_NUMPAD7, + VKEY_NUMPAD8, + VKEY_NUMPAD9, + VKEY_MULTIPLY, + VKEY_ADD, + VKEY_SEPARATOR, + VKEY_SUBTRACT, + VKEY_DECIMAL, + VKEY_DIVIDE, + VKEY_F1, + VKEY_F2, + VKEY_F3, + VKEY_F4, + VKEY_F5, + VKEY_F6, + VKEY_F7, + VKEY_F8, + VKEY_F9, + VKEY_F10, + VKEY_F11, + VKEY_F12, + VKEY_NUMLOCK, + VKEY_SCROLL, + VKEY_SHIFT, + VKEY_CONTROL, + VKEY_ALT, + VKEY_EQUALS +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Modifier flags used in #VstKeyCode. */ +//------------------------------------------------------------------------------------------------------- +enum VstModifierKey +{ +//------------------------------------------------------------------------------------------------------- + MODIFIER_SHIFT = 1<<0, ///< Shift + MODIFIER_ALTERNATE = 1<<1, ///< Alt + MODIFIER_COMMAND = 1<<2, ///< Control on Mac + MODIFIER_CONTROL = 1<<3 ///< Ctrl on PC, Apple on Mac +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** File filter used in #VstFileSelect. */ +//------------------------------------------------------------------------------------------------------- +struct VstFileType +{ +//------------------------------------------------------------------------------------------------------- + char name[128]; ///< display name + char macType[8]; ///< MacOS type + char dosType[8]; ///< Windows file extension + char unixType[8]; ///< Unix file extension + char mimeType1[128]; ///< MIME type + char mimeType2[128]; ///< additional MIME type + + VstFileType (const char* _name = 0, const char* _macType = 0, const char* _dosType = 0, + const char* _unixType = 0, const char* _mimeType1 = 0, const char* _mimeType2 = 0) + { + vst_strncpy (name, _name ? _name : "", 127); + vst_strncpy (macType, _macType ? _macType : "", 7); + vst_strncpy (dosType, _dosType ? _dosType : "", 7); + vst_strncpy (unixType, _unixType ? _unixType : "", 7); + vst_strncpy (mimeType1, _mimeType1 ? _mimeType1 : "", 127); + vst_strncpy (mimeType2, _mimeType2 ? _mimeType2 : "", 127); + } +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** File Selector Description used in #audioMasterOpenFileSelector. */ +//------------------------------------------------------------------------------------------------------- +struct VstFileSelect +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 command; ///< @see VstFileSelectCommand + VstInt32 type; ///< @see VstFileSelectType + VstInt32 macCreator; ///< optional: 0 = no creator + VstInt32 nbFileTypes; ///< number of fileTypes + VstFileType* fileTypes; ///< list of fileTypes @see VstFileType + char title[1024]; ///< text to display in file selector's title + char* initialPath; ///< initial path + char* returnPath; ///< use with #kVstFileLoad and #kVstDirectorySelect. null: Host allocates memory, plug-in must call #closeOpenFileSelector! + VstInt32 sizeReturnPath; ///< size of allocated memory for return paths + char** returnMultiplePaths; ///< use with kVstMultipleFilesLoad. Host allocates memory, plug-in must call #closeOpenFileSelector! + VstInt32 nbReturnPath; ///< number of selected paths + VstIntPtr reserved; ///< reserved for Host application + + char future[116]; ///< reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Command constants used in #VstFileSelect structure. */ +//------------------------------------------------------------------------------------------------------- +enum VstFileSelectCommand +{ +//------------------------------------------------------------------------------------------------------- + kVstFileLoad = 0, ///< for loading a file + kVstFileSave, ///< for saving a file + kVstMultipleFilesLoad, ///< for loading multiple files + kVstDirectorySelect ///< for selecting a directory/folder +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Types used in #VstFileSelect structure. */ +//------------------------------------------------------------------------------------------------------- +enum VstFileSelectType +{ +//------------------------------------------------------------------------------------------------------- + kVstFileType = 0 ///< regular file selector +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Structure used for #effBeginLoadBank/#effBeginLoadProgram. */ +//------------------------------------------------------------------------------------------------------- +struct VstPatchChunkInfo +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 version; ///< Format Version (should be 1) + VstInt32 pluginUniqueID; ///< UniqueID of the plug-in + VstInt32 pluginVersion; ///< Plug-in Version + VstInt32 numElements; ///< Number of Programs (Bank) or Parameters (Program) + + char future[48]; ///< Reserved for future use +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** PanLaw Type. */ +//------------------------------------------------------------------------------------------------------- +enum VstPanLawType +{ +//------------------------------------------------------------------------------------------------------- + kLinearPanLaw = 0, ///< L = pan * M; R = (1 - pan) * M; + kEqualPowerPanLaw ///< L = pow (pan, 0.5) * M; R = pow ((1 - pan), 0.5) * M; +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Process Levels returned by #audioMasterGetCurrentProcessLevel. */ +//------------------------------------------------------------------------------------------------------- +enum VstProcessLevels +{ +//------------------------------------------------------------------------------------------------------- + kVstProcessLevelUnknown = 0, ///< not supported by Host + kVstProcessLevelUser, ///< 1: currently in user thread (GUI) + kVstProcessLevelRealtime, ///< 2: currently in audio thread (where process is called) + kVstProcessLevelPrefetch, ///< 3: currently in 'sequencer' thread (MIDI, timer etc) + kVstProcessLevelOffline ///< 4: currently offline processing and thus in user thread +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Automation States returned by #audioMasterGetAutomationState. */ +//------------------------------------------------------------------------------------------------------- +enum VstAutomationStates +{ +//------------------------------------------------------------------------------------------------------- + kVstAutomationUnsupported = 0, ///< not supported by Host + kVstAutomationOff, ///< off + kVstAutomationRead, ///< read + kVstAutomationWrite, ///< write + kVstAutomationReadWrite ///< read and write +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +#if TARGET_API_MAC_CARBON + #pragma options align=reset +#elif defined(WIN32) || defined(__FLAT__) || defined(__GNUC__) + #pragma pack(pop) +#elif defined __BORLANDC__ + #pragma -a- +#endif +//------------------------------------------------------------------------------------------------------- + +#endif //__aeffectx__ diff --git a/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/vstfxstore.h b/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/vstfxstore.h new file mode 100644 index 0000000..c66b86d --- /dev/null +++ b/src/backend/src/engine/src/host/vst2/pluginterfaces/vst2.x/vstfxstore.h @@ -0,0 +1,106 @@ +//------------------------------------------------------------------------------------------------------- +// VST Plug-Ins SDK +// Version 2.4 $Date: 2006/02/09 11:05:51 $ +// +// Category : VST 2.x Interfaces +// Filename : vstfxstore.h +// Created by : Steinberg Media Technologies +// Description : Definition of Program (fxp) and Bank (fxb) structures +// +// © 2006, Steinberg Media Technologies, All Rights Reserved +//------------------------------------------------------------------------------------------------------- + +#ifndef __vstfxstore__ +#define __vstfxstore__ + +#ifndef __aeffect__ +#include "aeffect.h" +#endif + +//------------------------------------------------------------------------------------------------------- +/** Root chunk identifier for Programs (fxp) and Banks (fxb). */ +#define cMagic 'CcnK' + +/** Regular Program (fxp) identifier. */ +#define fMagic 'FxCk' + +/** Regular Bank (fxb) identifier. */ +#define bankMagic 'FxBk' + +/** Program (fxp) identifier for opaque chunk data. */ +#define chunkPresetMagic 'FPCh' + +/** Bank (fxb) identifier for opaque chunk data. */ +#define chunkBankMagic 'FBCh' + +/* + Note: The C data structures below are for illustration only. You can not read/write them directly. + The byte order on disk of fxp and fxb files is Big Endian. You have to swap integer + and floating-point values on Little Endian platforms (Windows, MacIntel)! +*/ + +//------------------------------------------------------------------------------------------------------- +/** Program (fxp) structure. */ +//------------------------------------------------------------------------------------------------------- +struct fxProgram +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 chunkMagic; ///< 'CcnK' + VstInt32 byteSize; ///< size of this chunk, excl. magic + byteSize + + VstInt32 fxMagic; ///< 'FxCk' (regular) or 'FPCh' (opaque chunk) + VstInt32 version; ///< format version (currently 1) + VstInt32 fxID; ///< fx unique ID + VstInt32 fxVersion; ///< fx version + + VstInt32 numParams; ///< number of parameters + char prgName[28]; ///< program name (null-terminated ASCII string) + + union + { + float params[1]; ///< variable sized array with parameter values + struct + { + VstInt32 size; ///< size of program data + char chunk[1]; ///< variable sized array with opaque program data + } data; ///< program chunk data + } content; ///< program content depending on fxMagic +//------------------------------------------------------------------------------------------------------- +}; + +//------------------------------------------------------------------------------------------------------- +/** Bank (fxb) structure. */ +//------------------------------------------------------------------------------------------------------- +struct fxBank +{ +//------------------------------------------------------------------------------------------------------- + VstInt32 chunkMagic; ///< 'CcnK' + VstInt32 byteSize; ///< size of this chunk, excl. magic + byteSize + + VstInt32 fxMagic; ///< 'FxBk' (regular) or 'FBCh' (opaque chunk) + VstInt32 version; ///< format version (1 or 2) + VstInt32 fxID; ///< fx unique ID + VstInt32 fxVersion; ///< fx version + + VstInt32 numPrograms; ///< number of programs + +#if VST_2_4_EXTENSIONS + VstInt32 currentProgram; ///< version 2: current program number + char future[124]; ///< reserved, should be zero +#else + char future[128]; ///< reserved, should be zero +#endif + + union + { + fxProgram programs[1]; ///< variable number of programs + struct + { + VstInt32 size; ///< size of bank data + char chunk[1]; ///< variable sized array with opaque bank data + } data; ///< bank chunk data + } content; ///< bank content depending on fxMagic +//------------------------------------------------------------------------------------------------------- +}; + +#endif // __vstfxstore__ diff --git a/src/backend/src/engine/src/host/vst2/vst2_host.cpp b/src/backend/src/engine/src/host/vst2/vst2_host.cpp new file mode 100644 index 0000000..25746e2 --- /dev/null +++ b/src/backend/src/engine/src/host/vst2/vst2_host.cpp @@ -0,0 +1 @@ +#include "vst2_host.h" diff --git a/src/backend/src/engine/src/host/vst2/vst2_host.h b/src/backend/src/engine/src/host/vst2/vst2_host.h new file mode 100644 index 0000000..d3f0178 --- /dev/null +++ b/src/backend/src/engine/src/host/vst2/vst2_host.h @@ -0,0 +1,5 @@ +#pragma once + +class vst2_host { + +}; diff --git a/src/backend/src/engine/src/main.cpp b/src/backend/src/engine/src/main.cpp index a795f3e..a7e18cf 100644 --- a/src/backend/src/engine/src/main.cpp +++ b/src/backend/src/engine/src/main.cpp @@ -1,67 +1,184 @@ - +#include +#include +#include +#include +#include #include +#include +#include +#include -#include "ipc/shm_mgr.h" - -#include "plugin_manage/plugin_host_manager.h" - -#include "misc_type.h" #include "ipc/ipc_node.h" +#include "ipc/shm_mgr.h" +#include "misc_type.h" +#include "plugin_manage/plugin_host_manager.h" #include "rpc/engine_rpc.h" boost::atomic* engine_heartbeat = nullptr; -int main(int argc, char *argv[]) -{ - shm_mgr::get_instance().init(true); - (void)shm_mgr::msg_shm().destroy>("engine_heartbeat"); - engine_heartbeat = shm_mgr::msg_shm().construct_with_name>("engine_heartbeat", std::chrono::high_resolution_clock::now().time_since_epoch().count()); - // 创建一个心跳线程 - std::thread([]() { - while (engine_heartbeat && *engine_heartbeat != 0) { - *engine_heartbeat = std::chrono::high_resolution_clock::now().time_since_epoch().count(); - std::this_thread::sleep_for(std::chrono::milliseconds(100)); - } - }).detach(); +namespace { +constexpr float PI = 3.14159265359f; +} - engine_ipc_node node; +class AudioEngine { +public: + static constexpr size_t AUDIO_BLOCK_SIZE = 512; + static constexpr size_t SAMPLE_RATE = 44100; + static constexpr std::chrono::milliseconds PROCESSING_INTERVAL{10}; - auto& host_manager = plugin_host_manager::get_instance(); - auto host_ins = host_manager.load_plugin(R"(D:\Projects\Alicho\src\backend\src\vst2_host\test\4Front Piano x64.dll)"); + AudioEngine() : running_(false), processing_(false) {} - bool processing = false; - while (true) { - node.process_rpc(); - host_manager.tick(); + void start() { + running_ = true; - auto& rb = host_ins->plugin_node_.get_audio_rb(); - const auto& processed = rb.get_processed_block(); - if (!processed.data) { - if (!processing) { - const auto& b = rb.acquire_pending_block(512); - if (b.data) { - // 填充0 - for (size_t i = 0; i < b.size; ++i) { - b.data[i] = 0.0f; - } - } - rb.commit_pending_block(b); - } - processing = true; - } else { - // 打印数据 - for (int i = 0; i < processed.size; ++i) { - std::cout << processed.data[i] << " "; - } - std::cout << std::endl; - rb.release_processed_block(); - processing = false; - } + shm_mgr::get_instance().init(true); - std::this_thread::sleep_for(std::chrono::milliseconds::zero()); + (void)shm_mgr::msg_shm().destroy>("engine_heartbeat"); + engine_heartbeat = shm_mgr::msg_shm().construct_with_name>( + "engine_heartbeat", std::chrono::high_resolution_clock::now().time_since_epoch().count()); + + heartbeat_thread_ = std::thread([this]() { heartbeat_loop(); }); + audio_thread_ = std::thread([this]() { audio_processing_loop(); }); } - *engine_heartbeat = 0; + void stop() { + running_ = false; + cv_.notify_all(); + + if (heartbeat_thread_.joinable()) { + heartbeat_thread_.join(); + } + if (audio_thread_.joinable()) { + audio_thread_.join(); + } + + if (engine_heartbeat) { + *engine_heartbeat = 0; + } + } + +private: + void heartbeat_loop() { + while (running_) { + if (engine_heartbeat) { + *engine_heartbeat = std::chrono::high_resolution_clock::now().time_since_epoch().count(); + } + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + } + + void audio_processing_loop() { + engine_ipc_node node; + auto& host_manager = plugin_host_manager::get_instance(); + auto host_instance = host_manager.load_plugin(R"(D:\Projects\Alicho\src\backend\src\vst2_host\test\4Front Piano x64.dll)"); + if (!host_instance) { + std::cerr << "Failed to load plugin" << std::endl; + return; + } + + auto& audio_rb = host_instance->plugin_node_.get_audio_rb(); + + setup_audio_parameters(host_instance); + + std::unique_lock lock(mutex_); + + while (running_) { + auto start_time = std::chrono::steady_clock::now(); + + node.process_rpc(); + host_manager.tick(); + + if (!host_instance->is_process_running()) { + std::cerr << "Plugin process is no longer running." << std::endl; + break; + } + + process_audio_blocks(audio_rb); + + auto end_time = std::chrono::steady_clock::now(); + auto elapsed = std::chrono::duration_cast(end_time - start_time); + + if (elapsed < PROCESSING_INTERVAL) { + auto sleep_time = PROCESSING_INTERVAL - elapsed; + cv_.wait_for(lock, sleep_time, [this] { return !running_; }); + } else { + std::cerr << "Audio processing timeout: " << elapsed.count() << "ms" << std::endl; + } + } + } + + void setup_audio_parameters(const std::shared_ptr& /*plugin*/) { + // TODO: propagate engine sample rate and block size to the plugin host via RPC. + } + + void process_audio_blocks(audio_ring_buffer& rb) { + const auto processed_block = rb.get_processed_block(); + + if (!processed_block.data) { + if (!processing_) { + const auto pending_block = rb.acquire_pending_block(AUDIO_BLOCK_SIZE); + if (pending_block.data) { + generate_audio_data(pending_block); + rb.commit_pending_block(pending_block); + } + } + processing_ = true; + } else { + handle_processed_audio(processed_block); + rb.release_processed_block(); + processing_ = false; + } + } + + void generate_audio_data(const audio_ring_buffer::audio_block& block) { + static float phase = 0.0f; + const float frequency = 440.0f; + const float phase_increment = 2.0f * PI * frequency / static_cast(SAMPLE_RATE); + + for (size_t i = 0; i < block.size; ++i) { + block.data[i] = std::sin(phase) * 0.1f; + phase += phase_increment; + if (phase > 2.0f * PI) { + phase -= 2.0f * PI; + } + } + } + + void handle_processed_audio(const audio_ring_buffer::audio_block& block) { + float peak = 0.0f; + float rms = 0.0f; + + for (size_t i = 0; i < block.size; ++i) { + const float sample = std::abs(block.data[i]); + peak = std::max(peak, sample); + rms += sample * sample; + } + + rms = std::sqrt(rms / static_cast(block.size)); + + static int counter = 0; + if (++counter % 100 == 0) { + std::cout << "Audio stats - Peak: " << peak << ", RMS: " << rms << std::endl; + } + } + + std::thread heartbeat_thread_; + std::thread audio_thread_; + std::atomic running_; + std::atomic processing_; + std::mutex mutex_; + std::condition_variable cv_; +}; + +int main(int /*argc*/, char* /*argv*/[]) { + AudioEngine engine; + + engine.start(); + + std::cout << "Audio engine started. Press Enter to stop..." << std::endl; + std::cin.get(); + + engine.stop(); return 0; } diff --git a/src/backend/src/engine/src/plugin_manage/plugin_host_manager.cpp b/src/backend/src/engine/src/plugin_manage/plugin_host_manager.cpp index f8cbf3e..d4ecaa5 100644 --- a/src/backend/src/engine/src/plugin_manage/plugin_host_manager.cpp +++ b/src/backend/src/engine/src/plugin_manage/plugin_host_manager.cpp @@ -1,7 +1,11 @@ #include "plugin_host_manager.h" +#include #include +#include +#include #include +#include #include "plugin_instance.h" @@ -13,48 +17,87 @@ plugin_host_manager::~plugin_host_manager() { ids_to_unload.push_back(id); } } + + // Request graceful shutdown for all plugins first. + for (const auto& id: ids_to_unload) { + if (auto instance = get_plugin_instance(id)) { + instance->request_graceful_shutdown(); + } + } + + // Give plugins a moment to exit cleanly. + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + + // Then force terminate any remaining processes. for (const auto& id: ids_to_unload) { unload_plugin(id); } } -plugin_instance* plugin_host_manager::load_plugin(const std::filesystem::path& plugin_binary_path) { +std::shared_ptr plugin_host_manager::load_plugin(const std::filesystem::path& plugin_binary_path) { auto plugin_id = get_next_plugin_id(); - plugin_instance* ptr = nullptr; + std::shared_ptr instance; try { - auto instance = std::make_unique(io_context_, plugin_id, plugin_binary_path); - ptr = instance.get(); + instance = std::make_shared(io_context_, plugin_id, plugin_binary_path); + + // Remove the instance from the manager once the host process exits. + instance->async_wait_for_exit([this, plugin_id](int exit_code) { + spdlog::info("Plugin {} exited with code {}", plugin_id, exit_code); + + std::lock_guard lock(mutex_); + plugin_instances_.erase(plugin_id); + }); std::lock_guard lock(mutex_); - plugin_instances_.emplace(plugin_id, std::move(instance)); + plugin_instances_.emplace(plugin_id, instance); } catch (const std::exception& e) { - // TODO: 如果创建失败,清理已分配的资源 spdlog::error("无法加载插件 {}:{}", plugin_binary_path.string(), e.what()); } - return ptr; + return instance; } void plugin_host_manager::unload_plugin(uint32_t plugin_id) { if (auto instance = get_plugin_instance(plugin_id)) { - instance->kill_process(true); + // Try graceful shutdown first. + instance->request_graceful_shutdown(); + + // Allow a short grace period. + std::this_thread::sleep_for(std::chrono::milliseconds(50)); + + // Force terminate if the process is still running. + if (instance->is_process_running()) { + instance->kill_process(true); + } + std::lock_guard lock(mutex_); plugin_instances_.erase(plugin_id); } } void plugin_host_manager::tick() { + // Service asynchronous operations. + io_context_.poll(); -} - -plugin_instance* plugin_host_manager::get_plugin_instance(uint32_t plugin_id) { + // Remove dead plugin instances. std::lock_guard lock(mutex_); - const auto& it = plugin_instances_.find(plugin_id); - if (it != plugin_instances_.end()) { - return it->second.get(); + for (auto it = plugin_instances_.begin(); it != plugin_instances_.end(); ) { + if (!it->second->is_process_running()) { + spdlog::info("Removing dead plugin instance {}", it->first); + it = plugin_instances_.erase(it); + } else { + ++it; + } } - return nullptr; } +std::shared_ptr plugin_host_manager::get_plugin_instance(uint32_t plugin_id) { + std::lock_guard lock(mutex_); + const auto it = plugin_instances_.find(plugin_id); + if (it != plugin_instances_.end()) { + return it->second; + } + return {}; +} diff --git a/src/backend/src/engine/src/plugin_manage/plugin_host_manager.h b/src/backend/src/engine/src/plugin_manage/plugin_host_manager.h index c306f20..db23ea1 100644 --- a/src/backend/src/engine/src/plugin_manage/plugin_host_manager.h +++ b/src/backend/src/engine/src/plugin_manage/plugin_host_manager.h @@ -1,6 +1,8 @@ #pragma once +#include #include #include +#include #include "lazy_singleton.h" #include "plugin_instance.h" @@ -9,11 +11,11 @@ class plugin_host_manager : public lazy_singleton { public: ~plugin_host_manager(); - plugin_instance* load_plugin(const std::filesystem::path& plugin_binary_path); + std::shared_ptr load_plugin(const std::filesystem::path& plugin_binary_path); void unload_plugin(uint32_t plugin_id); void tick(); - plugin_instance* get_plugin_instance(uint32_t plugin_id); + std::shared_ptr get_plugin_instance(uint32_t plugin_id); template void for_each_plugin_instance(Func&& func) { @@ -28,7 +30,7 @@ private: } std::mutex mutex_; - std::unordered_map> plugin_instances_; + std::unordered_map> plugin_instances_; std::atomic_uint32_t plugin_id_ = 1; boost::asio::io_context io_context_; }; diff --git a/src/backend/src/engine/src/plugin_manage/plugin_instance.cpp b/src/backend/src/engine/src/plugin_manage/plugin_instance.cpp index 9d8b6b1..ec38d1c 100644 --- a/src/backend/src/engine/src/plugin_manage/plugin_instance.cpp +++ b/src/backend/src/engine/src/plugin_manage/plugin_instance.cpp @@ -1,9 +1,10 @@ #include "plugin_instance.h" #include +#include namespace bi = boost::interprocess; -namespace bp = boost::process; +namespace bp = boost::process_v2; [[nodiscard]] static auto get_plugin_id_name(uint32_t in_id) { return "plugin_" + std::to_string(in_id); @@ -35,7 +36,13 @@ auto execute_plugin_process(uint32_t id, boost::asio::io_context& ctx, const std throw std::runtime_error("未找到主机可执行文件:" + host_path.string()); } - return new bp::process(ctx, host_path.string(), { get_plugin_id_name(id) }); + // 使用最新的Boost.Process v2 API + try { + return std::make_unique(ctx, host_path.string(), bp::process::args_t{get_plugin_id_name(id)}); + } catch (const std::exception& e) { + spdlog::error("Failed to create plugin process: {}", e.what()); + throw; + } } plugin_instance::plugin_instance(boost::asio::io_context& ctx, @@ -53,13 +60,38 @@ plugin_instance::plugin_instance(boost::asio::io_context& ctx, // output_queue = output_segment->find_or_construct("output_queue")(); plugin_node_.get_audio_rb().create_buffer(get_plugin_id_name(id), 10, 512); // 10块512采样点的缓冲区 - process = std::shared_ptr(execute_plugin_process(id, ctx, in_plugin_path), [](boost::process::process* p) { - delete p; - }); - if (!is_process_running()) { - throw std::runtime_error("插件进程启动失败, 退出码: " + std::to_string(process->exit_code())); + + process = execute_plugin_process(id, ctx, in_plugin_path); + + if (!process || !is_process_running()) { + throw std::runtime_error("插件进程启动失败"); } + + // 设置进程退出回调 + process->async_wait([this](boost::system::error_code ec, int exit_code) { + if (!ec) { + spdlog::info("Plugin process {} exited with code {}", id, exit_code); + // 在这里可以处理进程退出事件 + is_processing_done = true; + is_registered = false; + } + }); + plugin_node_.open_queue(get_plugin_id_name(id)); } -plugin_instance::~plugin_instance() {} +plugin_instance::~plugin_instance() { + // 使用新的API进行优雅关闭 + request_graceful_shutdown(); + + // 给予进程一定时间进行优雅关闭 + boost::system::error_code ec; + if (process && process->is_open()) { + // 等待最多1秒 + process->wait_for(std::chrono::seconds(1), ec); + if (ec) { + // 如果等待超时,强制终止 + kill_process(false); + } + } +} diff --git a/src/backend/src/engine/src/plugin_manage/plugin_instance.h b/src/backend/src/engine/src/plugin_manage/plugin_instance.h index 958b82c..00826a6 100644 --- a/src/backend/src/engine/src/plugin_manage/plugin_instance.h +++ b/src/backend/src/engine/src/plugin_manage/plugin_instance.h @@ -1,11 +1,13 @@ #pragma once #include -#include +#include #include #include "ipc/ipc_node.h" #include "rpc/common.h" +namespace bp = boost::process_v2; + struct plugin_instance { plugin_instance(boost::asio::io_context& ctx, uint32_t in_id, const std::filesystem::path& in_plugin_path); ~plugin_instance(); @@ -21,18 +23,41 @@ struct plugin_instance { std::atomic_bool is_registered{ false }; // RPC会话是否注册 auto is_process_running() const { - return process && process->running(); + return process && process->is_open(); } - void kill_process(bool wait) { - if (is_process_running()) { - process->terminate(); - if (wait) - process->wait(); + + void async_wait_for_exit(std::function callback) { + if (process && process->is_open()) { + process->async_wait([callback = std::move(callback)](boost::system::error_code ec, int exit_code) { + if (!ec) { + callback(exit_code); + } + }); } - process = nullptr; + } + + void request_graceful_shutdown() { + if (process && process->is_open()) { + boost::system::error_code ec; + process->request_exit(ec); + if (!ec) { + // 优雅关闭请求已发送 + } + } + } + + void kill_process(bool wait) { + if (process && process->is_open()) { + boost::system::error_code ec; + process->terminate(ec); + if (wait && !ec) { + process->wait(ec); + } + } + process.reset(); } plugin_ipc_remote_node plugin_node_; private: - std::shared_ptr process; // 沙箱进程句柄 + std::unique_ptr process; // 使用最新Boost.Process v2 API }; diff --git a/src/backend/src/misc/src/audio_ring_buffer.h b/src/backend/src/misc/src/audio_ring_buffer.h index 5a9bd0d..4947ce7 100644 --- a/src/backend/src/misc/src/audio_ring_buffer.h +++ b/src/backend/src/misc/src/audio_ring_buffer.h @@ -89,21 +89,21 @@ private: */ struct shared_control_block { // 原子变量,用于无锁队列和缓冲区的位置跟踪 - alignas(64) std::atomic pending_write_pos{ 0 }; // "待处理"队列的写指针 - alignas(64) std::atomic pending_read_pos{ 0 }; // "待处理"队列的读指针 - alignas(64) std::atomic processed_write_pos{ 0 }; // "已处理"队列的写指针 - alignas(64) std::atomic processed_read_pos{ 0 }; // "已处理"队列的读指针 - alignas(64) std::atomic audio_write_pos{ 0 }; // 音频数据环形缓冲区的写指针 - alignas(64) std::atomic audio_read_pos{ 0 }; // 音频数据环形缓冲区的读指针 + std::atomic pending_write_pos{ 0 }; // "待处理"队列的写指针 + std::atomic pending_read_pos{ 0 }; // "待处理"队列的读指针 + std::atomic processed_write_pos{ 0 }; // "已处理"队列的写指针 + std::atomic processed_read_pos{ 0 }; // "已处理"队列的读指针 + std::atomic audio_write_pos{ 0 }; // 音频数据环形缓冲区的写指针 + std::atomic audio_read_pos{ 0 }; // 音频数据环形缓冲区的读指针 // 静态容量信息 - alignas(64) size_t queue_capacity{}; // 队列容量 (pending 和 processed 队列大小相同) - alignas(64) size_t audio_buffer_size{}; // 音频数据缓冲区的总容量 + size_t queue_capacity{}; // 队列容量 (pending 和 processed 队列大小相同) + size_t audio_buffer_size{}; // 音频数据缓冲区的总容量 // TODO: 这个参数似乎没有在当前逻辑中使用,可以考虑移除或实现相关功能。 - alignas(64) size_t block_size{}; // 初始块大小 + size_t block_size{}; // 初始块大小 - alignas(64) char initialized{}; // 初始化标志,用于确保共享内存只被初始化一次 + char initialized{}; // 初始化标志,用于确保共享内存只被初始化一次 shared_control_block() = default; @@ -120,9 +120,9 @@ private: * 描述了一个已提交的音频块在主音频缓冲区中的位置和元数据。 */ struct queue_entry { - alignas(64) size_t audio_offset; // 数据在 audio_buffer_ 中的偏移量 - alignas(64) size_t size; // 数据块的大小 - alignas(64) uint64_t timestamp; // 时间戳 + size_t audio_offset; // 数据在 audio_buffer_ 中的偏移量 + size_t size; // 数据块的大小 + uint64_t timestamp; // 时间戳 queue_entry() = default; @@ -134,11 +134,15 @@ private: shm_block audio_shm_; // 共享内存管理器实例 std::string buffer_name_; // 缓冲区的唯一名称标识符 - shared_control_block* control_; // 指向共享内存中的控制块 - queue_entry* pending_queue_; // 指向"待处理"队列的共享内存区域 - queue_entry* processed_queue_; // 指向"已处理"队列的共享内存区域 - T* audio_buffer_; // 指向音频数据环形缓冲区的共享内存区域 - + struct shm_data { + shm_obj_t control; + shm_obj_t pending_queue; + shm_obj_t processed_queue; + shm_obj_t audio_buffer; + [[nodiscard]] bool is_valid() const { + return !control.is_null() && !pending_queue.is_null() && !processed_queue.is_null() && !audio_buffer.is_null(); + } + } *data; public: // --- 构造、析构与生命周期管理 (Constructors, Destructor & Lifetime) --- @@ -146,35 +150,22 @@ public: ~audio_ring_buffer() = default; // 移动构造函数:高效转移资源所有权 - audio_ring_buffer(audio_ring_buffer&& other) noexcept - : audio_shm_(std::move(other.audio_shm_)), - buffer_name_(std::move(other.buffer_name_)), - control_(other.control_), - pending_queue_(other.pending_queue_), - processed_queue_(other.processed_queue_), - audio_buffer_(other.audio_buffer_) { + audio_ring_buffer(audio_ring_buffer&& other) noexcept : audio_shm_(std::move(other.audio_shm_)), + buffer_name_(std::move(other.buffer_name_)), + data(other.data) { // 将源对象的指针置空,防止其析构时释放资源 - other.control_ = nullptr; - other.pending_queue_ = nullptr; - other.processed_queue_ = nullptr; - other.audio_buffer_ = nullptr; + other.shm_data.control = {}; } // 移动赋值运算符 audio_ring_buffer& operator=(audio_ring_buffer&& other) noexcept { if (this != &other) { - audio_shm_ = std::move(other.audio_shm_); - buffer_name_ = std::move(other.buffer_name_); - control_ = other.control_; - pending_queue_ = other.pending_queue_; - processed_queue_ = other.processed_queue_; - audio_buffer_ = other.audio_buffer_; + audio_shm_ = other.audio_shm_; + buffer_name_ = std::move(other.buffer_name_); + data = other.data; // 将源对象的指针置空 - other.control_ = nullptr; - other.pending_queue_ = nullptr; - other.processed_queue_ = nullptr; - other.audio_buffer_ = nullptr; + other.shm_data.control = {}; } return *this; } @@ -207,7 +198,7 @@ public: audio_shm_ = shm_mgr::ab_shm(); buffer_name_ = in_name; initialize_shared_structures(queue_capacity, audio_buffer_capacity, block_size); - return control_ != nullptr; + return data->is_valid(); } /** @@ -226,7 +217,7 @@ public: audio_shm_ = shm_mgr::ab_shm(); buffer_name_ = in_name; connect_to_existing_structures(); - return control_ != nullptr; + return data->is_valid(); } // --- 核心写入操作 (Core Write Operations) --- @@ -250,8 +241,8 @@ public: * } */ audio_block acquire_pending_block(size_t required_size) { - auto write_pos = control_->audio_write_pos.load(std::memory_order_acquire); - auto read_pos = control_->audio_read_pos.load(std::memory_order_acquire); + auto write_pos = data->control->audio_write_pos.load(std::memory_order_acquire); + auto read_pos = data->control->audio_read_pos.load(std::memory_order_acquire); auto available = calculate_available_space(write_pos, read_pos); @@ -261,13 +252,13 @@ public: return audio_block(); // 扩展失败,返回无效块 } // 扩容后,重新获取指针和可用空间 - write_pos = control_->audio_write_pos.load(std::memory_order_acquire); - read_pos = control_->audio_read_pos.load(std::memory_order_acquire); // read_pos 也可能因数据整理而改变 + write_pos = data->control->audio_write_pos.load(std::memory_order_acquire); + read_pos = data->control->audio_read_pos.load(std::memory_order_acquire); // read_pos 也可能因数据整理而改变 available = calculate_available_space(write_pos, read_pos); } // 检查在当前写指针位置是否有足够的连续空间 - if (write_pos + required_size > control_->audio_buffer_size) { + if (write_pos + required_size > data->control->audio_buffer_size) { // 如果尾部空间不足,检查头部是否有足够空间(即环绕) if (read_pos >= required_size) { // 可以安全地环绕到缓冲区开头 @@ -280,7 +271,7 @@ public: } } - return audio_block(audio_buffer_ + write_pos, required_size); + return audio_block(data->audio_buffer.to_local() + write_pos, required_size); } /** @@ -304,8 +295,8 @@ public: * } */ bool commit_pending_block(const audio_block& block, uint64_t timestamp = 0) { - auto queue_write = control_->pending_write_pos.load(std::memory_order_acquire); - auto queue_read = control_->pending_read_pos.load(std::memory_order_acquire); + auto queue_write = data->control->pending_write_pos.load(std::memory_order_acquire); + auto queue_read = data->control->pending_read_pos.load(std::memory_order_acquire); // 检查 "待处理" 队列是否已满 if (is_queue_full(queue_write, queue_read)) { @@ -313,18 +304,18 @@ public: return false; // 队列扩容失败 } // 扩容后重新获取指针 - queue_write = control_->pending_write_pos.load(std::memory_order_acquire); - queue_read = control_->pending_read_pos.load(std::memory_order_acquire); + queue_write = data->control->pending_write_pos.load(std::memory_order_acquire); + queue_read = data->control->pending_read_pos.load(std::memory_order_acquire); } // 计算数据在缓冲区中的偏移量 - auto audio_offset = block.data - audio_buffer_; + auto audio_offset = block.data - data->audio_buffer.to_local(); // 在队列中创建一个新条目 - pending_queue_[queue_write] = queue_entry(audio_offset, block.size, timestamp); + data->pending_queue[queue_write] = queue_entry(audio_offset, block.size, timestamp); // 更新音频数据缓冲区的真实写指针 - control_->audio_write_pos.store(audio_offset + block.size, std::memory_order_release); + data->control->audio_write_pos.store(audio_offset + block.size, std::memory_order_release); // 原子地推进 "待处理" 队列的写指针 auto next_write = (queue_write + 1) % control_->queue_capacity; @@ -548,53 +539,25 @@ private: void initialize_shared_structures(size_t queue_capacity, size_t audio_buffer_capacity, size_t block_size) { - const std::string control_name = buffer_name_ + "_Control"; - control_ = audio_shm_.find_or_construct(control_name, queue_capacity, audio_buffer_capacity, block_size); + auto control = audio_shm_.construct(queue_capacity, audio_buffer_capacity, block_size); + auto pending_queue = audio_shm_.construct(); + auto processed_queue = audio_shm_.construct(); + auto audio_buffer = audio_shm_.construct(audio_buffer_capacity); - const std::string pending_name = buffer_name_ + "_PendingQueue"; - const std::string processed_name = buffer_name_ + "_ProcessedQueue"; - const std::string audio_name = buffer_name_ + "_AudioBuffer"; - - pending_queue_ = audio_shm_.find_or_construct(pending_name); - processed_queue_ = audio_shm_.find_or_construct(processed_name); - audio_buffer_ = audio_shm_.find_or_construct(audio_name, audio_buffer_capacity); - - if (!control_ || !pending_queue_ || !processed_queue_ || !audio_buffer_) { - // 如果任何一个结构创建失败,则抛出异常 - throw std::runtime_error("Failed to initialize audio ring buffer structures in shared memory."); - } + data = audio_shm_.construct_with_name(buffer_name_); + data->control = control; + data->pending_queue = pending_queue; + data->processed_queue = processed_queue; + data->audio_buffer = audio_buffer; } /** * @brief 连接到已存在的共享内存数据结构。 */ void connect_to_existing_structures() { - const std::string control_name = buffer_name_ + "_Control"; - control_ = audio_shm_.find(control_name); - if (!control_) { - throw std::runtime_error("AudioRingBuffer control block not found: " + - control_name); - } - - const std::string pending_name = buffer_name_ + "_PendingQueue"; - pending_queue_ = audio_shm_.find(pending_name); - if (!pending_queue_) { - throw std::runtime_error("AudioRingBuffer pending queue not found: " + - pending_name); - } - - const std::string processed_name = buffer_name_ + "_ProcessedQueue"; - processed_queue_ = audio_shm_.find(processed_name); - if (!processed_queue_) { - throw std::runtime_error("AudioRingBuffer processed queue not found: " + - processed_name); - } - - const std::string audio_name = buffer_name_ + "_AudioBuffer"; - audio_buffer_ = audio_shm_.find(audio_name); - if (!audio_buffer_) { - throw std::runtime_error("AudioRingBuffer audio buffer not found: " + - audio_name); + data = audio_shm_.find(buffer_name_); + if (!data) { + throw std::runtime_error("Failed to connect to existing shared memory structures"); } } diff --git a/src/backend/src/misc/src/ipc/shm_mgr.cpp b/src/backend/src/misc/src/ipc/shm_mgr.cpp index 96b7cbc..a1dc9f8 100644 --- a/src/backend/src/misc/src/ipc/shm_mgr.cpp +++ b/src/backend/src/misc/src/ipc/shm_mgr.cpp @@ -54,7 +54,7 @@ auto shm_ptr_t::to_local() const -> void* { return ptr; } -auto shm_ptr_t::from_local(shm_block_type in_type, void* in_ptr) { +auto shm_ptr_t::from_local(shm_block_type in_type, void* in_ptr) -> shm_ptr_t { int64_t h = 0; switch (in_type) { case shm_block_type::message: diff --git a/src/backend/src/misc/src/ipc/shm_mgr.h b/src/backend/src/misc/src/ipc/shm_mgr.h index d95f898..9d39f48 100644 --- a/src/backend/src/misc/src/ipc/shm_mgr.h +++ b/src/backend/src/misc/src/ipc/shm_mgr.h @@ -306,10 +306,25 @@ struct shm_ptr_t { return static_cast(to_local()); } - [[nodiscard]] static auto from_local(shm_block_type in_type, void* in_ptr); + [[nodiscard]] static auto from_local(shm_block_type in_type, void* in_ptr) -> shm_ptr_t; [[nodiscard]] static auto null() -> shm_ptr_t { return shm_ptr_t{ shm_block_type::invalid, 0 }; } [[nodiscard]] bool is_null() const { return type == shm_block_type::invalid || handle == 0; } + explicit operator bool() const { return !is_null(); } +}; + +template +struct shm_obj_t { + shm_ptr_t ptr; + + [[nodiscard]] auto is_null() const { return ptr.is_null(); } + [[nodiscard]] auto to_local() const { return ptr.to_local(); } + + auto operator ->() const { return ptr.to_local(); } + + explicit operator bool() const { + return !ptr.is_null(); + } }; // 包装器 - 保持原有接口完全不变 diff --git a/src/backend/src/misc/src/ipc/shm_string.cpp b/src/backend/src/misc/src/ipc/shm_string.cpp index 47ed052..88eb87f 100644 --- a/src/backend/src/misc/src/ipc/shm_string.cpp +++ b/src/backend/src/misc/src/ipc/shm_string.cpp @@ -52,7 +52,7 @@ void shm_string::set_string(const std::string& in_str) { handle = 0; throw std::runtime_error("共享内存字符串构造失败"); } - handle = block.get_handle_from_address(shm_str); + handle = block.get_handle_from_address(shm_str.to_local()); } catch (...) { handle = 0; diff --git a/src/backend/src/misc/src/midi_type.h b/src/backend/src/misc/src/midi_type.h new file mode 100644 index 0000000..d09d559 --- /dev/null +++ b/src/backend/src/misc/src/midi_type.h @@ -0,0 +1,287 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include + +namespace midi_type { + enum class event_type : std::uint8_t { + note_off = 0x80, + note_on = 0x90, + polyphonic_key_pressure = 0xA0, + control_change = 0xB0, + program_change = 0xC0, + channel_pressure = 0xD0, + pitch_bend = 0xE0, + system_exclusive = 0xF0, + time_code = 0xF1, + song_position = 0xF2, + song_select = 0xF3, + tune_request = 0xF6, + timing_clock = 0xF8, + start = 0xFA, + continue_ = 0xFB, + stop = 0xFC, + active_sensing = 0xFE, + system_reset = 0xFF + }; + + struct midi_error { + enum class code : std::uint8_t { + invalid_channel, + invalid_velocity, + invalid_note, + invalid_control_number, + invalid_data_byte, + invalid_pitch_bend + }; + + code code; + std::string_view message; + }; + + templateconcept midi_data_byte = requires(T value) { + requires std::integral; requires (value >= 0 && value <= 127); + }; + + templateconcept midi_channel = requires(T channel) { + requires std::integral; requires (channel >= 0 && channel <= 15); + }; + + class midi_event { + public: + using time_stamp = std::uint64_t; + using data_bytes = std::array; + + private: + event_type event_type_; + std::uint8_t channel_; + data_bytes data_; + time_stamp timestamp_; + + public: + // C++23 designated initializers support + struct note_on_data { + std::uint8_t note; + std::uint8_t velocity; + }; + + struct note_off_data { + std::uint8_t note; + std::uint8_t velocity = 0; + }; + + struct control_change_data { + std::uint8_t controller; + std::uint8_t value; + }; + + struct pitch_bend_data { + std::uint16_t value; // 14-bit value + }; + + // Modern constructor with validation + constexpr midi_event(event_type type, + std::uint8_t channel, + data_bytes data = {}, + time_stamp timestamp = 0) noexcept : event_type_(type), + channel_(channel & 0x0F), + data_(data), + timestamp_(timestamp) { + } + + // Factory methods with compile-time validation + [[nodiscard]] static constexpr auto create_note_on(std::uint8_t channel, + std::uint8_t note, + std::uint8_t velocity, + time_stamp timestamp = 0) noexcept -> std::expected< + midi_event, midi_error> { + if (channel > 15) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_channel, .message = "Channel must be 0-15" } + }; + } + if (note > 127) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_note, .message = "Note must be 0-127" } + }; + } + if (velocity > 127) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_velocity, .message = "Velocity must be 0-127" } + }; + } + + return midi_event{ event_type::note_on, channel, { note, velocity }, timestamp }; + } + + [[nodiscard]] static constexpr auto create_note_off(std::uint8_t channel, + std::uint8_t note, + std::uint8_t velocity = 0, + time_stamp timestamp = 0) noexcept -> std::expected< + midi_event, midi_error> { + if (channel > 15) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_channel, .message = "Channel must be 0-15" } + }; + } + if (note > 127) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_note, .message = "Note must be 0-127" } + }; + } + if (velocity > 127) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_velocity, .message = "Velocity must be 0-127" } + }; + } + + return midi_event{ event_type::note_off, channel, { note, velocity }, timestamp }; + } + + [[nodiscard]] static constexpr auto create_control_change(std::uint8_t channel, + std::uint8_t controller, + std::uint8_t value, + time_stamp timestamp = 0) noexcept -> std::expected< + midi_event, midi_error> { + if (channel > 15) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_channel, .message = "Channel must be 0-15" } + }; + } + if (controller > 127) [[unlikely]] { + return std::unexpected{ + midi_error{ + .code = midi_error::code::invalid_control_number, + .message = "Controller must be 0-127" + } + }; + } + if (value > 127) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_data_byte, .message = "Value must be 0-127" } + }; + } + + return midi_event{ event_type::control_change, channel, { controller, value }, timestamp }; + } + + [[nodiscard]] static constexpr auto create_pitch_bend(std::uint8_t channel, + std::uint16_t value, + time_stamp timestamp = 0) noexcept -> std::expected< + midi_event, midi_error> { + if (channel > 15) [[unlikely]] { + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_channel, .message = "Channel must be 0-15" } + }; + } + if (value > 16383) [[unlikely]] { // 14-bit maximum + return std::unexpected{ + midi_error{ .code = midi_error::code::invalid_pitch_bend, .message = "Pitch bend must be 0-16383" } + }; + } + + std::uint8_t lsb = value & 0x7F; + std::uint8_t msb = (value >> 7) & 0x7F; + + return midi_event{ event_type::pitch_bend, channel, { lsb, msb }, timestamp }; + } + + // Modern accessors + [[nodiscard]] constexpr auto type() const noexcept { return event_type_; } + [[nodiscard]] constexpr auto channel() const noexcept { return channel_; } + [[nodiscard]] constexpr auto timestamp() const noexcept { return timestamp_; } + [[nodiscard]] constexpr auto data() const noexcept { return std::span{ data_ }; } + + // Specific data accessors + [[nodiscard]] constexpr std::uint8_t note() const noexcept requires(true) { return data_[0]; } + + [[nodiscard]] constexpr std::uint8_t velocity() const noexcept { return data_[1]; } + + [[nodiscard]] constexpr std::uint8_t controller() const noexcept { return data_[0]; } + + [[nodiscard]] constexpr std::uint8_t control_value() const noexcept { return data_[1]; } + + [[nodiscard]] constexpr std::uint16_t pitch_bend_value() const noexcept { return data_[0] | (data_[1] << 7); } + + // Serialize to raw MIDI bytes + [[nodiscard]] constexpr auto to_bytes() const noexcept -> std::array { + std::uint8_t status = static_cast(event_type_) | channel_; + return { status, data_[0], data_[1] }; + } + + // Modern comparison operators (C++20 spaceship) + [[nodiscard]] constexpr auto operator<=>(const midi_event& other) const noexcept = default; + + [[nodiscard]] constexpr bool operator==(const midi_event& other) const noexcept = default; + + // Format support + [[nodiscard]] std::string to_string() const { + return std::format("MidiEvent{{type: 0x{:02X}, channel: {}, data: [{}, {}], timestamp: {}}}", + static_cast(event_type_), + channel_, + data_[0], + data_[1], + timestamp_); + } + }; + + // Modern RAII MIDI Event Buffer + class midi_event_buffer { + private: + std::vector events_; + mutable std::shared_mutex mutex_; + + public: + void add_event(const midi_event& event) { + std::unique_lock lock{ mutex_ }; + events_.emplace_back(event); + } + + void add_event(midi_event&& event) { + std::unique_lock lock{ mutex_ }; + events_.emplace_back(std::move(event)); + } + + [[nodiscard]] auto get_events() const -> std::vector { + std::shared_lock lock{ mutex_ }; + return events_; + } + + [[nodiscard]] std::size_t size() const noexcept { + std::shared_lock lock{ mutex_ }; + return events_.size(); + } + + void clear() noexcept { + std::unique_lock lock{ mutex_ }; + events_.clear(); + } + + // Range-based iteration support + [[nodiscard]] auto begin() const { + std::shared_lock lock{ mutex_ }; + return events_.begin(); + } + + [[nodiscard]] auto end() const { + std::shared_lock lock{ mutex_ }; + return events_.end(); + } + }; +} // namespace Midi + +// Custom formatter for std::format +template<> +struct std::formatter { + static constexpr auto parse(std::format_parse_context& ctx) { return ctx.begin(); } + + static auto format(const midi_type::midi_event& event, std::format_context& ctx) { + return std::format_to(ctx.out(), "{}", event.to_string()); + } +}; diff --git a/src/backend/src/vst2_host/src/main.cpp b/src/backend/src/vst2_host/src/main.cpp index 4a6c0dd..cf803a1 100644 --- a/src/backend/src/vst2_host/src/main.cpp +++ b/src/backend/src/vst2_host/src/main.cpp @@ -28,17 +28,17 @@ int main(int argc, char *argv[]) std::this_thread::sleep_for(std::chrono::milliseconds(100)); node.process_rpc(); // 获取一个音频块 - const auto& b = node.get_audio_rb().get_pending_block(); - if (b.data) { - // 将b.data填充数据 - for (size_t i = 0; i < b.size; ++i) { - b.data[i] = data_counter; + auto pending_block = node.get_audio_rb().get_pending_block(); + if (pending_block.data) { + // 将待处理的数据写入插件输出 + for (size_t i = 0; i < pending_block.size; ++i) { + pending_block.data[i] = data_counter; data_counter += 0.01f; if (data_counter > 1.0f) data_counter = -1.0f; } + node.get_audio_rb().complete_pending_block(); } - node.get_audio_rb().commit_pending_block(b); } #if 0 diff --git a/src/backend/src/vst2_host/src/rpc.cpp b/src/backend/src/vst2_host/src/rpc.cpp new file mode 100644 index 0000000..06d1bae --- /dev/null +++ b/src/backend/src/vst2_host/src/rpc.cpp @@ -0,0 +1 @@ +#include "rpc.h" diff --git a/src/backend/src/vst2_host/src/rpc.h b/src/backend/src/vst2_host/src/rpc.h new file mode 100644 index 0000000..1703e5e --- /dev/null +++ b/src/backend/src/vst2_host/src/rpc.h @@ -0,0 +1,5 @@ +#pragma once + +namespace vst2_rpc { + +}; diff --git a/src/frontend/Views/MainWindow.axaml.cs b/src/frontend/Views/MainWindow.axaml.cs index daabb39..7b89ce5 100644 --- a/src/frontend/Views/MainWindow.axaml.cs +++ b/src/frontend/Views/MainWindow.axaml.cs @@ -1,7 +1,20 @@ +using System.Threading.Tasks; using Avalonia.Controls; +using Daw.Project; +using Grpc.Core; namespace frontend.Views; +class DawProjectSync : Sync.SyncBase +{ + public override Task Stream(IAsyncStreamReader requestStream, IServerStreamWriter responseStream, ServerCallContext context) + { + // responseStream.WriteAsync(); + // requestStream.Current.YUpdate; + return base.Stream(requestStream, responseStream, context); + } +} + public partial class MainWindow : Window { public MainWindow()