Package com.google.openrtb
Class OpenRtb.NativeRequest.Asset
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeRequest.Asset>
-
- com.google.openrtb.OpenRtb.NativeRequest.Asset
-
- All Implemented Interfaces:
OpenRtb.NativeRequest.AssetOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeRequest.Asset>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OpenRtb.NativeRequest
public static final class OpenRtb.NativeRequest.Asset extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeRequest.Asset> implements OpenRtb.NativeRequest.AssetOrBuilder
OpenRTB Native 1.0: The main container object for each asset requested or supported by Exchange on behalf of the rendering client. Any object that is required is to be flagged as such. Only one of the {title,img,video,data} objects should be present in each object. All others should be null/absent. The id is to be unique within the Asset array so that the response can be aligned.Protobuf typecom.google.openrtb.NativeRequest.Asset- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenRtb.NativeRequest.Asset.AssetOneofCasestatic classOpenRtb.NativeRequest.Asset.BuilderOpenRTB Native 1.0: The main container object for each asset requested or supported by Exchange on behalf of the rendering client.static classOpenRtb.NativeRequest.Asset.DataOpenRTB Native 1.0: The Data Object is to be used for all non-core elements of the native unit such as Ratings, Review Count, Stars, Download count, descriptions etc.static interfaceOpenRtb.NativeRequest.Asset.DataOrBuilderstatic classOpenRtb.NativeRequest.Asset.ImageOpenRTB Native 1.0: The Image object to be used for all image elements of the Native ad such as Icons, Main Image, etc.static interfaceOpenRtb.NativeRequest.Asset.ImageOrBuilderstatic classOpenRtb.NativeRequest.Asset.TitleOpenRTB Native 1.0: The Title object is to be used for title element of the Native ad.static interfaceOpenRtb.NativeRequest.Asset.TitleOrBuilder-
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 intDATA_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intIMG_FIELD_NUMBERstatic com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset>PARSERDeprecated.static intREQUIRED_FIELD_NUMBERstatic intTITLE_FIELD_NUMBERstatic intVIDEO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)OpenRtb.NativeRequest.Asset.AssetOneofCasegetAssetOneofCase()OpenRtb.NativeRequest.Asset.DatagetData()Data object for brand name, description, ratings, prices etc.OpenRtb.NativeRequest.Asset.DataOrBuildergetDataOrBuilder()Data object for brand name, description, ratings, prices etc.static OpenRtb.NativeRequest.AssetgetDefaultInstance()OpenRtb.NativeRequest.AssetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetId()Unique asset ID, assigned by exchange.OpenRtb.NativeRequest.Asset.ImagegetImg()Image object for image assets.OpenRtb.NativeRequest.Asset.ImageOrBuildergetImgOrBuilder()Image object for image assets.com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset>getParserForType()booleangetRequired()Set to true if asset is required (exchange will not accept a bid without it).intgetSerializedSize()OpenRtb.NativeRequest.Asset.TitlegetTitle()Title object for title assets.OpenRtb.NativeRequest.Asset.TitleOrBuildergetTitleOrBuilder()Title object for title assets.com.google.protobuf.UnknownFieldSetgetUnknownFields()OpenRtb.BidRequest.Imp.VideogetVideo()Video object for video assets.OpenRtb.BidRequest.Imp.VideoOrBuildergetVideoOrBuilder()Video object for video assets.booleanhasData()Data object for brand name, description, ratings, prices etc.inthashCode()booleanhasId()Unique asset ID, assigned by exchange.booleanhasImg()Image object for image assets.booleanhasRequired()Set to true if asset is required (exchange will not accept a bid without it).booleanhasTitle()Title object for title assets.booleanhasVideo()Video object for video assets.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OpenRtb.NativeRequest.Asset.BuildernewBuilder()static OpenRtb.NativeRequest.Asset.BuildernewBuilder(OpenRtb.NativeRequest.Asset prototype)OpenRtb.NativeRequest.Asset.BuildernewBuilderForType()protected OpenRtb.NativeRequest.Asset.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OpenRtb.NativeRequest.AssetparseDelimitedFrom(InputStream input)static OpenRtb.NativeRequest.AssetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.AssetparseFrom(byte[] data)static OpenRtb.NativeRequest.AssetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.AssetparseFrom(com.google.protobuf.ByteString data)static OpenRtb.NativeRequest.AssetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.AssetparseFrom(com.google.protobuf.CodedInputStream input)static OpenRtb.NativeRequest.AssetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.AssetparseFrom(InputStream input)static OpenRtb.NativeRequest.AssetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeRequest.AssetparseFrom(ByteBuffer data)static OpenRtb.NativeRequest.AssetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset>parser()OpenRtb.NativeRequest.Asset.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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMG_FIELD_NUMBER
public static final int IMG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VIDEO_FIELD_NUMBER
public static final int VIDEO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset> 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
-
getAssetOneofCase
public OpenRtb.NativeRequest.Asset.AssetOneofCase getAssetOneofCase()
- Specified by:
getAssetOneofCasein interfaceOpenRtb.NativeRequest.AssetOrBuilder
-
hasId
public boolean hasId()
Unique asset ID, assigned by exchange. Typically a counter for the array. REQUIRED by the OpenRTB Native specification.
required int32 id = 1;- Specified by:
hasIdin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- Whether the id field is set.
-
getId
public int getId()
Unique asset ID, assigned by exchange. Typically a counter for the array. REQUIRED by the OpenRTB Native specification.
required int32 id = 1;- Specified by:
getIdin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- The id.
-
hasRequired
public boolean hasRequired()
Set to true if asset is required (exchange will not accept a bid without it).
optional bool required = 2 [default = false];- Specified by:
hasRequiredin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- Whether the required field is set.
-
getRequired
public boolean getRequired()
Set to true if asset is required (exchange will not accept a bid without it).
optional bool required = 2 [default = false];- Specified by:
getRequiredin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- The required.
-
hasTitle
public boolean hasTitle()
Title object for title assets.
.com.google.openrtb.NativeRequest.Asset.Title title = 3;- Specified by:
hasTitlein interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
public OpenRtb.NativeRequest.Asset.Title getTitle()
Title object for title assets.
.com.google.openrtb.NativeRequest.Asset.Title title = 3;- Specified by:
getTitlein interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- The title.
-
getTitleOrBuilder
public OpenRtb.NativeRequest.Asset.TitleOrBuilder getTitleOrBuilder()
Title object for title assets.
.com.google.openrtb.NativeRequest.Asset.Title title = 3;- Specified by:
getTitleOrBuilderin interfaceOpenRtb.NativeRequest.AssetOrBuilder
-
hasImg
public boolean hasImg()
Image object for image assets.
.com.google.openrtb.NativeRequest.Asset.Image img = 4;- Specified by:
hasImgin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- Whether the img field is set.
-
getImg
public OpenRtb.NativeRequest.Asset.Image getImg()
Image object for image assets.
.com.google.openrtb.NativeRequest.Asset.Image img = 4;- Specified by:
getImgin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- The img.
-
getImgOrBuilder
public OpenRtb.NativeRequest.Asset.ImageOrBuilder getImgOrBuilder()
Image object for image assets.
.com.google.openrtb.NativeRequest.Asset.Image img = 4;- Specified by:
getImgOrBuilderin interfaceOpenRtb.NativeRequest.AssetOrBuilder
-
hasVideo
public boolean hasVideo()
Video object for video assets. Note that in-stream video ads are not part of Native. Native ads may contain a video as the ad creative itself.
.com.google.openrtb.BidRequest.Imp.Video video = 5;- Specified by:
hasVideoin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- Whether the video field is set.
-
getVideo
public OpenRtb.BidRequest.Imp.Video getVideo()
Video object for video assets. Note that in-stream video ads are not part of Native. Native ads may contain a video as the ad creative itself.
.com.google.openrtb.BidRequest.Imp.Video video = 5;- Specified by:
getVideoin interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- The video.
-
getVideoOrBuilder
public OpenRtb.BidRequest.Imp.VideoOrBuilder getVideoOrBuilder()
Video object for video assets. Note that in-stream video ads are not part of Native. Native ads may contain a video as the ad creative itself.
.com.google.openrtb.BidRequest.Imp.Video video = 5;- Specified by:
getVideoOrBuilderin interfaceOpenRtb.NativeRequest.AssetOrBuilder
-
hasData
public boolean hasData()
Data object for brand name, description, ratings, prices etc.
.com.google.openrtb.NativeRequest.Asset.Data data = 6;- Specified by:
hasDatain interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- Whether the data field is set.
-
getData
public OpenRtb.NativeRequest.Asset.Data getData()
Data object for brand name, description, ratings, prices etc.
.com.google.openrtb.NativeRequest.Asset.Data data = 6;- Specified by:
getDatain interfaceOpenRtb.NativeRequest.AssetOrBuilder- Returns:
- The data.
-
getDataOrBuilder
public OpenRtb.NativeRequest.Asset.DataOrBuilder getDataOrBuilder()
Data object for brand name, description, ratings, prices etc.
.com.google.openrtb.NativeRequest.Asset.Data data = 6;- Specified by:
getDataOrBuilderin interfaceOpenRtb.NativeRequest.AssetOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeRequest.Asset>
-
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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeRequest.Asset parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeRequest.Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeRequest.Asset parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeRequest.Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeRequest.Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeRequest.Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OpenRtb.NativeRequest.Asset.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpenRtb.NativeRequest.Asset.Builder newBuilder()
-
newBuilder
public static OpenRtb.NativeRequest.Asset.Builder newBuilder(OpenRtb.NativeRequest.Asset prototype)
-
toBuilder
public OpenRtb.NativeRequest.Asset.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpenRtb.NativeRequest.Asset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpenRtb.NativeRequest.Asset getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset> parser()
-
getParserForType
public com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset> 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 getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeRequest.Asset>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-