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