Debian Codegraph @

securitycenter/apiv2/securitycenterpb/ip_rules.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/v2/ip_rules.proto
20
21 package securitycenterpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
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 // The type of direction that the rule is applicable to, one of ingress or
39 // egress. Not applicable to OPEN_X_PORT findings.
40 type IpRules_Direction int32
41
42 const (
43 // Unspecified direction value.
44 IpRules_DIRECTION_UNSPECIFIED IpRules_Direction = 0
45 // Ingress direction value.
46 IpRules_INGRESS IpRules_Direction = 1
47 // Egress direction value.
48 IpRules_EGRESS IpRules_Direction = 2
49 )
50
51 // Enum value maps for IpRules_Direction.
52 var (
53 IpRules_Direction_name = map[int32]string{
54 0: "DIRECTION_UNSPECIFIED",
55 1: "INGRESS",
56 2: "EGRESS",
57 }
58 IpRules_Direction_value = map[string]int32{
59 "DIRECTION_UNSPECIFIED": 0,
60 "INGRESS": 1,
61 "EGRESS": 2,
62 }
63 )
64
65 func (x IpRules_Direction) Enum() *IpRules_Direction {
66 p := new(IpRules_Direction)
67 *p = x
68 return p
69 }
70
71 func (x IpRules_Direction) String() string {
72 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
73 }
74
75 func (IpRules_Direction) Descriptor() protoreflect.EnumDescriptor {
76 return file_google_cloud_securitycenter_v2_ip_rules_proto_enumTypes[0].Descriptor()
77 }
78
79 func (IpRules_Direction) Type() protoreflect.EnumType {
80 return &file_google_cloud_securitycenter_v2_ip_rules_proto_enumTypes[0]
81 }
82
83 func (x IpRules_Direction) Number() protoreflect.EnumNumber {
84 return protoreflect.EnumNumber(x)
85 }
86
87 // Deprecated: Use IpRules_Direction.Descriptor instead.
88 func (IpRules_Direction) EnumDescriptor() ([]byte, []int) {
89 return file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescGZIP(), []int{0, 0}
90 }
91
92 // IP rules associated with the finding.
93 type IpRules struct {
94 state protoimpl.MessageState
95 sizeCache protoimpl.SizeCache
96 unknownFields protoimpl.UnknownFields
97
98 // The direction that the rule is applicable to, one of ingress or egress.
99 Direction IpRules_Direction `protobuf:"varint,1,opt,name=direction,proto3,enum=google.cloud.securitycenter.v2.IpRules_Direction" json:"direction,omitempty"`
100 // The list of allow rules specified by this firewall. Each rule specifies a
101 // protocol and port-range tuple that describes a permitted connection.
102 //
103 // Types that are assignable to Rules:
104 //
105 // *IpRules_Allowed
106 // *IpRules_Denied
107 Rules isIpRules_Rules `protobuf_oneof:"rules"`
108 // If source IP ranges are specified, the firewall rule applies only to
109 // traffic that has a source IP address in these ranges. These ranges must be
110 // expressed in CIDR format. Only supports IPv4.
111 SourceIpRanges []string `protobuf:"bytes,4,rep,name=source_ip_ranges,json=sourceIpRanges,proto3" json:"source_ip_ranges,omitempty"`
112 // If destination IP ranges are specified, the firewall rule applies only to
113 // traffic that has a destination IP address in these ranges. These ranges
114 // must be expressed in CIDR format. Only supports IPv4.
115 DestinationIpRanges []string `protobuf:"bytes,5,rep,name=destination_ip_ranges,json=destinationIpRanges,proto3" json:"destination_ip_ranges,omitempty"`
116 // Name of the network protocol service, such as FTP, that is exposed by the
117 // open port. Follows the naming convention available at:
118 // https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
119 ExposedServices []string `protobuf:"bytes,6,rep,name=exposed_services,json=exposedServices,proto3" json:"exposed_services,omitempty"`
120 }
121
122 func (x *IpRules) Reset() {
123 *x = IpRules{}
124 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[0]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128
129 func (x *IpRules) String() string {
130 return protoimpl.X.MessageStringOf(x)
131 }
132
133 func (*IpRules) ProtoMessage() {}
134
135 func (x *IpRules) ProtoReflect() protoreflect.Message {
136 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[0]
137 if x != nil {
138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
139 if ms.LoadMessageInfo() == nil {
140 ms.StoreMessageInfo(mi)
141 }
142 return ms
143 }
144 return mi.MessageOf(x)
145 }
146
147 // Deprecated: Use IpRules.ProtoReflect.Descriptor instead.
148 func (*IpRules) Descriptor() ([]byte, []int) {
149 return file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescGZIP(), []int{0}
150 }
151
152 func (x *IpRules) GetDirection() IpRules_Direction {
153 if x != nil {
154 return x.Direction
155 }
156 return IpRules_DIRECTION_UNSPECIFIED
157 }
158
159 func (m *IpRules) GetRules() isIpRules_Rules {
160 if m != nil {
161 return m.Rules
162 }
163 return nil
164 }
165
166 func (x *IpRules) GetAllowed() *Allowed {
167 if x, ok := x.GetRules().(*IpRules_Allowed); ok {
168 return x.Allowed
169 }
170 return nil
171 }
172
173 func (x *IpRules) GetDenied() *Denied {
174 if x, ok := x.GetRules().(*IpRules_Denied); ok {
175 return x.Denied
176 }
177 return nil
178 }
179
180 func (x *IpRules) GetSourceIpRanges() []string {
181 if x != nil {
182 return x.SourceIpRanges
183 }
184 return nil
185 }
186
187 func (x *IpRules) GetDestinationIpRanges() []string {
188 if x != nil {
189 return x.DestinationIpRanges
190 }
191 return nil
192 }
193
194 func (x *IpRules) GetExposedServices() []string {
195 if x != nil {
196 return x.ExposedServices
197 }
198 return nil
199 }
200
201 type isIpRules_Rules interface {
202 isIpRules_Rules()
203 }
204
205 type IpRules_Allowed struct {
206 // Tuple with allowed rules.
207 Allowed *Allowed `protobuf:"bytes,2,opt,name=allowed,proto3,oneof"`
208 }
209
210 type IpRules_Denied struct {
211 // Tuple with denied rules.
212 Denied *Denied `protobuf:"bytes,3,opt,name=denied,proto3,oneof"`
213 }
214
215 func (*IpRules_Allowed) isIpRules_Rules() {}
216
217 func (*IpRules_Denied) isIpRules_Rules() {}
218
219 // IP rule information.
220 type IpRule struct {
221 state protoimpl.MessageState
222 sizeCache protoimpl.SizeCache
223 unknownFields protoimpl.UnknownFields
224
225 // The IP protocol this rule applies to. This value can either be one of the
226 // following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
227 // SCTP) or a string representation of the integer value.
228 Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
229 // Optional. An optional list of ports to which this rule applies. This field
230 // is only applicable for the UDP or (S)TCP protocols. Each entry must be
231 // either an integer or a range including a min and max port number.
232 PortRanges []*IpRule_PortRange `protobuf:"bytes,2,rep,name=port_ranges,json=portRanges,proto3" json:"port_ranges,omitempty"`
233 }
234
235 func (x *IpRule) Reset() {
236 *x = IpRule{}
237 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[1]
238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
239 ms.StoreMessageInfo(mi)
240 }
241
242 func (x *IpRule) String() string {
243 return protoimpl.X.MessageStringOf(x)
244 }
245
246 func (*IpRule) ProtoMessage() {}
247
248 func (x *IpRule) ProtoReflect() protoreflect.Message {
249 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[1]
250 if x != nil {
251 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
252 if ms.LoadMessageInfo() == nil {
253 ms.StoreMessageInfo(mi)
254 }
255 return ms
256 }
257 return mi.MessageOf(x)
258 }
259
260 // Deprecated: Use IpRule.ProtoReflect.Descriptor instead.
261 func (*IpRule) Descriptor() ([]byte, []int) {
262 return file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescGZIP(), []int{1}
263 }
264
265 func (x *IpRule) GetProtocol() string {
266 if x != nil {
267 return x.Protocol
268 }
269 return ""
270 }
271
272 func (x *IpRule) GetPortRanges() []*IpRule_PortRange {
273 if x != nil {
274 return x.PortRanges
275 }
276 return nil
277 }
278
279 // Allowed IP rule.
280 type Allowed struct {
281 state protoimpl.MessageState
282 sizeCache protoimpl.SizeCache
283 unknownFields protoimpl.UnknownFields
284
285 // Optional. Optional list of allowed IP rules.
286 IpRules []*IpRule `protobuf:"bytes,1,rep,name=ip_rules,json=ipRules,proto3" json:"ip_rules,omitempty"`
287 }
288
289 func (x *Allowed) Reset() {
290 *x = Allowed{}
291 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[2]
292 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
293 ms.StoreMessageInfo(mi)
294 }
295
296 func (x *Allowed) String() string {
297 return protoimpl.X.MessageStringOf(x)
298 }
299
300 func (*Allowed) ProtoMessage() {}
301
302 func (x *Allowed) ProtoReflect() protoreflect.Message {
303 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[2]
304 if x != nil {
305 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
306 if ms.LoadMessageInfo() == nil {
307 ms.StoreMessageInfo(mi)
308 }
309 return ms
310 }
311 return mi.MessageOf(x)
312 }
313
314 // Deprecated: Use Allowed.ProtoReflect.Descriptor instead.
315 func (*Allowed) Descriptor() ([]byte, []int) {
316 return file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescGZIP(), []int{2}
317 }
318
319 func (x *Allowed) GetIpRules() []*IpRule {
320 if x != nil {
321 return x.IpRules
322 }
323 return nil
324 }
325
326 // Denied IP rule.
327 type Denied struct {
328 state protoimpl.MessageState
329 sizeCache protoimpl.SizeCache
330 unknownFields protoimpl.UnknownFields
331
332 // Optional. Optional list of denied IP rules.
333 IpRules []*IpRule `protobuf:"bytes,1,rep,name=ip_rules,json=ipRules,proto3" json:"ip_rules,omitempty"`
334 }
335
336 func (x *Denied) Reset() {
337 *x = Denied{}
338 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[3]
339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
340 ms.StoreMessageInfo(mi)
341 }
342
343 func (x *Denied) String() string {
344 return protoimpl.X.MessageStringOf(x)
345 }
346
347 func (*Denied) ProtoMessage() {}
348
349 func (x *Denied) ProtoReflect() protoreflect.Message {
350 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[3]
351 if x != nil {
352 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
353 if ms.LoadMessageInfo() == nil {
354 ms.StoreMessageInfo(mi)
355 }
356 return ms
357 }
358 return mi.MessageOf(x)
359 }
360
361 // Deprecated: Use Denied.ProtoReflect.Descriptor instead.
362 func (*Denied) Descriptor() ([]byte, []int) {
363 return file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescGZIP(), []int{3}
364 }
365
366 func (x *Denied) GetIpRules() []*IpRule {
367 if x != nil {
368 return x.IpRules
369 }
370 return nil
371 }
372
373 // A port range which is inclusive of the min and max values.
374 // Values are between 0 and 2^16-1. The max can be equal / must be not smaller
375 // than the min value. If min and max are equal this indicates that it is a
376 // single port.
377 type IpRule_PortRange struct {
378 state protoimpl.MessageState
379 sizeCache protoimpl.SizeCache
380 unknownFields protoimpl.UnknownFields
381
382 // Minimum port value.
383 Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
384 // Maximum port value.
385 Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
386 }
387
388 func (x *IpRule_PortRange) Reset() {
389 *x = IpRule_PortRange{}
390 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[4]
391 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
392 ms.StoreMessageInfo(mi)
393 }
394
395 func (x *IpRule_PortRange) String() string {
396 return protoimpl.X.MessageStringOf(x)
397 }
398
399 func (*IpRule_PortRange) ProtoMessage() {}
400
401 func (x *IpRule_PortRange) ProtoReflect() protoreflect.Message {
402 mi := &file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[4]
403 if x != nil {
404 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
405 if ms.LoadMessageInfo() == nil {
406 ms.StoreMessageInfo(mi)
407 }
408 return ms
409 }
410 return mi.MessageOf(x)
411 }
412
413 // Deprecated: Use IpRule_PortRange.ProtoReflect.Descriptor instead.
414 func (*IpRule_PortRange) Descriptor() ([]byte, []int) {
415 return file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescGZIP(), []int{1, 0}
416 }
417
418 func (x *IpRule_PortRange) GetMin() int64 {
419 if x != nil {
420 return x.Min
421 }
422 return 0
423 }
424
425 func (x *IpRule_PortRange) GetMax() int64 {
426 if x != nil {
427 return x.Max
428 }
429 return 0
430 }
431
432 var File_google_cloud_securitycenter_v2_ip_rules_proto protoreflect.FileDescriptor
433
434 var file_google_cloud_securitycenter_v2_ip_rules_proto_rawDesc = []byte{
435 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
436 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
437 0x2f, 0x69, 0x70, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
438 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
439 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a,
440 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
441 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
442 0x22, 0xb4, 0x03, 0x0a, 0x07, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x09,
443 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
444 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
445 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32,
446 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69,
447 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a,
448 0x07, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27,
449 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
450 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e,
451 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x48, 0x00, 0x52, 0x07, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
452 0x65, 0x64, 0x12, 0x40, 0x0a, 0x06, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01,
453 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
454 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
455 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65,
456 0x6e, 0x69, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69,
457 0x70, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e,
458 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x32,
459 0x0a, 0x15, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x70,
460 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x64,
461 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x52, 0x61, 0x6e, 0x67,
462 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x65,
463 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x65, 0x78,
464 0x70, 0x6f, 0x73, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x3f, 0x0a,
465 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x49,
466 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
467 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x47, 0x52, 0x45, 0x53, 0x53,
468 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x42, 0x07,
469 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xad, 0x01, 0x0a, 0x06, 0x49, 0x70, 0x52, 0x75,
470 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01,
471 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x56,
472 0x0a, 0x0b, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20,
473 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
474 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
475 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74,
476 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x70, 0x6f, 0x72, 0x74,
477 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0x2f, 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61,
478 0x6e, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
479 0x52, 0x03, 0x6d, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x02, 0x20, 0x01,
480 0x28, 0x03, 0x52, 0x03, 0x6d, 0x61, 0x78, 0x22, 0x51, 0x0a, 0x07, 0x41, 0x6c, 0x6c, 0x6f, 0x77,
481 0x65, 0x64, 0x12, 0x46, 0x0a, 0x08, 0x69, 0x70, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01,
482 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
483 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
484 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41,
485 0x01, 0x52, 0x07, 0x69, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x50, 0x0a, 0x06, 0x44, 0x65,
486 0x6e, 0x69, 0x65, 0x64, 0x12, 0x46, 0x0a, 0x08, 0x69, 0x70, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73,
487 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
488 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
489 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x03,
490 0xe0, 0x41, 0x01, 0x52, 0x07, 0x69, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x42, 0xe6, 0x01, 0x0a,
491 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
492 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
493 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74,
494 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
495 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
496 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x73, 0x65,
497 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73,
498 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa,
499 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53,
500 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x32,
501 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
502 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56,
503 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
504 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65,
505 0x72, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
506 }
507
508 var (
509 file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescOnce sync.Once
510 file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescData = file_google_cloud_securitycenter_v2_ip_rules_proto_rawDesc
511 )
512
513 func file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescGZIP() []byte {
514 file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescOnce.Do(func() {
515 file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescData)
516 })
517 return file_google_cloud_securitycenter_v2_ip_rules_proto_rawDescData
518 }
519
520 var file_google_cloud_securitycenter_v2_ip_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
521 var file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
522 var file_google_cloud_securitycenter_v2_ip_rules_proto_goTypes = []any{
523 (IpRules_Direction)(0), // 0: google.cloud.securitycenter.v2.IpRules.Direction
524 (*IpRules)(nil), // 1: google.cloud.securitycenter.v2.IpRules
525 (*IpRule)(nil), // 2: google.cloud.securitycenter.v2.IpRule
526 (*Allowed)(nil), // 3: google.cloud.securitycenter.v2.Allowed
527 (*Denied)(nil), // 4: google.cloud.securitycenter.v2.Denied
528 (*IpRule_PortRange)(nil), // 5: google.cloud.securitycenter.v2.IpRule.PortRange
529 }
530 var file_google_cloud_securitycenter_v2_ip_rules_proto_depIdxs = []int32{
531 0, // 0: google.cloud.securitycenter.v2.IpRules.direction:type_name -> google.cloud.securitycenter.v2.IpRules.Direction
532 3, // 1: google.cloud.securitycenter.v2.IpRules.allowed:type_name -> google.cloud.securitycenter.v2.Allowed
533 4, // 2: google.cloud.securitycenter.v2.IpRules.denied:type_name -> google.cloud.securitycenter.v2.Denied
534 5, // 3: google.cloud.securitycenter.v2.IpRule.port_ranges:type_name -> google.cloud.securitycenter.v2.IpRule.PortRange
535 2, // 4: google.cloud.securitycenter.v2.Allowed.ip_rules:type_name -> google.cloud.securitycenter.v2.IpRule
536 2, // 5: google.cloud.securitycenter.v2.Denied.ip_rules:type_name -> google.cloud.securitycenter.v2.IpRule
537 6, // [6:6] is the sub-list for method output_type
538 6, // [6:6] is the sub-list for method input_type
539 6, // [6:6] is the sub-list for extension type_name
540 6, // [6:6] is the sub-list for extension extendee
541 0, // [0:6] is the sub-list for field type_name
542 }
543
544 func init() { file_google_cloud_securitycenter_v2_ip_rules_proto_init() }
545 func file_google_cloud_securitycenter_v2_ip_rules_proto_init() {
546 if File_google_cloud_securitycenter_v2_ip_rules_proto != nil {
547 return
548 }
549 file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes[0].OneofWrappers = []any{
550 (*IpRules_Allowed)(nil),
551 (*IpRules_Denied)(nil),
552 }
553 type x struct{}
554 out := protoimpl.TypeBuilder{
555 File: protoimpl.DescBuilder{
556 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
557 RawDescriptor: file_google_cloud_securitycenter_v2_ip_rules_proto_rawDesc,
558 NumEnums: 1,
559 NumMessages: 5,
560 NumExtensions: 0,
561 NumServices: 0,
562 },
563 GoTypes: file_google_cloud_securitycenter_v2_ip_rules_proto_goTypes,
564 DependencyIndexes: file_google_cloud_securitycenter_v2_ip_rules_proto_depIdxs,
565 EnumInfos: file_google_cloud_securitycenter_v2_ip_rules_proto_enumTypes,
566 MessageInfos: file_google_cloud_securitycenter_v2_ip_rules_proto_msgTypes,
567 }.Build()
568 File_google_cloud_securitycenter_v2_ip_rules_proto = out.File
569 file_google_cloud_securitycenter_v2_ip_rules_proto_rawDesc = nil
570 file_google_cloud_securitycenter_v2_ip_rules_proto_goTypes = nil
571 file_google_cloud_securitycenter_v2_ip_rules_proto_depIdxs = nil
572 }