Enum OpenRtb.ContextSubtype

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<OpenRtb.ContextSubtype>
    Enclosing class:
    OpenRtb

    public static enum OpenRtb.ContextSubtype
    extends Enum<OpenRtb.ContextSubtype>
    implements com.google.protobuf.ProtocolMessageEnum
     OpenRTB Native 1.1: Next-level context in which the ad appears.
     Again this reflects the primary context, and does not imply no presence
     of other elements. For example, an article is likely to contain images
     but is still first and foremost an article. SubType should only be
     combined with the primary context type as indicated (ie for a context
     type of 1, only context subtypes that start with 1 are valid).
     
    Protobuf enum com.google.openrtb.ContextSubtype
    • Field Detail

      • CONTENT_GENERAL_OR_MIXED_VALUE

        public static final int CONTENT_GENERAL_OR_MIXED_VALUE
        CONTENT_GENERAL_OR_MIXED = 10;
        See Also:
        Constant Field Values
      • CONTENT_ARTICLE_VALUE

        public static final int CONTENT_ARTICLE_VALUE
        CONTENT_ARTICLE = 11;
        See Also:
        Constant Field Values
      • CONTENT_VIDEO_VALUE

        public static final int CONTENT_VIDEO_VALUE
        CONTENT_VIDEO = 12;
        See Also:
        Constant Field Values
      • CONTENT_AUDIO_VALUE

        public static final int CONTENT_AUDIO_VALUE
        CONTENT_AUDIO = 13;
        See Also:
        Constant Field Values
      • CONTENT_IMAGE_VALUE

        public static final int CONTENT_IMAGE_VALUE
        CONTENT_IMAGE = 14;
        See Also:
        Constant Field Values
      • CONTENT_USER_GENERATED_VALUE

        public static final int CONTENT_USER_GENERATED_VALUE
        CONTENT_USER_GENERATED = 15;
        See Also:
        Constant Field Values
      • SOCIAL_GENERAL_VALUE

        public static final int SOCIAL_GENERAL_VALUE
        SOCIAL_GENERAL = 20;
        See Also:
        Constant Field Values
      • SOCIAL_EMAIL_VALUE

        public static final int SOCIAL_EMAIL_VALUE
        SOCIAL_EMAIL = 21;
        See Also:
        Constant Field Values
      • SOCIAL_CHAT_IM_VALUE

        public static final int SOCIAL_CHAT_IM_VALUE
        SOCIAL_CHAT_IM = 22;
        See Also:
        Constant Field Values
      • PRODUCT_SELLING_VALUE

        public static final int PRODUCT_SELLING_VALUE
        PRODUCT_SELLING = 30;
        See Also:
        Constant Field Values
      • PRODUCT_MARKETPLACE_VALUE

        public static final int PRODUCT_MARKETPLACE_VALUE
        PRODUCT_MARKETPLACE = 31;
        See Also:
        Constant Field Values
      • PRODUCT_REVIEW_VALUE

        public static final int PRODUCT_REVIEW_VALUE
        PRODUCT_REVIEW = 32;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static OpenRtb.ContextSubtype[] 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.ContextSubtype c : OpenRtb.ContextSubtype.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.ContextSubtype 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.ContextSubtype 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.ContextSubtype 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.ContextSubtype> 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.ContextSubtype 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