chromium/out/Default/gen/services/on_device_model/public/mojom/on_device_model.mojom-shared.h

// services/on_device_model/public/mojom/on_device_model.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;



}  // on_device_model::mojom

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 internal
}  // namespace mojo


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) {}
// Interface base classes. They are used for type safety check.
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 {};


}  // on_device_model::mojom

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 std

namespace mojo {


namespace internal {

Serializer< ::on_device_model::mojom::PerformanceClass, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::LoadModelResult, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::AdaptationAssetsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::LanguageDetectionResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::SafetyInfoDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::ResponseChunkDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::ResponseSummaryDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::LoadAdaptationParamsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::InputOptionsDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


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) {}



}  // on_device_model::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct  TraceFormatTraits<::on_device_model::mojom::PerformanceClass> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::on_device_model::mojom::LoadModelResult> {};

} // namespace perfetto

#endif  // SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_MOJOM_SHARED_H_