#ifndef SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_MOJOM_SHARED_H_
#define SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/on_device_model/public/mojom/on_device_model.mojom-shared-internal.h"
#include "mojo/public/mojom/base/file.mojom-shared.h"
#include "mojo/public/mojom/base/file_path.mojom-shared.h"
#include "mojo/public/mojom/base/read_only_file.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
namespace on_device_model::mojom {
class AdaptationAssetsDataView;
class LanguageDetectionResultDataView;
class SafetyInfoDataView;
class ResponseChunkDataView;
class ResponseSummaryDataView;
class LoadAdaptationParamsDataView;
class InputOptionsDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::on_device_model::mojom::AdaptationAssetsDataView> { … };
template <>
struct MojomTypeTraits<::on_device_model::mojom::LanguageDetectionResultDataView> { … };
template <>
struct MojomTypeTraits<::on_device_model::mojom::SafetyInfoDataView> { … };
template <>
struct MojomTypeTraits<::on_device_model::mojom::ResponseChunkDataView> { … };
template <>
struct MojomTypeTraits<::on_device_model::mojom::ResponseSummaryDataView> { … };
template <>
struct MojomTypeTraits<::on_device_model::mojom::LoadAdaptationParamsDataView> { … };
template <>
struct MojomTypeTraits<::on_device_model::mojom::InputOptionsDataView> { … };
}
}
namespace on_device_model::mojom {
enum class PerformanceClass : int32_t { … };
std::ostream& operator<<(std::ostream& os, PerformanceClass value);
inline bool IsKnownEnumValue(PerformanceClass value) { … }
inline PerformanceClass ToKnownEnumValue(PerformanceClass value) { … }
enum class LoadModelResult : int32_t { … };
std::ostream& operator<<(std::ostream& os, LoadModelResult value);
inline bool IsKnownEnumValue(LoadModelResult value) { … }
inline LoadModelResult ToKnownEnumValue(LoadModelResult value) { … }
class StreamingResponderInterfaceBase { … };
StreamingResponderPtrDataView;
StreamingResponderRequestDataView;
StreamingResponderAssociatedPtrInfoDataView;
StreamingResponderAssociatedRequestDataView;
class ContextClientInterfaceBase { … };
ContextClientPtrDataView;
ContextClientRequestDataView;
ContextClientAssociatedPtrInfoDataView;
ContextClientAssociatedRequestDataView;
class SessionInterfaceBase { … };
SessionPtrDataView;
SessionRequestDataView;
SessionAssociatedPtrInfoDataView;
SessionAssociatedRequestDataView;
class OnDeviceModelInterfaceBase { … };
OnDeviceModelPtrDataView;
OnDeviceModelRequestDataView;
OnDeviceModelAssociatedPtrInfoDataView;
OnDeviceModelAssociatedRequestDataView;
class AdaptationAssetsDataView { … };
class LanguageDetectionResultDataView { … };
class SafetyInfoDataView { … };
class ResponseChunkDataView { … };
class ResponseSummaryDataView { … };
class LoadAdaptationParamsDataView { … };
class InputOptionsDataView { … };
}
namespace std {
template <>
struct hash<::on_device_model::mojom::PerformanceClass>
: public mojo::internal::EnumHashImpl<::on_device_model::mojom::PerformanceClass> { … };
template <>
struct hash<::on_device_model::mojom::LoadModelResult>
: public mojo::internal::EnumHashImpl<::on_device_model::mojom::LoadModelResult> { … };
}
namespace mojo {
namespace internal {
Serializer< ::on_device_model::mojom::PerformanceClass, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::LoadModelResult, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::AdaptationAssetsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::LanguageDetectionResultDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::SafetyInfoDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::ResponseChunkDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::ResponseSummaryDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::LoadAdaptationParamsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::InputOptionsDataView, MaybeConstUserType>;
}
}
namespace on_device_model::mojom {
inline void AdaptationAssetsDataView::GetWeightsDataView(
::mojo_base::mojom::FileDataView* output) { … }
inline void AdaptationAssetsDataView::GetWeightsPathDataView(
::mojo_base::mojom::FilePathDataView* output) { … }
inline void LanguageDetectionResultDataView::GetCodeDataView(
mojo::StringDataView* output) { … }
inline void SafetyInfoDataView::GetClassScoresDataView(
mojo::ArrayDataView<float>* output) { … }
inline void SafetyInfoDataView::GetLanguageDataView(
LanguageDetectionResultDataView* output) { … }
inline void ResponseChunkDataView::GetTextDataView(
mojo::StringDataView* output) { … }
inline void ResponseChunkDataView::GetSafetyInfoDataView(
SafetyInfoDataView* output) { … }
inline void ResponseSummaryDataView::GetSafetyInfoDataView(
SafetyInfoDataView* output) { … }
inline void LoadAdaptationParamsDataView::GetAssetsDataView(
AdaptationAssetsDataView* output) { … }
inline void InputOptionsDataView::GetTextDataView(
mojo::StringDataView* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::on_device_model::mojom::PerformanceClass> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::on_device_model::mojom::LoadModelResult> { … };
}
#endif