public static enum VpnGateway.GatewayIpVersion extends Enum<VpnGateway.GatewayIpVersion> implements com.google.protobuf.ProtocolMessageEnum
The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.Protobuf enum
google.cloud.compute.v1.VpnGateway.GatewayIpVersion| Enum Constant and Description |
|---|
IPV4
Every HA-VPN gateway interface is configured with an IPv4 address.
|
IPV6
Every HA-VPN gateway interface is configured with an IPv6 address.
|
UNDEFINED_GATEWAY_IP_VERSION
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
IPV4_VALUE
Every HA-VPN gateway interface is configured with an IPv4 address.
|
static int |
IPV6_VALUE
Every HA-VPN gateway interface is configured with an IPv6 address.
|
static int |
UNDEFINED_GATEWAY_IP_VERSION_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static VpnGateway.GatewayIpVersion |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<VpnGateway.GatewayIpVersion> |
internalGetValueMap() |
static VpnGateway.GatewayIpVersion |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static VpnGateway.GatewayIpVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static VpnGateway.GatewayIpVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VpnGateway.GatewayIpVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VpnGateway.GatewayIpVersion UNDEFINED_GATEWAY_IP_VERSION
A value indicating that the enum field is not set.
UNDEFINED_GATEWAY_IP_VERSION = 0;public static final VpnGateway.GatewayIpVersion IPV4
Every HA-VPN gateway interface is configured with an IPv4 address.
IPV4 = 2254341;public static final VpnGateway.GatewayIpVersion IPV6
Every HA-VPN gateway interface is configured with an IPv6 address.
IPV6 = 2254343;public static final VpnGateway.GatewayIpVersion UNRECOGNIZED
public static final int UNDEFINED_GATEWAY_IP_VERSION_VALUE
A value indicating that the enum field is not set.
UNDEFINED_GATEWAY_IP_VERSION = 0;public static final int IPV4_VALUE
Every HA-VPN gateway interface is configured with an IPv4 address.
IPV4 = 2254341;public static final int IPV6_VALUE
Every HA-VPN gateway interface is configured with an IPv6 address.
IPV6 = 2254343;public static VpnGateway.GatewayIpVersion[] values()
for (VpnGateway.GatewayIpVersion c : VpnGateway.GatewayIpVersion.values()) System.out.println(c);
public static VpnGateway.GatewayIpVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static VpnGateway.GatewayIpVersion valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static VpnGateway.GatewayIpVersion forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<VpnGateway.GatewayIpVersion> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static VpnGateway.GatewayIpVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.