NAME

Google::Cloud::Securitycenter::V2::Connection - Compiled Protocol Buffers messages for google/cloud/securitycenter/v2/connection.proto

SYNOPSIS

use Google::Cloud::Securitycenter::V2::Connection;

my $msg = Google::Cloud::Securitycenter::V2::Connection::Connection->new({
    destination_ip => $destination_ip,
    destination_port => $destination_port,
    source_ip => $source_ip,
    source_port => $source_port,
});

# Read or update a field
my $val = $msg->destination_ip();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Securitycenter::V2::Connection::Connection->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/v2/connection.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Securitycenter::V2::Connection::Connection

Contains information about the IP connection associated with the finding.

Inherits from Protobuf::Message.

Accessors

  • $msg->destination_ip() / $msg->destination_ip($value)

    Type: String

    Destination IP address. Not present for sockets that are listening and not connected.

  • $msg->destination_port() / $msg->destination_port($value)

    Type: Int32

    Destination port. Not present for sockets that are listening and not connected.

  • $msg->source_ip() / $msg->source_ip($value)

    Type: String

    Source IP address.

  • $msg->source_port() / $msg->source_port($value)

    Type: Int32

    Source port.

  • $msg->protocol() / $msg->protocol($value)

    Type: Enum (Google::Cloud::Securitycenter::V2::Connection::Protocol)

    IANA Internet Protocol Number such as TCP(6) and UDP(17).

Enum: Connection::Protocol

  • PROTOCOL_UNSPECIFIED => 0

  • ICMP => 1

  • TCP => 6

  • UDP => 17

  • GRE => 47

  • ESP => 50

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V2::Connection::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.