memo_relation_service.proto 632 B

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto3";
  2. package memos.api.v1;
  3. import "google/api/field_behavior.proto";
  4. option go_package = "gen/api/v1";
  5. message MemoRelation {
  6. // The name of memo.
  7. // Format: memos/{id}
  8. Memo memo = 1;
  9. // The name of related memo.
  10. // Format: memos/{id}
  11. Memo related_memo = 2;
  12. enum Type {
  13. TYPE_UNSPECIFIED = 0;
  14. REFERENCE = 1;
  15. COMMENT = 2;
  16. }
  17. Type type = 3;
  18. message Memo {
  19. // The name of the memo.
  20. // Format: memos/{id}
  21. string name = 1;
  22. string uid = 2;
  23. // The snippet of the memo content. Plain text only.
  24. string snippet = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  25. }
  26. }