chromium/out/Default/gen/services/passage_embeddings/public/mojom/passage_embeddings.mojom.cc

// services/passage_embeddings/public/mojom/passage_embeddings.mojom.cc 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.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "services/passage_embeddings/public/mojom/passage_embeddings.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "services/passage_embeddings/public/mojom/passage_embeddings.mojom-params-data.h"
#include "services/passage_embeddings/public/mojom/passage_embeddings.mojom-shared-message-ids.h"

#include "services/passage_embeddings/public/mojom/passage_embeddings.mojom-import-headers.h"
#include "services/passage_embeddings/public/mojom/passage_embeddings.mojom-test-utils.h"


namespace passage_embeddings::mojom {
PassageEmbeddingsLoadModelsParams::PassageEmbeddingsLoadModelsParams()
    :{}

PassageEmbeddingsLoadModelsParams::PassageEmbeddingsLoadModelsParams(
    ::base::File embeddings_model_in,
    ::base::File sp_model_in,
    uint32_t input_window_size_in)
    :{}

PassageEmbeddingsLoadModelsParams::~PassageEmbeddingsLoadModelsParams() = default;

void PassageEmbeddingsLoadModelsParams::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool PassageEmbeddingsLoadModelsParams::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
PassageEmbeddingsResult::PassageEmbeddingsResult()
    :{}

PassageEmbeddingsResult::PassageEmbeddingsResult(
    std::vector<float> embeddings_in,
    const std::string& passage_in)
    :{}

PassageEmbeddingsResult::~PassageEmbeddingsResult() = default;

void PassageEmbeddingsResult::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool PassageEmbeddingsResult::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char PassageEmbedder::Name_[] =;

PassageEmbedder::IPCStableHashFunction PassageEmbedder::MessageToMethodInfo_(mojo::Message& message) {}


const char* PassageEmbedder::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PassageEmbedder::GenerateEmbeddings_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PassageEmbedder_GenerateEmbeddings_ForwardToCallback
    : public mojo::MessageReceiver {};

PassageEmbedderProxy::PassageEmbedderProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PassageEmbedderProxy::GenerateEmbeddings(
    const std::vector<std::string>& in_passages, PassagePriority in_priority, GenerateEmbeddingsCallback callback) {}
class PassageEmbedder_GenerateEmbeddings_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PassageEmbedder_GenerateEmbeddings_ProxyToResponder::Run(
    std::vector<PassageEmbeddingsResultPtr> in_results) {}

// static
bool PassageEmbedderStubDispatch::Accept(
    PassageEmbedder* impl,
    mojo::Message* message) {}

// static
bool PassageEmbedderStubDispatch::AcceptWithResponder(
    PassageEmbedder* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPassageEmbedderValidationInfo[] =;

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

bool PassageEmbedderResponseValidator::Accept(mojo::Message* message) {}
const char PassageEmbeddingsService::Name_[] =;

PassageEmbeddingsService::IPCStableHashFunction PassageEmbeddingsService::MessageToMethodInfo_(mojo::Message& message) {}


const char* PassageEmbeddingsService::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PassageEmbeddingsService::LoadModels_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PassageEmbeddingsService_LoadModels_ForwardToCallback
    : public mojo::MessageReceiver {};

PassageEmbeddingsServiceProxy::PassageEmbeddingsServiceProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PassageEmbeddingsServiceProxy::LoadModels(
    PassageEmbeddingsLoadModelsParamsPtr in_params, ::mojo::PendingReceiver<PassageEmbedder> in_model, LoadModelsCallback callback) {}
class PassageEmbeddingsService_LoadModels_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PassageEmbeddingsService_LoadModels_ProxyToResponder::Run(
    bool in_success) {}

// static
bool PassageEmbeddingsServiceStubDispatch::Accept(
    PassageEmbeddingsService* impl,
    mojo::Message* message) {}

// static
bool PassageEmbeddingsServiceStubDispatch::AcceptWithResponder(
    PassageEmbeddingsService* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPassageEmbeddingsServiceValidationInfo[] =;

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

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


}  // passage_embeddings::mojom


namespace mojo {


// static
bool StructTraits<::passage_embeddings::mojom::PassageEmbeddingsLoadModelsParams::DataView, ::passage_embeddings::mojom::PassageEmbeddingsLoadModelsParamsPtr>::Read(
    ::passage_embeddings::mojom::PassageEmbeddingsLoadModelsParams::DataView input,
    ::passage_embeddings::mojom::PassageEmbeddingsLoadModelsParamsPtr* output) {}


// static
bool StructTraits<::passage_embeddings::mojom::PassageEmbeddingsResult::DataView, ::passage_embeddings::mojom::PassageEmbeddingsResultPtr>::Read(
    ::passage_embeddings::mojom::PassageEmbeddingsResult::DataView input,
    ::passage_embeddings::mojom::PassageEmbeddingsResultPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace passage_embeddings::mojom {


void PassageEmbedderInterceptorForTesting::GenerateEmbeddings(const std::vector<std::string>& passages, PassagePriority priority, GenerateEmbeddingsCallback callback) {}
PassageEmbedderAsyncWaiter::PassageEmbedderAsyncWaiter(
    PassageEmbedder* proxy) :{}

PassageEmbedderAsyncWaiter::~PassageEmbedderAsyncWaiter() = default;

void PassageEmbedderAsyncWaiter::GenerateEmbeddings(
    const std::vector<std::string>& passages, PassagePriority priority, std::vector<PassageEmbeddingsResultPtr>* out_results) {}

std::vector<PassageEmbeddingsResultPtr> PassageEmbedderAsyncWaiter::GenerateEmbeddings(
    const std::vector<std::string>& passages, PassagePriority priority) {}




void PassageEmbeddingsServiceInterceptorForTesting::LoadModels(PassageEmbeddingsLoadModelsParamsPtr params, ::mojo::PendingReceiver<PassageEmbedder> model, LoadModelsCallback callback) {}
PassageEmbeddingsServiceAsyncWaiter::PassageEmbeddingsServiceAsyncWaiter(
    PassageEmbeddingsService* proxy) :{}

PassageEmbeddingsServiceAsyncWaiter::~PassageEmbeddingsServiceAsyncWaiter() = default;

void PassageEmbeddingsServiceAsyncWaiter::LoadModels(
    PassageEmbeddingsLoadModelsParamsPtr params, ::mojo::PendingReceiver<PassageEmbedder> model, bool* out_success) {}

bool PassageEmbeddingsServiceAsyncWaiter::LoadModels(
    PassageEmbeddingsLoadModelsParamsPtr params, ::mojo::PendingReceiver<PassageEmbedder> model) {}






}  // passage_embeddings::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif