Debian Codegraph @

securitycenter/apiv1/securitycenterpb/event_threat_detection_custom_module_validation_errors.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/event_threat_detection_custom_module_validation_errors.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 // A list of zero or more errors encountered while validating the uploaded
38 // configuration of an Event Threat Detection Custom Module.
39 type CustomModuleValidationErrors struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 Errors []*CustomModuleValidationError `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
45 }
46
47 func (x *CustomModuleValidationErrors) Reset() {
48 *x = CustomModuleValidationErrors{}
49 mi := &file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes[0]
50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 ms.StoreMessageInfo(mi)
52 }
53
54 func (x *CustomModuleValidationErrors) String() string {
55 return protoimpl.X.MessageStringOf(x)
56 }
57
58 func (*CustomModuleValidationErrors) ProtoMessage() {}
59
60 func (x *CustomModuleValidationErrors) ProtoReflect() protoreflect.Message {
61 mi := &file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes[0]
62 if x != nil {
63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64 if ms.LoadMessageInfo() == nil {
65 ms.StoreMessageInfo(mi)
66 }
67 return ms
68 }
69 return mi.MessageOf(x)
70 }
71
72 // Deprecated: Use CustomModuleValidationErrors.ProtoReflect.Descriptor instead.
73 func (*CustomModuleValidationErrors) Descriptor() ([]byte, []int) {
74 return file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescGZIP(), []int{0}
75 }
76
77 func (x *CustomModuleValidationErrors) GetErrors() []*CustomModuleValidationError {
78 if x != nil {
79 return x.Errors
80 }
81 return nil
82 }
83
84 // An error encountered while validating the uploaded configuration of an
85 // Event Threat Detection Custom Module.
86 type CustomModuleValidationError struct {
87 state protoimpl.MessageState
88 sizeCache protoimpl.SizeCache
89 unknownFields protoimpl.UnknownFields
90
91 // A description of the error, suitable for human consumption. Required.
92 Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
93 // The path, in RFC 8901 JSON Pointer format, to the field that failed
94 // validation. This may be left empty if no specific field is affected.
95 FieldPath string `protobuf:"bytes,2,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
96 // The initial position of the error in the uploaded text version of the
97 // module. This field may be omitted if no specific position applies, or if
98 // one could not be computed.
99 Start *Position `protobuf:"bytes,3,opt,name=start,proto3,oneof" json:"start,omitempty"`
100 // The end position of the error in the uploaded text version of the
101 // module. This field may be omitted if no specific position applies, or if
102 // one could not be computed..
103 End *Position `protobuf:"bytes,4,opt,name=end,proto3,oneof" json:"end,omitempty"`
104 }
105
106 func (x *CustomModuleValidationError) Reset() {
107 *x = CustomModuleValidationError{}
108 mi := &file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes[1]
109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
110 ms.StoreMessageInfo(mi)
111 }
112
113 func (x *CustomModuleValidationError) String() string {
114 return protoimpl.X.MessageStringOf(x)
115 }
116
117 func (*CustomModuleValidationError) ProtoMessage() {}
118
119 func (x *CustomModuleValidationError) ProtoReflect() protoreflect.Message {
120 mi := &file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes[1]
121 if x != nil {
122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123 if ms.LoadMessageInfo() == nil {
124 ms.StoreMessageInfo(mi)
125 }
126 return ms
127 }
128 return mi.MessageOf(x)
129 }
130
131 // Deprecated: Use CustomModuleValidationError.ProtoReflect.Descriptor instead.
132 func (*CustomModuleValidationError) Descriptor() ([]byte, []int) {
133 return file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescGZIP(), []int{1}
134 }
135
136 func (x *CustomModuleValidationError) GetDescription() string {
137 if x != nil {
138 return x.Description
139 }
140 return ""
141 }
142
143 func (x *CustomModuleValidationError) GetFieldPath() string {
144 if x != nil {
145 return x.FieldPath
146 }
147 return ""
148 }
149
150 func (x *CustomModuleValidationError) GetStart() *Position {
151 if x != nil {
152 return x.Start
153 }
154 return nil
155 }
156
157 func (x *CustomModuleValidationError) GetEnd() *Position {
158 if x != nil {
159 return x.End
160 }
161 return nil
162 }
163
164 // A position in the uploaded text version of a module.
165 type Position struct {
166 state protoimpl.MessageState
167 sizeCache protoimpl.SizeCache
168 unknownFields protoimpl.UnknownFields
169
170 LineNumber int32 `protobuf:"varint,1,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
171 ColumnNumber int32 `protobuf:"varint,2,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
172 }
173
174 func (x *Position) Reset() {
175 *x = Position{}
176 mi := &file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes[2]
177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178 ms.StoreMessageInfo(mi)
179 }
180
181 func (x *Position) String() string {
182 return protoimpl.X.MessageStringOf(x)
183 }
184
185 func (*Position) ProtoMessage() {}
186
187 func (x *Position) ProtoReflect() protoreflect.Message {
188 mi := &file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes[2]
189 if x != nil {
190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
191 if ms.LoadMessageInfo() == nil {
192 ms.StoreMessageInfo(mi)
193 }
194 return ms
195 }
196 return mi.MessageOf(x)
197 }
198
199 // Deprecated: Use Position.ProtoReflect.Descriptor instead.
200 func (*Position) Descriptor() ([]byte, []int) {
201 return file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescGZIP(), []int{2}
202 }
203
204 func (x *Position) GetLineNumber() int32 {
205 if x != nil {
206 return x.LineNumber
207 }
208 return 0
209 }
210
211 func (x *Position) GetColumnNumber() int32 {
212 if x != nil {
213 return x.ColumnNumber
214 }
215 return 0
216 }
217
218 var File_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto protoreflect.FileDescriptor
219
220 var file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDesc = []byte{
221 0x0a, 0x5b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
222 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
223 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x74, 0x5f, 0x64, 0x65,
224 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6d,
225 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
226 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67,
227 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75,
228 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22, 0x73, 0x0a,
229 0x1c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x56, 0x61, 0x6c,
230 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x53, 0x0a,
231 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e,
232 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63,
233 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43,
234 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64,
235 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f,
236 0x72, 0x73, 0x22, 0xf6, 0x01, 0x0a, 0x1b, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x6f, 0x64,
237 0x75, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72,
238 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
239 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
240 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61,
241 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50,
242 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01,
243 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
244 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
245 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05,
246 0x73, 0x74, 0x61, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18,
247 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
248 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
249 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48,
250 0x01, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74,
251 0x61, 0x72, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, 0x64, 0x22, 0x50, 0x0a, 0x08, 0x50,
252 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x5f,
253 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x69,
254 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6c, 0x75,
255 0x6d, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
256 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x42, 0x8f, 0x02,
257 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
258 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
259 0x72, 0x2e, 0x76, 0x31, 0x42, 0x35, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x68, 0x72, 0x65, 0x61,
260 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d,
261 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
262 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63,
263 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
264 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
265 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
266 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
267 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67,
268 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
269 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f,
270 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69,
271 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f,
272 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63,
273 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62,
274 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
275 }
276
277 var (
278 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescOnce sync.Once
279 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescData = file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDesc
280 )
281
282 func file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescGZIP() []byte {
283 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescOnce.Do(func() {
284 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescData)
285 })
286 return file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDescData
287 }
288
289 var file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
290 var file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_goTypes = []any{
291 (*CustomModuleValidationErrors)(nil), // 0: google.cloud.securitycenter.v1.CustomModuleValidationErrors
292 (*CustomModuleValidationError)(nil), // 1: google.cloud.securitycenter.v1.CustomModuleValidationError
293 (*Position)(nil), // 2: google.cloud.securitycenter.v1.Position
294 }
295 var file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_depIdxs = []int32{
296 1, // 0: google.cloud.securitycenter.v1.CustomModuleValidationErrors.errors:type_name -> google.cloud.securitycenter.v1.CustomModuleValidationError
297 2, // 1: google.cloud.securitycenter.v1.CustomModuleValidationError.start:type_name -> google.cloud.securitycenter.v1.Position
298 2, // 2: google.cloud.securitycenter.v1.CustomModuleValidationError.end:type_name -> google.cloud.securitycenter.v1.Position
299 3, // [3:3] is the sub-list for method output_type
300 3, // [3:3] is the sub-list for method input_type
301 3, // [3:3] is the sub-list for extension type_name
302 3, // [3:3] is the sub-list for extension extendee
303 0, // [0:3] is the sub-list for field type_name
304 }
305
306 func init() {
307 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_init()
308 }
309 func file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_init() {
310 if File_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto != nil {
311 return
312 }
313 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes[1].OneofWrappers = []any{}
314 type x struct{}
315 out := protoimpl.TypeBuilder{
316 File: protoimpl.DescBuilder{
317 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
318 RawDescriptor: file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDesc,
319 NumEnums: 0,
320 NumMessages: 3,
321 NumExtensions: 0,
322 NumServices: 0,
323 },
324 GoTypes: file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_goTypes,
325 DependencyIndexes: file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_depIdxs,
326 MessageInfos: file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_msgTypes,
327 }.Build()
328 File_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto = out.File
329 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_rawDesc = nil
330 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_goTypes = nil
331 file_google_cloud_securitycenter_v1_event_threat_detection_custom_module_validation_errors_proto_depIdxs = nil
332 }