Enum 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 enum com.google.openrtb.DeviceType
    • 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;
      • 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
      • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null