public static final class Openrtb.NativeResponse.Asset extends com.google.protobuf.GeneratedMessage.ExtendableMessage<Openrtb.NativeResponse.Asset> implements Openrtb.NativeResponse.AssetOrBuilder
openrtb.NativeResponse.Asset
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Openrtb.NativeResponse.Asset.Builder
Protobuf type
openrtb.NativeResponse.Asset |
static class |
Openrtb.NativeResponse.Asset.Data
Protobuf type
openrtb.NativeResponse.Asset.Data |
static interface |
Openrtb.NativeResponse.Asset.DataOrBuilder |
static class |
Openrtb.NativeResponse.Asset.Image
Protobuf type
openrtb.NativeResponse.Asset.Image |
static interface |
Openrtb.NativeResponse.Asset.ImageOrBuilder |
static class |
Openrtb.NativeResponse.Asset.Title
Protobuf type
openrtb.NativeResponse.Asset.Title |
static interface |
Openrtb.NativeResponse.Asset.TitleOrBuilder |
static class |
Openrtb.NativeResponse.Asset.Video
Protobuf type
openrtb.NativeResponse.Asset.Video |
static interface |
Openrtb.NativeResponse.Asset.VideoOrBuilder |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWritercom.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| 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 |
|---|---|
Openrtb.NativeResponse.Asset.Data |
getData()
optional .openrtb.NativeResponse.Asset.Data data = 6; |
Openrtb.NativeResponse.Asset.DataOrBuilder |
getDataOrBuilder()
optional .openrtb.NativeResponse.Asset.Data data = 6; |
static Openrtb.NativeResponse.Asset |
getDefaultInstance() |
Openrtb.NativeResponse.Asset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getId()
required int32 id = 1; |
Openrtb.NativeResponse.Asset.Image |
getImg()
optional .openrtb.NativeResponse.Asset.Image img = 4; |
Openrtb.NativeResponse.Asset.ImageOrBuilder |
getImgOrBuilder()
optional .openrtb.NativeResponse.Asset.Image img = 4; |
Openrtb.NativeResponse.Link |
getLink()
optional .openrtb.NativeResponse.Link link = 7; |
Openrtb.NativeResponse.LinkOrBuilder |
getLinkOrBuilder()
optional .openrtb.NativeResponse.Link link = 7; |
com.google.protobuf.Parser<Openrtb.NativeResponse.Asset> |
getParserForType() |
boolean |
getRequired()
optional bool required = 2 [default = false]; |
int |
getSerializedSize() |
Openrtb.NativeResponse.Asset.Title |
getTitle()
optional .openrtb.NativeResponse.Asset.Title title = 3; |
Openrtb.NativeResponse.Asset.TitleOrBuilder |
getTitleOrBuilder()
optional .openrtb.NativeResponse.Asset.Title title = 3; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Openrtb.NativeResponse.Asset.Video |
getVideo()
optional .openrtb.NativeResponse.Asset.Video video = 5; |
Openrtb.NativeResponse.Asset.VideoOrBuilder |
getVideoOrBuilder()
optional .openrtb.NativeResponse.Asset.Video video = 5; |
boolean |
hasData()
optional .openrtb.NativeResponse.Asset.Data data = 6; |
boolean |
hasId()
required int32 id = 1; |
boolean |
hasImg()
optional .openrtb.NativeResponse.Asset.Image img = 4; |
boolean |
hasLink()
optional .openrtb.NativeResponse.Link link = 7; |
boolean |
hasRequired()
optional bool required = 2 [default = false]; |
boolean |
hasTitle()
optional .openrtb.NativeResponse.Asset.Title title = 3; |
boolean |
hasVideo()
optional .openrtb.NativeResponse.Asset.Video video = 5; |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, 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.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasId()
required int32 id = 1;
Unique asset ID, assigned by exchange, must match one of the asset IDs in request.
hasId in interface Openrtb.NativeResponse.AssetOrBuilderpublic int getId()
required int32 id = 1;
Unique asset ID, assigned by exchange, must match one of the asset IDs in request.
getId in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasRequired()
optional bool required = 2 [default = false];
Set to 1 if asset is required. (bidder requires it to be displayed).
hasRequired in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean getRequired()
optional bool required = 2 [default = false];
Set to 1 if asset is required. (bidder requires it to be displayed).
getRequired in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasTitle()
optional .openrtb.NativeResponse.Asset.Title title = 3;
Title object for title assets.
hasTitle in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.Title getTitle()
optional .openrtb.NativeResponse.Asset.Title title = 3;
Title object for title assets.
getTitle in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.TitleOrBuilder getTitleOrBuilder()
optional .openrtb.NativeResponse.Asset.Title title = 3;
Title object for title assets.
getTitleOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasImg()
optional .openrtb.NativeResponse.Asset.Image img = 4;
Image object for image assets.
hasImg in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.Image getImg()
optional .openrtb.NativeResponse.Asset.Image img = 4;
Image object for image assets.
getImg in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.ImageOrBuilder getImgOrBuilder()
optional .openrtb.NativeResponse.Asset.Image img = 4;
Image object for image assets.
getImgOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasVideo()
optional .openrtb.NativeResponse.Asset.Video video = 5;
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.
hasVideo in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.Video getVideo()
optional .openrtb.NativeResponse.Asset.Video video = 5;
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.
getVideo in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.VideoOrBuilder getVideoOrBuilder()
optional .openrtb.NativeResponse.Asset.Video video = 5;
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.
getVideoOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasData()
optional .openrtb.NativeResponse.Asset.Data data = 6;
Data object for ratings, prices etc.
hasData in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.Data getData()
optional .openrtb.NativeResponse.Asset.Data data = 6;
Data object for ratings, prices etc.
getData in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Asset.DataOrBuilder getDataOrBuilder()
optional .openrtb.NativeResponse.Asset.Data data = 6;
Data object for ratings, prices etc.
getDataOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic boolean hasLink()
optional .openrtb.NativeResponse.Link link = 7;
Link object for call to actions. This link is to associated to the other populated field within the object.
hasLink in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.Link getLink()
optional .openrtb.NativeResponse.Link link = 7;
Link object for call to actions. This link is to associated to the other populated field within the object.
getLink in interface Openrtb.NativeResponse.AssetOrBuilderpublic Openrtb.NativeResponse.LinkOrBuilder getLinkOrBuilder()
optional .openrtb.NativeResponse.Link link = 7;
Link object for call to actions. This link is to associated to the other populated field within the object.
getLinkOrBuilder in interface Openrtb.NativeResponse.AssetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.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.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessagepublic Openrtb.NativeResponse.Asset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<Openrtb.NativeResponse.Asset>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.