message User {
required bytes uuid = 1;
required string name = 2;
}
message ChatMessage {
required User sender = 1;
required string msg = 2;
}
message StatusResponse {
required int32 status = 1;
}
//That's what I currently do {1}
message MessageTransfer {
required User recipient = 1;
required ChatMessage msg = 2;
}
service ChatService {
rpc sendmessage(MessageTransfer) returns (StatusResponse);
}
//That's what I want to do {2}
service ChatService {
rpc sendmessage(ChatMessage msg ,User recipient) returns (StatusResponse);
}
--
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 http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Can you tell me what's the reason for your decision?