Skip to content

Commit e4404c3

Browse files
James DeFelicejieyu
James DeFelice
authored andcommitted
spec: added alpha_xxx options
Enumerations, fields, messages, methods, and services support `alpha_xxx` designations, indicating that they are part of an experimental feature that may never evolve to "stable" status.
1 parent da3002f commit e4404c3

File tree

3 files changed

+350
-212
lines changed

3 files changed

+350
-212
lines changed

csi.proto

+35
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,45 @@ import "google/protobuf/wrappers.proto";
88

99
option go_package = "csi";
1010

11+
extend google.protobuf.EnumOptions {
12+
// Indicates that this enum is OPTIONAL and part of an experimental
13+
// API that may be deprecated and eventually removed between minor
14+
// releases.
15+
bool alpha_enum = 1060;
16+
}
17+
extend google.protobuf.EnumValueOptions {
18+
// Indicates that this enum value is OPTIONAL and part of an
19+
// experimental API that may be deprecated and eventually removed
20+
// between minor releases.
21+
bool alpha_enum_value = 1060;
22+
}
1123
extend google.protobuf.FieldOptions {
1224
// Indicates that a field MAY contain information that is sensitive
1325
// and MUST be treated as such (e.g. not logged).
1426
bool csi_secret = 1059;
27+
28+
// Indicates that this field is OPTIONAL and part of an experimental
29+
// API that may be deprecated and eventually removed between minor
30+
// releases.
31+
bool alpha_field = 1060;
32+
}
33+
extend google.protobuf.MessageOptions {
34+
// Indicates that this message is OPTIONAL and part of an experimental
35+
// API that may be deprecated and eventually removed between minor
36+
// releases.
37+
bool alpha_message = 1060;
38+
}
39+
extend google.protobuf.MethodOptions {
40+
// Indicates that this method is OPTIONAL and part of an experimental
41+
// API that may be deprecated and eventually removed between minor
42+
// releases.
43+
bool alpha_method = 1060;
44+
}
45+
extend google.protobuf.ServiceOptions {
46+
// Indicates that this service is OPTIONAL and part of an experimental
47+
// API that may be deprecated and eventually removed between minor
48+
// releases.
49+
bool alpha_service = 1060;
1550
}
1651
service Identity {
1752
rpc GetPluginInfo(GetPluginInfoRequest)

0 commit comments

Comments
 (0)