public static final class Openrtb.NativeRequest.Asset extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<Openrtb.NativeRequest.Asset> implements Openrtb.NativeRequest.AssetOrBuilder
OpenRTB Native 4.2: 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 type openrtb.NativeRequest.Asset| Modifier and Type | Class and Description |
|---|---|
static class |
Openrtb.NativeRequest.Asset.Builder
OpenRTB Native 4.2: The main container object for each asset requested or supported by
Exchange on behalf of the rendering client.
|
static class |
Openrtb.NativeRequest.Asset.Data
OpenRT Native 4.6: 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 interface |
Openrtb.NativeRequest.Asset.DataOrBuilder |
static class |
Openrtb.NativeRequest.Asset.Image
OpenRTB Native 4.4: The Image object to be used for all image elements of the
Native ad such as Icons, Main Image, etc.
|
static interface |
Openrtb.NativeRequest.Asset.ImageOrBuilder |
static class |
Openrtb.NativeRequest.Asset.Title
OpenRTB Native 4.3: The Title object is to be used for title element of the Native ad.
|
static interface |
Openrtb.NativeRequest.Asset.TitleOrBuilder |
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWritercom.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| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
IMG_FIELD_NUMBER |
static com.google.protobuf.Parser<Openrtb.NativeRequest.Asset> |
PARSER
Deprecated.
|
static int |
REQUIRED_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
VIDEO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Openrtb.NativeRequest.Asset.Data |
getData()
Data object for ratings, prices etc.
|
Openrtb.NativeRequest.Asset.DataOrBuilder |
getDataOrBuilder()
Data object for ratings, prices etc.
|
static Openrtb.NativeRequest.Asset |
getDefaultInstance() |
Openrtb.NativeRequest.Asset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getId()
Unique asset ID, assigned by exchange.
|
Openrtb.NativeRequest.Asset.Image |
getImg()
Image object for image assets.
|
Openrtb.NativeRequest.Asset.ImageOrBuilder |
getImgOrBuilder()
Image object for image assets.
|
com.google.protobuf.Parser<Openrtb.NativeRequest.Asset> |
getParserForType() |
boolean |
getRequired()
Set to true if asset is required (exchange will not accept a bid without it).
|
int |
getSerializedSize() |
Openrtb.NativeRequest.Asset.Title |
getTitle()
Title object for title assets.
|
Openrtb.NativeRequest.Asset.TitleOrBuilder |
getTitleOrBuilder()
Title object for title assets.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Openrtb.BidRequest.Impression.Video |
getVideo()
Video object for video assets.
|
Openrtb.BidRequest.Impression.VideoOrBuilder |
getVideoOrBuilder()
Video object for video assets.
|
boolean |
hasData()
Data object for ratings, prices etc.
|
int |
hashCode() |
boolean |
hasId()
Unique asset ID, assigned by exchange.
|
boolean |
hasImg()
Image object for image assets.
|
boolean |
hasRequired()
Set to true if asset is required (exchange will not accept a bid without it).
|
boolean |
hasTitle()
Title object for title assets.
|
boolean |
hasVideo()
Video object for video assets.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Openrtb.NativeRequest.Asset.Builder |
newBuilder() |
static Openrtb.NativeRequest.Asset.Builder |
newBuilder(Openrtb.NativeRequest.Asset prototype) |
Openrtb.NativeRequest.Asset.Builder |
newBuilderForType() |
protected Openrtb.NativeRequest.Asset.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Openrtb.NativeRequest.Asset |
parseDelimitedFrom(InputStream input) |
static Openrtb.NativeRequest.Asset |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeRequest.Asset |
parseFrom(byte[] data) |
static Openrtb.NativeRequest.Asset |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeRequest.Asset |
parseFrom(com.google.protobuf.ByteString data) |
static Openrtb.NativeRequest.Asset |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeRequest.Asset |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Openrtb.NativeRequest.Asset |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeRequest.Asset |
parseFrom(InputStream input) |
static Openrtb.NativeRequest.Asset |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Openrtb.NativeRequest.Asset> |
parser() |
Openrtb.NativeRequest.Asset.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, parseUnknownFieldcomputeStringSize, computeStringSizeNoTag, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionpublic static final int ID_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int IMG_FIELD_NUMBER
public static final int VIDEO_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Openrtb.NativeRequest.Asset> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasId()
Unique asset ID, assigned by exchange. Typically a counter for the array.
required int32 id = 1;hasId in interface Openrtb.NativeRequest.AssetOrBuilderpublic int getId()
Unique asset ID, assigned by exchange. Typically a counter for the array.
required int32 id = 1;getId in interface Openrtb.NativeRequest.AssetOrBuilderpublic boolean hasRequired()
Set to true if asset is required (exchange will not accept a bid without it).
optional bool required = 2 [default = false];hasRequired in interface Openrtb.NativeRequest.AssetOrBuilderpublic boolean getRequired()
Set to true if asset is required (exchange will not accept a bid without it).
optional bool required = 2 [default = false];getRequired in interface Openrtb.NativeRequest.AssetOrBuilderpublic boolean hasTitle()
Title object for title assets.
optional .openrtb.NativeRequest.Asset.Title title = 3;hasTitle in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.NativeRequest.Asset.Title getTitle()
Title object for title assets.
optional .openrtb.NativeRequest.Asset.Title title = 3;getTitle in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.NativeRequest.Asset.TitleOrBuilder getTitleOrBuilder()
Title object for title assets.
optional .openrtb.NativeRequest.Asset.Title title = 3;getTitleOrBuilder in interface Openrtb.NativeRequest.AssetOrBuilderpublic boolean hasImg()
Image object for image assets.
optional .openrtb.NativeRequest.Asset.Image img = 4;hasImg in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.NativeRequest.Asset.Image getImg()
Image object for image assets.
optional .openrtb.NativeRequest.Asset.Image img = 4;getImg in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.NativeRequest.Asset.ImageOrBuilder getImgOrBuilder()
Image object for image assets.
optional .openrtb.NativeRequest.Asset.Image img = 4;getImgOrBuilder in interface Openrtb.NativeRequest.AssetOrBuilderpublic 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.
optional .openrtb.BidRequest.Impression.Video video = 5;hasVideo in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.BidRequest.Impression.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.
optional .openrtb.BidRequest.Impression.Video video = 5;getVideo in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.BidRequest.Impression.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.
optional .openrtb.BidRequest.Impression.Video video = 5;getVideoOrBuilder in interface Openrtb.NativeRequest.AssetOrBuilderpublic boolean hasData()
Data object for ratings, prices etc.
optional .openrtb.NativeRequest.Asset.Data data = 6;hasData in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.NativeRequest.Asset.Data getData()
Data object for ratings, prices etc.
optional .openrtb.NativeRequest.Asset.Data data = 6;getData in interface Openrtb.NativeRequest.AssetOrBuilderpublic Openrtb.NativeRequest.Asset.DataOrBuilder getDataOrBuilder()
Data object for ratings, prices etc.
optional .openrtb.NativeRequest.Asset.Data data = 6;getDataOrBuilder in interface Openrtb.NativeRequest.AssetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<Openrtb.NativeRequest.Asset>public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Openrtb.NativeRequest.Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeRequest.Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeRequest.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeRequest.Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeRequest.Asset parseFrom(InputStream input) throws IOException
IOExceptionpublic static Openrtb.NativeRequest.Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Openrtb.NativeRequest.Asset parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Openrtb.NativeRequest.Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Openrtb.NativeRequest.Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Openrtb.NativeRequest.Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Openrtb.NativeRequest.Asset.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Openrtb.NativeRequest.Asset.Builder newBuilder()
public static Openrtb.NativeRequest.Asset.Builder newBuilder(Openrtb.NativeRequest.Asset prototype)
public Openrtb.NativeRequest.Asset.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Openrtb.NativeRequest.Asset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Openrtb.NativeRequest.Asset getDefaultInstance()
public static com.google.protobuf.Parser<Openrtb.NativeRequest.Asset> parser()
public com.google.protobuf.Parser<Openrtb.NativeRequest.Asset> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Openrtb.NativeRequest.Asset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Openrtb.NativeRequest.Asset>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.