me.proto 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // Copyright 2020 Google LLC.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. syntax = "proto3";
  17. package fm;
  18. message MessagingClientEvent {
  19. int64 project_number = 1;
  20. string message_id = 2;
  21. string instance_id = 3;
  22. enum MessageType {
  23. UNKNOWN = 0;
  24. DATA_MESSAGE = 1;
  25. TOPIC = 2;
  26. DISPLAY_NOTIFICATION = 3;
  27. }
  28. MessageType message_type = 4;
  29. enum SDKPlatform {
  30. UNKNOWN_OS = 0;
  31. ANDROID = 1;
  32. IOS = 2;
  33. WEB = 3;
  34. }
  35. SDKPlatform sdk_platform = 5;
  36. string package_name = 6;
  37. enum Event {
  38. UNKNOWN_EVENT = 0;
  39. MESSAGE_DELIVERED = 1;
  40. MESSAGE_OPEN = 2;
  41. }
  42. Event event = 12;
  43. string analytics_label = 13;
  44. int64 campaign_id = 14;
  45. string composer_label = 15;
  46. }
  47. message MessagingClientEventExtension {
  48. MessagingClientEvent messaging_client_event = 1;
  49. }