1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package containeranalysis
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 v1 "google.golang.org/genproto/googleapis/grafeas/v1"
30 v11 "google.golang.org/genproto/googleapis/iam/v1"
31 grpc "google.golang.org/grpc"
32 codes "google.golang.org/grpc/codes"
33 status "google.golang.org/grpc/status"
34 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
35 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
36 )
37
38 const (
39
40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41
42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43 )
44
45
46 type GetVulnerabilityOccurrencesSummaryRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51
52
53 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
54
55 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
56 }
57
58 func (x *GetVulnerabilityOccurrencesSummaryRequest) Reset() {
59 *x = GetVulnerabilityOccurrencesSummaryRequest{}
60 if protoimpl.UnsafeEnabled {
61 mi := &file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65 }
66
67 func (x *GetVulnerabilityOccurrencesSummaryRequest) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage() {}
72
73 func (x *GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect() protoreflect.Message {
74 mi := &file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[0]
75 if protoimpl.UnsafeEnabled && x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85
86 func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor() ([]byte, []int) {
87 return file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *GetVulnerabilityOccurrencesSummaryRequest) GetParent() string {
91 if x != nil {
92 return x.Parent
93 }
94 return ""
95 }
96
97 func (x *GetVulnerabilityOccurrencesSummaryRequest) GetFilter() string {
98 if x != nil {
99 return x.Filter
100 }
101 return ""
102 }
103
104
105
106 type VulnerabilityOccurrencesSummary struct {
107 state protoimpl.MessageState
108 sizeCache protoimpl.SizeCache
109 unknownFields protoimpl.UnknownFields
110
111
112 Counts []*VulnerabilityOccurrencesSummary_FixableTotalByDigest `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty"`
113 }
114
115 func (x *VulnerabilityOccurrencesSummary) Reset() {
116 *x = VulnerabilityOccurrencesSummary{}
117 if protoimpl.UnsafeEnabled {
118 mi := &file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[1]
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 ms.StoreMessageInfo(mi)
121 }
122 }
123
124 func (x *VulnerabilityOccurrencesSummary) String() string {
125 return protoimpl.X.MessageStringOf(x)
126 }
127
128 func (*VulnerabilityOccurrencesSummary) ProtoMessage() {}
129
130 func (x *VulnerabilityOccurrencesSummary) ProtoReflect() protoreflect.Message {
131 mi := &file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[1]
132 if protoimpl.UnsafeEnabled && x != nil {
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 if ms.LoadMessageInfo() == nil {
135 ms.StoreMessageInfo(mi)
136 }
137 return ms
138 }
139 return mi.MessageOf(x)
140 }
141
142
143 func (*VulnerabilityOccurrencesSummary) Descriptor() ([]byte, []int) {
144 return file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescGZIP(), []int{1}
145 }
146
147 func (x *VulnerabilityOccurrencesSummary) GetCounts() []*VulnerabilityOccurrencesSummary_FixableTotalByDigest {
148 if x != nil {
149 return x.Counts
150 }
151 return nil
152 }
153
154
155 type VulnerabilityOccurrencesSummary_FixableTotalByDigest struct {
156 state protoimpl.MessageState
157 sizeCache protoimpl.SizeCache
158 unknownFields protoimpl.UnknownFields
159
160
161 ResourceUri string `protobuf:"bytes,1,opt,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
162
163
164 Severity v1.Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1.Severity" json:"severity,omitempty"`
165
166 FixableCount int64 `protobuf:"varint,3,opt,name=fixable_count,json=fixableCount,proto3" json:"fixable_count,omitempty"`
167
168 TotalCount int64 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
169 }
170
171 func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset() {
172 *x = VulnerabilityOccurrencesSummary_FixableTotalByDigest{}
173 if protoimpl.UnsafeEnabled {
174 mi := &file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[2]
175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
176 ms.StoreMessageInfo(mi)
177 }
178 }
179
180 func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) String() string {
181 return protoimpl.X.MessageStringOf(x)
182 }
183
184 func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage() {}
185
186 func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect() protoreflect.Message {
187 mi := &file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[2]
188 if protoimpl.UnsafeEnabled && x != nil {
189 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190 if ms.LoadMessageInfo() == nil {
191 ms.StoreMessageInfo(mi)
192 }
193 return ms
194 }
195 return mi.MessageOf(x)
196 }
197
198
199 func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor() ([]byte, []int) {
200 return file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescGZIP(), []int{1, 0}
201 }
202
203 func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResourceUri() string {
204 if x != nil {
205 return x.ResourceUri
206 }
207 return ""
208 }
209
210 func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity() v1.Severity {
211 if x != nil {
212 return x.Severity
213 }
214 return v1.Severity_SEVERITY_UNSPECIFIED
215 }
216
217 func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount() int64 {
218 if x != nil {
219 return x.FixableCount
220 }
221 return 0
222 }
223
224 func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount() int64 {
225 if x != nil {
226 return x.TotalCount
227 }
228 return 0
229 }
230
231 var File_google_devtools_containeranalysis_v1_containeranalysis_proto protoreflect.FileDescriptor
232
233 var file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDesc = []byte{
234 0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
235 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79,
236 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
237 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24,
238 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e,
239 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69,
240 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
241 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
242 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
243 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
244 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
245 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
246 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
247 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
248 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
249 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
250 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72,
251 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f,
252 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90,
253 0x01, 0x0a, 0x29, 0x47, 0x65, 0x74, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c,
254 0x69, 0x74, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x53, 0x75,
255 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x06,
256 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41,
257 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75,
258 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
259 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,
260 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c,
261 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
262 0x72, 0x22, 0xc9, 0x02, 0x0a, 0x1f, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c,
263 0x69, 0x74, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x53, 0x75,
264 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x72, 0x0a, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18,
265 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64,
266 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
267 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x75, 0x6c,
268 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72,
269 0x65, 0x6e, 0x63, 0x65, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x78,
270 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x79, 0x44, 0x69, 0x67, 0x65, 0x73,
271 0x74, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0xb1, 0x01, 0x0a, 0x14, 0x46, 0x69,
272 0x78, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x79, 0x44, 0x69, 0x67, 0x65,
273 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75,
274 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
275 0x63, 0x65, 0x55, 0x72, 0x69, 0x12, 0x30, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74,
276 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
277 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73,
278 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x78, 0x61, 0x62,
279 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c,
280 0x66, 0x69, 0x78, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b,
281 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
282 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xa2, 0x08,
283 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x41, 0x6e, 0x61, 0x6c, 0x79,
284 0x73, 0x69, 0x73, 0x12, 0xd2, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,
285 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61,
286 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,
287 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
288 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,
289 0x86, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6e, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72,
290 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
291 0x2f, 0x2a, 0x2f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49,
292 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x5a, 0x39, 0x22, 0x34, 0x2f,
293 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f,
294 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
295 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,
296 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
297 0x65, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0xca, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74,
298 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
299 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d,
300 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e,
301 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,
302 0x6c, 0x69, 0x63, 0x79, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6e, 0x22, 0x2e, 0x2f, 0x76,
303 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
304 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
305 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x5a,
306 0x39, 0x22, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
307 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6f, 0x63, 0x63, 0x75,
308 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61,
309 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x08, 0x72, 0x65, 0x73,
310 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x83, 0x02, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61,
311 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x67,
312 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73,
313 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52,
314 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
315 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65,
316 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
317 0x65, 0x22, 0x97, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x7a, 0x22, 0x34, 0x2f, 0x76, 0x31, 0x2f,
318 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
319 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65,
320 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
321 0x3a, 0x01, 0x2a, 0x5a, 0x3f, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f,
322 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,
323 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74,
324 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
325 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c,
326 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x8e, 0x02, 0x0a, 0x22,
327 0x47, 0x65, 0x74, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
328 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61,
329 0x72, 0x79, 0x12, 0x4f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74,
330 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e,
331 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x75, 0x6c,
332 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72,
333 0x65, 0x6e, 0x63, 0x65, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
334 0x65, 0x73, 0x74, 0x1a, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76,
335 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61,
336 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x75, 0x6c, 0x6e, 0x65,
337 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
338 0x63, 0x65, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93,
339 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,
340 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6f, 0x63, 0x63, 0x75,
341 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x76, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62,
342 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0xda, 0x41, 0x0d, 0x70,
343 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x54, 0xca, 0x41,
344 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73,
345 0x69, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
346 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
347 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
348 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
349 0x72, 0x6d, 0x42, 0xf8, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
350 0x65, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79,
351 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x55, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
352 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
353 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
354 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
355 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f,
356 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0xa2,
357 0x02, 0x03, 0x47, 0x43, 0x41, 0xaa, 0x02, 0x2a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
358 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x65, 0x76, 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x43, 0x6f,
359 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e,
360 0x56, 0x31, 0xca, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75,
361 0x64, 0x5c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x41, 0x6e, 0x61, 0x6c, 0x79,
362 0x73, 0x69, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
363 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
364 0x72, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
365 0x72, 0x6f, 0x74, 0x6f, 0x33,
366 }
367
368 var (
369 file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescOnce sync.Once
370 file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescData = file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDesc
371 )
372
373 func file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescGZIP() []byte {
374 file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescOnce.Do(func() {
375 file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescData)
376 })
377 return file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDescData
378 }
379
380 var file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
381 var file_google_devtools_containeranalysis_v1_containeranalysis_proto_goTypes = []interface{}{
382 (*GetVulnerabilityOccurrencesSummaryRequest)(nil),
383 (*VulnerabilityOccurrencesSummary)(nil),
384 (*VulnerabilityOccurrencesSummary_FixableTotalByDigest)(nil),
385 (v1.Severity)(0),
386 (*v11.SetIamPolicyRequest)(nil),
387 (*v11.GetIamPolicyRequest)(nil),
388 (*v11.TestIamPermissionsRequest)(nil),
389 (*v11.Policy)(nil),
390 (*v11.TestIamPermissionsResponse)(nil),
391 }
392 var file_google_devtools_containeranalysis_v1_containeranalysis_proto_depIdxs = []int32{
393 2,
394 3,
395 4,
396 5,
397 6,
398 0,
399 7,
400 7,
401 8,
402 1,
403 6,
404 2,
405 2,
406 2,
407 0,
408 }
409
410 func init() { file_google_devtools_containeranalysis_v1_containeranalysis_proto_init() }
411 func file_google_devtools_containeranalysis_v1_containeranalysis_proto_init() {
412 if File_google_devtools_containeranalysis_v1_containeranalysis_proto != nil {
413 return
414 }
415 if !protoimpl.UnsafeEnabled {
416 file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
417 switch v := v.(*GetVulnerabilityOccurrencesSummaryRequest); i {
418 case 0:
419 return &v.state
420 case 1:
421 return &v.sizeCache
422 case 2:
423 return &v.unknownFields
424 default:
425 return nil
426 }
427 }
428 file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
429 switch v := v.(*VulnerabilityOccurrencesSummary); i {
430 case 0:
431 return &v.state
432 case 1:
433 return &v.sizeCache
434 case 2:
435 return &v.unknownFields
436 default:
437 return nil
438 }
439 }
440 file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
441 switch v := v.(*VulnerabilityOccurrencesSummary_FixableTotalByDigest); i {
442 case 0:
443 return &v.state
444 case 1:
445 return &v.sizeCache
446 case 2:
447 return &v.unknownFields
448 default:
449 return nil
450 }
451 }
452 }
453 type x struct{}
454 out := protoimpl.TypeBuilder{
455 File: protoimpl.DescBuilder{
456 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
457 RawDescriptor: file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDesc,
458 NumEnums: 0,
459 NumMessages: 3,
460 NumExtensions: 0,
461 NumServices: 1,
462 },
463 GoTypes: file_google_devtools_containeranalysis_v1_containeranalysis_proto_goTypes,
464 DependencyIndexes: file_google_devtools_containeranalysis_v1_containeranalysis_proto_depIdxs,
465 MessageInfos: file_google_devtools_containeranalysis_v1_containeranalysis_proto_msgTypes,
466 }.Build()
467 File_google_devtools_containeranalysis_v1_containeranalysis_proto = out.File
468 file_google_devtools_containeranalysis_v1_containeranalysis_proto_rawDesc = nil
469 file_google_devtools_containeranalysis_v1_containeranalysis_proto_goTypes = nil
470 file_google_devtools_containeranalysis_v1_containeranalysis_proto_depIdxs = nil
471 }
472
473
474 var _ context.Context
475 var _ grpc.ClientConnInterface
476
477
478
479 const _ = grpc.SupportPackageIsVersion6
480
481
482
483
484 type ContainerAnalysisClient interface {
485
486
487
488
489
490
491
492
493 SetIamPolicy(ctx context.Context, in *v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*v11.Policy, error)
494
495
496
497
498
499
500
501
502 GetIamPolicy(ctx context.Context, in *v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*v11.Policy, error)
503
504
505
506
507
508
509
510 TestIamPermissions(ctx context.Context, in *v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v11.TestIamPermissionsResponse, error)
511
512 GetVulnerabilityOccurrencesSummary(ctx context.Context, in *GetVulnerabilityOccurrencesSummaryRequest, opts ...grpc.CallOption) (*VulnerabilityOccurrencesSummary, error)
513 }
514
515 type containerAnalysisClient struct {
516 cc grpc.ClientConnInterface
517 }
518
519 func NewContainerAnalysisClient(cc grpc.ClientConnInterface) ContainerAnalysisClient {
520 return &containerAnalysisClient{cc}
521 }
522
523 func (c *containerAnalysisClient) SetIamPolicy(ctx context.Context, in *v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*v11.Policy, error) {
524 out := new(v11.Policy)
525 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1.ContainerAnalysis/SetIamPolicy", in, out, opts...)
526 if err != nil {
527 return nil, err
528 }
529 return out, nil
530 }
531
532 func (c *containerAnalysisClient) GetIamPolicy(ctx context.Context, in *v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*v11.Policy, error) {
533 out := new(v11.Policy)
534 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1.ContainerAnalysis/GetIamPolicy", in, out, opts...)
535 if err != nil {
536 return nil, err
537 }
538 return out, nil
539 }
540
541 func (c *containerAnalysisClient) TestIamPermissions(ctx context.Context, in *v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v11.TestIamPermissionsResponse, error) {
542 out := new(v11.TestIamPermissionsResponse)
543 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1.ContainerAnalysis/TestIamPermissions", in, out, opts...)
544 if err != nil {
545 return nil, err
546 }
547 return out, nil
548 }
549
550 func (c *containerAnalysisClient) GetVulnerabilityOccurrencesSummary(ctx context.Context, in *GetVulnerabilityOccurrencesSummaryRequest, opts ...grpc.CallOption) (*VulnerabilityOccurrencesSummary, error) {
551 out := new(VulnerabilityOccurrencesSummary)
552 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1.ContainerAnalysis/GetVulnerabilityOccurrencesSummary", in, out, opts...)
553 if err != nil {
554 return nil, err
555 }
556 return out, nil
557 }
558
559
560 type ContainerAnalysisServer interface {
561
562
563
564
565
566
567
568
569 SetIamPolicy(context.Context, *v11.SetIamPolicyRequest) (*v11.Policy, error)
570
571
572
573
574
575
576
577
578 GetIamPolicy(context.Context, *v11.GetIamPolicyRequest) (*v11.Policy, error)
579
580
581
582
583
584
585
586 TestIamPermissions(context.Context, *v11.TestIamPermissionsRequest) (*v11.TestIamPermissionsResponse, error)
587
588 GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error)
589 }
590
591
592 type UnimplementedContainerAnalysisServer struct {
593 }
594
595 func (*UnimplementedContainerAnalysisServer) SetIamPolicy(context.Context, *v11.SetIamPolicyRequest) (*v11.Policy, error) {
596 return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented")
597 }
598 func (*UnimplementedContainerAnalysisServer) GetIamPolicy(context.Context, *v11.GetIamPolicyRequest) (*v11.Policy, error) {
599 return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented")
600 }
601 func (*UnimplementedContainerAnalysisServer) TestIamPermissions(context.Context, *v11.TestIamPermissionsRequest) (*v11.TestIamPermissionsResponse, error) {
602 return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented")
603 }
604 func (*UnimplementedContainerAnalysisServer) GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error) {
605 return nil, status.Errorf(codes.Unimplemented, "method GetVulnerabilityOccurrencesSummary not implemented")
606 }
607
608 func RegisterContainerAnalysisServer(s *grpc.Server, srv ContainerAnalysisServer) {
609 s.RegisterService(&_ContainerAnalysis_serviceDesc, srv)
610 }
611
612 func _ContainerAnalysis_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
613 in := new(v11.SetIamPolicyRequest)
614 if err := dec(in); err != nil {
615 return nil, err
616 }
617 if interceptor == nil {
618 return srv.(ContainerAnalysisServer).SetIamPolicy(ctx, in)
619 }
620 info := &grpc.UnaryServerInfo{
621 Server: srv,
622 FullMethod: "/google.devtools.containeranalysis.v1.ContainerAnalysis/SetIamPolicy",
623 }
624 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
625 return srv.(ContainerAnalysisServer).SetIamPolicy(ctx, req.(*v11.SetIamPolicyRequest))
626 }
627 return interceptor(ctx, in, info, handler)
628 }
629
630 func _ContainerAnalysis_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
631 in := new(v11.GetIamPolicyRequest)
632 if err := dec(in); err != nil {
633 return nil, err
634 }
635 if interceptor == nil {
636 return srv.(ContainerAnalysisServer).GetIamPolicy(ctx, in)
637 }
638 info := &grpc.UnaryServerInfo{
639 Server: srv,
640 FullMethod: "/google.devtools.containeranalysis.v1.ContainerAnalysis/GetIamPolicy",
641 }
642 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
643 return srv.(ContainerAnalysisServer).GetIamPolicy(ctx, req.(*v11.GetIamPolicyRequest))
644 }
645 return interceptor(ctx, in, info, handler)
646 }
647
648 func _ContainerAnalysis_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
649 in := new(v11.TestIamPermissionsRequest)
650 if err := dec(in); err != nil {
651 return nil, err
652 }
653 if interceptor == nil {
654 return srv.(ContainerAnalysisServer).TestIamPermissions(ctx, in)
655 }
656 info := &grpc.UnaryServerInfo{
657 Server: srv,
658 FullMethod: "/google.devtools.containeranalysis.v1.ContainerAnalysis/TestIamPermissions",
659 }
660 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
661 return srv.(ContainerAnalysisServer).TestIamPermissions(ctx, req.(*v11.TestIamPermissionsRequest))
662 }
663 return interceptor(ctx, in, info, handler)
664 }
665
666 func _ContainerAnalysis_GetVulnerabilityOccurrencesSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
667 in := new(GetVulnerabilityOccurrencesSummaryRequest)
668 if err := dec(in); err != nil {
669 return nil, err
670 }
671 if interceptor == nil {
672 return srv.(ContainerAnalysisServer).GetVulnerabilityOccurrencesSummary(ctx, in)
673 }
674 info := &grpc.UnaryServerInfo{
675 Server: srv,
676 FullMethod: "/google.devtools.containeranalysis.v1.ContainerAnalysis/GetVulnerabilityOccurrencesSummary",
677 }
678 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
679 return srv.(ContainerAnalysisServer).GetVulnerabilityOccurrencesSummary(ctx, req.(*GetVulnerabilityOccurrencesSummaryRequest))
680 }
681 return interceptor(ctx, in, info, handler)
682 }
683
684 var _ContainerAnalysis_serviceDesc = grpc.ServiceDesc{
685 ServiceName: "google.devtools.containeranalysis.v1.ContainerAnalysis",
686 HandlerType: (*ContainerAnalysisServer)(nil),
687 Methods: []grpc.MethodDesc{
688 {
689 MethodName: "SetIamPolicy",
690 Handler: _ContainerAnalysis_SetIamPolicy_Handler,
691 },
692 {
693 MethodName: "GetIamPolicy",
694 Handler: _ContainerAnalysis_GetIamPolicy_Handler,
695 },
696 {
697 MethodName: "TestIamPermissions",
698 Handler: _ContainerAnalysis_TestIamPermissions_Handler,
699 },
700 {
701 MethodName: "GetVulnerabilityOccurrencesSummary",
702 Handler: _ContainerAnalysis_GetVulnerabilityOccurrencesSummary_Handler,
703 },
704 },
705 Streams: []grpc.StreamDesc{},
706 Metadata: "google/devtools/containeranalysis/v1/containeranalysis.proto",
707 }
708
View as plain text