public static enum ResourcePolicyWorkloadPolicy.MaxTopologyDistance extends Enum<ResourcePolicyWorkloadPolicy.MaxTopologyDistance> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
google.cloud.compute.v1.ResourcePolicyWorkloadPolicy.MaxTopologyDistance| Enum Constant and Description |
|---|
BLOCK
VMs must be provisioned in the same block.
|
CLUSTER
VMs must be provisioned in the same cluster.
|
SUBBLOCK
VMs must be provisioned in the same subblock.
|
UNDEFINED_MAX_TOPOLOGY_DISTANCE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_VALUE
VMs must be provisioned in the same block.
|
static int |
CLUSTER_VALUE
VMs must be provisioned in the same cluster.
|
static int |
SUBBLOCK_VALUE
VMs must be provisioned in the same subblock.
|
static int |
UNDEFINED_MAX_TOPOLOGY_DISTANCE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourcePolicyWorkloadPolicy.MaxTopologyDistance |
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<ResourcePolicyWorkloadPolicy.MaxTopologyDistance> |
internalGetValueMap() |
static ResourcePolicyWorkloadPolicy.MaxTopologyDistance |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ResourcePolicyWorkloadPolicy.MaxTopologyDistance |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ResourcePolicyWorkloadPolicy.MaxTopologyDistance |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourcePolicyWorkloadPolicy.MaxTopologyDistance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourcePolicyWorkloadPolicy.MaxTopologyDistance UNDEFINED_MAX_TOPOLOGY_DISTANCE
A value indicating that the enum field is not set.
UNDEFINED_MAX_TOPOLOGY_DISTANCE = 0;public static final ResourcePolicyWorkloadPolicy.MaxTopologyDistance BLOCK
VMs must be provisioned in the same block.
BLOCK = 63294573;public static final ResourcePolicyWorkloadPolicy.MaxTopologyDistance CLUSTER
VMs must be provisioned in the same cluster.
CLUSTER = 516333018;public static final ResourcePolicyWorkloadPolicy.MaxTopologyDistance SUBBLOCK
VMs must be provisioned in the same subblock.
SUBBLOCK = 316202573;public static final ResourcePolicyWorkloadPolicy.MaxTopologyDistance UNRECOGNIZED
public static final int UNDEFINED_MAX_TOPOLOGY_DISTANCE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_MAX_TOPOLOGY_DISTANCE = 0;public static final int BLOCK_VALUE
VMs must be provisioned in the same block.
BLOCK = 63294573;public static final int CLUSTER_VALUE
VMs must be provisioned in the same cluster.
CLUSTER = 516333018;public static final int SUBBLOCK_VALUE
VMs must be provisioned in the same subblock.
SUBBLOCK = 316202573;public static ResourcePolicyWorkloadPolicy.MaxTopologyDistance[] values()
for (ResourcePolicyWorkloadPolicy.MaxTopologyDistance c : ResourcePolicyWorkloadPolicy.MaxTopologyDistance.values()) System.out.println(c);
public static ResourcePolicyWorkloadPolicy.MaxTopologyDistance 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 ResourcePolicyWorkloadPolicy.MaxTopologyDistance valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ResourcePolicyWorkloadPolicy.MaxTopologyDistance forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ResourcePolicyWorkloadPolicy.MaxTopologyDistance> 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 ResourcePolicyWorkloadPolicy.MaxTopologyDistance valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.