| 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/security_health_analytics_custom_config.proto |
| 20 |
|
| 21 |
package securitycenterpb |
| 22 |
|
| 23 |
import ( |
| 24 |
expr "google.golang.org/genproto/googleapis/type/expr" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 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 |
// Defines the valid value options for the severity of a finding. |
| 39 |
type CustomConfig_Severity int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// Unspecified severity. |
| 43 |
CustomConfig_SEVERITY_UNSPECIFIED CustomConfig_Severity = 0 |
| 44 |
// Critical severity. |
| 45 |
CustomConfig_CRITICAL CustomConfig_Severity = 1 |
| 46 |
// High severity. |
| 47 |
CustomConfig_HIGH CustomConfig_Severity = 2 |
| 48 |
// Medium severity. |
| 49 |
CustomConfig_MEDIUM CustomConfig_Severity = 3 |
| 50 |
// Low severity. |
| 51 |
CustomConfig_LOW CustomConfig_Severity = 4 |
| 52 |
) |
| 53 |
|
| 54 |
// Enum value maps for CustomConfig_Severity. |
| 55 |
var ( |
| 56 |
CustomConfig_Severity_name = map[int32]string{ |
| 57 |
0: "SEVERITY_UNSPECIFIED", |
| 58 |
1: "CRITICAL", |
| 59 |
2: "HIGH", |
| 60 |
3: "MEDIUM", |
| 61 |
4: "LOW", |
| 62 |
} |
| 63 |
CustomConfig_Severity_value = map[string]int32{ |
| 64 |
"SEVERITY_UNSPECIFIED": 0, |
| 65 |
"CRITICAL": 1, |
| 66 |
"HIGH": 2, |
| 67 |
"MEDIUM": 3, |
| 68 |
"LOW": 4, |
| 69 |
} |
| 70 |
) |
| 71 |
|
| 72 |
func (x CustomConfig_Severity) Enum() *CustomConfig_Severity { |
| 73 |
p := new(CustomConfig_Severity) |
| 74 |
*p = x |
| 75 |
return p |
| 76 |
} |
| 77 |
|
| 78 |
func (x CustomConfig_Severity) String() string { |
| 79 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 80 |
} |
| 81 |
|
| 82 |
func (CustomConfig_Severity) Descriptor() protoreflect.EnumDescriptor { |
| 83 |
return file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_enumTypes[0].Descriptor() |
| 84 |
} |
| 85 |
|
| 86 |
func (CustomConfig_Severity) Type() protoreflect.EnumType { |
| 87 |
return &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_enumTypes[0] |
| 88 |
} |
| 89 |
|
| 90 |
func (x CustomConfig_Severity) Number() protoreflect.EnumNumber { |
| 91 |
return protoreflect.EnumNumber(x) |
| 92 |
} |
| 93 |
|
| 94 |
// Deprecated: Use CustomConfig_Severity.Descriptor instead. |
| 95 |
func (CustomConfig_Severity) EnumDescriptor() ([]byte, []int) { |
| 96 |
return file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescGZIP(), []int{0, 0} |
| 97 |
} |
| 98 |
|
| 99 |
// Defines the properties in a custom module configuration for Security |
| 100 |
// Health Analytics. Use the custom module configuration to create custom |
| 101 |
// detectors that generate custom findings for resources that you specify. |
| 102 |
type CustomConfig struct { |
| 103 |
state protoimpl.MessageState |
| 104 |
sizeCache protoimpl.SizeCache |
| 105 |
unknownFields protoimpl.UnknownFields |
| 106 |
|
| 107 |
// The CEL expression to evaluate to produce findings. When the expression |
| 108 |
// evaluates to true against a resource, a finding is generated. |
| 109 |
Predicate *expr.Expr `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"` |
| 110 |
// Custom output properties. |
| 111 |
CustomOutput *CustomConfig_CustomOutputSpec `protobuf:"bytes,2,opt,name=custom_output,json=customOutput,proto3" json:"custom_output,omitempty"` |
| 112 |
// The resource types that the custom module operates on. Each custom module |
| 113 |
// can specify up to 5 resource types. |
| 114 |
ResourceSelector *CustomConfig_ResourceSelector `protobuf:"bytes,3,opt,name=resource_selector,json=resourceSelector,proto3" json:"resource_selector,omitempty"` |
| 115 |
// The severity to assign to findings generated by the module. |
| 116 |
Severity CustomConfig_Severity `protobuf:"varint,4,opt,name=severity,proto3,enum=google.cloud.securitycenter.v1.CustomConfig_Severity" json:"severity,omitempty"` |
| 117 |
// Text that describes the vulnerability or misconfiguration that the custom |
| 118 |
// module detects. This explanation is returned with each finding instance to |
| 119 |
// help investigators understand the detected issue. The text must be enclosed |
| 120 |
// in quotation marks. |
| 121 |
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` |
| 122 |
// An explanation of the recommended steps that security teams can take to |
| 123 |
// resolve the detected issue. This explanation is returned with each finding |
| 124 |
// generated by this module in the `nextSteps` property of the finding JSON. |
| 125 |
Recommendation string `protobuf:"bytes,6,opt,name=recommendation,proto3" json:"recommendation,omitempty"` |
| 126 |
} |
| 127 |
|
| 128 |
func (x *CustomConfig) Reset() { |
| 129 |
*x = CustomConfig{} |
| 130 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[0] |
| 131 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 132 |
ms.StoreMessageInfo(mi) |
| 133 |
} |
| 134 |
|
| 135 |
func (x *CustomConfig) String() string { |
| 136 |
return protoimpl.X.MessageStringOf(x) |
| 137 |
} |
| 138 |
|
| 139 |
func (*CustomConfig) ProtoMessage() {} |
| 140 |
|
| 141 |
func (x *CustomConfig) ProtoReflect() protoreflect.Message { |
| 142 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[0] |
| 143 |
if x != nil { |
| 144 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 145 |
if ms.LoadMessageInfo() == nil { |
| 146 |
ms.StoreMessageInfo(mi) |
| 147 |
} |
| 148 |
return ms |
| 149 |
} |
| 150 |
return mi.MessageOf(x) |
| 151 |
} |
| 152 |
|
| 153 |
// Deprecated: Use CustomConfig.ProtoReflect.Descriptor instead. |
| 154 |
func (*CustomConfig) Descriptor() ([]byte, []int) { |
| 155 |
return file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescGZIP(), []int{0} |
| 156 |
} |
| 157 |
|
| 158 |
func (x *CustomConfig) GetPredicate() *expr.Expr { |
| 159 |
if x != nil { |
| 160 |
return x.Predicate |
| 161 |
} |
| 162 |
return nil |
| 163 |
} |
| 164 |
|
| 165 |
func (x *CustomConfig) GetCustomOutput() *CustomConfig_CustomOutputSpec { |
| 166 |
if x != nil { |
| 167 |
return x.CustomOutput |
| 168 |
} |
| 169 |
return nil |
| 170 |
} |
| 171 |
|
| 172 |
func (x *CustomConfig) GetResourceSelector() *CustomConfig_ResourceSelector { |
| 173 |
if x != nil { |
| 174 |
return x.ResourceSelector |
| 175 |
} |
| 176 |
return nil |
| 177 |
} |
| 178 |
|
| 179 |
func (x *CustomConfig) GetSeverity() CustomConfig_Severity { |
| 180 |
if x != nil { |
| 181 |
return x.Severity |
| 182 |
} |
| 183 |
return CustomConfig_SEVERITY_UNSPECIFIED |
| 184 |
} |
| 185 |
|
| 186 |
func (x *CustomConfig) GetDescription() string { |
| 187 |
if x != nil { |
| 188 |
return x.Description |
| 189 |
} |
| 190 |
return "" |
| 191 |
} |
| 192 |
|
| 193 |
func (x *CustomConfig) GetRecommendation() string { |
| 194 |
if x != nil { |
| 195 |
return x.Recommendation |
| 196 |
} |
| 197 |
return "" |
| 198 |
} |
| 199 |
|
| 200 |
// A set of optional name-value pairs that define custom source properties to |
| 201 |
// return with each finding that is generated by the custom module. The custom |
| 202 |
// source properties that are defined here are included in the finding JSON |
| 203 |
// under `sourceProperties`. |
| 204 |
type CustomConfig_CustomOutputSpec struct { |
| 205 |
state protoimpl.MessageState |
| 206 |
sizeCache protoimpl.SizeCache |
| 207 |
unknownFields protoimpl.UnknownFields |
| 208 |
|
| 209 |
// A list of custom output properties to add to the finding. |
| 210 |
Properties []*CustomConfig_CustomOutputSpec_Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` |
| 211 |
} |
| 212 |
|
| 213 |
func (x *CustomConfig_CustomOutputSpec) Reset() { |
| 214 |
*x = CustomConfig_CustomOutputSpec{} |
| 215 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[1] |
| 216 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 217 |
ms.StoreMessageInfo(mi) |
| 218 |
} |
| 219 |
|
| 220 |
func (x *CustomConfig_CustomOutputSpec) String() string { |
| 221 |
return protoimpl.X.MessageStringOf(x) |
| 222 |
} |
| 223 |
|
| 224 |
func (*CustomConfig_CustomOutputSpec) ProtoMessage() {} |
| 225 |
|
| 226 |
func (x *CustomConfig_CustomOutputSpec) ProtoReflect() protoreflect.Message { |
| 227 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[1] |
| 228 |
if x != nil { |
| 229 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 230 |
if ms.LoadMessageInfo() == nil { |
| 231 |
ms.StoreMessageInfo(mi) |
| 232 |
} |
| 233 |
return ms |
| 234 |
} |
| 235 |
return mi.MessageOf(x) |
| 236 |
} |
| 237 |
|
| 238 |
// Deprecated: Use CustomConfig_CustomOutputSpec.ProtoReflect.Descriptor instead. |
| 239 |
func (*CustomConfig_CustomOutputSpec) Descriptor() ([]byte, []int) { |
| 240 |
return file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescGZIP(), []int{0, 0} |
| 241 |
} |
| 242 |
|
| 243 |
func (x *CustomConfig_CustomOutputSpec) GetProperties() []*CustomConfig_CustomOutputSpec_Property { |
| 244 |
if x != nil { |
| 245 |
return x.Properties |
| 246 |
} |
| 247 |
return nil |
| 248 |
} |
| 249 |
|
| 250 |
// Resource for selecting resource type. |
| 251 |
type CustomConfig_ResourceSelector struct { |
| 252 |
state protoimpl.MessageState |
| 253 |
sizeCache protoimpl.SizeCache |
| 254 |
unknownFields protoimpl.UnknownFields |
| 255 |
|
| 256 |
// The resource types to run the detector on. |
| 257 |
ResourceTypes []string `protobuf:"bytes,1,rep,name=resource_types,json=resourceTypes,proto3" json:"resource_types,omitempty"` |
| 258 |
} |
| 259 |
|
| 260 |
func (x *CustomConfig_ResourceSelector) Reset() { |
| 261 |
*x = CustomConfig_ResourceSelector{} |
| 262 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[2] |
| 263 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 264 |
ms.StoreMessageInfo(mi) |
| 265 |
} |
| 266 |
|
| 267 |
func (x *CustomConfig_ResourceSelector) String() string { |
| 268 |
return protoimpl.X.MessageStringOf(x) |
| 269 |
} |
| 270 |
|
| 271 |
func (*CustomConfig_ResourceSelector) ProtoMessage() {} |
| 272 |
|
| 273 |
func (x *CustomConfig_ResourceSelector) ProtoReflect() protoreflect.Message { |
| 274 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[2] |
| 275 |
if x != nil { |
| 276 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 277 |
if ms.LoadMessageInfo() == nil { |
| 278 |
ms.StoreMessageInfo(mi) |
| 279 |
} |
| 280 |
return ms |
| 281 |
} |
| 282 |
return mi.MessageOf(x) |
| 283 |
} |
| 284 |
|
| 285 |
// Deprecated: Use CustomConfig_ResourceSelector.ProtoReflect.Descriptor instead. |
| 286 |
func (*CustomConfig_ResourceSelector) Descriptor() ([]byte, []int) { |
| 287 |
return file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescGZIP(), []int{0, 1} |
| 288 |
} |
| 289 |
|
| 290 |
func (x *CustomConfig_ResourceSelector) GetResourceTypes() []string { |
| 291 |
if x != nil { |
| 292 |
return x.ResourceTypes |
| 293 |
} |
| 294 |
return nil |
| 295 |
} |
| 296 |
|
| 297 |
// An individual name-value pair that defines a custom source property. |
| 298 |
type CustomConfig_CustomOutputSpec_Property struct { |
| 299 |
state protoimpl.MessageState |
| 300 |
sizeCache protoimpl.SizeCache |
| 301 |
unknownFields protoimpl.UnknownFields |
| 302 |
|
| 303 |
// Name of the property for the custom output. |
| 304 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 305 |
// The CEL expression for the custom output. A resource property can be |
| 306 |
// specified to return the value of the property or a text string enclosed |
| 307 |
// in quotation marks. |
| 308 |
ValueExpression *expr.Expr `protobuf:"bytes,2,opt,name=value_expression,json=valueExpression,proto3" json:"value_expression,omitempty"` |
| 309 |
} |
| 310 |
|
| 311 |
func (x *CustomConfig_CustomOutputSpec_Property) Reset() { |
| 312 |
*x = CustomConfig_CustomOutputSpec_Property{} |
| 313 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[3] |
| 314 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 315 |
ms.StoreMessageInfo(mi) |
| 316 |
} |
| 317 |
|
| 318 |
func (x *CustomConfig_CustomOutputSpec_Property) String() string { |
| 319 |
return protoimpl.X.MessageStringOf(x) |
| 320 |
} |
| 321 |
|
| 322 |
func (*CustomConfig_CustomOutputSpec_Property) ProtoMessage() {} |
| 323 |
|
| 324 |
func (x *CustomConfig_CustomOutputSpec_Property) ProtoReflect() protoreflect.Message { |
| 325 |
mi := &file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes[3] |
| 326 |
if x != nil { |
| 327 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 328 |
if ms.LoadMessageInfo() == nil { |
| 329 |
ms.StoreMessageInfo(mi) |
| 330 |
} |
| 331 |
return ms |
| 332 |
} |
| 333 |
return mi.MessageOf(x) |
| 334 |
} |
| 335 |
|
| 336 |
// Deprecated: Use CustomConfig_CustomOutputSpec_Property.ProtoReflect.Descriptor instead. |
| 337 |
func (*CustomConfig_CustomOutputSpec_Property) Descriptor() ([]byte, []int) { |
| 338 |
return file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescGZIP(), []int{0, 0, 0} |
| 339 |
} |
| 340 |
|
| 341 |
func (x *CustomConfig_CustomOutputSpec_Property) GetName() string { |
| 342 |
if x != nil { |
| 343 |
return x.Name |
| 344 |
} |
| 345 |
return "" |
| 346 |
} |
| 347 |
|
| 348 |
func (x *CustomConfig_CustomOutputSpec_Property) GetValueExpression() *expr.Expr { |
| 349 |
if x != nil { |
| 350 |
return x.ValueExpression |
| 351 |
} |
| 352 |
return nil |
| 353 |
} |
| 354 |
|
| 355 |
var File_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto protoreflect.FileDescriptor |
| 356 |
|
| 357 |
var file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDesc = []byte{ |
| 358 |
0x0a, 0x4c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, |
| 359 |
0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, |
| 360 |
0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, |
| 361 |
0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, |
| 362 |
0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, |
| 363 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, |
| 364 |
0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x16, |
| 365 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, 0x70, 0x72, |
| 366 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x06, 0x0a, 0x0c, 0x43, 0x75, 0x73, 0x74, 0x6f, |
| 367 |
0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, |
| 368 |
0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, |
| 369 |
0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x70, |
| 370 |
0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x62, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, |
| 371 |
0x6f, 0x6d, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 372 |
0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, |
| 373 |
0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, |
| 374 |
0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x75, |
| 375 |
0x73, 0x74, 0x6f, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0c, |
| 376 |
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x6a, 0x0a, 0x11, |
| 377 |
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, |
| 378 |
0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 379 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, |
| 380 |
0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, |
| 381 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, |
| 382 |
0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 383 |
0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x51, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, |
| 384 |
0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, |
| 385 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, |
| 386 |
0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, |
| 387 |
0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, |
| 388 |
0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, |
| 389 |
0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, |
| 390 |
0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, |
| 391 |
0x0e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, |
| 392 |
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, |
| 393 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xd8, 0x01, 0x0a, 0x10, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, |
| 394 |
0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x66, 0x0a, 0x0a, 0x70, 0x72, |
| 395 |
0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x46, |
| 396 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, |
| 397 |
0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, |
| 398 |
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x75, 0x73, |
| 399 |
0x74, 0x6f, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x50, 0x72, |
| 400 |
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, |
| 401 |
0x65, 0x73, 0x1a, 0x5c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x12, |
| 402 |
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, |
| 403 |
0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x72, |
| 404 |
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, |
| 405 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, |
| 406 |
0x0f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, |
| 407 |
0x1a, 0x39, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, 0x6c, 0x65, |
| 408 |
0x63, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 409 |
0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, |
| 410 |
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x51, 0x0a, 0x08, 0x53, |
| 411 |
0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x56, 0x45, 0x52, |
| 412 |
0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, |
| 413 |
0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x01, 0x12, |
| 414 |
0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x44, |
| 415 |
0x49, 0x55, 0x4d, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x42, 0x82, |
| 416 |
0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 417 |
0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, |
| 418 |
0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x28, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x48, |
| 419 |
0x65, 0x61, 0x6c, 0x74, 0x68, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x43, 0x75, |
| 420 |
0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, |
| 421 |
0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 422 |
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, |
| 423 |
0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, |
| 424 |
0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, |
| 425 |
0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, |
| 426 |
0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, |
| 427 |
0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, |
| 428 |
0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, |
| 429 |
0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, |
| 430 |
0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, |
| 431 |
0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, |
| 432 |
0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 433 |
} |
| 434 |
|
| 435 |
var ( |
| 436 |
file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescOnce sync.Once |
| 437 |
file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescData = file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDesc |
| 438 |
) |
| 439 |
|
| 440 |
func file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescGZIP() []byte { |
| 441 |
file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescOnce.Do(func() { |
| 442 |
file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescData) |
| 443 |
}) |
| 444 |
return file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDescData |
| 445 |
} |
| 446 |
|
| 447 |
var file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 448 |
var file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 449 |
var file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_goTypes = []any{ |
| 450 |
(CustomConfig_Severity)(0), // 0: google.cloud.securitycenter.v1.CustomConfig.Severity |
| 451 |
(*CustomConfig)(nil), // 1: google.cloud.securitycenter.v1.CustomConfig |
| 452 |
(*CustomConfig_CustomOutputSpec)(nil), // 2: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec |
| 453 |
(*CustomConfig_ResourceSelector)(nil), // 3: google.cloud.securitycenter.v1.CustomConfig.ResourceSelector |
| 454 |
(*CustomConfig_CustomOutputSpec_Property)(nil), // 4: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property |
| 455 |
(*expr.Expr)(nil), // 5: google.type.Expr |
| 456 |
} |
| 457 |
var file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_depIdxs = []int32{ |
| 458 |
5, // 0: google.cloud.securitycenter.v1.CustomConfig.predicate:type_name -> google.type.Expr |
| 459 |
2, // 1: google.cloud.securitycenter.v1.CustomConfig.custom_output:type_name -> google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec |
| 460 |
3, // 2: google.cloud.securitycenter.v1.CustomConfig.resource_selector:type_name -> google.cloud.securitycenter.v1.CustomConfig.ResourceSelector |
| 461 |
0, // 3: google.cloud.securitycenter.v1.CustomConfig.severity:type_name -> google.cloud.securitycenter.v1.CustomConfig.Severity |
| 462 |
4, // 4: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.properties:type_name -> google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property |
| 463 |
5, // 5: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.value_expression:type_name -> google.type.Expr |
| 464 |
6, // [6:6] is the sub-list for method output_type |
| 465 |
6, // [6:6] is the sub-list for method input_type |
| 466 |
6, // [6:6] is the sub-list for extension type_name |
| 467 |
6, // [6:6] is the sub-list for extension extendee |
| 468 |
0, // [0:6] is the sub-list for field type_name |
| 469 |
} |
| 470 |
|
| 471 |
func init() { file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_init() } |
| 472 |
func file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_init() { |
| 473 |
if File_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto != nil { |
| 474 |
return |
| 475 |
} |
| 476 |
type x struct{} |
| 477 |
out := protoimpl.TypeBuilder{ |
| 478 |
File: protoimpl.DescBuilder{ |
| 479 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 480 |
RawDescriptor: file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDesc, |
| 481 |
NumEnums: 1, |
| 482 |
NumMessages: 4, |
| 483 |
NumExtensions: 0, |
| 484 |
NumServices: 0, |
| 485 |
}, |
| 486 |
GoTypes: file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_goTypes, |
| 487 |
DependencyIndexes: file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_depIdxs, |
| 488 |
EnumInfos: file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_enumTypes, |
| 489 |
MessageInfos: file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_msgTypes, |
| 490 |
}.Build() |
| 491 |
File_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto = out.File |
| 492 |
file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_rawDesc = nil |
| 493 |
file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_goTypes = nil |
| 494 |
file_google_cloud_securitycenter_v1_security_health_analytics_custom_config_proto_depIdxs = nil |
| 495 |
} |