Debian Codegraph @

securitycenter/apiv2/securitycenterpb/connection.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/connection.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 // IANA Internet Protocol Number such as TCP(6) and UDP(17).
38 type Connection_Protocol int32
39
40 const (
41 // Unspecified protocol (not HOPOPT).
42 Connection_PROTOCOL_UNSPECIFIED Connection_Protocol = 0
43 // Internet Control Message Protocol.
44 Connection_ICMP Connection_Protocol = 1
45 // Transmission Control Protocol.
46 Connection_TCP Connection_Protocol = 6
47 // User Datagram Protocol.
48 Connection_UDP Connection_Protocol = 17
49 // Generic Routing Encapsulation.
50 Connection_GRE Connection_Protocol = 47
51 // Encap Security Payload.
52 Connection_ESP Connection_Protocol = 50
53 )
54
55 // Enum value maps for Connection_Protocol.
56 var (
57 Connection_Protocol_name = map[int32]string{
58 0: "PROTOCOL_UNSPECIFIED",
59 1: "ICMP",
60 6: "TCP",
61 17: "UDP",
62 47: "GRE",
63 50: "ESP",
64 }
65 Connection_Protocol_value = map[string]int32{
66 "PROTOCOL_UNSPECIFIED": 0,
67 "ICMP": 1,
68 "TCP": 6,
69 "UDP": 17,
70 "GRE": 47,
71 "ESP": 50,
72 }
73 )
74
75 func (x Connection_Protocol) Enum() *Connection_Protocol {
76 p := new(Connection_Protocol)
77 *p = x
78 return p
79 }
80
81 func (x Connection_Protocol) String() string {
82 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
83 }
84
85 func (Connection_Protocol) Descriptor() protoreflect.EnumDescriptor {
86 return file_google_cloud_securitycenter_v2_connection_proto_enumTypes[0].Descriptor()
87 }
88
89 func (Connection_Protocol) Type() protoreflect.EnumType {
90 return &file_google_cloud_securitycenter_v2_connection_proto_enumTypes[0]
91 }
92
93 func (x Connection_Protocol) Number() protoreflect.EnumNumber {
94 return protoreflect.EnumNumber(x)
95 }
96
97 // Deprecated: Use Connection_Protocol.Descriptor instead.
98 func (Connection_Protocol) EnumDescriptor() ([]byte, []int) {
99 return file_google_cloud_securitycenter_v2_connection_proto_rawDescGZIP(), []int{0, 0}
100 }
101
102 // Contains information about the IP connection associated with the finding.
103 type Connection struct {
104 state protoimpl.MessageState
105 sizeCache protoimpl.SizeCache
106 unknownFields protoimpl.UnknownFields
107
108 // Destination IP address. Not present for sockets that are listening and not
109 // connected.
110 DestinationIp string `protobuf:"bytes,1,opt,name=destination_ip,json=destinationIp,proto3" json:"destination_ip,omitempty"`
111 // Destination port. Not present for sockets that are listening and not
112 // connected.
113 DestinationPort int32 `protobuf:"varint,2,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"`
114 // Source IP address.
115 SourceIp string `protobuf:"bytes,3,opt,name=source_ip,json=sourceIp,proto3" json:"source_ip,omitempty"`
116 // Source port.
117 SourcePort int32 `protobuf:"varint,4,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"`
118 // IANA Internet Protocol Number such as TCP(6) and UDP(17).
119 Protocol Connection_Protocol `protobuf:"varint,5,opt,name=protocol,proto3,enum=google.cloud.securitycenter.v2.Connection_Protocol" json:"protocol,omitempty"`
120 }
121
122 func (x *Connection) Reset() {
123 *x = Connection{}
124 mi := &file_google_cloud_securitycenter_v2_connection_proto_msgTypes[0]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128
129 func (x *Connection) String() string {
130 return protoimpl.X.MessageStringOf(x)
131 }
132
133 func (*Connection) ProtoMessage() {}
134
135 func (x *Connection) ProtoReflect() protoreflect.Message {
136 mi := &file_google_cloud_securitycenter_v2_connection_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 Connection.ProtoReflect.Descriptor instead.
148 func (*Connection) Descriptor() ([]byte, []int) {
149 return file_google_cloud_securitycenter_v2_connection_proto_rawDescGZIP(), []int{0}
150 }
151
152 func (x *Connection) GetDestinationIp() string {
153 if x != nil {
154 return x.DestinationIp
155 }
156 return ""
157 }
158
159 func (x *Connection) GetDestinationPort() int32 {
160 if x != nil {
161 return x.DestinationPort
162 }
163 return 0
164 }
165
166 func (x *Connection) GetSourceIp() string {
167 if x != nil {
168 return x.SourceIp
169 }
170 return ""
171 }
172
173 func (x *Connection) GetSourcePort() int32 {
174 if x != nil {
175 return x.SourcePort
176 }
177 return 0
178 }
179
180 func (x *Connection) GetProtocol() Connection_Protocol {
181 if x != nil {
182 return x.Protocol
183 }
184 return Connection_PROTOCOL_UNSPECIFIED
185 }
186
187 var File_google_cloud_securitycenter_v2_connection_proto protoreflect.FileDescriptor
188
189 var file_google_cloud_securitycenter_v2_connection_proto_rawDesc = []byte{
190 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
191 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
192 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
193 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
194 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76,
195 0x32, 0x22, 0xc1, 0x02, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
196 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
197 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e,
198 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69,
199 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
200 0x05, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f,
201 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x18,
202 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x12,
203 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04,
204 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74,
205 0x12, 0x4f, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01,
206 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
207 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
208 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50,
209 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
210 0x6c, 0x22, 0x52, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18, 0x0a,
211 0x14, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
212 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10,
213 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44,
214 0x50, 0x10, 0x11, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x52, 0x45, 0x10, 0x2f, 0x12, 0x07, 0x0a, 0x03,
215 0x45, 0x53, 0x50, 0x10, 0x32, 0x42, 0xe9, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
216 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
217 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x42, 0x0f, 0x43, 0x6f,
218 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
219 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
220 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
221 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
222 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72,
223 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f,
224 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72,
225 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47,
226 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75,
227 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21,
228 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53,
229 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56,
230 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
231 }
232
233 var (
234 file_google_cloud_securitycenter_v2_connection_proto_rawDescOnce sync.Once
235 file_google_cloud_securitycenter_v2_connection_proto_rawDescData = file_google_cloud_securitycenter_v2_connection_proto_rawDesc
236 )
237
238 func file_google_cloud_securitycenter_v2_connection_proto_rawDescGZIP() []byte {
239 file_google_cloud_securitycenter_v2_connection_proto_rawDescOnce.Do(func() {
240 file_google_cloud_securitycenter_v2_connection_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_connection_proto_rawDescData)
241 })
242 return file_google_cloud_securitycenter_v2_connection_proto_rawDescData
243 }
244
245 var file_google_cloud_securitycenter_v2_connection_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
246 var file_google_cloud_securitycenter_v2_connection_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
247 var file_google_cloud_securitycenter_v2_connection_proto_goTypes = []any{
248 (Connection_Protocol)(0), // 0: google.cloud.securitycenter.v2.Connection.Protocol
249 (*Connection)(nil), // 1: google.cloud.securitycenter.v2.Connection
250 }
251 var file_google_cloud_securitycenter_v2_connection_proto_depIdxs = []int32{
252 0, // 0: google.cloud.securitycenter.v2.Connection.protocol:type_name -> google.cloud.securitycenter.v2.Connection.Protocol
253 1, // [1:1] is the sub-list for method output_type
254 1, // [1:1] is the sub-list for method input_type
255 1, // [1:1] is the sub-list for extension type_name
256 1, // [1:1] is the sub-list for extension extendee
257 0, // [0:1] is the sub-list for field type_name
258 }
259
260 func init() { file_google_cloud_securitycenter_v2_connection_proto_init() }
261 func file_google_cloud_securitycenter_v2_connection_proto_init() {
262 if File_google_cloud_securitycenter_v2_connection_proto != nil {
263 return
264 }
265 type x struct{}
266 out := protoimpl.TypeBuilder{
267 File: protoimpl.DescBuilder{
268 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
269 RawDescriptor: file_google_cloud_securitycenter_v2_connection_proto_rawDesc,
270 NumEnums: 1,
271 NumMessages: 1,
272 NumExtensions: 0,
273 NumServices: 0,
274 },
275 GoTypes: file_google_cloud_securitycenter_v2_connection_proto_goTypes,
276 DependencyIndexes: file_google_cloud_securitycenter_v2_connection_proto_depIdxs,
277 EnumInfos: file_google_cloud_securitycenter_v2_connection_proto_enumTypes,
278 MessageInfos: file_google_cloud_securitycenter_v2_connection_proto_msgTypes,
279 }.Build()
280 File_google_cloud_securitycenter_v2_connection_proto = out.File
281 file_google_cloud_securitycenter_v2_connection_proto_rawDesc = nil
282 file_google_cloud_securitycenter_v2_connection_proto_goTypes = nil
283 file_google_cloud_securitycenter_v2_connection_proto_depIdxs = nil
284 }