| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package xds.annotations.v3; |
| 4 |
|
| 5 |
import "google/protobuf/descriptor.proto"; |
| 6 |
|
| 7 |
option go_package = "github.com/cncf/xds/go/xds/annotations/v3"; |
| 8 |
|
| 9 |
extend google.protobuf.MessageOptions { |
| 10 |
// Magic number is the 28 most significant bits in the sha256sum of |
| 11 |
// "xds.annotations.v3.versioning". |
| 12 |
VersioningAnnotation versioning = 92389011; |
| 13 |
} |
| 14 |
|
| 15 |
message VersioningAnnotation { |
| 16 |
// Track the previous message type. E.g. this message might be |
| 17 |
// xds.foo.v3alpha.Foo and it was previously xds.bar.v2.Bar. This |
| 18 |
// information is consumed by UDPA via proto descriptors. |
| 19 |
string previous_message_type = 1; |
| 20 |
} |