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

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

// Copyright 2013 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_H_
#define SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_MOJOM_H_

#include <stdint.h>

#include <limits>
#include <optional>
#include <type_traits>
#include <utility>

#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "services/on_device_model/public/mojom/on_device_model.mojom-features.h"  // IWYU pragma: export
#include "services/on_device_model/public/mojom/on_device_model.mojom-shared.h"  // IWYU pragma: export
#include "services/on_device_model/public/mojom/on_device_model.mojom-forward.h"  // IWYU pragma: export
#include "mojo/public/mojom/base/file.mojom.h"
#include "mojo/public/mojom/base/file_path.mojom.h"
#include "mojo/public/mojom/base/read_only_file.mojom-forward.h"
#include <string>
#include <vector>

#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"


#include "services/on_device_model/public/cpp/adaptation_assets_mojom_traits.h"
#include "services/on_device_model/public/cpp/model_assets_mojom_traits.h"




namespace on_device_model::mojom {

class StreamingResponderProxy;

template <typename ImplRefTraits>
class StreamingResponderStub;

class StreamingResponderRequestValidator;


class StreamingResponder
    : public StreamingResponderInterfaceBase {};

class ContextClientProxy;

template <typename ImplRefTraits>
class ContextClientStub;

class ContextClientRequestValidator;


class ContextClient
    : public ContextClientInterfaceBase {};

class SessionProxy;

template <typename ImplRefTraits>
class SessionStub;

class SessionRequestValidator;
class SessionResponseValidator;


class Session
    : public SessionInterfaceBase {};

class OnDeviceModelProxy;

template <typename ImplRefTraits>
class OnDeviceModelStub;

class OnDeviceModelRequestValidator;
class OnDeviceModelResponseValidator;


class OnDeviceModel
    : public OnDeviceModelInterfaceBase {};



class  StreamingResponderProxy
    : public StreamingResponder {};



class  ContextClientProxy
    : public ContextClient {};



class  SessionProxy
    : public Session {};



class  OnDeviceModelProxy
    : public OnDeviceModel {};
class  StreamingResponderStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<StreamingResponder>>
class StreamingResponderStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  StreamingResponderStub() = default;
  ~StreamingResponderStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class  ContextClientStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<ContextClient>>
class ContextClientStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  ContextClientStub() = default;
  ~ContextClientStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class  SessionStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<Session>>
class SessionStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  SessionStub() = default;
  ~SessionStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class  OnDeviceModelStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<OnDeviceModel>>
class OnDeviceModelStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  OnDeviceModelStub() = default;
  ~OnDeviceModelStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class  StreamingResponderRequestValidator : public mojo::MessageReceiver {};
class  ContextClientRequestValidator : public mojo::MessageReceiver {};
class  SessionRequestValidator : public mojo::MessageReceiver {};
class  OnDeviceModelRequestValidator : public mojo::MessageReceiver {};
class  SessionResponseValidator : public mojo::MessageReceiver {};
class  OnDeviceModelResponseValidator : public mojo::MessageReceiver {};






class  LanguageDetectionResult {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, LanguageDetectionResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, LanguageDetectionResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, LanguageDetectionResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, LanguageDetectionResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}












class  AdaptationAssets {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, AdaptationAssets::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, AdaptationAssets::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, AdaptationAssets::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, AdaptationAssets::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}






class  SafetyInfo {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, SafetyInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, SafetyInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, SafetyInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, SafetyInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class  ResponseChunk {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ResponseChunk::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ResponseChunk::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ResponseChunk::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ResponseChunk::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class  ResponseSummary {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, ResponseSummary::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ResponseSummary::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ResponseSummary::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ResponseSummary::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class  LoadAdaptationParams {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, LoadAdaptationParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, LoadAdaptationParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, LoadAdaptationParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, LoadAdaptationParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class  InputOptions {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, InputOptions::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, InputOptions::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, InputOptions::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, InputOptions::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}

template <typename StructPtrType>
AdaptationAssetsPtr AdaptationAssets::Clone() const {}

template <typename T, AdaptationAssets::EnableIfSame<T>*>
bool AdaptationAssets::Equals(const T& other_struct) const {}

template <typename T, AdaptationAssets::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
LanguageDetectionResultPtr LanguageDetectionResult::Clone() const {}

template <typename T, LanguageDetectionResult::EnableIfSame<T>*>
bool LanguageDetectionResult::Equals(const T& other_struct) const {}

template <typename T, LanguageDetectionResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
SafetyInfoPtr SafetyInfo::Clone() const {}

template <typename T, SafetyInfo::EnableIfSame<T>*>
bool SafetyInfo::Equals(const T& other_struct) const {}

template <typename T, SafetyInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ResponseChunkPtr ResponseChunk::Clone() const {}

template <typename T, ResponseChunk::EnableIfSame<T>*>
bool ResponseChunk::Equals(const T& other_struct) const {}

template <typename T, ResponseChunk::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ResponseSummaryPtr ResponseSummary::Clone() const {}

template <typename T, ResponseSummary::EnableIfSame<T>*>
bool ResponseSummary::Equals(const T& other_struct) const {}

template <typename T, ResponseSummary::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
LoadAdaptationParamsPtr LoadAdaptationParams::Clone() const {}

template <typename T, LoadAdaptationParams::EnableIfSame<T>*>
bool LoadAdaptationParams::Equals(const T& other_struct) const {}

template <typename T, LoadAdaptationParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
InputOptionsPtr InputOptions::Clone() const {}

template <typename T, InputOptions::EnableIfSame<T>*>
bool InputOptions::Equals(const T& other_struct) const {}

template <typename T, InputOptions::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}


}  // on_device_model::mojom

namespace mojo {


template <>
struct  StructTraits<::on_device_model::mojom::AdaptationAssets::DataView,
                                         ::on_device_model::mojom::AdaptationAssetsPtr> {};


template <>
struct  StructTraits<::on_device_model::mojom::LanguageDetectionResult::DataView,
                                         ::on_device_model::mojom::LanguageDetectionResultPtr> {};


template <>
struct  StructTraits<::on_device_model::mojom::SafetyInfo::DataView,
                                         ::on_device_model::mojom::SafetyInfoPtr> {};


template <>
struct  StructTraits<::on_device_model::mojom::ResponseChunk::DataView,
                                         ::on_device_model::mojom::ResponseChunkPtr> {};


template <>
struct  StructTraits<::on_device_model::mojom::ResponseSummary::DataView,
                                         ::on_device_model::mojom::ResponseSummaryPtr> {};


template <>
struct  StructTraits<::on_device_model::mojom::LoadAdaptationParams::DataView,
                                         ::on_device_model::mojom::LoadAdaptationParamsPtr> {};


template <>
struct  StructTraits<::on_device_model::mojom::InputOptions::DataView,
                                         ::on_device_model::mojom::InputOptionsPtr> {};

}  // namespace mojo

#endif  // SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_MOJOM_H_