Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2021
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum EntryType {
  2. first_type = 0;
  3. second_type= 1;
  4. }
  5.  
  6. message EntryOne {
  7. string value = 1;
  8. uint32 index = 2;
  9. }
  10. message EntryTwo {
  11. uint32 value = 1;
  12. uint32 index = 2;
  13. }
  14.  
  15. message SingleEntry{
  16. EntryType type = 1;
  17. oneof entry {
  18. EntryOne = 2;
  19. EntryTwo = 3;
  20. }
  21.  
  22. }
  23.  
  24. message CompactEntry {
  25. repeated SingleEntry = 1;
  26. }
  27.  
  28. message SparseEntry {
  29. repeated EntryOne first_type_entries = 1;
  30. repeated EntryTwo second_type_entries = 1;
  31. }
  32.  
Advertisement
RAW Paste Data Copied
Advertisement