public static class Pmp.Avro extends Object implements Pmp<PmpAvro>
Pmp.Avro, Pmp.AvroBuilder, Pmp.Builder<T>, Pmp.Comparator, Pmp.NativeImpl, Pmp.Protobuf, Pmp.ProtobufBuilder, Pmp.Thrift, Pmp.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 |
|---|---|
Pmp.Avro |
encoded() |
boolean |
equals(Object other) |
static Pmp<PmpAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
PmpAvro |
get()
Returns underlying object.
|
List<Deal<?>> |
getDeals()
A collection of “deal” objects encapsulating a list of direct deals eligible for this impression.
|
int |
getPrivateAuction()
An integer flag indicating that this impression is a private auction eligible only to seats named in the Direct Deals object.
|
int |
hashCode() |
boolean |
isDefaultDeals() |
boolean |
isDefaultPrivateAuction() |
Pmp.Builder<PmpAvro> |
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 Pmp.Builder<PmpAvro> newBuilder()
PmpnewBuilder in interface Pmp<PmpAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public int getPrivateAuction()
PmpgetPrivateAuction in interface Pmp<PmpAvro>public boolean isDefaultPrivateAuction()
isDefaultPrivateAuction in interface Pmp<PmpAvro>public List<Deal<?>> getDeals()
Pmppublic boolean isDefaultDeals()
isDefaultDeals in interface Pmp<PmpAvro>public Pmp.Avro encoded()
public static Pmp<PmpAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.