Package ai.promoted.proto.common
Enum DeviceType
- java.lang.Object
-
- java.lang.Enum<DeviceType>
-
- ai.promoted.proto.common.DeviceType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DeviceType>
public enum DeviceType extends Enum<DeviceType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumcommon.DeviceType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DESKTOPDESKTOP = 1;MOBILEMOBILE = 2;TABLETTABLET = 3;UNKNOWN_DEVICE_TYPEUNKNOWN_DEVICE_TYPE = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDESKTOP_VALUEDESKTOP = 1;static intMOBILE_VALUEMOBILE = 2;static intTABLET_VALUETABLET = 3;static intUNKNOWN_DEVICE_TYPE_VALUEUNKNOWN_DEVICE_TYPE = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DeviceTypeforNumber(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<DeviceType>internalGetValueMap()static DeviceTypevalueOf(int value)Deprecated.static DeviceTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static DeviceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DeviceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_DEVICE_TYPE
public static final DeviceType UNKNOWN_DEVICE_TYPE
UNKNOWN_DEVICE_TYPE = 0;
-
DESKTOP
public static final DeviceType DESKTOP
DESKTOP = 1;
-
MOBILE
public static final DeviceType MOBILE
MOBILE = 2;
-
TABLET
public static final DeviceType TABLET
TABLET = 3;
-
UNRECOGNIZED
public static final DeviceType UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_DEVICE_TYPE_VALUE
public static final int UNKNOWN_DEVICE_TYPE_VALUE
UNKNOWN_DEVICE_TYPE = 0;- See Also:
- Constant Field Values
-
DESKTOP_VALUE
public static final int DESKTOP_VALUE
DESKTOP = 1;- See Also:
- Constant Field Values
-
MOBILE_VALUE
public static final int MOBILE_VALUE
MOBILE = 2;- See Also:
- Constant Field Values
-
TABLET_VALUE
public static final int TABLET_VALUE
TABLET = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DeviceType[] 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 (DeviceType c : DeviceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceType 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 DeviceType 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 DeviceType 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<DeviceType> 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 DeviceType 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
-
-