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 5syntax = "proto3"; 6 7package udpa.annotations; 8 9import "google/protobuf/descriptor.proto"; 10 11option go_package = "github.com/cncf/xds/go/annotations"; 12 13// Magic number in this file derived from top 28bit of SHA256 digest of 14// "udpa.annotation.migrate". 15 16extend google.protobuf.MessageOptions { 17 MigrateAnnotation message_migrate = 171962766; 18} 19 20extend google.protobuf.FieldOptions { 21 FieldMigrateAnnotation field_migrate = 171962766; 22} 23 24extend google.protobuf.EnumOptions { 25 MigrateAnnotation enum_migrate = 171962766; 26} 27 28extend google.protobuf.EnumValueOptions { 29 MigrateAnnotation enum_value_migrate = 171962766; 30} 31 32extend google.protobuf.FileOptions { 33 FileMigrateAnnotation file_migrate = 171962766; 34} 35 36message MigrateAnnotation { 37 // Rename the message/enum/enum value in next version. 38 string rename = 1; 39} 40 41message FieldMigrateAnnotation { 42 // Rename the field in next version. 43 string rename = 1; 44 45 // Add the field to a named oneof in next version. If this already exists, the 46 // field will join its siblings under the oneof, otherwise a new oneof will be 47 // created with the given name. 48 string oneof_promotion = 2; 49} 50 51message FileMigrateAnnotation { 52 // Move all types in the file to another package, this implies changing proto 53 // file path. 54 string move_to_package = 2; 55} 56