1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package grafeas
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39 type Severity int32
40
41 const (
42
43 Severity_SEVERITY_UNSPECIFIED Severity = 0
44
45 Severity_MINIMAL Severity = 1
46
47 Severity_LOW Severity = 2
48
49 Severity_MEDIUM Severity = 3
50
51 Severity_HIGH Severity = 4
52
53 Severity_CRITICAL Severity = 5
54 )
55
56
57 var (
58 Severity_name = map[int32]string{
59 0: "SEVERITY_UNSPECIFIED",
60 1: "MINIMAL",
61 2: "LOW",
62 3: "MEDIUM",
63 4: "HIGH",
64 5: "CRITICAL",
65 }
66 Severity_value = map[string]int32{
67 "SEVERITY_UNSPECIFIED": 0,
68 "MINIMAL": 1,
69 "LOW": 2,
70 "MEDIUM": 3,
71 "HIGH": 4,
72 "CRITICAL": 5,
73 }
74 )
75
76 func (x Severity) Enum() *Severity {
77 p := new(Severity)
78 *p = x
79 return p
80 }
81
82 func (x Severity) String() string {
83 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
84 }
85
86 func (Severity) Descriptor() protoreflect.EnumDescriptor {
87 return file_grafeas_v1_severity_proto_enumTypes[0].Descriptor()
88 }
89
90 func (Severity) Type() protoreflect.EnumType {
91 return &file_grafeas_v1_severity_proto_enumTypes[0]
92 }
93
94 func (x Severity) Number() protoreflect.EnumNumber {
95 return protoreflect.EnumNumber(x)
96 }
97
98
99 func (Severity) EnumDescriptor() ([]byte, []int) {
100 return file_grafeas_v1_severity_proto_rawDescGZIP(), []int{0}
101 }
102
103 var File_grafeas_v1_severity_proto protoreflect.FileDescriptor
104
105 var file_grafeas_v1_severity_proto_rawDesc = []byte{
106 0x0a, 0x19, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x76,
107 0x65, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72, 0x61,
108 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2a, 0x5e, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72,
109 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 0x54, 0x59, 0x5f,
110 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a,
111 0x07, 0x4d, 0x49, 0x4e, 0x49, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f,
112 0x57, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x44, 0x49, 0x55, 0x4d, 0x10, 0x03, 0x12,
113 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x49,
114 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x05, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72,
115 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67,
116 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
117 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
118 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61,
119 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
120 0x6f, 0x33,
121 }
122
123 var (
124 file_grafeas_v1_severity_proto_rawDescOnce sync.Once
125 file_grafeas_v1_severity_proto_rawDescData = file_grafeas_v1_severity_proto_rawDesc
126 )
127
128 func file_grafeas_v1_severity_proto_rawDescGZIP() []byte {
129 file_grafeas_v1_severity_proto_rawDescOnce.Do(func() {
130 file_grafeas_v1_severity_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_severity_proto_rawDescData)
131 })
132 return file_grafeas_v1_severity_proto_rawDescData
133 }
134
135 var file_grafeas_v1_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
136 var file_grafeas_v1_severity_proto_goTypes = []interface{}{
137 (Severity)(0),
138 }
139 var file_grafeas_v1_severity_proto_depIdxs = []int32{
140 0,
141 0,
142 0,
143 0,
144 0,
145 }
146
147 func init() { file_grafeas_v1_severity_proto_init() }
148 func file_grafeas_v1_severity_proto_init() {
149 if File_grafeas_v1_severity_proto != nil {
150 return
151 }
152 type x struct{}
153 out := protoimpl.TypeBuilder{
154 File: protoimpl.DescBuilder{
155 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
156 RawDescriptor: file_grafeas_v1_severity_proto_rawDesc,
157 NumEnums: 1,
158 NumMessages: 0,
159 NumExtensions: 0,
160 NumServices: 0,
161 },
162 GoTypes: file_grafeas_v1_severity_proto_goTypes,
163 DependencyIndexes: file_grafeas_v1_severity_proto_depIdxs,
164 EnumInfos: file_grafeas_v1_severity_proto_enumTypes,
165 }.Build()
166 File_grafeas_v1_severity_proto = out.File
167 file_grafeas_v1_severity_proto_rawDesc = nil
168 file_grafeas_v1_severity_proto_goTypes = nil
169 file_grafeas_v1_severity_proto_depIdxs = nil
170 }
171
View as plain text