I'm trying to understand if it's possible to take a serialized protobuf that makes up part of another protobuf and merge them together without having to deserialize the first protobuf.--For example, given a protobuf wrapper:syntax = "proto2";
import "content.proto";
message WrapperContent {
// The schema version of the message envelope. For example, messageSchemaVersion = '1.1.1'
required string metatData = 1;
// The payload as well as any common fields across all events
required Content content = 2;
}And then imagine we get a serialized version of content below (i.e. content is coming that is coming from a remote client):syntax = "proto2";
message Content {
// The schema version of the message envelope. For example, messageSchemaVersion = '1.1.1'
required string name = 1;
// The payload as well as any common fields across all events
required bytes payload = 2;
}Do you know if any way I can inject the serialized Content into the WrapperContent without first having to deserialize Content.The reason I'm trying to inject Content without deserializing it, is to try and save on the overhead of deserializing the message.Thanks, Mike.
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
I'm trying to understand if it's possible to take a serialized protobuf that makes up part of another protobuf and merge them together without having to deserialize the first protobuf.For example, given a protobuf wrapper:syntax = "proto2";
import "content.proto";
message WrapperContent {
// The schema version of the message envelope. For example, messageSchemaVersion = '1.1.1'
required string metatData = 1;
// The payload as well as any common fields across all events
required Content content = 2;
}And then imagine we get a serialized version of content below (i.e. content is coming that is coming from a remote client):syntax = "proto2";
message Content {
// The schema version of the message envelope. For example, messageSchemaVersion = '1.1.1'
required string name = 1;
// The payload as well as any common fields across all events
required bytes payload = 2;
}Do you know if any way I can inject the serialized Content into the WrapperContent without first having to deserialize Content.The reason I'm trying to inject Content without deserializing it, is to try and save on the overhead of deserializing the message.Thanks, Mike.
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe@googlegroups.com.