Package com.google.openrtb
Enum OpenRtb.DeviceType
- java.lang.Object
-
- java.lang.Enum<OpenRtb.DeviceType>
-
- com.google.openrtb.OpenRtb.DeviceType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OpenRtb.DeviceType>
- Enclosing class:
- OpenRtb
public static enum OpenRtb.DeviceType extends Enum<OpenRtb.DeviceType> implements com.google.protobuf.ProtocolMessageEnum
OpenRTB 2.0: The following table lists the type of device from which the impression originated. OpenRTB version 2.2 of the specification added distinct values for Mobile and Tablet. It is recommended that any bidder adding support for 2.2 treat a value of 1 as an acceptable alias of 4 & 5. This OpenRTB table has values derived from the IAB Quality Assurance Guidelines (QAG). Practitioners should keep in sync with updates to the QAG values as published on IAB.net.
Protobuf enumcom.google.openrtb.DeviceType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED_DEVICEConnected device.CONNECTED_TVConnected TV.HIGHEND_PHONEPhone.MOBILEMobile (OpenRTB 2.2+: obsolete, alias for PHONE or TABLET).PERSONAL_COMPUTERPersonal Computer.SET_TOP_BOXSet top box.TABLETTablet.
-
Field Summary
Fields Modifier and Type Field Description static intCONNECTED_DEVICE_VALUEConnected device.static intCONNECTED_TV_VALUEConnected TV.static intHIGHEND_PHONE_VALUEPhone.static intMOBILE_VALUEMobile (OpenRTB 2.2+: obsolete, alias for PHONE or TABLET).static intPERSONAL_COMPUTER_VALUEPersonal Computer.static intSET_TOP_BOX_VALUESet top box.static intTABLET_VALUETablet.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.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<OpenRtb.DeviceType>internalGetValueMap()static OpenRtb.DeviceTypevalueOf(int value)Deprecated.static OpenRtb.DeviceTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.DeviceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.DeviceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOBILE
public static final OpenRtb.DeviceType MOBILE
Mobile (OpenRTB 2.2+: obsolete, alias for PHONE or TABLET).
MOBILE = 1;
-
PERSONAL_COMPUTER
public static final OpenRtb.DeviceType PERSONAL_COMPUTER
Personal Computer.
PERSONAL_COMPUTER = 2;
-
CONNECTED_TV
public static final OpenRtb.DeviceType CONNECTED_TV
Connected TV.
CONNECTED_TV = 3;
-
HIGHEND_PHONE
public static final OpenRtb.DeviceType HIGHEND_PHONE
Phone.
HIGHEND_PHONE = 4;
-
TABLET
public static final OpenRtb.DeviceType TABLET
Tablet.
TABLET = 5;
-
CONNECTED_DEVICE
public static final OpenRtb.DeviceType CONNECTED_DEVICE
Connected device.
CONNECTED_DEVICE = 6;
-
SET_TOP_BOX
public static final OpenRtb.DeviceType SET_TOP_BOX
Set top box.
SET_TOP_BOX = 7;
-
-
Field Detail
-
MOBILE_VALUE
public static final int MOBILE_VALUE
Mobile (OpenRTB 2.2+: obsolete, alias for PHONE or TABLET).
MOBILE = 1;- See Also:
- Constant Field Values
-
PERSONAL_COMPUTER_VALUE
public static final int PERSONAL_COMPUTER_VALUE
Personal Computer.
PERSONAL_COMPUTER = 2;- See Also:
- Constant Field Values
-
CONNECTED_TV_VALUE
public static final int CONNECTED_TV_VALUE
Connected TV.
CONNECTED_TV = 3;- See Also:
- Constant Field Values
-
HIGHEND_PHONE_VALUE
public static final int HIGHEND_PHONE_VALUE
Phone.
HIGHEND_PHONE = 4;- See Also:
- Constant Field Values
-
TABLET_VALUE
public static final int TABLET_VALUE
Tablet.
TABLET = 5;- See Also:
- Constant Field Values
-
CONNECTED_DEVICE_VALUE
public static final int CONNECTED_DEVICE_VALUE
Connected device.
CONNECTED_DEVICE = 6;- See Also:
- Constant Field Values
-
SET_TOP_BOX_VALUE
public static final int SET_TOP_BOX_VALUE
Set top box.
SET_TOP_BOX = 7;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OpenRtb.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 (OpenRtb.DeviceType c : OpenRtb.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 OpenRtb.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 OpenRtb.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 OpenRtb.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<OpenRtb.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 OpenRtb.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
-
-