Package ai.promoted.proto.common
Enum ClientInfo.ClientType
- java.lang.Object
-
- java.lang.Enum<ClientInfo.ClientType>
-
- ai.promoted.proto.common.ClientInfo.ClientType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ClientInfo.ClientType>
- Enclosing class:
- ClientInfo
public static enum ClientInfo.ClientType extends Enum<ClientInfo.ClientType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumcommon.ClientInfo.ClientType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PLATFORM_CLIENTPLATFORM_CLIENT = 2;PLATFORM_SERVERPLATFORM_SERVER = 1;UNKNOWN_REQUEST_CLIENTUNKNOWN_REQUEST_CLIENT = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intPLATFORM_CLIENT_VALUEPLATFORM_CLIENT = 2;static intPLATFORM_SERVER_VALUEPLATFORM_SERVER = 1;static intUNKNOWN_REQUEST_CLIENT_VALUEUNKNOWN_REQUEST_CLIENT = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ClientInfo.ClientTypeforNumber(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.ClientType>internalGetValueMap()static ClientInfo.ClientTypevalueOf(int value)Deprecated.static ClientInfo.ClientTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ClientInfo.ClientTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ClientInfo.ClientType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_REQUEST_CLIENT
public static final ClientInfo.ClientType UNKNOWN_REQUEST_CLIENT
UNKNOWN_REQUEST_CLIENT = 0;
-
PLATFORM_SERVER
public static final ClientInfo.ClientType PLATFORM_SERVER
PLATFORM_SERVER = 1;
-
PLATFORM_CLIENT
public static final ClientInfo.ClientType PLATFORM_CLIENT
PLATFORM_CLIENT = 2;
-
UNRECOGNIZED
public static final ClientInfo.ClientType UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_REQUEST_CLIENT_VALUE
public static final int UNKNOWN_REQUEST_CLIENT_VALUE
UNKNOWN_REQUEST_CLIENT = 0;- See Also:
- Constant Field Values
-
PLATFORM_SERVER_VALUE
public static final int PLATFORM_SERVER_VALUE
PLATFORM_SERVER = 1;- See Also:
- Constant Field Values
-
PLATFORM_CLIENT_VALUE
public static final int PLATFORM_CLIENT_VALUE
PLATFORM_CLIENT = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ClientInfo.ClientType[] 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.ClientType c : ClientInfo.ClientType.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.ClientType 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.ClientType 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.ClientType 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.ClientType> 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.ClientType 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
-
-