Debian Codegraph @

securitycenter/apiv1/securitycenterpb/kubernetes.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/securitycenter/v1/kubernetes.proto
20
21 package securitycenterpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Types of Kubernetes roles.
38 type Kubernetes_Role_Kind int32
39
40 const (
41 // Role type is not specified.
42 Kubernetes_Role_KIND_UNSPECIFIED Kubernetes_Role_Kind = 0
43 // Kubernetes Role.
44 Kubernetes_Role_ROLE Kubernetes_Role_Kind = 1
45 // Kubernetes ClusterRole.
46 Kubernetes_Role_CLUSTER_ROLE Kubernetes_Role_Kind = 2
47 )
48
49 // Enum value maps for Kubernetes_Role_Kind.
50 var (
51 Kubernetes_Role_Kind_name = map[int32]string{
52 0: "KIND_UNSPECIFIED",
53 1: "ROLE",
54 2: "CLUSTER_ROLE",
55 }
56 Kubernetes_Role_Kind_value = map[string]int32{
57 "KIND_UNSPECIFIED": 0,
58 "ROLE": 1,
59 "CLUSTER_ROLE": 2,
60 }
61 )
62
63 func (x Kubernetes_Role_Kind) Enum() *Kubernetes_Role_Kind {
64 p := new(Kubernetes_Role_Kind)
65 *p = x
66 return p
67 }
68
69 func (x Kubernetes_Role_Kind) String() string {
70 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
71 }
72
73 func (Kubernetes_Role_Kind) Descriptor() protoreflect.EnumDescriptor {
74 return file_google_cloud_securitycenter_v1_kubernetes_proto_enumTypes[0].Descriptor()
75 }
76
77 func (Kubernetes_Role_Kind) Type() protoreflect.EnumType {
78 return &file_google_cloud_securitycenter_v1_kubernetes_proto_enumTypes[0]
79 }
80
81 func (x Kubernetes_Role_Kind) Number() protoreflect.EnumNumber {
82 return protoreflect.EnumNumber(x)
83 }
84
85 // Deprecated: Use Kubernetes_Role_Kind.Descriptor instead.
86 func (Kubernetes_Role_Kind) EnumDescriptor() ([]byte, []int) {
87 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 3, 0}
88 }
89
90 // Auth types that can be used for the subject's kind field.
91 type Kubernetes_Subject_AuthType int32
92
93 const (
94 // Authentication is not specified.
95 Kubernetes_Subject_AUTH_TYPE_UNSPECIFIED Kubernetes_Subject_AuthType = 0
96 // User with valid certificate.
97 Kubernetes_Subject_USER Kubernetes_Subject_AuthType = 1
98 // Users managed by Kubernetes API with credentials stored as secrets.
99 Kubernetes_Subject_SERVICEACCOUNT Kubernetes_Subject_AuthType = 2
100 // Collection of users.
101 Kubernetes_Subject_GROUP Kubernetes_Subject_AuthType = 3
102 )
103
104 // Enum value maps for Kubernetes_Subject_AuthType.
105 var (
106 Kubernetes_Subject_AuthType_name = map[int32]string{
107 0: "AUTH_TYPE_UNSPECIFIED",
108 1: "USER",
109 2: "SERVICEACCOUNT",
110 3: "GROUP",
111 }
112 Kubernetes_Subject_AuthType_value = map[string]int32{
113 "AUTH_TYPE_UNSPECIFIED": 0,
114 "USER": 1,
115 "SERVICEACCOUNT": 2,
116 "GROUP": 3,
117 }
118 )
119
120 func (x Kubernetes_Subject_AuthType) Enum() *Kubernetes_Subject_AuthType {
121 p := new(Kubernetes_Subject_AuthType)
122 *p = x
123 return p
124 }
125
126 func (x Kubernetes_Subject_AuthType) String() string {
127 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
128 }
129
130 func (Kubernetes_Subject_AuthType) Descriptor() protoreflect.EnumDescriptor {
131 return file_google_cloud_securitycenter_v1_kubernetes_proto_enumTypes[1].Descriptor()
132 }
133
134 func (Kubernetes_Subject_AuthType) Type() protoreflect.EnumType {
135 return &file_google_cloud_securitycenter_v1_kubernetes_proto_enumTypes[1]
136 }
137
138 func (x Kubernetes_Subject_AuthType) Number() protoreflect.EnumNumber {
139 return protoreflect.EnumNumber(x)
140 }
141
142 // Deprecated: Use Kubernetes_Subject_AuthType.Descriptor instead.
143 func (Kubernetes_Subject_AuthType) EnumDescriptor() ([]byte, []int) {
144 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 5, 0}
145 }
146
147 // Kubernetes-related attributes.
148 type Kubernetes struct {
149 state protoimpl.MessageState
150 sizeCache protoimpl.SizeCache
151 unknownFields protoimpl.UnknownFields
152
153 // Kubernetes
154 // [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod)
155 // associated with the finding. This field contains Pod records for each
156 // container that is owned by a Pod.
157 Pods []*Kubernetes_Pod `protobuf:"bytes,1,rep,name=pods,proto3" json:"pods,omitempty"`
158 // Provides Kubernetes
159 // [node](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#nodes)
160 // information.
161 Nodes []*Kubernetes_Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
162 // GKE [node
163 // pools](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools)
164 // associated with the finding. This field contains node pool information for
165 // each node, when it is available.
166 NodePools []*Kubernetes_NodePool `protobuf:"bytes,3,rep,name=node_pools,json=nodePools,proto3" json:"node_pools,omitempty"`
167 // Provides Kubernetes role information for findings that involve [Roles or
168 // ClusterRoles](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
169 Roles []*Kubernetes_Role `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
170 // Provides Kubernetes role binding information for findings that involve
171 // [RoleBindings or
172 // ClusterRoleBindings](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
173 Bindings []*Kubernetes_Binding `protobuf:"bytes,5,rep,name=bindings,proto3" json:"bindings,omitempty"`
174 // Provides information on any Kubernetes access reviews (privilege checks)
175 // relevant to the finding.
176 AccessReviews []*Kubernetes_AccessReview `protobuf:"bytes,6,rep,name=access_reviews,json=accessReviews,proto3" json:"access_reviews,omitempty"`
177 // Kubernetes objects related to the finding.
178 Objects []*Kubernetes_Object `protobuf:"bytes,7,rep,name=objects,proto3" json:"objects,omitempty"`
179 }
180
181 func (x *Kubernetes) Reset() {
182 *x = Kubernetes{}
183 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[0]
184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
185 ms.StoreMessageInfo(mi)
186 }
187
188 func (x *Kubernetes) String() string {
189 return protoimpl.X.MessageStringOf(x)
190 }
191
192 func (*Kubernetes) ProtoMessage() {}
193
194 func (x *Kubernetes) ProtoReflect() protoreflect.Message {
195 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[0]
196 if x != nil {
197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
198 if ms.LoadMessageInfo() == nil {
199 ms.StoreMessageInfo(mi)
200 }
201 return ms
202 }
203 return mi.MessageOf(x)
204 }
205
206 // Deprecated: Use Kubernetes.ProtoReflect.Descriptor instead.
207 func (*Kubernetes) Descriptor() ([]byte, []int) {
208 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0}
209 }
210
211 func (x *Kubernetes) GetPods() []*Kubernetes_Pod {
212 if x != nil {
213 return x.Pods
214 }
215 return nil
216 }
217
218 func (x *Kubernetes) GetNodes() []*Kubernetes_Node {
219 if x != nil {
220 return x.Nodes
221 }
222 return nil
223 }
224
225 func (x *Kubernetes) GetNodePools() []*Kubernetes_NodePool {
226 if x != nil {
227 return x.NodePools
228 }
229 return nil
230 }
231
232 func (x *Kubernetes) GetRoles() []*Kubernetes_Role {
233 if x != nil {
234 return x.Roles
235 }
236 return nil
237 }
238
239 func (x *Kubernetes) GetBindings() []*Kubernetes_Binding {
240 if x != nil {
241 return x.Bindings
242 }
243 return nil
244 }
245
246 func (x *Kubernetes) GetAccessReviews() []*Kubernetes_AccessReview {
247 if x != nil {
248 return x.AccessReviews
249 }
250 return nil
251 }
252
253 func (x *Kubernetes) GetObjects() []*Kubernetes_Object {
254 if x != nil {
255 return x.Objects
256 }
257 return nil
258 }
259
260 // A Kubernetes Pod.
261 type Kubernetes_Pod struct {
262 state protoimpl.MessageState
263 sizeCache protoimpl.SizeCache
264 unknownFields protoimpl.UnknownFields
265
266 // Kubernetes Pod namespace.
267 Ns string `protobuf:"bytes,1,opt,name=ns,proto3" json:"ns,omitempty"`
268 // Kubernetes Pod name.
269 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
270 // Pod labels. For Kubernetes containers, these are applied to the
271 // container.
272 Labels []*Label `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
273 // Pod containers associated with this finding, if any.
274 Containers []*Container `protobuf:"bytes,4,rep,name=containers,proto3" json:"containers,omitempty"`
275 }
276
277 func (x *Kubernetes_Pod) Reset() {
278 *x = Kubernetes_Pod{}
279 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[1]
280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
281 ms.StoreMessageInfo(mi)
282 }
283
284 func (x *Kubernetes_Pod) String() string {
285 return protoimpl.X.MessageStringOf(x)
286 }
287
288 func (*Kubernetes_Pod) ProtoMessage() {}
289
290 func (x *Kubernetes_Pod) ProtoReflect() protoreflect.Message {
291 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[1]
292 if x != nil {
293 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
294 if ms.LoadMessageInfo() == nil {
295 ms.StoreMessageInfo(mi)
296 }
297 return ms
298 }
299 return mi.MessageOf(x)
300 }
301
302 // Deprecated: Use Kubernetes_Pod.ProtoReflect.Descriptor instead.
303 func (*Kubernetes_Pod) Descriptor() ([]byte, []int) {
304 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 0}
305 }
306
307 func (x *Kubernetes_Pod) GetNs() string {
308 if x != nil {
309 return x.Ns
310 }
311 return ""
312 }
313
314 func (x *Kubernetes_Pod) GetName() string {
315 if x != nil {
316 return x.Name
317 }
318 return ""
319 }
320
321 func (x *Kubernetes_Pod) GetLabels() []*Label {
322 if x != nil {
323 return x.Labels
324 }
325 return nil
326 }
327
328 func (x *Kubernetes_Pod) GetContainers() []*Container {
329 if x != nil {
330 return x.Containers
331 }
332 return nil
333 }
334
335 // Kubernetes nodes associated with the finding.
336 type Kubernetes_Node struct {
337 state protoimpl.MessageState
338 sizeCache protoimpl.SizeCache
339 unknownFields protoimpl.UnknownFields
340
341 // [Full resource name](https://google.aip.dev/122#full-resource-names) of
342 // the Compute Engine VM running the cluster node.
343 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
344 }
345
346 func (x *Kubernetes_Node) Reset() {
347 *x = Kubernetes_Node{}
348 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[2]
349 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
350 ms.StoreMessageInfo(mi)
351 }
352
353 func (x *Kubernetes_Node) String() string {
354 return protoimpl.X.MessageStringOf(x)
355 }
356
357 func (*Kubernetes_Node) ProtoMessage() {}
358
359 func (x *Kubernetes_Node) ProtoReflect() protoreflect.Message {
360 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[2]
361 if x != nil {
362 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
363 if ms.LoadMessageInfo() == nil {
364 ms.StoreMessageInfo(mi)
365 }
366 return ms
367 }
368 return mi.MessageOf(x)
369 }
370
371 // Deprecated: Use Kubernetes_Node.ProtoReflect.Descriptor instead.
372 func (*Kubernetes_Node) Descriptor() ([]byte, []int) {
373 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 1}
374 }
375
376 func (x *Kubernetes_Node) GetName() string {
377 if x != nil {
378 return x.Name
379 }
380 return ""
381 }
382
383 // Provides GKE node pool information.
384 type Kubernetes_NodePool struct {
385 state protoimpl.MessageState
386 sizeCache protoimpl.SizeCache
387 unknownFields protoimpl.UnknownFields
388
389 // Kubernetes node pool name.
390 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
391 // Nodes associated with the finding.
392 Nodes []*Kubernetes_Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
393 }
394
395 func (x *Kubernetes_NodePool) Reset() {
396 *x = Kubernetes_NodePool{}
397 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[3]
398 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
399 ms.StoreMessageInfo(mi)
400 }
401
402 func (x *Kubernetes_NodePool) String() string {
403 return protoimpl.X.MessageStringOf(x)
404 }
405
406 func (*Kubernetes_NodePool) ProtoMessage() {}
407
408 func (x *Kubernetes_NodePool) ProtoReflect() protoreflect.Message {
409 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[3]
410 if x != nil {
411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
412 if ms.LoadMessageInfo() == nil {
413 ms.StoreMessageInfo(mi)
414 }
415 return ms
416 }
417 return mi.MessageOf(x)
418 }
419
420 // Deprecated: Use Kubernetes_NodePool.ProtoReflect.Descriptor instead.
421 func (*Kubernetes_NodePool) Descriptor() ([]byte, []int) {
422 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 2}
423 }
424
425 func (x *Kubernetes_NodePool) GetName() string {
426 if x != nil {
427 return x.Name
428 }
429 return ""
430 }
431
432 func (x *Kubernetes_NodePool) GetNodes() []*Kubernetes_Node {
433 if x != nil {
434 return x.Nodes
435 }
436 return nil
437 }
438
439 // Kubernetes Role or ClusterRole.
440 type Kubernetes_Role struct {
441 state protoimpl.MessageState
442 sizeCache protoimpl.SizeCache
443 unknownFields protoimpl.UnknownFields
444
445 // Role type.
446 Kind Kubernetes_Role_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.cloud.securitycenter.v1.Kubernetes_Role_Kind" json:"kind,omitempty"`
447 // Role namespace.
448 Ns string `protobuf:"bytes,2,opt,name=ns,proto3" json:"ns,omitempty"`
449 // Role name.
450 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
451 }
452
453 func (x *Kubernetes_Role) Reset() {
454 *x = Kubernetes_Role{}
455 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[4]
456 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
457 ms.StoreMessageInfo(mi)
458 }
459
460 func (x *Kubernetes_Role) String() string {
461 return protoimpl.X.MessageStringOf(x)
462 }
463
464 func (*Kubernetes_Role) ProtoMessage() {}
465
466 func (x *Kubernetes_Role) ProtoReflect() protoreflect.Message {
467 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[4]
468 if x != nil {
469 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
470 if ms.LoadMessageInfo() == nil {
471 ms.StoreMessageInfo(mi)
472 }
473 return ms
474 }
475 return mi.MessageOf(x)
476 }
477
478 // Deprecated: Use Kubernetes_Role.ProtoReflect.Descriptor instead.
479 func (*Kubernetes_Role) Descriptor() ([]byte, []int) {
480 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 3}
481 }
482
483 func (x *Kubernetes_Role) GetKind() Kubernetes_Role_Kind {
484 if x != nil {
485 return x.Kind
486 }
487 return Kubernetes_Role_KIND_UNSPECIFIED
488 }
489
490 func (x *Kubernetes_Role) GetNs() string {
491 if x != nil {
492 return x.Ns
493 }
494 return ""
495 }
496
497 func (x *Kubernetes_Role) GetName() string {
498 if x != nil {
499 return x.Name
500 }
501 return ""
502 }
503
504 // Represents a Kubernetes RoleBinding or ClusterRoleBinding.
505 type Kubernetes_Binding struct {
506 state protoimpl.MessageState
507 sizeCache protoimpl.SizeCache
508 unknownFields protoimpl.UnknownFields
509
510 // Namespace for the binding.
511 Ns string `protobuf:"bytes,1,opt,name=ns,proto3" json:"ns,omitempty"`
512 // Name for the binding.
513 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
514 // The Role or ClusterRole referenced by the binding.
515 Role *Kubernetes_Role `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
516 // Represents one or more subjects that are bound to the role. Not always
517 // available for PATCH requests.
518 Subjects []*Kubernetes_Subject `protobuf:"bytes,4,rep,name=subjects,proto3" json:"subjects,omitempty"`
519 }
520
521 func (x *Kubernetes_Binding) Reset() {
522 *x = Kubernetes_Binding{}
523 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[5]
524 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
525 ms.StoreMessageInfo(mi)
526 }
527
528 func (x *Kubernetes_Binding) String() string {
529 return protoimpl.X.MessageStringOf(x)
530 }
531
532 func (*Kubernetes_Binding) ProtoMessage() {}
533
534 func (x *Kubernetes_Binding) ProtoReflect() protoreflect.Message {
535 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[5]
536 if x != nil {
537 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
538 if ms.LoadMessageInfo() == nil {
539 ms.StoreMessageInfo(mi)
540 }
541 return ms
542 }
543 return mi.MessageOf(x)
544 }
545
546 // Deprecated: Use Kubernetes_Binding.ProtoReflect.Descriptor instead.
547 func (*Kubernetes_Binding) Descriptor() ([]byte, []int) {
548 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 4}
549 }
550
551 func (x *Kubernetes_Binding) GetNs() string {
552 if x != nil {
553 return x.Ns
554 }
555 return ""
556 }
557
558 func (x *Kubernetes_Binding) GetName() string {
559 if x != nil {
560 return x.Name
561 }
562 return ""
563 }
564
565 func (x *Kubernetes_Binding) GetRole() *Kubernetes_Role {
566 if x != nil {
567 return x.Role
568 }
569 return nil
570 }
571
572 func (x *Kubernetes_Binding) GetSubjects() []*Kubernetes_Subject {
573 if x != nil {
574 return x.Subjects
575 }
576 return nil
577 }
578
579 // Represents a Kubernetes subject.
580 type Kubernetes_Subject struct {
581 state protoimpl.MessageState
582 sizeCache protoimpl.SizeCache
583 unknownFields protoimpl.UnknownFields
584
585 // Authentication type for the subject.
586 Kind Kubernetes_Subject_AuthType `protobuf:"varint,1,opt,name=kind,proto3,enum=google.cloud.securitycenter.v1.Kubernetes_Subject_AuthType" json:"kind,omitempty"`
587 // Namespace for the subject.
588 Ns string `protobuf:"bytes,2,opt,name=ns,proto3" json:"ns,omitempty"`
589 // Name for the subject.
590 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
591 }
592
593 func (x *Kubernetes_Subject) Reset() {
594 *x = Kubernetes_Subject{}
595 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[6]
596 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
597 ms.StoreMessageInfo(mi)
598 }
599
600 func (x *Kubernetes_Subject) String() string {
601 return protoimpl.X.MessageStringOf(x)
602 }
603
604 func (*Kubernetes_Subject) ProtoMessage() {}
605
606 func (x *Kubernetes_Subject) ProtoReflect() protoreflect.Message {
607 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[6]
608 if x != nil {
609 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
610 if ms.LoadMessageInfo() == nil {
611 ms.StoreMessageInfo(mi)
612 }
613 return ms
614 }
615 return mi.MessageOf(x)
616 }
617
618 // Deprecated: Use Kubernetes_Subject.ProtoReflect.Descriptor instead.
619 func (*Kubernetes_Subject) Descriptor() ([]byte, []int) {
620 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 5}
621 }
622
623 func (x *Kubernetes_Subject) GetKind() Kubernetes_Subject_AuthType {
624 if x != nil {
625 return x.Kind
626 }
627 return Kubernetes_Subject_AUTH_TYPE_UNSPECIFIED
628 }
629
630 func (x *Kubernetes_Subject) GetNs() string {
631 if x != nil {
632 return x.Ns
633 }
634 return ""
635 }
636
637 func (x *Kubernetes_Subject) GetName() string {
638 if x != nil {
639 return x.Name
640 }
641 return ""
642 }
643
644 // Conveys information about a Kubernetes access review (such as one returned
645 // by a [`kubectl auth
646 // can-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access)
647 // command) that was involved in a finding.
648 type Kubernetes_AccessReview struct {
649 state protoimpl.MessageState
650 sizeCache protoimpl.SizeCache
651 unknownFields protoimpl.UnknownFields
652
653 // The API group of the resource. "*" means all.
654 Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
655 // Namespace of the action being requested. Currently, there is no
656 // distinction between no namespace and all namespaces. Both
657 // are represented by "" (empty).
658 Ns string `protobuf:"bytes,2,opt,name=ns,proto3" json:"ns,omitempty"`
659 // The name of the resource being requested. Empty means all.
660 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
661 // The optional resource type requested. "*" means all.
662 Resource string `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
663 // The optional subresource type.
664 Subresource string `protobuf:"bytes,5,opt,name=subresource,proto3" json:"subresource,omitempty"`
665 // A Kubernetes resource API verb, like get, list, watch, create, update,
666 // delete, proxy. "*" means all.
667 Verb string `protobuf:"bytes,6,opt,name=verb,proto3" json:"verb,omitempty"`
668 // The API version of the resource. "*" means all.
669 Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
670 }
671
672 func (x *Kubernetes_AccessReview) Reset() {
673 *x = Kubernetes_AccessReview{}
674 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[7]
675 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
676 ms.StoreMessageInfo(mi)
677 }
678
679 func (x *Kubernetes_AccessReview) String() string {
680 return protoimpl.X.MessageStringOf(x)
681 }
682
683 func (*Kubernetes_AccessReview) ProtoMessage() {}
684
685 func (x *Kubernetes_AccessReview) ProtoReflect() protoreflect.Message {
686 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[7]
687 if x != nil {
688 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
689 if ms.LoadMessageInfo() == nil {
690 ms.StoreMessageInfo(mi)
691 }
692 return ms
693 }
694 return mi.MessageOf(x)
695 }
696
697 // Deprecated: Use Kubernetes_AccessReview.ProtoReflect.Descriptor instead.
698 func (*Kubernetes_AccessReview) Descriptor() ([]byte, []int) {
699 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 6}
700 }
701
702 func (x *Kubernetes_AccessReview) GetGroup() string {
703 if x != nil {
704 return x.Group
705 }
706 return ""
707 }
708
709 func (x *Kubernetes_AccessReview) GetNs() string {
710 if x != nil {
711 return x.Ns
712 }
713 return ""
714 }
715
716 func (x *Kubernetes_AccessReview) GetName() string {
717 if x != nil {
718 return x.Name
719 }
720 return ""
721 }
722
723 func (x *Kubernetes_AccessReview) GetResource() string {
724 if x != nil {
725 return x.Resource
726 }
727 return ""
728 }
729
730 func (x *Kubernetes_AccessReview) GetSubresource() string {
731 if x != nil {
732 return x.Subresource
733 }
734 return ""
735 }
736
737 func (x *Kubernetes_AccessReview) GetVerb() string {
738 if x != nil {
739 return x.Verb
740 }
741 return ""
742 }
743
744 func (x *Kubernetes_AccessReview) GetVersion() string {
745 if x != nil {
746 return x.Version
747 }
748 return ""
749 }
750
751 // Kubernetes object related to the finding, uniquely identified by GKNN.
752 // Used if the object Kind is not one of Pod, Node, NodePool, Binding, or
753 // AccessReview.
754 type Kubernetes_Object struct {
755 state protoimpl.MessageState
756 sizeCache protoimpl.SizeCache
757 unknownFields protoimpl.UnknownFields
758
759 // Kubernetes object group, such as "policy.k8s.io/v1".
760 Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
761 // Kubernetes object kind, such as "Namespace".
762 Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
763 // Kubernetes object namespace. Must be a valid DNS label. Named
764 // "ns" to avoid collision with C++ namespace keyword. For details see
765 // https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
766 Ns string `protobuf:"bytes,3,opt,name=ns,proto3" json:"ns,omitempty"`
767 // Kubernetes object name. For details see
768 // https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.
769 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
770 // Pod containers associated with this finding, if any.
771 Containers []*Container `protobuf:"bytes,5,rep,name=containers,proto3" json:"containers,omitempty"`
772 }
773
774 func (x *Kubernetes_Object) Reset() {
775 *x = Kubernetes_Object{}
776 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[8]
777 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
778 ms.StoreMessageInfo(mi)
779 }
780
781 func (x *Kubernetes_Object) String() string {
782 return protoimpl.X.MessageStringOf(x)
783 }
784
785 func (*Kubernetes_Object) ProtoMessage() {}
786
787 func (x *Kubernetes_Object) ProtoReflect() protoreflect.Message {
788 mi := &file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes[8]
789 if x != nil {
790 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
791 if ms.LoadMessageInfo() == nil {
792 ms.StoreMessageInfo(mi)
793 }
794 return ms
795 }
796 return mi.MessageOf(x)
797 }
798
799 // Deprecated: Use Kubernetes_Object.ProtoReflect.Descriptor instead.
800 func (*Kubernetes_Object) Descriptor() ([]byte, []int) {
801 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP(), []int{0, 7}
802 }
803
804 func (x *Kubernetes_Object) GetGroup() string {
805 if x != nil {
806 return x.Group
807 }
808 return ""
809 }
810
811 func (x *Kubernetes_Object) GetKind() string {
812 if x != nil {
813 return x.Kind
814 }
815 return ""
816 }
817
818 func (x *Kubernetes_Object) GetNs() string {
819 if x != nil {
820 return x.Ns
821 }
822 return ""
823 }
824
825 func (x *Kubernetes_Object) GetName() string {
826 if x != nil {
827 return x.Name
828 }
829 return ""
830 }
831
832 func (x *Kubernetes_Object) GetContainers() []*Container {
833 if x != nil {
834 return x.Containers
835 }
836 return nil
837 }
838
839 var File_google_cloud_securitycenter_v1_kubernetes_proto protoreflect.FileDescriptor
840
841 var file_google_cloud_securitycenter_v1_kubernetes_proto_rawDesc = []byte{
842 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
843 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
844 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
845 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
846 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76,
847 0x31, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
848 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76,
849 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
850 0x6f, 0x1a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
851 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76,
852 0x31, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x0e,
853 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x04,
854 0x70, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f,
855 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
856 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65,
857 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x50, 0x6f, 0x64, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73,
858 0x12, 0x45, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
859 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
860 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31,
861 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
862 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x5f,
863 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f,
864 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
865 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62,
866 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x6f, 0x6c,
867 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x45, 0x0a, 0x05, 0x72,
868 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f,
869 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
870 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65,
871 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c,
872 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05,
873 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
874 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
875 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73,
876 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e,
877 0x67, 0x73, 0x12, 0x5e, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x76,
878 0x69, 0x65, 0x77, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f,
879 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
880 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65,
881 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x76,
882 0x69, 0x65, 0x77, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x76, 0x69, 0x65,
883 0x77, 0x73, 0x12, 0x4b, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x07, 0x20,
884 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
885 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
886 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e,
887 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x1a,
888 0xb3, 0x01, 0x0a, 0x03, 0x50, 0x6f, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6e, 0x73, 0x18, 0x01, 0x20,
889 0x01, 0x28, 0x09, 0x52, 0x02, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
890 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x6c,
891 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f,
892 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
893 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62,
894 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x49, 0x0a, 0x0a, 0x63, 0x6f,
895 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29,
896 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
897 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
898 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61,
899 0x69, 0x6e, 0x65, 0x72, 0x73, 0x1a, 0x1a, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a,
900 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
901 0x65, 0x1a, 0x65, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x12, 0x0a,
902 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
903 0x65, 0x12, 0x45, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
904 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
905 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76,
906 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64,
907 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x1a, 0xae, 0x01, 0x0a, 0x04, 0x52, 0x6f, 0x6c,
908 0x65, 0x12, 0x48, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
909 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
910 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31,
911 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x52, 0x6f, 0x6c, 0x65,
912 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6e,
913 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e,
914 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
915 0x38, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x10, 0x4b, 0x49, 0x4e, 0x44, 0x5f,
916 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a,
917 0x04, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4c, 0x55, 0x53, 0x54,
918 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x1a, 0xc2, 0x01, 0x0a, 0x07, 0x42, 0x69,
919 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
920 0x09, 0x52, 0x02, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
921 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x04, 0x72, 0x6f, 0x6c,
922 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
923 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63,
924 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65,
925 0x74, 0x65, 0x73, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4e,
926 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
927 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
928 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76,
929 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x53, 0x75, 0x62,
930 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x1a, 0xce,
931 0x01, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x4f, 0x0a, 0x04, 0x6b, 0x69,
932 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
933 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
934 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e,
935 0x65, 0x74, 0x65, 0x73, 0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x41, 0x75, 0x74,
936 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6e,
937 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e,
938 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
939 0x4e, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x41,
940 0x55, 0x54, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
941 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01,
942 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x41, 0x43, 0x43, 0x4f, 0x55,
943 0x4e, 0x54, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x03, 0x1a,
944 0xb4, 0x01, 0x0a, 0x0c, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,
945 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
946 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01,
947 0x28, 0x09, 0x52, 0x02, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
948 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65,
949 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65,
950 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73,
951 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x75, 0x62,
952 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62,
953 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x12, 0x18, 0x0a, 0x07,
954 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76,
955 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xa1, 0x01, 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63,
956 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
957 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,
958 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6e,
959 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e,
960 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
961 0x49, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20,
962 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
963 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
964 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x0a,
965 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x42, 0xe9, 0x01, 0x0a, 0x22, 0x63,
966 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
967 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76,
968 0x31, 0x42, 0x0f, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f,
969 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
970 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
971 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73,
972 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b,
973 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62,
974 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
975 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56,
976 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
977 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c,
978 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
979 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74,
980 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
981 }
982
983 var (
984 file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescOnce sync.Once
985 file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescData = file_google_cloud_securitycenter_v1_kubernetes_proto_rawDesc
986 )
987
988 func file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescGZIP() []byte {
989 file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescOnce.Do(func() {
990 file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescData)
991 })
992 return file_google_cloud_securitycenter_v1_kubernetes_proto_rawDescData
993 }
994
995 var file_google_cloud_securitycenter_v1_kubernetes_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
996 var file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
997 var file_google_cloud_securitycenter_v1_kubernetes_proto_goTypes = []any{
998 (Kubernetes_Role_Kind)(0), // 0: google.cloud.securitycenter.v1.Kubernetes.Role.Kind
999 (Kubernetes_Subject_AuthType)(0), // 1: google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType
1000 (*Kubernetes)(nil), // 2: google.cloud.securitycenter.v1.Kubernetes
1001 (*Kubernetes_Pod)(nil), // 3: google.cloud.securitycenter.v1.Kubernetes.Pod
1002 (*Kubernetes_Node)(nil), // 4: google.cloud.securitycenter.v1.Kubernetes.Node
1003 (*Kubernetes_NodePool)(nil), // 5: google.cloud.securitycenter.v1.Kubernetes.NodePool
1004 (*Kubernetes_Role)(nil), // 6: google.cloud.securitycenter.v1.Kubernetes.Role
1005 (*Kubernetes_Binding)(nil), // 7: google.cloud.securitycenter.v1.Kubernetes.Binding
1006 (*Kubernetes_Subject)(nil), // 8: google.cloud.securitycenter.v1.Kubernetes.Subject
1007 (*Kubernetes_AccessReview)(nil), // 9: google.cloud.securitycenter.v1.Kubernetes.AccessReview
1008 (*Kubernetes_Object)(nil), // 10: google.cloud.securitycenter.v1.Kubernetes.Object
1009 (*Label)(nil), // 11: google.cloud.securitycenter.v1.Label
1010 (*Container)(nil), // 12: google.cloud.securitycenter.v1.Container
1011 }
1012 var file_google_cloud_securitycenter_v1_kubernetes_proto_depIdxs = []int32{
1013 3, // 0: google.cloud.securitycenter.v1.Kubernetes.pods:type_name -> google.cloud.securitycenter.v1.Kubernetes.Pod
1014 4, // 1: google.cloud.securitycenter.v1.Kubernetes.nodes:type_name -> google.cloud.securitycenter.v1.Kubernetes.Node
1015 5, // 2: google.cloud.securitycenter.v1.Kubernetes.node_pools:type_name -> google.cloud.securitycenter.v1.Kubernetes.NodePool
1016 6, // 3: google.cloud.securitycenter.v1.Kubernetes.roles:type_name -> google.cloud.securitycenter.v1.Kubernetes.Role
1017 7, // 4: google.cloud.securitycenter.v1.Kubernetes.bindings:type_name -> google.cloud.securitycenter.v1.Kubernetes.Binding
1018 9, // 5: google.cloud.securitycenter.v1.Kubernetes.access_reviews:type_name -> google.cloud.securitycenter.v1.Kubernetes.AccessReview
1019 10, // 6: google.cloud.securitycenter.v1.Kubernetes.objects:type_name -> google.cloud.securitycenter.v1.Kubernetes.Object
1020 11, // 7: google.cloud.securitycenter.v1.Kubernetes.Pod.labels:type_name -> google.cloud.securitycenter.v1.Label
1021 12, // 8: google.cloud.securitycenter.v1.Kubernetes.Pod.containers:type_name -> google.cloud.securitycenter.v1.Container
1022 4, // 9: google.cloud.securitycenter.v1.Kubernetes.NodePool.nodes:type_name -> google.cloud.securitycenter.v1.Kubernetes.Node
1023 0, // 10: google.cloud.securitycenter.v1.Kubernetes.Role.kind:type_name -> google.cloud.securitycenter.v1.Kubernetes.Role.Kind
1024 6, // 11: google.cloud.securitycenter.v1.Kubernetes.Binding.role:type_name -> google.cloud.securitycenter.v1.Kubernetes.Role
1025 8, // 12: google.cloud.securitycenter.v1.Kubernetes.Binding.subjects:type_name -> google.cloud.securitycenter.v1.Kubernetes.Subject
1026 1, // 13: google.cloud.securitycenter.v1.Kubernetes.Subject.kind:type_name -> google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType
1027 12, // 14: google.cloud.securitycenter.v1.Kubernetes.Object.containers:type_name -> google.cloud.securitycenter.v1.Container
1028 15, // [15:15] is the sub-list for method output_type
1029 15, // [15:15] is the sub-list for method input_type
1030 15, // [15:15] is the sub-list for extension type_name
1031 15, // [15:15] is the sub-list for extension extendee
1032 0, // [0:15] is the sub-list for field type_name
1033 }
1034
1035 func init() { file_google_cloud_securitycenter_v1_kubernetes_proto_init() }
1036 func file_google_cloud_securitycenter_v1_kubernetes_proto_init() {
1037 if File_google_cloud_securitycenter_v1_kubernetes_proto != nil {
1038 return
1039 }
1040 file_google_cloud_securitycenter_v1_container_proto_init()
1041 file_google_cloud_securitycenter_v1_label_proto_init()
1042 type x struct{}
1043 out := protoimpl.TypeBuilder{
1044 File: protoimpl.DescBuilder{
1045 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1046 RawDescriptor: file_google_cloud_securitycenter_v1_kubernetes_proto_rawDesc,
1047 NumEnums: 2,
1048 NumMessages: 9,
1049 NumExtensions: 0,
1050 NumServices: 0,
1051 },
1052 GoTypes: file_google_cloud_securitycenter_v1_kubernetes_proto_goTypes,
1053 DependencyIndexes: file_google_cloud_securitycenter_v1_kubernetes_proto_depIdxs,
1054 EnumInfos: file_google_cloud_securitycenter_v1_kubernetes_proto_enumTypes,
1055 MessageInfos: file_google_cloud_securitycenter_v1_kubernetes_proto_msgTypes,
1056 }.Build()
1057 File_google_cloud_securitycenter_v1_kubernetes_proto = out.File
1058 file_google_cloud_securitycenter_v1_kubernetes_proto_rawDesc = nil
1059 file_google_cloud_securitycenter_v1_kubernetes_proto_goTypes = nil
1060 file_google_cloud_securitycenter_v1_kubernetes_proto_depIdxs = nil
1061 }