17#ifndef CYBER_MESSAGE_RAW_MESSAGE_H_
18#define CYBER_MESSAGE_RAW_MESSAGE_H_
44 if (
this != &raw_msg) {
55 std::string
full_name()
const {
return "apollo.cyber.message.RawMessage"; }
56 std::string
name()
const {
return "apollo.cyber.message.RawMessage"; }
65 std::string *desc_str) {
66 ProtobufFactory::Instance()->GetDescriptorString(type, desc_str);
70 if (data ==
nullptr || size <
ByteSize()) {
91 if (data ==
nullptr || size <= 0) {
95 message.assign(
reinterpret_cast<const char *
>(data), size);
110 static std::string
TypeName() {
return "apollo.cyber.message.RawMessage"; }
std::string full_name() const
static std::string TypeName()
bool ParseFromString(const std::string &str)
RawMessage(const RawMessage &raw_msg)
bool SerializeToArray(void *data, int size) const
RawMessage(const std::string &data)
static void GetDescriptorString(const std::string &type, std::string *desc_str)
RawMessage(const std::string &data, uint64_t ts)
bool ParseFromArray(const void *data, int size)
bool SerializeToString(std::string *str) const
RawMessage & operator=(const RawMessage &raw_msg)
static const Descriptor * descriptor()