Compute V1 Client - Class StackType (2.5.0)

Reference documentation and code samples for the Compute V1 Client class StackType.

Which IP version(s) of traffic and routes are allowed to be imported orexported between peer networks. The default value is IPV4_ONLY.

Protobuf typegoogle.cloud.compute.v1.NetworkPeering.StackType

Namespace

Google \ Cloud \ Compute \ V1 \ NetworkPeering

Methods

static::name

Parameter
NameDescription
valuemixed

static::value

Parameter
NameDescription
namemixed

Constants

UNDEFINED_STACK_TYPE

Value: 0

A value indicating that the enum field is not set.

Generated from protobuf enumUNDEFINED_STACK_TYPE = 0;

IPV4_IPV6

Value: 22197249

This Peering will allow IPv4 traffic and routes to beexchanged. Additionally if the matching peering isIPV4_IPV6, IPv6 traffic and routes will be exchanged aswell.

Generated from protobuf enumIPV4_IPV6 = 22197249;

IPV4_ONLY

Value: 22373798

This Peering will only allow IPv4 traffic and routes to beexchanged, even if the matching peering is IPV4_IPV6.

Generated from protobuf enumIPV4_ONLY = 22373798;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-23 UTC.