public static final class Openrtb.NativeResponse.Asset extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<Openrtb.NativeResponse.Asset> implements Openrtb.NativeResponse.AssetOrBuilder
OpenRTB Native 5.3: Corresponds to the Asset Object in the request.
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.NativeResponse.Asset| Modifier and Type | Class and Description |
|---|---|
static class |
Openrtb.NativeResponse.Asset.Builder
OpenRTB Native 5.3: Corresponds to the Asset Object in the request.
|
static class |
Openrtb.NativeResponse.Asset.Data
OpenRTB Native 5.6: Corresponds to the Data Object in the request, with the value filled in.
|
static interface |
Openrtb.NativeResponse.Asset.DataOrBuilder |
static class |
Openrtb.NativeResponse.Asset.Image
OpenRTB Native 5.5: Corresponds to the Image Object in the request.
|
static interface |
Openrtb.NativeResponse.Asset.ImageOrBuilder |
static class |
Openrtb.NativeResponse.Asset.Title
OpenRTB Native 5.4: Corresponds to the Title Object in the request, with the value filled in.
|
static interface |
Openrtb.NativeResponse.Asset.TitleOrBuilder |
static class |
Openrtb.NativeResponse.Asset.Video
OpenRTB Native 5.7: Corresponds to the Video Object in the request,
yet containing a value of a conforming VAST tag as a value.
|
static interface |
Openrtb.NativeResponse.Asset.VideoOrBuilder |
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 int |
LINK_FIELD_NUMBER |
static com.google.protobuf.Parser<Openrtb.NativeResponse.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.NativeResponse.Asset.Data |
getData()
Data object for ratings, prices etc.
|
Openrtb.NativeResponse.Asset.DataOrBuilder |
getDataOrBuilder()
Data object for ratings, prices etc.
|
static Openrtb.NativeResponse.Asset |
getDefaultInstance() |
Openrtb.NativeResponse.Asset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getId()
Unique asset ID, assigned by exchange, must match one of the asset IDs in request.
|
Openrtb.NativeResponse.Asset.Image |
getImg()
Image object for image assets.
|
Openrtb.NativeResponse.Asset.ImageOrBuilder |
getImgOrBuilder()
Image object for image assets.
|
Openrtb.NativeResponse.Link |
getLink()
Link object for call to actions.
|
Openrtb.NativeResponse.LinkOrBuilder |
getLinkOrBuilder()
Link object for call to actions.
|
com.google.protobuf.Parser<Openrtb.NativeResponse.Asset> |
getParserForType() |
boolean |
getRequired()
Set to 1 if asset is required.
|
int |
getSerializedSize() |
Openrtb.NativeResponse.Asset.Title |
getTitle()
Title object for title assets.
|
Openrtb.NativeResponse.Asset.TitleOrBuilder |
getTitleOrBuilder()
Title object for title assets.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Openrtb.NativeResponse.Asset.Video |
getVideo()
Video object for video assets.
|
Openrtb.NativeResponse.Asset.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, must match one of the asset IDs in request.
|
boolean |
hasImg()
Image object for image assets.
|
boolean |
hasLink()
Link object for call to actions.
|
boolean |
hasRequired()
Set to 1 if asset is required.
|
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.NativeResponse.Asset.Builder |
newBuilder() |
static Openrtb.NativeResponse.Asset.Builder |
newBuilder(Openrtb.NativeResponse.Asset prototype) |
Openrtb.NativeResponse.Asset.Builder |
newBuilderForType() |
protected Openrtb.NativeResponse.Asset.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Openrtb.NativeResponse.Asset |
parseDelimitedFrom(InputStream input) |
static Openrtb.NativeResponse.Asset |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeResponse.Asset |
parseFrom(byte[] data) |
static Openrtb.NativeResponse.Asset |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeResponse.Asset |
parseFrom(com.google.protobuf.ByteString data) |
static Openrtb.NativeResponse.Asset |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeResponse.Asset |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Openrtb.NativeResponse.Asset |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.NativeResponse.Asset |
parseFrom(InputStream input) |
static Openrtb.NativeResponse.Asset |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Openrtb.NativeResponse.Asset> |
parser() |
Openrtb.NativeResponse.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
public static final int LINK_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Openrtb.NativeResponse.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, must match one of the asset IDs in request.
required int32 id = 1;hasId in interface Openrtb.NativeResponse.AssetOrBuilderpublic int getId()
Unique asset ID, assigned by exchange, must match one of the asset IDs in request.
required int32 id = 1;getId in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasRequired()
Set to 1 if asset is required. (bidder requires it to be displayed).
optional bool required = 2 [default = false];hasRequired in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean getRequired()
Set to 1 if asset is required. (bidder requires it to be displayed).
optional bool required = 2 [default = false];getRequired in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasTitle()
Title object for title assets.
optional .openrtb.NativeResponse.Asset.Title title = 3;hasTitle in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.Title getTitle()
Title object for title assets.
optional .openrtb.NativeResponse.Asset.Title title = 3;getTitle in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.TitleOrBuilder getTitleOrBuilder()
Title object for title assets.
optional .openrtb.NativeResponse.Asset.Title title = 3;getTitleOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasImg()
Image object for image assets.
optional .openrtb.NativeResponse.Asset.Image img = 4;hasImg in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.Image getImg()
Image object for image assets.
optional .openrtb.NativeResponse.Asset.Image img = 4;getImg in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.ImageOrBuilder getImgOrBuilder()
Image object for image assets.
optional .openrtb.NativeResponse.Asset.Image img = 4;getImgOrBuilder in interface Openrtb.NativeResponse.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.NativeResponse.Asset.Video video = 5;hasVideo in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.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.NativeResponse.Asset.Video video = 5;getVideo in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.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.NativeResponse.Asset.Video video = 5;getVideoOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasData()
Data object for ratings, prices etc.
optional .openrtb.NativeResponse.Asset.Data data = 6;hasData in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.Data getData()
Data object for ratings, prices etc.
optional .openrtb.NativeResponse.Asset.Data data = 6;getData in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.DataOrBuilder getDataOrBuilder()
Data object for ratings, prices etc.
optional .openrtb.NativeResponse.Asset.Data data = 6;getDataOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasLink()
Link object for call to actions. This link is to associated to the other populated field within the object.
optional .openrtb.NativeResponse.Link link = 7;hasLink in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Link getLink()
Link object for call to actions. This link is to associated to the other populated field within the object.
optional .openrtb.NativeResponse.Link link = 7;getLink in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.LinkOrBuilder getLinkOrBuilder()
Link object for call to actions. This link is to associated to the other populated field within the object.
optional .openrtb.NativeResponse.Link link = 7;getLinkOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<Openrtb.NativeResponse.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.NativeResponse.Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeResponse.Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeResponse.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeResponse.Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.NativeResponse.Asset parseFrom(InputStream input) throws IOException
IOExceptionpublic static Openrtb.NativeResponse.Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Openrtb.NativeResponse.Asset parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Openrtb.NativeResponse.Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Openrtb.NativeResponse.Asset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Openrtb.NativeResponse.Asset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Openrtb.NativeResponse.Asset.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Openrtb.NativeResponse.Asset.Builder newBuilder()
public static Openrtb.NativeResponse.Asset.Builder newBuilder(Openrtb.NativeResponse.Asset prototype)
public Openrtb.NativeResponse.Asset.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Openrtb.NativeResponse.Asset.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Openrtb.NativeResponse.Asset getDefaultInstance()
public static com.google.protobuf.Parser<Openrtb.NativeResponse.Asset> parser()
public com.google.protobuf.Parser<Openrtb.NativeResponse.Asset> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Openrtb.NativeResponse.Asset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Openrtb.NativeResponse.Asset>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.