Enum NetworkInterface.StackType (1.50.0)

public enum NetworkInterface.StackType extends Enum<NetworkInterface.StackType> implements ProtocolMessageEnum

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.

Protobuf enum google.cloud.compute.v1.NetworkInterface.StackType

Implements

ProtocolMessageEnum

Static Fields

NameDescription
IPV4_IPV6

The network interface can have both IPv4 and IPv6 addresses.

IPV4_IPV6 = 22197249;

IPV4_IPV6_VALUE

The network interface can have both IPv4 and IPv6 addresses.

IPV4_IPV6 = 22197249;

IPV4_ONLY

The network interface will be assigned IPv4 address.

IPV4_ONLY = 22373798;

IPV4_ONLY_VALUE

The network interface will be assigned IPv4 address.

IPV4_ONLY = 22373798;

UNDEFINED_STACK_TYPE

A value indicating that the enum field is not set.

UNDEFINED_STACK_TYPE = 0;

UNDEFINED_STACK_TYPE_VALUE

A value indicating that the enum field is not set.

UNDEFINED_STACK_TYPE = 0;

UNRECOGNIZED
UNSPECIFIED_STACK_TYPE

UNSPECIFIED_STACK_TYPE = 298084569;

UNSPECIFIED_STACK_TYPE_VALUE

UNSPECIFIED_STACK_TYPE = 298084569;

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()