Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class RouteType.
The route's type
Protobuf type google.cloud.networkconnectivity.v1.RouteType
Namespace
Google \ Cloud \ NetworkConnectivity \ V1
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
ROUTE_TYPE_UNSPECIFIED
Value: 0
No route type information specified
Generated from protobuf enum ROUTE_TYPE_UNSPECIFIED = 0;
VPC_PRIMARY_SUBNET
Value: 1
The route leads to a destination within the primary address range of the
VPC network's subnet.
Generated from protobuf enum VPC_PRIMARY_SUBNET = 1;
VPC_SECONDARY_SUBNET
Value: 2
The route leads to a destination within the secondary address range of the
VPC network's subnet.
Generated from protobuf enum VPC_SECONDARY_SUBNET = 2;
DYNAMIC_ROUTE
Value: 3
The route leads to a destination in a dynamic route. Dynamic routes are
derived from Border Gateway Protocol (BGP) advertisements received from an
NCC hybrid spoke.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Network Connectivity V1 Client - Class RouteType (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.RouteType)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.RouteType)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.RouteType)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.RouteType)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.RouteType)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.RouteType)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.RouteType)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.RouteType)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.RouteType)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.RouteType) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class RouteType.\n\nThe route's type\n\nProtobuf type `google.cloud.networkconnectivity.v1.RouteType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkConnectivity \\\\ V1\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### ROUTE_TYPE_UNSPECIFIED\n\n Value: 0\n\nNo route type information specified\n\nGenerated from protobuf enum `ROUTE_TYPE_UNSPECIFIED = 0;`\n\n### VPC_PRIMARY_SUBNET\n\n Value: 1\n\nThe route leads to a destination within the primary address range of the\nVPC network's subnet.\n\nGenerated from protobuf enum `VPC_PRIMARY_SUBNET = 1;`\n\n### VPC_SECONDARY_SUBNET\n\n Value: 2\n\nThe route leads to a destination within the secondary address range of the\nVPC network's subnet.\n\nGenerated from protobuf enum `VPC_SECONDARY_SUBNET = 2;`\n\n### DYNAMIC_ROUTE\n\n Value: 3\n\nThe route leads to a destination in a dynamic route. Dynamic routes are\nderived from Border Gateway Protocol (BGP) advertisements received from an\nNCC hybrid spoke.\n\nGenerated from protobuf enum `DYNAMIC_ROUTE = 3;`"]]