Package com.google.openrtb
Enum OpenRtb.ContentContext
- java.lang.Object
-
- java.lang.Enum<OpenRtb.ContentContext>
-
- com.google.openrtb.OpenRtb.ContentContext
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OpenRtb.ContentContext>
- Enclosing class:
- OpenRtb
public static enum OpenRtb.ContentContext extends Enum<OpenRtb.ContentContext> implements com.google.protobuf.ProtocolMessageEnum
OpenRTB 2.0: The following table lists the various options for indicating the type of content in which the impression will appear. 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.ContentContext
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATIONAPPLICATION = 4;CONTEXT_UNKNOWNCONTEXT_UNKNOWN = 7;GAMEGAME = 2;MUSICMUSIC = 3;OTHEROTHER = 6;TEXTTEXT = 5;VIDEOVIDEO = 1;
-
Field Summary
Fields Modifier and Type Field Description static intAPPLICATION_VALUEAPPLICATION = 4;static intCONTEXT_UNKNOWN_VALUECONTEXT_UNKNOWN = 7;static intGAME_VALUEGAME = 2;static intMUSIC_VALUEMUSIC = 3;static intOTHER_VALUEOTHER = 6;static intTEXT_VALUETEXT = 5;static intVIDEO_VALUEVIDEO = 1;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.ContentContextforNumber(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.ContentContext>internalGetValueMap()static OpenRtb.ContentContextvalueOf(int value)Deprecated.static OpenRtb.ContentContextvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.ContentContextvalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.ContentContext[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIDEO
public static final OpenRtb.ContentContext VIDEO
VIDEO = 1;
-
GAME
public static final OpenRtb.ContentContext GAME
GAME = 2;
-
MUSIC
public static final OpenRtb.ContentContext MUSIC
MUSIC = 3;
-
APPLICATION
public static final OpenRtb.ContentContext APPLICATION
APPLICATION = 4;
-
TEXT
public static final OpenRtb.ContentContext TEXT
TEXT = 5;
-
OTHER
public static final OpenRtb.ContentContext OTHER
OTHER = 6;
-
CONTEXT_UNKNOWN
public static final OpenRtb.ContentContext CONTEXT_UNKNOWN
CONTEXT_UNKNOWN = 7;
-
-
Field Detail
-
VIDEO_VALUE
public static final int VIDEO_VALUE
VIDEO = 1;- See Also:
- Constant Field Values
-
GAME_VALUE
public static final int GAME_VALUE
GAME = 2;- See Also:
- Constant Field Values
-
MUSIC_VALUE
public static final int MUSIC_VALUE
MUSIC = 3;- See Also:
- Constant Field Values
-
APPLICATION_VALUE
public static final int APPLICATION_VALUE
APPLICATION = 4;- See Also:
- Constant Field Values
-
TEXT_VALUE
public static final int TEXT_VALUE
TEXT = 5;- See Also:
- Constant Field Values
-
OTHER_VALUE
public static final int OTHER_VALUE
OTHER = 6;- See Also:
- Constant Field Values
-
CONTEXT_UNKNOWN_VALUE
public static final int CONTEXT_UNKNOWN_VALUE
CONTEXT_UNKNOWN = 7;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OpenRtb.ContentContext[] 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.ContentContext c : OpenRtb.ContentContext.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.ContentContext 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.ContentContext 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.ContentContext 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.ContentContext> 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.ContentContext 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
-
-