public interface Content<T> extends Supplier<T>, Comparable<Content<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Content.Avro |
static class |
Content.AvroBuilder |
static interface |
Content.Builder<T> |
static class |
Content.Comparator |
static class |
Content.NativeImpl |
static class |
Content.Protobuf |
static class |
Content.ProtobufBuilder |
static class |
Content.Thrift |
static class |
Content.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Content.Avro |
avro(Content<?> instance)
Returns a wrapped Avro record based on an instance of Content.
|
static Content.Avro |
avro(ContentAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Content<?> other) |
T |
get()
Returns underlying object.
|
static Class<ContentAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
List<String> |
getCat()
Array of IAB content categories for the content.
|
static Comparator<Content<?>> |
getComparator()
Returns comparator instance for Content objects.
|
String |
getContentrating()
Content rating (e.g., MPAA)
|
String |
getContext()
Specifies the type of content (game, video, text, etc.).
|
int |
getEmbeddable()
From QAG Video Addendum.
|
int |
getEpisode()
Content episode number (typically applies to video content).
|
String |
getId()
ID uniquely identifying the content.
|
String |
getKeywords()
Comma separated list of keywords describing the content.
|
String |
getLanguage()
Language of the content.
|
int |
getLen()
Length of content (appropriate for video or audio) in seconds.
|
int |
getLivestream()
Is content live? E.g., live video stream, live blog.
|
Producer<?> |
getProducer()
See Producer Object.
|
static Class<OpenRtbProtobuf.Content> |
getProtobufClass()
Returns Protobuf class for this struct.
|
static com.google.protobuf.Descriptors.Descriptor |
getProtobufDescriptor()
Returns Protobuf descriptor for this struct.
|
static Class<AdExchangeProtobuf> |
getProtobufProtocolClass()
Returns Protobuf protocol class for this struct.
|
static com.google.protobuf.Descriptors.FileDescriptor |
getProtobufProtocolDescriptor()
Returns Protobuf protocol descriptor for this struct.
|
int |
getQagmediarating()
Media rating of the content, per QAG guidelines.
|
String |
getSeason()
Content season.
|
String |
getSeries()
Content series.
|
int |
getSourcerelationship()
1 for “direct”; 0 for “indirect”.
|
static Class<ContentThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<ContentThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
String |
getTitle()
Content title.
|
String |
getUrl()
Original URL of the content, for buy-side contextualization or review.
|
String |
getUserrating()
User rating of the content (e.g., number of stars, likes, etc.).
|
int |
getVideoquality()
Video quality per the IAB’s classification.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultCat() |
boolean |
isDefaultContentrating() |
boolean |
isDefaultContext() |
boolean |
isDefaultEmbeddable() |
boolean |
isDefaultEpisode() |
boolean |
isDefaultId() |
boolean |
isDefaultKeywords() |
boolean |
isDefaultLanguage() |
boolean |
isDefaultLen() |
boolean |
isDefaultLivestream() |
boolean |
isDefaultProducer() |
boolean |
isDefaultQagmediarating() |
boolean |
isDefaultSeason() |
boolean |
isDefaultSeries() |
boolean |
isDefaultSourcerelationship() |
boolean |
isDefaultTitle() |
boolean |
isDefaultUrl() |
boolean |
isDefaultUserrating() |
boolean |
isDefaultVideoquality() |
static Content.NativeImpl |
nativeImpl(Content<?> instance)
Returns a POJO based on an instance of Content.
|
static Content.Builder<ContentAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Content.Builder<ContentAvro> |
newAvroBuilder(Content<?> other)
Returns new Avro builder instance based on existing prototype Content.
|
static Content.Builder<ContentAvro> |
newAvroBuilder(ContentAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Content.Builder<ContentAvro> |
newAvroBuilder(ContentAvro other)
Returns new Avro builder instance based on existing prototype.
|
Content.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Content.Builder<Content.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Content.Builder<Content.NativeImpl> |
newNativeImplBuilder(Content<?> other)
Returns a POJO builder instance based on existing prototype Content.
|
static Content.Builder<OpenRtbProtobuf.Content> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Content.Builder<OpenRtbProtobuf.Content> |
newProtobufBuilder(Content<?> other)
Returns new Protobuf builder instance based on existing prototype Content.
|
static Content.Builder<OpenRtbProtobuf.Content> |
newProtobufBuilder(OpenRtbProtobuf.Content other)
Returns new Protobuf builder instance based on existing prototype.
|
static Content.Builder<ContentThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Content.Builder<ContentThrift> |
newThriftBuilder(Content<?> other)
Returns new Thrift builder instance based on existing prototype Content.
|
static Content.Builder<ContentThrift> |
newThriftBuilder(ContentThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Content.Protobuf |
protobuf(Content<?> instance)
Returns a wrapped Protobuf message based on an instance of Content.
|
static Content.Protobuf |
protobuf(OpenRtbProtobuf.Content wrapped)
Wraps an existing Protobuf message.
|
static Content.Thrift |
thrift(Content<?> instance)
Returns a wrapped Thrift struct based on an instance of Content.
|
static Content.Thrift |
thrift(ContentThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Content.Builder<T> newBuilder()
String getId()
boolean isDefaultId()
int getEpisode()
boolean isDefaultEpisode()
String getTitle()
boolean isDefaultTitle()
String getSeries()
boolean isDefaultSeries()
String getSeason()
boolean isDefaultSeason()
String getUrl()
boolean isDefaultUrl()
List<String> getCat()
boolean isDefaultCat()
int getVideoquality()
boolean isDefaultVideoquality()
String getKeywords()
boolean isDefaultKeywords()
String getContentrating()
boolean isDefaultContentrating()
String getUserrating()
boolean isDefaultUserrating()
String getContext()
boolean isDefaultContext()
int getLivestream()
boolean isDefaultLivestream()
int getSourcerelationship()
boolean isDefaultSourcerelationship()
Producer<?> getProducer()
boolean isDefaultProducer()
int getLen()
boolean isDefaultLen()
int getQagmediarating()
boolean isDefaultQagmediarating()
int getEmbeddable()
boolean isDefaultEmbeddable()
String getLanguage()
boolean isDefaultLanguage()
static Comparator<Content<?>> getComparator()
default int compareTo(Content<?> other)
compareTo in interface Comparable<Content<?>>static Content.Builder<Content.NativeImpl> newNativeImplBuilder()
static Content.Builder<Content.NativeImpl> newNativeImplBuilder(Content<?> other)
static Content.NativeImpl nativeImpl(Content<?> instance)
static Content.Builder<ContentAvro> newAvroBuilder()
static Content.Builder<ContentAvro> newAvroBuilder(ContentAvro other)
static Content.Builder<ContentAvro> newAvroBuilder(ContentAvro.Builder other)
static Content.Builder<ContentAvro> newAvroBuilder(Content<?> other)
static Content.Avro avro(Content<?> instance)
static Content.Avro avro(ContentAvro wrapped)
static Class<ContentAvro> getAvroClass()
static Schema getAvroSchema()
static Content.Builder<OpenRtbProtobuf.Content> newProtobufBuilder()
static Content.Builder<OpenRtbProtobuf.Content> newProtobufBuilder(OpenRtbProtobuf.Content other)
static Content.Builder<OpenRtbProtobuf.Content> newProtobufBuilder(Content<?> other)
static Content.Protobuf protobuf(Content<?> instance)
static Content.Protobuf protobuf(OpenRtbProtobuf.Content wrapped)
static Class<OpenRtbProtobuf.Content> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Content.Builder<ContentThrift> newThriftBuilder()
static Content.Builder<ContentThrift> newThriftBuilder(ContentThrift other)
static Content.Builder<ContentThrift> newThriftBuilder(Content<?> other)
static Content.Thrift thrift(Content<?> instance)
static Content.Thrift thrift(ContentThrift instance)
static Class<ContentThrift> getThriftClass()
static Map<ContentThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.