connection.proto 2.0 KB

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