You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/protocol-gen/protocol/enum.go
+31-22Lines changed: 31 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -5,29 +5,32 @@ package protocol
5
5
6
6
// Enumeration defines an enumeration.
7
7
typeEnumerationstruct {
8
-
// Whether the enumeration is deprecated or not. If deprecated the property contains the deprecation message.
9
-
Deprecatedstring
10
-
11
-
// An optional documentation.
12
-
Documentationstring
13
-
14
8
// The name of the enumeration.
15
9
Namestring
16
10
17
-
// Whether this is a proposed enumeration. If omitted, the enumeration is final.
18
-
Proposedbool
11
+
// The type of the elements.
12
+
TypeEnumerationType
19
13
20
-
// Since when (release number) this enumeration is available. Is empty if not known.
21
-
Sincestring
14
+
// The enum values.
15
+
Values []*EnumerationEntry
22
16
23
17
// Whether the enumeration supports custom values (e.g. values which are not part of the set defined in values). If omitted no custom values are supported.
24
18
SupportsCustomValuesbool
25
19
26
-
// The type of the elements.
27
-
TypeEnumerationType
20
+
// An optional documentation.
21
+
Documentationstring
28
22
29
-
// The enum values.
30
-
Values []*EnumerationEntry
23
+
// Since when (release number) this enumeration is available. Is empty if not known.
24
+
Sincestring
25
+
26
+
// All since tags in case there was more than one tag. Is undefined if not known.
27
+
SinceTags []string
28
+
29
+
// Whether this is a proposed enumeration. If omitted, the enumeration is final.
30
+
Proposedbool
31
+
32
+
// Whether the enumeration is deprecated or not. If deprecated the property contains the deprecation message.
33
+
Deprecatedstring
31
34
}
32
35
33
36
func (Enumeration) isTypeDecl() {}
@@ -50,21 +53,27 @@ const (
50
53
51
54
// EnumerationEntry defines an enumeration entry.
52
55
typeEnumerationEntrystruct {
53
-
// Whether the enum entry is deprecated or not. If deprecated the property contains the deprecation message.
54
-
Deprecatedstring
56
+
// The name of the enum item.
57
+
Namestring
58
+
59
+
// The value (string or number).
60
+
Valueany
55
61
56
62
// An optional documentation.
57
63
Documentationstring
58
64
59
-
// The name of the enum item.
60
-
Namestring
65
+
// Since when (release number) this enumeration entry is available. Is undefined if not known.
66
+
Sincestring
67
+
68
+
// All since tags in case there was more than one tag. Is undefined if not known.
69
+
SinceTags []string
61
70
62
71
// Whether this is a proposed enumeration entry. If omitted, the enumeration entry is final.
63
72
Proposedbool
64
73
65
-
// Since when (release number) this enumeration entry is available. Is undefined if not known.
66
-
Sincestring
74
+
// Whether the enum entry is deprecated or not. If deprecated the property contains the deprecation message.
0 commit comments