WAArmadilloTransportEvent.proto 841 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. syntax = "proto2";
  2. package WAArmadilloTransportEvent;
  3. option go_package = "git.bobomao.top/joey/testwh/proto/waArmadilloTransportEvent";
  4. message TransportEvent {
  5. message Event {
  6. message IcdcAlert {
  7. enum Type {
  8. NONE = 0;
  9. DETECTED = 1;
  10. CLEARED = 2;
  11. }
  12. optional Type type = 1;
  13. }
  14. message DeviceChange {
  15. enum Type {
  16. NONE = 0;
  17. ADDED = 1;
  18. REMOVED = 2;
  19. REPLACED = 3;
  20. }
  21. optional Type type = 1;
  22. optional string deviceName = 2;
  23. optional string devicePlatform = 3;
  24. optional string deviceModel = 4;
  25. }
  26. oneof event {
  27. DeviceChange deviceChange = 1;
  28. IcdcAlert icdcAlert = 2;
  29. }
  30. }
  31. message Placeholder {
  32. enum Type {
  33. DECRYPTION_FAILURE = 1;
  34. UNAVAILABLE_MESSAGE = 2;
  35. }
  36. optional Type type = 1;
  37. }
  38. oneof content {
  39. Placeholder placeholder = 1;
  40. Event event = 2;
  41. }
  42. }