public enum PlacementPolicy extends java.lang.Enum<PlacementPolicy> implements com.google.protobuf.ProtocolMessageEnum
Value of the enum is the precedence order of the PlacementPolicy, higher number takes higher priority.Protobuf enum
staros.PlacementPolicy| Enum Constant and Description |
|---|
EXCLUDE
EXCLUDE = 150; |
NONE
NONE = 0; |
PACK
PACK = 100; |
RANDOM
RANDOM = 10; |
SPREAD
SPREAD = 50; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
EXCLUDE_VALUE
EXCLUDE = 150; |
static int |
NONE_VALUE
NONE = 0; |
static int |
PACK_VALUE
PACK = 100; |
static int |
RANDOM_VALUE
RANDOM = 10; |
static int |
SPREAD_VALUE
SPREAD = 50; |
| Modifier and Type | Method and Description |
|---|---|
static PlacementPolicy |
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<PlacementPolicy> |
internalGetValueMap() |
static PlacementPolicy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PlacementPolicy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PlacementPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlacementPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlacementPolicy NONE
NONE = 0;public static final PlacementPolicy RANDOM
RANDOM = 10;public static final PlacementPolicy SPREAD
SPREAD = 50;public static final PlacementPolicy PACK
PACK = 100;public static final PlacementPolicy EXCLUDE
EXCLUDE = 150;public static final PlacementPolicy UNRECOGNIZED
public static final int NONE_VALUE
NONE = 0;public static final int RANDOM_VALUE
RANDOM = 10;public static final int SPREAD_VALUE
SPREAD = 50;public static final int PACK_VALUE
PACK = 100;public static final int EXCLUDE_VALUE
EXCLUDE = 150;public static PlacementPolicy[] values()
for (PlacementPolicy c : PlacementPolicy.values()) System.out.println(c);
public static PlacementPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - 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 PlacementPolicy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static PlacementPolicy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<PlacementPolicy> 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 PlacementPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024. All rights reserved.