NAME

Google::Cloud::Networkmanagement::V1::ConnectivityTest - Compiled Protocol Buffers messages for google/cloud/networkmanagement/v1/connectivity_test.proto

SYNOPSIS

use Google::Cloud::Networkmanagement::V1::ConnectivityTest;

my $msg = Google::Cloud::Networkmanagement::V1::ConnectivityTest::ConnectivityTest->new({
    name => $name,
    description => $description,
    source => $source,
    destination => $destination,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Networkmanagement::V1::ConnectivityTest::ConnectivityTest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networkmanagement/v1/connectivity_test.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::Networkmanagement::V1::ConnectivityTest::ConnectivityTest

A Connectivity Test for a network reachability analysis.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. Unique name of the resource using the form: `projects/{project_id}/locations/global/connectivityTests/{test_id}`

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

    Type: String

    The user-supplied description of the Connectivity Test. Maximum of 512 characters.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::Endpoint)

    Required. Source specification of the Connectivity Test.

    You can use a combination of source IP address, URI of a supported endpoint, project ID, or VPC network to identify the source location.

    Reachability analysis might proceed even if the source location is ambiguous. However, the test result might include endpoints or use a source that you don't intend to test.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::Endpoint)

    Required. Destination specification of the Connectivity Test.

    You can use a combination of destination IP address, URI of a supported endpoint, project ID, or VPC network to identify the destination location.

    Reachability analysis proceeds even if the destination location is ambiguous. However, the test result might include endpoints or use a destination that you don't intend to test.

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

    Type: String

    IP Protocol of the test. When not provided, "TCP" is assumed.

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

    Type: String

    Other projects that may be relevant for reachability analysis. This is applicable to scenarios where a test can cross project boundaries.

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

    Type: String

    Output only. The display name of a Connectivity Test.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::ConnectivityTest::LabelsEntry)

    Resource labels to represent user-provided metadata.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the test was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the test's configuration was updated.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::ReachabilityDetails)

    Output only. The reachability details of this test from the latest run. The details are updated when creating a new test, updating an existing test, or triggering a one-time rerun of an existing test.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::ProbingDetails)

    Output only. The probing details of this test from the latest run, present for applicable tests only. The details are updated when creating a new test, updating an existing test, or triggering a one-time rerun of an existing test.

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

    Type: Bool

    Whether run analysis for the return path from destination to source. Default value is false.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::ReachabilityDetails)

    Output only. The reachability details of this test from the latest run for the return path. The details are updated when creating a new test, updating an existing test, or triggering a one-time rerun of an existing test.

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

    Type: Bool

    Whether the analysis should skip firewall checking. Default value is false.

Google::Cloud::Networkmanagement::V1::ConnectivityTest::Endpoint

Source or destination of the Connectivity Test.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The IP address of the endpoint, which can be an external or internal IP.

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

    Type: Int32

    The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.

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

    Type: String

    A Compute Engine instance URI.

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

    Type: String

    A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules are also used for protocol forwarding, Private Service Connect and other network services to provide forwarding information in the control plane. Applicable only to destination endpoint. Format: `projects/{project}/global/forwardingRules/{id}` or `projects/{project}/regions/{region}/forwardingRules/{id}`

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

    Type: Enum (Google::Cloud::Networkmanagement::V1::Endpoint::ForwardingRuleTarget)

    Output only. Specifies the type of the target of the forwarding rule.

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

    Type: String

    Output only. ID of the load balancer the forwarding rule points to. Empty for forwarding rules not related to load balancers.

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

    Type: Enum (Google::Cloud::Networkmanagement::V1::LoadBalancerType)

    Output only. Type of the load balancer the forwarding rule points to.

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

    Type: String

    A cluster URI for [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).

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

    Type: String

    DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address or network. Applicable only to destination endpoint.

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

    Type: String

    A [Cloud SQL](https://cloud.google.com/sql) instance URI.

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

    Type: String

    A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. Applicable only to destination endpoint.

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

    Type: String

    A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. Applicable only to destination endpoint.

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

    Type: String

    A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.

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

    Type: String

    A [DMS Private Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections) name format: projects/{project}/locations/{location}/privateConnections/{privateConnection}.

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

    Type: String

    A [Datastream Private Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections) name format: projects/{project}/locations/{location}/privateConnections/{privateConnection}.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::Endpoint::CloudFunctionEndpoint)

    A [Cloud Function](https://cloud.google.com/functions). Applicable only to source endpoint.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::Endpoint::AppEngineVersionEndpoint)

    An [App Engine](https://cloud.google.com/appengine) [service version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). Applicable only to source endpoint.

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

    Type: Message (Google::Cloud::Networkmanagement::V1::ConnectivityTest::Endpoint::CloudRunRevisionEndpoint)

    A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) Applicable only to source endpoint.

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

    Type: String

    A [Cloud Run](https://cloud.google.com/run) [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job) URI. Applicable only to source endpoint. The format is: projects/{project}/locations/{location}/jobs/{job}

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

    Type: String

    A VPC network URI. For source endpoints, used according to the `network_type`. For destination endpoints, used only when the source is an external IP address endpoint, and the destination is an internal IP address endpoint.

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

    Type: Enum (Google::Cloud::Networkmanagement::V1::Endpoint::NetworkType)

    For source endpoints, type of the network where the endpoint is located. Not relevant for destination endpoints.

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

    Type: String

    For source endpoints, endpoint project ID. Used according to the `network_type`. Not relevant for destination endpoints.

Enum: Endpoint::NetworkType

  • NETWORK_TYPE_UNSPECIFIED => 0

  • GCP_NETWORK => 1

  • NON_GCP_NETWORK => 2

  • INTERNET => 3

Enum: Endpoint::ForwardingRuleTarget

  • FORWARDING_RULE_TARGET_UNSPECIFIED => 0

  • INSTANCE => 1

  • LOAD_BALANCER => 2

  • VPN_GATEWAY => 3

  • PSC => 4

Google::Cloud::Networkmanagement::V1::ConnectivityTest::ReachabilityDetails

Results of the configuration analysis from the last run of the test.

Inherits from Protobuf::Message.

Accessors

Enum: ReachabilityDetails::Result

  • RESULT_UNSPECIFIED => 0

  • REACHABLE => 1

  • UNREACHABLE => 2

  • AMBIGUOUS => 4

  • UNDETERMINED => 5

Google::Cloud::Networkmanagement::V1::ConnectivityTest::LatencyPercentile

Latency percentile rank and value.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Percentage of samples this data point applies to.

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

    Type: Int64

    percent-th percentile of latency observed, in microseconds. Fraction of percent/100 of samples have latency lower or equal to the value of this field.

Google::Cloud::Networkmanagement::V1::ConnectivityTest::LatencyDistribution

Describes measured latency distribution.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Networkmanagement::V1::ConnectivityTest::ProbingDetails

Results of active probing from the last run of the test.

Inherits from Protobuf::Message.

Accessors

Enum: ProbingDetails::ProbingResult

  • PROBING_RESULT_UNSPECIFIED => 0

  • REACHABLE => 1

  • UNREACHABLE => 2

  • REACHABILITY_INCONSISTENT => 3

  • UNDETERMINED => 4

Enum: ProbingDetails::ProbingAbortCause

  • PROBING_ABORT_CAUSE_UNSPECIFIED => 0

  • PERMISSION_DENIED => 1

  • NO_SOURCE_LOCATION => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networkmanagement::V1::ConnectivityTest::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.