public static enum TrafficSplit.ShardBy extends java.lang.Enum<TrafficSplit.ShardBy> implements ProtocolMessageEnum
Available sharding mechanisms.Protobuf enum
google.appengine.v1.TrafficSplit.ShardBy
Enum Constant and Description |
---|
COOKIE
Diversion based on a specially named cookie, "GOOGAPPUID." The cookie
must be set by the application itself or no diversion will occur.
|
IP
Diversion based on applying the modulus operation to a fingerprint
of the IP address.
|
UNRECOGNIZED |
UNSPECIFIED
Diversion method unspecified.
|
Modifier and Type | Field and Description |
---|---|
static int |
COOKIE_VALUE
Diversion based on a specially named cookie, "GOOGAPPUID." The cookie
must be set by the application itself or no diversion will occur.
|
static int |
IP_VALUE
Diversion based on applying the modulus operation to a fingerprint
of the IP address.
|
static int |
UNSPECIFIED_VALUE
Diversion method unspecified.
|
Modifier and Type | Method and Description |
---|---|
static TrafficSplit.ShardBy |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<TrafficSplit.ShardBy> |
internalGetValueMap() |
static TrafficSplit.ShardBy |
valueOf(Descriptors.EnumValueDescriptor desc) |
static TrafficSplit.ShardBy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TrafficSplit.ShardBy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrafficSplit.ShardBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficSplit.ShardBy UNSPECIFIED
Diversion method unspecified.
UNSPECIFIED = 0;
public static final TrafficSplit.ShardBy COOKIE
Diversion based on a specially named cookie, "GOOGAPPUID." The cookie must be set by the application itself or no diversion will occur.
COOKIE = 1;
public static final TrafficSplit.ShardBy IP
Diversion based on applying the modulus operation to a fingerprint of the IP address.
IP = 2;
public static final TrafficSplit.ShardBy UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
Diversion method unspecified.
UNSPECIFIED = 0;
public static final int COOKIE_VALUE
Diversion based on a specially named cookie, "GOOGAPPUID." The cookie must be set by the application itself or no diversion will occur.
COOKIE = 1;
public static final int IP_VALUE
Diversion based on applying the modulus operation to a fingerprint of the IP address.
IP = 2;
public static TrafficSplit.ShardBy[] values()
for (TrafficSplit.ShardBy c : TrafficSplit.ShardBy.values()) System.out.println(c);
public static TrafficSplit.ShardBy 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static TrafficSplit.ShardBy valueOf(int value)
forNumber(int)
instead.public static TrafficSplit.ShardBy forNumber(int value)
public static Internal.EnumLiteMap<TrafficSplit.ShardBy> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static TrafficSplit.ShardBy valueOf(Descriptors.EnumValueDescriptor desc)