xref: /aosp_15_r20/external/googleapis/google/cloud/securitycenter/v1/connection.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.securitycenter.v1;
18
19option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
20option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
21option java_multiple_files = true;
22option java_outer_classname = "ConnectionProto";
23option java_package = "com.google.cloud.securitycenter.v1";
24option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
25option ruby_package = "Google::Cloud::SecurityCenter::V1";
26
27// Contains information about the IP connection associated with the finding.
28message Connection {
29  // IANA Internet Protocol Number such as TCP(6) and UDP(17).
30  enum Protocol {
31    // Unspecified protocol (not HOPOPT).
32    PROTOCOL_UNSPECIFIED = 0;
33
34    // Internet Control Message Protocol.
35    ICMP = 1;
36
37    // Transmission Control Protocol.
38    TCP = 6;
39
40    // User Datagram Protocol.
41    UDP = 17;
42
43    // Generic Routing Encapsulation.
44    GRE = 47;
45
46    // Encap Security Payload.
47    ESP = 50;
48  }
49
50  // Destination IP address. Not present for sockets that are listening and not
51  // connected.
52  string destination_ip = 1;
53
54  // Destination port. Not present for sockets that are listening and not
55  // connected.
56  int32 destination_port = 2;
57
58  // Source IP address.
59  string source_ip = 3;
60
61  // Source port.
62  int32 source_port = 4;
63
64  // IANA Internet Protocol Number such as TCP(6) and UDP(17).
65  Protocol protocol = 5;
66}
67