Package ai.promoted.proto.common
Enum ClientInfo.TrafficType
- java.lang.Object
-
- java.lang.Enum<ClientInfo.TrafficType>
-
- ai.promoted.proto.common.ClientInfo.TrafficType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ClientInfo.TrafficType>
- Enclosing class:
- ClientInfo
public static enum ClientInfo.TrafficType extends Enum<ClientInfo.TrafficType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumcommon.ClientInfo.TrafficType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRODUCTIONPRODUCTION = 1;REPLAYREPLAY = 2;SHADOWSHADOW = 4;UNKNOWN_TRAFFIC_TYPEUNKNOWN_TRAFFIC_TYPE = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intPRODUCTION_VALUEPRODUCTION = 1;static intREPLAY_VALUEREPLAY = 2;static intSHADOW_VALUESHADOW = 4;static intUNKNOWN_TRAFFIC_TYPE_VALUEUNKNOWN_TRAFFIC_TYPE = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ClientInfo.TrafficTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ClientInfo.TrafficType>internalGetValueMap()static ClientInfo.TrafficTypevalueOf(int value)Deprecated.static ClientInfo.TrafficTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ClientInfo.TrafficTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ClientInfo.TrafficType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_TRAFFIC_TYPE
public static final ClientInfo.TrafficType UNKNOWN_TRAFFIC_TYPE
UNKNOWN_TRAFFIC_TYPE = 0;
-
PRODUCTION
public static final ClientInfo.TrafficType PRODUCTION
PRODUCTION = 1;
-
REPLAY
public static final ClientInfo.TrafficType REPLAY
REPLAY = 2;
-
SHADOW
public static final ClientInfo.TrafficType SHADOW
SHADOW = 4;
-
UNRECOGNIZED
public static final ClientInfo.TrafficType UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_TRAFFIC_TYPE_VALUE
public static final int UNKNOWN_TRAFFIC_TYPE_VALUE
UNKNOWN_TRAFFIC_TYPE = 0;- See Also:
- Constant Field Values
-
PRODUCTION_VALUE
public static final int PRODUCTION_VALUE
PRODUCTION = 1;- See Also:
- Constant Field Values
-
REPLAY_VALUE
public static final int REPLAY_VALUE
REPLAY = 2;- See Also:
- Constant Field Values
-
SHADOW_VALUE
public static final int SHADOW_VALUE
SHADOW = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ClientInfo.TrafficType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClientInfo.TrafficType c : ClientInfo.TrafficType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientInfo.TrafficType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ClientInfo.TrafficType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static ClientInfo.TrafficType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ClientInfo.TrafficType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ClientInfo.TrafficType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-