migrate.proto 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // THIS FILE IS DEPRECATED
  2. // Users should instead use the corresponding proto in the xds tree.
  3. // No new changes will be accepted here.
  4. syntax = "proto3";
  5. package udpa.annotations;
  6. import "google/protobuf/descriptor.proto";
  7. option go_package = "github.com/cncf/xds/go/annotations";
  8. // Magic number in this file derived from top 28bit of SHA256 digest of
  9. // "udpa.annotation.migrate".
  10. extend google.protobuf.MessageOptions {
  11. MigrateAnnotation message_migrate = 171962766;
  12. }
  13. extend google.protobuf.FieldOptions {
  14. FieldMigrateAnnotation field_migrate = 171962766;
  15. }
  16. extend google.protobuf.EnumOptions {
  17. MigrateAnnotation enum_migrate = 171962766;
  18. }
  19. extend google.protobuf.EnumValueOptions {
  20. MigrateAnnotation enum_value_migrate = 171962766;
  21. }
  22. extend google.protobuf.FileOptions {
  23. FileMigrateAnnotation file_migrate = 171962766;
  24. }
  25. message MigrateAnnotation {
  26. // Rename the message/enum/enum value in next version.
  27. string rename = 1;
  28. }
  29. message FieldMigrateAnnotation {
  30. // Rename the field in next version.
  31. string rename = 1;
  32. // Add the field to a named oneof in next version. If this already exists, the
  33. // field will join its siblings under the oneof, otherwise a new oneof will be
  34. // created with the given name.
  35. string oneof_promotion = 2;
  36. }
  37. message FileMigrateAnnotation {
  38. // Move all types in the file to another package, this implies changing proto
  39. // file path.
  40. string move_to_package = 2;
  41. }