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:
StringIdentifier. Unique name of the resource using the form: `projects/{project_id}/locations/global/connectivityTests/{test_id}`
$msg->description()/$msg->description($value)Type:
StringThe 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:
StringIP Protocol of the test. When not provided, "TCP" is assumed.
$msg->related_projects()/$msg->related_projects($value)Type:
StringOther 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:
StringOutput 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:
BoolWhether 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:
BoolWhether 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:
StringThe IP address of the endpoint, which can be an external or internal IP.
$msg->port()/$msg->port($value)Type:
Int32The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.
$msg->instance()/$msg->instance($value)Type:
StringA Compute Engine instance URI.
$msg->forwarding_rule()/$msg->forwarding_rule($value)Type:
StringA 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:
StringOutput 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:
StringA 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:
StringDNS 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:
StringA [Cloud SQL](https://cloud.google.com/sql) instance URI.
$msg->redis_instance()/$msg->redis_instance($value)Type:
StringA [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. Applicable only to destination endpoint.
$msg->redis_cluster()/$msg->redis_cluster($value)Type:
StringA [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. Applicable only to destination endpoint.
$msg->gke_pod()/$msg->gke_pod($value)Type:
StringA [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.
$msg->dms_private_connection()/$msg->dms_private_connection($value)Type:
StringA [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:
StringA [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:
StringA [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:
StringA 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:
StringFor source endpoints, endpoint project ID. Used according to the `network_type`. Not relevant for destination endpoints.
Enum: Endpoint::NetworkType
NETWORK_TYPE_UNSPECIFIED=>0GCP_NETWORK=>1NON_GCP_NETWORK=>2INTERNET=>3
Enum: Endpoint::ForwardingRuleTarget
FORWARDING_RULE_TARGET_UNSPECIFIED=>0INSTANCE=>1LOAD_BALANCER=>2VPN_GATEWAY=>3PSC=>4
Google::Cloud::Networkmanagement::V1::ConnectivityTest::ReachabilityDetails
Results of the configuration analysis from the last run of the test.
Inherits from Protobuf::Message.
Accessors
$msg->result()/$msg->result($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::ReachabilityDetails::Result)The overall result of the test's configuration analysis.
$msg->verify_time()/$msg->verify_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time of the configuration analysis.
$msg->error()/$msg->error($value)Type:
Message(Google::Rpc::Status::Status)The details of a failure or a cancellation of reachability analysis.
$msg->traces()/$msg->traces($value)Type:
Message(Google::Cloud::Networkmanagement::V1::Trace::Trace)Result may contain a list of traces if a test has multiple possible paths in the network, such as when destination endpoint is a load balancer with multiple backends.
Enum: ReachabilityDetails::Result
RESULT_UNSPECIFIED=>0REACHABLE=>1UNREACHABLE=>2AMBIGUOUS=>4UNDETERMINED=>5
Google::Cloud::Networkmanagement::V1::ConnectivityTest::LatencyPercentile
Latency percentile rank and value.
Inherits from Protobuf::Message.
Accessors
$msg->percent()/$msg->percent($value)Type:
Int32Percentage of samples this data point applies to.
$msg->latency_micros()/$msg->latency_micros($value)Type:
Int64percent-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
$msg->latency_percentiles()/$msg->latency_percentiles($value)Type:
Message(Google::Cloud::Networkmanagement::V1::ConnectivityTest::LatencyPercentile)Representative latency percentiles.
Google::Cloud::Networkmanagement::V1::ConnectivityTest::ProbingDetails
Results of active probing from the last run of the test.
Inherits from Protobuf::Message.
Accessors
$msg->result()/$msg->result($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::ProbingDetails::ProbingResult)The overall result of active probing.
$msg->verify_time()/$msg->verify_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time that reachability was assessed through active probing.
$msg->error()/$msg->error($value)Type:
Message(Google::Rpc::Status::Status)Details about an internal failure or the cancellation of active probing.
$msg->abort_cause()/$msg->abort_cause($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::ProbingDetails::ProbingAbortCause)The reason probing was aborted.
$msg->sent_probe_count()/$msg->sent_probe_count($value)Type:
Int32Number of probes sent.
$msg->successful_probe_count()/$msg->successful_probe_count($value)Type:
Int32Number of probes that reached the destination.
$msg->endpoint_info()/$msg->endpoint_info($value)Type:
Message(Google::Cloud::Networkmanagement::V1::Trace::EndpointInfo)The source and destination endpoints derived from the test input and used for active probing.
$msg->probing_latency()/$msg->probing_latency($value)Type:
Message(Google::Cloud::Networkmanagement::V1::ConnectivityTest::LatencyDistribution)Latency as measured by active probing in one direction: from the source to the destination endpoint.
$msg->destination_egress_location()/$msg->destination_egress_location($value)Type:
Message(Google::Cloud::Networkmanagement::V1::ConnectivityTest::ProbingDetails::EdgeLocation)The EdgeLocation from which a packet, destined to the internet, will egress the Google network. This will only be populated for a connectivity test which has an internet destination address. The absence of this field *must not* be used as an indication that the destination is part of the Google network.
$msg->edge_responses()/$msg->edge_responses($value)Type:
Message(Google::Cloud::Networkmanagement::V1::ConnectivityTest::ProbingDetails::SingleEdgeResponse)Probing results for all edge devices.
$msg->probed_all_devices()/$msg->probed_all_devices($value)Type:
BoolWhether all relevant edge devices were probed.
Enum: ProbingDetails::ProbingResult
PROBING_RESULT_UNSPECIFIED=>0REACHABLE=>1UNREACHABLE=>2REACHABILITY_INCONSISTENT=>3UNDETERMINED=>4
Enum: ProbingDetails::ProbingAbortCause
PROBING_ABORT_CAUSE_UNSPECIFIED=>0PERMISSION_DENIED=>1NO_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.