Debian Codegraph @

udpa/annotations/migrate.proto

raw
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
5 syntax = "proto3";
6
7 package udpa.annotations;
8
9 import "google/protobuf/descriptor.proto";
10
11 option go_package = "github.com/cncf/xds/go/udpa/annotations";
12
13 // Magic number in this file derived from top 28bit of SHA256 digest of
14 // "udpa.annotation.migrate".
15
16 extend google.protobuf.MessageOptions {
17 MigrateAnnotation message_migrate = 171962766;
18 }
19
20 extend google.protobuf.FieldOptions {
21 FieldMigrateAnnotation field_migrate = 171962766;
22 }
23
24 extend google.protobuf.EnumOptions {
25 MigrateAnnotation enum_migrate = 171962766;
26 }
27
28 extend google.protobuf.EnumValueOptions {
29 MigrateAnnotation enum_value_migrate = 171962766;
30 }
31
32 extend google.protobuf.FileOptions {
33 FileMigrateAnnotation file_migrate = 171962766;
34 }
35
36 message MigrateAnnotation {
37 // Rename the message/enum/enum value in next version.
38 string rename = 1;
39 }
40
41 message 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
51 message 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 }