Package com.google.openrtb
Enum OpenRtb.ImageAssetType
- java.lang.Object
-
- java.lang.Enum<OpenRtb.ImageAssetType>
-
- com.google.openrtb.OpenRtb.ImageAssetType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OpenRtb.ImageAssetType>
- Enclosing class:
- OpenRtb
public static enum OpenRtb.ImageAssetType extends Enum<OpenRtb.ImageAssetType> implements com.google.protobuf.ProtocolMessageEnum
OpenRTB Native 1.0: Common image asset element types of native advertising at the time of writing this spec. This list is non-exhaustive and intended to be extended by the buyers and sellers as the format evolves.
Protobuf enumcom.google.openrtb.ImageAssetType
-
-
Field Summary
Fields Modifier and Type Field Description static intICON_VALUEIcon image.static intLOGO_VALUEDeprecated.static intMAIN_VALUELarge image preview for the ad.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.ImageAssetTypeforNumber(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.ImageAssetType>internalGetValueMap()static OpenRtb.ImageAssetTypevalueOf(int value)Deprecated.static OpenRtb.ImageAssetTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.ImageAssetTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.ImageAssetType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ICON
public static final OpenRtb.ImageAssetType ICON
Icon image. Max height: at least 50; Aspect ratio: 1:1.
ICON = 1;
-
LOGO
@Deprecated public static final OpenRtb.ImageAssetType LOGO
Deprecated.DEPRECATED in OpenRTB Native 1.2+. Prefer type <code>ICON</code>. Logo image for the brand/app.
LOGO = 2 [deprecated = true];
-
MAIN
public static final OpenRtb.ImageAssetType MAIN
Large image preview for the ad. At least one of 2 size variants required: Small Variant: max height: 200+, max width: 200+, 267, or 382, aspect ratio: 1:1, 4:3, or 1.91:1. Large Variant: max height: 627+, max width: 627+, 836, or 1198, aspect ratio: 1:1, 4:3, or 1.91:1.MAIN = 3;
-
-
Field Detail
-
ICON_VALUE
public static final int ICON_VALUE
Icon image. Max height: at least 50; Aspect ratio: 1:1.
ICON = 1;- See Also:
- Constant Field Values
-
LOGO_VALUE
@Deprecated public static final int LOGO_VALUE
Deprecated.DEPRECATED in OpenRTB Native 1.2+. Prefer type <code>ICON</code>. Logo image for the brand/app.
LOGO = 2 [deprecated = true];- See Also:
- Constant Field Values
-
MAIN_VALUE
public static final int MAIN_VALUE
Large image preview for the ad. At least one of 2 size variants required: Small Variant: max height: 200+, max width: 200+, 267, or 382, aspect ratio: 1:1, 4:3, or 1.91:1. Large Variant: max height: 627+, max width: 627+, 836, or 1198, aspect ratio: 1:1, 4:3, or 1.91:1.MAIN = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OpenRtb.ImageAssetType[] 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.ImageAssetType c : OpenRtb.ImageAssetType.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.ImageAssetType 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.ImageAssetType 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.ImageAssetType 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.ImageAssetType> 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.ImageAssetType 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
-
-