Enum OpenRtb.ContextType

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

    public static enum OpenRtb.ContextType
    extends Enum<OpenRtb.ContextType>
    implements com.google.protobuf.ProtocolMessageEnum
     OpenRTB Native 1.1: The context in which the ad appears - what type
     of content is surrounding the ad on the page at a high level.
     This maps directly to the new Deep Dive on In-Feed Ad Units.
     This denotes the primary context, but does not imply other content
     may not exist on the page - for example it's expected that most
     content platforms have some social components, etc.
     
    Protobuf enum com.google.openrtb.ContextType
    • Enum Constant Detail

      • CONTENT

        public static final OpenRtb.ContextType CONTENT
         Content-centric context such as newsfeed, article, image gallery,
         video gallery, or similar.
         
        CONTENT = 1;
      • SOCIAL

        public static final OpenRtb.ContextType SOCIAL
         Social-centric context such as social network feed, email,
         chat, or similar.
         
        SOCIAL = 2;
      • PRODUCT

        public static final OpenRtb.ContextType PRODUCT
         Product context such as product listings, details, recommendations,
         reviews, or similar.
         
        PRODUCT = 3;
    • Field Detail

      • CONTENT_VALUE

        public static final int CONTENT_VALUE
         Content-centric context such as newsfeed, article, image gallery,
         video gallery, or similar.
         
        CONTENT = 1;
        See Also:
        Constant Field Values
      • SOCIAL_VALUE

        public static final int SOCIAL_VALUE
         Social-centric context such as social network feed, email,
         chat, or similar.
         
        SOCIAL = 2;
        See Also:
        Constant Field Values
      • PRODUCT_VALUE

        public static final int PRODUCT_VALUE
         Product context such as product listings, details, recommendations,
         reviews, or similar.
         
        PRODUCT = 3;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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