14#ifndef OR_TOOLS_MATH_OPT_VALIDATORS_CALLBACK_VALIDATOR_H_
15#define OR_TOOLS_MATH_OPT_VALIDATORS_CALLBACK_VALIDATOR_H_
17#include "absl/container/flat_hash_set.h"
18#include "absl/status/status.h"
19#include "ortools/math_opt/callback.pb.h"
27 const CallbackRegistrationProto& callback_registration,
28 const ModelSummary& model_summary);
33 const CallbackDataProto& cb_data,
34 const CallbackRegistrationProto& callback_registration,
35 const ModelSummary& model_summary);
41 const CallbackResultProto& callback_result, CallbackEventProto event,
42 const CallbackRegistrationProto& callback_registration,
43 const ModelSummary& model_summary);
48 const CallbackRegistrationProto& registration,
49 const absl::flat_hash_set<CallbackEventProto>& supported_events);
absl::Status ValidateCallbackResultProto(const CallbackResultProto &callback_result, const CallbackEventProto callback_event, const CallbackRegistrationProto &callback_registration, const ModelSummary &model_summary)
absl::Status CheckRegisteredCallbackEvents(const CallbackRegistrationProto ®istration, const absl::flat_hash_set< CallbackEventProto > &supported_events)
absl::Status ValidateCallbackDataProto(const CallbackDataProto &cb_data, const CallbackRegistrationProto &callback_registration, const ModelSummary &model_summary)
absl::Status ValidateCallbackRegistration(const CallbackRegistrationProto &callback_registration, const ModelSummary &model_summary)
Checks that CallbackRegistrationProto is valid given a valid model summary.
In SWIG mode, we don't want anything besides these top-level includes.