Package com.google.openrtb
Enum OpenRtb.AdUnitId
- java.lang.Object
-
- java.lang.Enum<OpenRtb.AdUnitId>
-
- com.google.openrtb.OpenRtb.AdUnitId
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OpenRtb.AdUnitId>
- Enclosing class:
- OpenRtb
public static enum OpenRtb.AdUnitId extends Enum<OpenRtb.AdUnitId> implements com.google.protobuf.ProtocolMessageEnum
DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
Protobuf enumcom.google.openrtb.AdUnitId
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADUNITID_CUSTOMExchange-specific values above 500.IAB_IN_AD_NATIVEIAB_IN_AD_NATIVE = 4;PAID_SEARCH_UNITPAID_SEARCH_UNIT = 1;PROMOTED_LISTINGPROMOTED_LISTING = 3;RECOMMENDATION_WIDGETRECOMMENDATION_WIDGET = 2;
-
Field Summary
Fields Modifier and Type Field Description static intADUNITID_CUSTOM_VALUEExchange-specific values above 500.static intIAB_IN_AD_NATIVE_VALUEIAB_IN_AD_NATIVE = 4;static intPAID_SEARCH_UNIT_VALUEPAID_SEARCH_UNIT = 1;static intPROMOTED_LISTING_VALUEPROMOTED_LISTING = 3;static intRECOMMENDATION_WIDGET_VALUERECOMMENDATION_WIDGET = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.AdUnitIdforNumber(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.AdUnitId>internalGetValueMap()static OpenRtb.AdUnitIdvalueOf(int value)Deprecated.static OpenRtb.AdUnitIdvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.AdUnitIdvalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.AdUnitId[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAID_SEARCH_UNIT
public static final OpenRtb.AdUnitId PAID_SEARCH_UNIT
PAID_SEARCH_UNIT = 1;
-
RECOMMENDATION_WIDGET
public static final OpenRtb.AdUnitId RECOMMENDATION_WIDGET
RECOMMENDATION_WIDGET = 2;
-
PROMOTED_LISTING
public static final OpenRtb.AdUnitId PROMOTED_LISTING
PROMOTED_LISTING = 3;
-
IAB_IN_AD_NATIVE
public static final OpenRtb.AdUnitId IAB_IN_AD_NATIVE
IAB_IN_AD_NATIVE = 4;
-
ADUNITID_CUSTOM
public static final OpenRtb.AdUnitId ADUNITID_CUSTOM
Exchange-specific values above 500.
ADUNITID_CUSTOM = 5;
-
-
Field Detail
-
PAID_SEARCH_UNIT_VALUE
public static final int PAID_SEARCH_UNIT_VALUE
PAID_SEARCH_UNIT = 1;- See Also:
- Constant Field Values
-
RECOMMENDATION_WIDGET_VALUE
public static final int RECOMMENDATION_WIDGET_VALUE
RECOMMENDATION_WIDGET = 2;- See Also:
- Constant Field Values
-
PROMOTED_LISTING_VALUE
public static final int PROMOTED_LISTING_VALUE
PROMOTED_LISTING = 3;- See Also:
- Constant Field Values
-
IAB_IN_AD_NATIVE_VALUE
public static final int IAB_IN_AD_NATIVE_VALUE
IAB_IN_AD_NATIVE = 4;- See Also:
- Constant Field Values
-
ADUNITID_CUSTOM_VALUE
public static final int ADUNITID_CUSTOM_VALUE
Exchange-specific values above 500.
ADUNITID_CUSTOM = 5;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OpenRtb.AdUnitId[] 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.AdUnitId c : OpenRtb.AdUnitId.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.AdUnitId 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.AdUnitId 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.AdUnitId 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.AdUnitId> 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.AdUnitId 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
-
-