Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
proto_utils.h File Reference
#include <string>
#include "ortools/util/parse_proto.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/text_format.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 

Functions

template<class P >
std::string operations_research::ProtobufDebugString (const P &message)
 
template<class P >
std::string operations_research::ProtobufShortDebugString (const P &message)
 
template<typename ProtoEnumType >
std::string operations_research::ProtoEnumToString (ProtoEnumType enum_value)
 
template<typename ProtoType >
bool operations_research::ProtobufTextFormatMergeFromString (absl::string_view proto_text_string, ProtoType *proto)
 
template<typename ProtoType >
bool operations_research::ProtobufParseTextProtoForFlag (absl::string_view text, ProtoType *message_out, std::string *error_out)
 
std::string operations_research::ProtobufTextFormatPrintToStringForFlag (const google::protobuf::Message &proto)
 
std::string operations_research::ProtobufTextFormatPrintToStringForFlag (const google::protobuf::MessageLite &proto)
 Prints an error message when compiling with lite protos.