Debian Codegraph @

securitycenter/apiv1/securitycenterpb/attack_exposure.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/attack_exposure.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 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // This enum defines the various states an AttackExposure can be in.
39 type AttackExposure_State int32
40
41 const (
42 // The state is not specified.
43 AttackExposure_STATE_UNSPECIFIED AttackExposure_State = 0
44 // The attack exposure has been calculated.
45 AttackExposure_CALCULATED AttackExposure_State = 1
46 // The attack exposure has not been calculated.
47 AttackExposure_NOT_CALCULATED AttackExposure_State = 2
48 )
49
50 // Enum value maps for AttackExposure_State.
51 var (
52 AttackExposure_State_name = map[int32]string{
53 0: "STATE_UNSPECIFIED",
54 1: "CALCULATED",
55 2: "NOT_CALCULATED",
56 }
57 AttackExposure_State_value = map[string]int32{
58 "STATE_UNSPECIFIED": 0,
59 "CALCULATED": 1,
60 "NOT_CALCULATED": 2,
61 }
62 )
63
64 func (x AttackExposure_State) Enum() *AttackExposure_State {
65 p := new(AttackExposure_State)
66 *p = x
67 return p
68 }
69
70 func (x AttackExposure_State) String() string {
71 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
72 }
73
74 func (AttackExposure_State) Descriptor() protoreflect.EnumDescriptor {
75 return file_google_cloud_securitycenter_v1_attack_exposure_proto_enumTypes[0].Descriptor()
76 }
77
78 func (AttackExposure_State) Type() protoreflect.EnumType {
79 return &file_google_cloud_securitycenter_v1_attack_exposure_proto_enumTypes[0]
80 }
81
82 func (x AttackExposure_State) Number() protoreflect.EnumNumber {
83 return protoreflect.EnumNumber(x)
84 }
85
86 // Deprecated: Use AttackExposure_State.Descriptor instead.
87 func (AttackExposure_State) EnumDescriptor() ([]byte, []int) {
88 return file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescGZIP(), []int{0, 0}
89 }
90
91 // An attack exposure contains the results of an attack path simulation run.
92 type AttackExposure struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97 // A number between 0 (inclusive) and infinity that represents how important
98 // this finding is to remediate. The higher the score, the more important it
99 // is to remediate.
100 Score float64 `protobuf:"fixed64,1,opt,name=score,proto3" json:"score,omitempty"`
101 // The most recent time the attack exposure was updated on this finding.
102 LatestCalculationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_calculation_time,json=latestCalculationTime,proto3" json:"latest_calculation_time,omitempty"`
103 // The resource name of the attack path simulation result that contains the
104 // details regarding this attack exposure score.
105 // Example: `organizations/123/simulations/456/attackExposureResults/789`
106 AttackExposureResult string `protobuf:"bytes,3,opt,name=attack_exposure_result,json=attackExposureResult,proto3" json:"attack_exposure_result,omitempty"`
107 // What state this AttackExposure is in. This captures whether or not an
108 // attack exposure has been calculated or not.
109 State AttackExposure_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.securitycenter.v1.AttackExposure_State" json:"state,omitempty"`
110 // The number of high value resources that are exposed as a result of this
111 // finding.
112 ExposedHighValueResourcesCount int32 `protobuf:"varint,5,opt,name=exposed_high_value_resources_count,json=exposedHighValueResourcesCount,proto3" json:"exposed_high_value_resources_count,omitempty"`
113 // The number of medium value resources that are exposed as a result of this
114 // finding.
115 ExposedMediumValueResourcesCount int32 `protobuf:"varint,6,opt,name=exposed_medium_value_resources_count,json=exposedMediumValueResourcesCount,proto3" json:"exposed_medium_value_resources_count,omitempty"`
116 // The number of high value resources that are exposed as a result of this
117 // finding.
118 ExposedLowValueResourcesCount int32 `protobuf:"varint,7,opt,name=exposed_low_value_resources_count,json=exposedLowValueResourcesCount,proto3" json:"exposed_low_value_resources_count,omitempty"`
119 }
120
121 func (x *AttackExposure) Reset() {
122 *x = AttackExposure{}
123 mi := &file_google_cloud_securitycenter_v1_attack_exposure_proto_msgTypes[0]
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 ms.StoreMessageInfo(mi)
126 }
127
128 func (x *AttackExposure) String() string {
129 return protoimpl.X.MessageStringOf(x)
130 }
131
132 func (*AttackExposure) ProtoMessage() {}
133
134 func (x *AttackExposure) ProtoReflect() protoreflect.Message {
135 mi := &file_google_cloud_securitycenter_v1_attack_exposure_proto_msgTypes[0]
136 if x != nil {
137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138 if ms.LoadMessageInfo() == nil {
139 ms.StoreMessageInfo(mi)
140 }
141 return ms
142 }
143 return mi.MessageOf(x)
144 }
145
146 // Deprecated: Use AttackExposure.ProtoReflect.Descriptor instead.
147 func (*AttackExposure) Descriptor() ([]byte, []int) {
148 return file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescGZIP(), []int{0}
149 }
150
151 func (x *AttackExposure) GetScore() float64 {
152 if x != nil {
153 return x.Score
154 }
155 return 0
156 }
157
158 func (x *AttackExposure) GetLatestCalculationTime() *timestamppb.Timestamp {
159 if x != nil {
160 return x.LatestCalculationTime
161 }
162 return nil
163 }
164
165 func (x *AttackExposure) GetAttackExposureResult() string {
166 if x != nil {
167 return x.AttackExposureResult
168 }
169 return ""
170 }
171
172 func (x *AttackExposure) GetState() AttackExposure_State {
173 if x != nil {
174 return x.State
175 }
176 return AttackExposure_STATE_UNSPECIFIED
177 }
178
179 func (x *AttackExposure) GetExposedHighValueResourcesCount() int32 {
180 if x != nil {
181 return x.ExposedHighValueResourcesCount
182 }
183 return 0
184 }
185
186 func (x *AttackExposure) GetExposedMediumValueResourcesCount() int32 {
187 if x != nil {
188 return x.ExposedMediumValueResourcesCount
189 }
190 return 0
191 }
192
193 func (x *AttackExposure) GetExposedLowValueResourcesCount() int32 {
194 if x != nil {
195 return x.ExposedLowValueResourcesCount
196 }
197 return 0
198 }
199
200 var File_google_cloud_securitycenter_v1_attack_exposure_proto protoreflect.FileDescriptor
201
202 var file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDesc = []byte{
203 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
204 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
205 0x2f, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65,
206 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
207 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
208 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
209 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
210 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x04, 0x0a, 0x0e, 0x41, 0x74, 0x74, 0x61,
211 0x63, 0x6b, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63,
212 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65,
213 0x12, 0x52, 0x0a, 0x17, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x6c, 0x63, 0x75,
214 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
215 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
216 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x15, 0x6c,
217 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
218 0x54, 0x69, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x65,
219 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03,
220 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x45, 0x78, 0x70, 0x6f,
221 0x73, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4a, 0x0a, 0x05, 0x73, 0x74,
222 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
223 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
224 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63,
225 0x6b, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
226 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4a, 0x0a, 0x22, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65,
227 0x64, 0x5f, 0x68, 0x69, 0x67, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x72, 0x65, 0x73,
228 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01,
229 0x28, 0x05, 0x52, 0x1e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x48, 0x69, 0x67, 0x68, 0x56,
230 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x75,
231 0x6e, 0x74, 0x12, 0x4e, 0x0a, 0x24, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6d, 0x65,
232 0x64, 0x69, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75,
233 0x72, 0x63, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
234 0x52, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4d, 0x65, 0x64, 0x69, 0x75, 0x6d, 0x56,
235 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x75,
236 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x21, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6c, 0x6f,
237 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
238 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x65,
239 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4c, 0x6f, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65,
240 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x05,
241 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55,
242 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a,
243 0x43, 0x41, 0x4c, 0x43, 0x55, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e,
244 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x41, 0x4c, 0x43, 0x55, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02,
245 0x42, 0xed, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
246 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
247 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x45,
248 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a,
249 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
250 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
251 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
252 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
253 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f,
254 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69,
255 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f,
256 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72,
257 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21, 0x47,
258 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65,
259 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31,
260 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
261 }
262
263 var (
264 file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescOnce sync.Once
265 file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescData = file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDesc
266 )
267
268 func file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescGZIP() []byte {
269 file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescOnce.Do(func() {
270 file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescData)
271 })
272 return file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDescData
273 }
274
275 var file_google_cloud_securitycenter_v1_attack_exposure_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
276 var file_google_cloud_securitycenter_v1_attack_exposure_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
277 var file_google_cloud_securitycenter_v1_attack_exposure_proto_goTypes = []any{
278 (AttackExposure_State)(0), // 0: google.cloud.securitycenter.v1.AttackExposure.State
279 (*AttackExposure)(nil), // 1: google.cloud.securitycenter.v1.AttackExposure
280 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
281 }
282 var file_google_cloud_securitycenter_v1_attack_exposure_proto_depIdxs = []int32{
283 2, // 0: google.cloud.securitycenter.v1.AttackExposure.latest_calculation_time:type_name -> google.protobuf.Timestamp
284 0, // 1: google.cloud.securitycenter.v1.AttackExposure.state:type_name -> google.cloud.securitycenter.v1.AttackExposure.State
285 2, // [2:2] is the sub-list for method output_type
286 2, // [2:2] is the sub-list for method input_type
287 2, // [2:2] is the sub-list for extension type_name
288 2, // [2:2] is the sub-list for extension extendee
289 0, // [0:2] is the sub-list for field type_name
290 }
291
292 func init() { file_google_cloud_securitycenter_v1_attack_exposure_proto_init() }
293 func file_google_cloud_securitycenter_v1_attack_exposure_proto_init() {
294 if File_google_cloud_securitycenter_v1_attack_exposure_proto != nil {
295 return
296 }
297 type x struct{}
298 out := protoimpl.TypeBuilder{
299 File: protoimpl.DescBuilder{
300 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
301 RawDescriptor: file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDesc,
302 NumEnums: 1,
303 NumMessages: 1,
304 NumExtensions: 0,
305 NumServices: 0,
306 },
307 GoTypes: file_google_cloud_securitycenter_v1_attack_exposure_proto_goTypes,
308 DependencyIndexes: file_google_cloud_securitycenter_v1_attack_exposure_proto_depIdxs,
309 EnumInfos: file_google_cloud_securitycenter_v1_attack_exposure_proto_enumTypes,
310 MessageInfos: file_google_cloud_securitycenter_v1_attack_exposure_proto_msgTypes,
311 }.Build()
312 File_google_cloud_securitycenter_v1_attack_exposure_proto = out.File
313 file_google_cloud_securitycenter_v1_attack_exposure_proto_rawDesc = nil
314 file_google_cloud_securitycenter_v1_attack_exposure_proto_goTypes = nil
315 file_google_cloud_securitycenter_v1_attack_exposure_proto_depIdxs = nil
316 }