| 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 |
// Magic number in this file derived from top 28bit of SHA256 digest of |
| 10 |
// "xds.annotations.v3.status". |
| 11 |
extend google.protobuf.FileOptions { |
| 12 |
FileStatusAnnotation file_status = 226829418; |
| 13 |
} |
| 14 |
|
| 15 |
extend google.protobuf.MessageOptions { |
| 16 |
MessageStatusAnnotation message_status = 226829418; |
| 17 |
} |
| 18 |
|
| 19 |
extend google.protobuf.FieldOptions { |
| 20 |
FieldStatusAnnotation field_status = 226829418; |
| 21 |
} |
| 22 |
|
| 23 |
message FileStatusAnnotation { |
| 24 |
// The entity is work-in-progress and subject to breaking changes. |
| 25 |
bool work_in_progress = 1; |
| 26 |
} |
| 27 |
|
| 28 |
message MessageStatusAnnotation { |
| 29 |
// The entity is work-in-progress and subject to breaking changes. |
| 30 |
bool work_in_progress = 1; |
| 31 |
} |
| 32 |
|
| 33 |
message FieldStatusAnnotation { |
| 34 |
// The entity is work-in-progress and subject to breaking changes. |
| 35 |
bool work_in_progress = 1; |
| 36 |
} |
| 37 |
|
| 38 |
enum PackageVersionStatus { |
| 39 |
// Unknown package version status. |
| 40 |
UNKNOWN = 0; |
| 41 |
|
| 42 |
// This version of the package is frozen. |
| 43 |
FROZEN = 1; |
| 44 |
|
| 45 |
// This version of the package is the active development version. |
| 46 |
ACTIVE = 2; |
| 47 |
|
| 48 |
// This version of the package is the candidate for the next major version. It |
| 49 |
// is typically machine generated from the active development version. |
| 50 |
NEXT_MAJOR_VERSION_CANDIDATE = 3; |
| 51 |
} |
| 52 |
|
| 53 |
message StatusAnnotation { |
| 54 |
// The entity is work-in-progress and subject to breaking changes. |
| 55 |
bool work_in_progress = 1; |
| 56 |
|
| 57 |
// The entity belongs to a package with the given version status. |
| 58 |
PackageVersionStatus package_version_status = 2; |
| 59 |
} |