Package com.google.openrtb
Class OpenRtb.NativeResponse.Asset.Image
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Asset.Image>
-
- com.google.openrtb.OpenRtb.NativeResponse.Asset.Image
-
- All Implemented Interfaces:
OpenRtb.NativeResponse.Asset.ImageOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Asset.Image>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OpenRtb.NativeResponse.Asset
public static final class OpenRtb.NativeResponse.Asset.Image extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Asset.Image> implements OpenRtb.NativeResponse.Asset.ImageOrBuilder
OpenRTB Native 1.0: Corresponds to the Image Object in the request. The Image object to be used for all image elements of the Native ad such as Icons, Main Image, etc. It is recommended that if assetsurl/dcourl is being used rather than embbedded assets, that an image of each recommended aspect ratio (per ImageType enum) be provided for image type 3 (MAIN_IMAGE).
Protobuf typecom.google.openrtb.NativeResponse.Asset.Image- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenRtb.NativeResponse.Asset.Image.BuilderOpenRTB Native 1.0: Corresponds to the Image Object in the request.-
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 com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Image>PARSERDeprecated.static intTYPE_FIELD_NUMBERstatic intURL_FIELD_NUMBERstatic intW_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static OpenRtb.NativeResponse.Asset.ImagegetDefaultInstance()OpenRtb.NativeResponse.Asset.ImagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetH()Height of the image in pixels.com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Image>getParserForType()intgetSerializedSize()OpenRtb.ImageAssetTypegetType()The type of image element being submitted from the ImageType enum.com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetUrl()URL of the image asset.com.google.protobuf.ByteStringgetUrlBytes()URL of the image asset.intgetW()Width of the image in pixels.booleanhasH()Height of the image in pixels.inthashCode()booleanhasType()The type of image element being submitted from the ImageType enum.booleanhasUrl()URL of the image asset.booleanhasW()Width of the image in pixels.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OpenRtb.NativeResponse.Asset.Image.BuildernewBuilder()static OpenRtb.NativeResponse.Asset.Image.BuildernewBuilder(OpenRtb.NativeResponse.Asset.Image prototype)OpenRtb.NativeResponse.Asset.Image.BuildernewBuilderForType()protected OpenRtb.NativeResponse.Asset.Image.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OpenRtb.NativeResponse.Asset.ImageparseDelimitedFrom(InputStream input)static OpenRtb.NativeResponse.Asset.ImageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.ImageparseFrom(byte[] data)static OpenRtb.NativeResponse.Asset.ImageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.ImageparseFrom(com.google.protobuf.ByteString data)static OpenRtb.NativeResponse.Asset.ImageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.ImageparseFrom(com.google.protobuf.CodedInputStream input)static OpenRtb.NativeResponse.Asset.ImageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.ImageparseFrom(InputStream input)static OpenRtb.NativeResponse.Asset.ImageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.ImageparseFrom(ByteBuffer data)static OpenRtb.NativeResponse.Asset.ImageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Image>parser()OpenRtb.NativeResponse.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
-
URL_FIELD_NUMBER
public static final int URL_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
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OpenRtb.NativeResponse.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()
The type of image element being submitted from the ImageType enum. REQUIRED for assetsurl or dcourl responses, not required to embedded asset responses.
optional .com.google.openrtb.ImageAssetType type = 4;- Specified by:
hasTypein interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- Whether the type field is set.
-
getType
public OpenRtb.ImageAssetType getType()
The type of image element being submitted from the ImageType enum. REQUIRED for assetsurl or dcourl responses, not required to embedded asset responses.
optional .com.google.openrtb.ImageAssetType type = 4;- Specified by:
getTypein interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- The type.
-
hasUrl
public boolean hasUrl()
URL of the image asset. REQUIRED by the OpenRTB Native specification.
required string url = 1;- Specified by:
hasUrlin interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- Whether the url field is set.
-
getUrl
public String getUrl()
URL of the image asset. REQUIRED by the OpenRTB Native specification.
required string url = 1;- Specified by:
getUrlin interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
URL of the image asset. REQUIRED by the OpenRTB Native specification.
required string url = 1;- Specified by:
getUrlBytesin interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- The bytes for url.
-
hasW
public boolean hasW()
Width of the image in pixels. RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses. REQUIRED in 1.2 for assetsurl or dcourl if multiple assets of the same type submitted.
optional int32 w = 2;- Specified by:
hasWin interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- Whether the w field is set.
-
getW
public int getW()
Width of the image in pixels. RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses. REQUIRED in 1.2 for assetsurl or dcourl if multiple assets of the same type submitted.
optional int32 w = 2;- Specified by:
getWin interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- The w.
-
hasH
public boolean hasH()
Height of the image in pixels. RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses. REQUIRED in 1.2 for assetsurl or dcourl if multiple assets of the same type submitted.
optional int32 h = 3;- Specified by:
hasHin interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- Whether the h field is set.
-
getH
public int getH()
Height of the image in pixels. RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses. REQUIRED in 1.2 for assetsurl or dcourl if multiple assets of the same type submitted.
optional int32 h = 3;- Specified by:
getHin interfaceOpenRtb.NativeResponse.Asset.ImageOrBuilder- Returns:
- The h.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.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.NativeResponse.Asset.Image parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Image parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Image parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.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.NativeResponse.Asset.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Image parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Image parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Image parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeResponse.Asset.Image parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeResponse.Asset.Image parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Image parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Image parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OpenRtb.NativeResponse.Asset.Image.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpenRtb.NativeResponse.Asset.Image.Builder newBuilder()
-
newBuilder
public static OpenRtb.NativeResponse.Asset.Image.Builder newBuilder(OpenRtb.NativeResponse.Asset.Image prototype)
-
toBuilder
public OpenRtb.NativeResponse.Asset.Image.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpenRtb.NativeResponse.Asset.Image.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpenRtb.NativeResponse.Asset.Image getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Image> parser()
-
getParserForType
public com.google.protobuf.Parser<OpenRtb.NativeResponse.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.NativeResponse.Asset.Image getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Asset.Image>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-