message.proto 317 B

12345678910111213141516
  1. syntax = "proto3";
  2. package protocol;
  3. message Message {
  4. string avatar = 1;
  5. string fromUsername = 2;
  6. string from = 3;
  7. string to = 4;
  8. string content = 5;
  9. int32 contentType = 6;
  10. string type = 7;
  11. int32 messageType = 8;
  12. string url = 9;
  13. string fileSuffix = 10;
  14. bytes file = 11;
  15. }