public static enum Address.IpVersion extends Enum<Address.IpVersion> implements com.google.protobuf.ProtocolMessageEnum
The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.Protobuf enum
google.cloud.compute.v1.Address.IpVersion| Enum Constant and Description |
|---|
IPV4
IPV4 = 2254341; |
IPV6
IPV6 = 2254343; |
UNDEFINED_IP_VERSION
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
UNSPECIFIED_VERSION
UNSPECIFIED_VERSION = 21850000; |
| Modifier and Type | Field and Description |
|---|---|
static int |
IPV4_VALUE
IPV4 = 2254341; |
static int |
IPV6_VALUE
IPV6 = 2254343; |
static int |
UNDEFINED_IP_VERSION_VALUE
A value indicating that the enum field is not set.
|
static int |
UNSPECIFIED_VERSION_VALUE
UNSPECIFIED_VERSION = 21850000; |
| Modifier and Type | Method and Description |
|---|---|
static Address.IpVersion |
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<Address.IpVersion> |
internalGetValueMap() |
static Address.IpVersion |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Address.IpVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Address.IpVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Address.IpVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Address.IpVersion UNDEFINED_IP_VERSION
A value indicating that the enum field is not set.
UNDEFINED_IP_VERSION = 0;public static final Address.IpVersion IPV4
IPV4 = 2254341;public static final Address.IpVersion IPV6
IPV6 = 2254343;public static final Address.IpVersion UNSPECIFIED_VERSION
UNSPECIFIED_VERSION = 21850000;public static final Address.IpVersion UNRECOGNIZED
public static final int UNDEFINED_IP_VERSION_VALUE
A value indicating that the enum field is not set.
UNDEFINED_IP_VERSION = 0;public static final int IPV4_VALUE
IPV4 = 2254341;public static final int IPV6_VALUE
IPV6 = 2254343;public static final int UNSPECIFIED_VERSION_VALUE
UNSPECIFIED_VERSION = 21850000;public static Address.IpVersion[] values()
for (Address.IpVersion c : Address.IpVersion.values()) System.out.println(c);
public static Address.IpVersion 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 Address.IpVersion valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Address.IpVersion forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Address.IpVersion> 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 Address.IpVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.