Package com.google.openrtb
Class OpenRtb.NativeRequest.Asset.Image
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeRequest.Asset.Image>
-
- com.google.openrtb.OpenRtb.NativeRequest.Asset.Image
-
- All Implemented Interfaces:
OpenRtb.NativeRequest.Asset.ImageOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeRequest.Asset.Image>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OpenRtb.NativeRequest.Asset
public static final class OpenRtb.NativeRequest.Asset.Image extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeRequest.Asset.Image> implements OpenRtb.NativeRequest.Asset.ImageOrBuilder
OpenRTB Native 1.0: The Image object to be used for all image elements of the Native ad such as Icons, Main Image, etc. RECOMMENDED sizes and aspect ratios are included in ImageAssetType.
Protobuf typecom.google.openrtb.NativeRequest.Asset.Image- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenRtb.NativeRequest.Asset.Image.BuilderOpenRTB Native 1.0: The Image object to be used for all image elements of the Native ad such as Icons, Main Image, etc.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intH_FIELD_NUMBERstatic intHMIN_FIELD_NUMBERstatic intMIMES_FIELD_NUMBERstatic com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset.Image>PARSERDeprecated.static intTYPE_FIELD_NUMBERstatic intW_FIELD_NUMBERstatic intWMIN_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static OpenRtb.NativeRequest.Asset.ImagegetDefaultInstance()OpenRtb.NativeRequest.Asset.ImagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetH()Height of the image in pixels.intgetHmin()The minimum requested height of the image in pixels.StringgetMimes(int index)Allowlist of content MIME types supported.com.google.protobuf.ByteStringgetMimesBytes(int index)Allowlist of content MIME types supported.intgetMimesCount()Allowlist of content MIME types supported.com.google.protobuf.ProtocolStringListgetMimesList()Allowlist of content MIME types supported.com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset.Image>getParserForType()intgetSerializedSize()OpenRtb.ImageAssetTypegetType()Type ID of the image element supported by the publisher.com.google.protobuf.UnknownFieldSetgetUnknownFields()intgetW()Width of the image in pixels.intgetWmin()The minimum requested width of the image in pixels.booleanhasH()Height of the image in pixels.inthashCode()booleanhasHmin()The minimum requested height of the image in pixels.booleanhasType()Type ID of the image element supported by the publisher.booleanhasW()Width of the image in pixels.booleanhasWmin()The minimum requested width of the image in pixels.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OpenRtb.NativeRequest.Asset.Image.BuildernewBuilder()static OpenRtb.NativeRequest.Asset.Image.BuildernewBuilder(OpenRtb.NativeRequest.Asset.Image prototype)OpenRtb.NativeRequest.Asset.Image.BuildernewBuilderForType()protected OpenRtb.NativeRequest.Asset.Image.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OpenRtb.NativeRequest.Asset.ImageparseDelimitedFrom(InputStream input)static OpenRtb.NativeRequest.Asset.ImageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.Asset.ImageparseFrom(byte[] data)static OpenRtb.NativeRequest.Asset.ImageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.Asset.ImageparseFrom(com.google.protobuf.ByteString data)static OpenRtb.NativeRequest.Asset.ImageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.Asset.ImageparseFrom(com.google.protobuf.CodedInputStream input)static OpenRtb.NativeRequest.Asset.ImageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.Asset.ImageparseFrom(InputStream input)static OpenRtb.NativeRequest.Asset.ImageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.Asset.ImageparseFrom(ByteBuffer data)static OpenRtb.NativeRequest.Asset.ImageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset.Image>parser()OpenRtb.NativeRequest.Asset.Image.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, isStringEmpty, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
-
-
-
-
Field Detail
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
W_FIELD_NUMBER
public static final int W_FIELD_NUMBER
- See Also:
- Constant Field Values
-
H_FIELD_NUMBER
public static final int H_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WMIN_FIELD_NUMBER
public static final int WMIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HMIN_FIELD_NUMBER
public static final int HMIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIMES_FIELD_NUMBER
public static final int MIMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset.Image> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasType
public boolean hasType()
Type ID of the image element supported by the publisher. The publisher can display this information in an appropriate format.
optional .com.google.openrtb.ImageAssetType type = 1;- Specified by:
hasTypein interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- Whether the type field is set.
-
getType
public OpenRtb.ImageAssetType getType()
Type ID of the image element supported by the publisher. The publisher can display this information in an appropriate format.
optional .com.google.openrtb.ImageAssetType type = 1;- Specified by:
getTypein interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- The type.
-
hasW
public boolean hasW()
Width of the image in pixels.
optional int32 w = 2;- Specified by:
hasWin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- Whether the w field is set.
-
getW
public int getW()
Width of the image in pixels.
optional int32 w = 2;- Specified by:
getWin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- The w.
-
hasH
public boolean hasH()
Height of the image in pixels.
optional int32 h = 3;- Specified by:
hasHin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- Whether the h field is set.
-
getH
public int getH()
Height of the image in pixels.
optional int32 h = 3;- Specified by:
getHin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- The h.
-
hasWmin
public boolean hasWmin()
The minimum requested width of the image in pixels. This option should be used for any rescaling of images by the client. Either w or wmin should be transmitted. If only w is included, it should be considered an exact requirement. RECOMMENDED by the OpenRTB Native specification.
optional int32 wmin = 4;- Specified by:
hasWminin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- Whether the wmin field is set.
-
getWmin
public int getWmin()
The minimum requested width of the image in pixels. This option should be used for any rescaling of images by the client. Either w or wmin should be transmitted. If only w is included, it should be considered an exact requirement. RECOMMENDED by the OpenRTB Native specification.
optional int32 wmin = 4;- Specified by:
getWminin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- The wmin.
-
hasHmin
public boolean hasHmin()
The minimum requested height of the image in pixels. This option should be used for any rescaling of images by the client. Either h or hmin should be transmitted. If only h is included, it should be considered an exact requirement. RECOMMENDED by the OpenRTB Native specification.
optional int32 hmin = 5;- Specified by:
hasHminin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- Whether the hmin field is set.
-
getHmin
public int getHmin()
The minimum requested height of the image in pixels. This option should be used for any rescaling of images by the client. Either h or hmin should be transmitted. If only h is included, it should be considered an exact requirement. RECOMMENDED by the OpenRTB Native specification.
optional int32 hmin = 5;- Specified by:
getHminin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- The hmin.
-
getMimesList
public com.google.protobuf.ProtocolStringList getMimesList()
Allowlist of content MIME types supported. Popular MIME types include, but are not limited to "image/jpg" and "image/gif". Each implementing Exchange should have their own list of supported types in the integration docs. See Wikipedia's MIME page for more information and links to all IETF RFCs. If blank, assume all types are allowed.
repeated string mimes = 6;- Specified by:
getMimesListin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- A list containing the mimes.
-
getMimesCount
public int getMimesCount()
Allowlist of content MIME types supported. Popular MIME types include, but are not limited to "image/jpg" and "image/gif". Each implementing Exchange should have their own list of supported types in the integration docs. See Wikipedia's MIME page for more information and links to all IETF RFCs. If blank, assume all types are allowed.
repeated string mimes = 6;- Specified by:
getMimesCountin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Returns:
- The count of mimes.
-
getMimes
public String getMimes(int index)
Allowlist of content MIME types supported. Popular MIME types include, but are not limited to "image/jpg" and "image/gif". Each implementing Exchange should have their own list of supported types in the integration docs. See Wikipedia's MIME page for more information and links to all IETF RFCs. If blank, assume all types are allowed.
repeated string mimes = 6;- Specified by:
getMimesin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The mimes at the given index.
-
getMimesBytes
public com.google.protobuf.ByteString getMimesBytes(int index)
Allowlist of content MIME types supported. Popular MIME types include, but are not limited to "image/jpg" and "image/gif". Each implementing Exchange should have their own list of supported types in the integration docs. See Wikipedia's MIME page for more information and links to all IETF RFCs. If blank, assume all types are allowed.
repeated string mimes = 6;- Specified by:
getMimesBytesin interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the mimes at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeRequest.Asset.Image>
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeRequest.Asset.Image parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeRequest.Asset.Image parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeRequest.Asset.Image parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OpenRtb.NativeRequest.Asset.Image.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpenRtb.NativeRequest.Asset.Image.Builder newBuilder()
-
newBuilder
public static OpenRtb.NativeRequest.Asset.Image.Builder newBuilder(OpenRtb.NativeRequest.Asset.Image prototype)
-
toBuilder
public OpenRtb.NativeRequest.Asset.Image.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpenRtb.NativeRequest.Asset.Image.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpenRtb.NativeRequest.Asset.Image getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset.Image> parser()
-
getParserForType
public com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset.Image> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OpenRtb.NativeRequest.Asset.Image getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeRequest.Asset.Image>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-