Package com.google.openrtb
Enum OpenRtb.ContextType
- java.lang.Object
-
- java.lang.Enum<OpenRtb.ContextType>
-
- com.google.openrtb.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 enumcom.google.openrtb.ContextType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENTContent-centric context such as newsfeed, article, image gallery, video gallery, or similar.PRODUCTProduct context such as product listings, details, recommendations, reviews, or similar.SOCIALSocial-centric context such as social network feed, email, chat, or similar.
-
Field Summary
Fields Modifier and Type Field Description static intCONTENT_VALUEContent-centric context such as newsfeed, article, image gallery, video gallery, or similar.static intPRODUCT_VALUEProduct context such as product listings, details, recommendations, reviews, or similar.static intSOCIAL_VALUESocial-centric context such as social network feed, email, chat, or similar.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.ContextTypeforNumber(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.ContextType>internalGetValueMap()static OpenRtb.ContextTypevalueOf(int value)Deprecated.static OpenRtb.ContextTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.ContextTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.ContextType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 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.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 nameNullPointerException- 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:
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.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 nameNullPointerException- if the argument is null
-
-