public static class Content.Avro extends Object implements Content<ContentAvro>
Content.Avro, Content.AvroBuilder, Content.Builder<T>, Content.Comparator, Content.NativeImpl, Content.Protobuf, Content.ProtobufBuilder, Content.Thrift, Content.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Avro(byte[] binaryEncoding)
Constructs a new Avro instance based on a message's binary encoding.
|
| Modifier and Type | Method and Description |
|---|---|
Content.Avro |
encoded() |
boolean |
equals(Object other) |
static Content<ContentAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
ContentAvro |
get()
Returns underlying object.
|
List<String> |
getCat()
Array of IAB content categories for the content.
|
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.
|
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”.
|
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.
|
int |
hashCode() |
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() |
Content.Builder<ContentAvro> |
newBuilder()
Creates a new builder based on this object.
|
byte[] |
toByteArray()
Returns an Avro binary encoding of this record.
|
ByteBuffer |
toByteBuffer()
Returns the Avro binary encoding of this record wrapped in a read-only buffer.
|
String |
toString() |
avro, avro, compareTo, getAvroClass, getAvroSchema, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, nativeImpl, newAvroBuilder, newAvroBuilder, newAvroBuilder, newAvroBuilder, newNativeImplBuilder, newNativeImplBuilder, newProtobufBuilder, newProtobufBuilder, newProtobufBuilder, newThriftBuilder, newThriftBuilder, newThriftBuilder, protobuf, protobuf, thrift, thriftpublic static final long serialVersionUID
public Avro(byte[] binaryEncoding)
public ContentAvro get()
Contentget in interface Supplier<ContentAvro>get in interface Content<ContentAvro>public Content.Builder<ContentAvro> newBuilder()
ContentnewBuilder in interface Content<ContentAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public String getId()
ContentgetId in interface Content<ContentAvro>public boolean isDefaultId()
isDefaultId in interface Content<ContentAvro>public int getEpisode()
ContentgetEpisode in interface Content<ContentAvro>public boolean isDefaultEpisode()
isDefaultEpisode in interface Content<ContentAvro>public String getTitle()
ContentgetTitle in interface Content<ContentAvro>public boolean isDefaultTitle()
isDefaultTitle in interface Content<ContentAvro>public String getSeries()
ContentgetSeries in interface Content<ContentAvro>public boolean isDefaultSeries()
isDefaultSeries in interface Content<ContentAvro>public String getSeason()
ContentgetSeason in interface Content<ContentAvro>public boolean isDefaultSeason()
isDefaultSeason in interface Content<ContentAvro>public String getUrl()
ContentgetUrl in interface Content<ContentAvro>public boolean isDefaultUrl()
isDefaultUrl in interface Content<ContentAvro>public List<String> getCat()
ContentgetCat in interface Content<ContentAvro>public boolean isDefaultCat()
isDefaultCat in interface Content<ContentAvro>public int getVideoquality()
ContentgetVideoquality in interface Content<ContentAvro>public boolean isDefaultVideoquality()
isDefaultVideoquality in interface Content<ContentAvro>public String getKeywords()
ContentgetKeywords in interface Content<ContentAvro>public boolean isDefaultKeywords()
isDefaultKeywords in interface Content<ContentAvro>public String getContentrating()
ContentgetContentrating in interface Content<ContentAvro>public boolean isDefaultContentrating()
isDefaultContentrating in interface Content<ContentAvro>public String getUserrating()
ContentgetUserrating in interface Content<ContentAvro>public boolean isDefaultUserrating()
isDefaultUserrating in interface Content<ContentAvro>public String getContext()
ContentgetContext in interface Content<ContentAvro>public boolean isDefaultContext()
isDefaultContext in interface Content<ContentAvro>public int getLivestream()
ContentgetLivestream in interface Content<ContentAvro>public boolean isDefaultLivestream()
isDefaultLivestream in interface Content<ContentAvro>public int getSourcerelationship()
ContentgetSourcerelationship in interface Content<ContentAvro>public boolean isDefaultSourcerelationship()
isDefaultSourcerelationship in interface Content<ContentAvro>public Producer<?> getProducer()
ContentgetProducer in interface Content<ContentAvro>public boolean isDefaultProducer()
isDefaultProducer in interface Content<ContentAvro>public int getLen()
ContentgetLen in interface Content<ContentAvro>public boolean isDefaultLen()
isDefaultLen in interface Content<ContentAvro>public int getQagmediarating()
ContentgetQagmediarating in interface Content<ContentAvro>public boolean isDefaultQagmediarating()
isDefaultQagmediarating in interface Content<ContentAvro>public int getEmbeddable()
ContentgetEmbeddable in interface Content<ContentAvro>public boolean isDefaultEmbeddable()
isDefaultEmbeddable in interface Content<ContentAvro>public String getLanguage()
ContentgetLanguage in interface Content<ContentAvro>public boolean isDefaultLanguage()
isDefaultLanguage in interface Content<ContentAvro>public Content.Avro encoded()
public static Content<ContentAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.