public static class Bid.Avro extends Object implements Bid<BidAvro>
Bid.Avro, Bid.AvroBuilder, Bid.Builder<T>, Bid.Comparator, Bid.NativeImpl, Bid.Protobuf, Bid.ProtobufBuilder, Bid.Thrift, Bid.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 |
|---|---|
Bid.Avro |
encoded() |
boolean |
equals(Object other) |
static Bid<BidAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
BidAvro |
get()
Returns underlying object.
|
String |
getAdid()
ID that references the ad to be served if the bid wins.
|
String |
getAdm()
Actual ad markup.
|
List<String> |
getAdomain()
Advertiser’s primary or top-level domain for advertiser checking.
|
List<Integer> |
getAttr()
Array of creative attributes.
|
String |
getCid()
Campaign ID or similar that appears within the ad markup.
|
String |
getCrid()
Creative ID for reporting content issues or defects.
|
String |
getDealid()
A unique identifier for the direct deal associated with the bid.
|
int |
getH()
Height of the ad in pixels.
|
String |
getId()
ID for the bid object chosen by the bidder for tracking and debugging purposes.
|
String |
getImpid()
ID of the impression object to which this bid applies.
|
String |
getLurl()
Sample image URL (without cache busting) for content checking.
|
String |
getNurl()
Win notice URL.
|
double |
getPrice()
Bid price in CPM.
|
int |
getW()
Width of the ad in pixels.
|
int |
hashCode() |
boolean |
isDefaultAdid() |
boolean |
isDefaultAdm() |
boolean |
isDefaultAdomain() |
boolean |
isDefaultAttr() |
boolean |
isDefaultCid() |
boolean |
isDefaultCrid() |
boolean |
isDefaultDealid() |
boolean |
isDefaultH() |
boolean |
isDefaultId() |
boolean |
isDefaultImpid() |
boolean |
isDefaultLurl() |
boolean |
isDefaultNurl() |
boolean |
isDefaultPrice() |
boolean |
isDefaultW() |
Bid.Builder<BidAvro> |
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 Bid.Builder<BidAvro> newBuilder()
BidnewBuilder in interface Bid<BidAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public String getId()
Bidpublic boolean isDefaultId()
isDefaultId in interface Bid<BidAvro>public String getImpid()
Bidpublic boolean isDefaultImpid()
isDefaultImpid in interface Bid<BidAvro>public double getPrice()
Bidpublic boolean isDefaultPrice()
isDefaultPrice in interface Bid<BidAvro>public String getAdid()
Bidpublic boolean isDefaultAdid()
isDefaultAdid in interface Bid<BidAvro>public String getNurl()
Bidpublic boolean isDefaultNurl()
isDefaultNurl in interface Bid<BidAvro>public String getAdm()
Bidpublic boolean isDefaultAdm()
isDefaultAdm in interface Bid<BidAvro>public List<String> getAdomain()
BidgetAdomain in interface Bid<BidAvro>public boolean isDefaultAdomain()
isDefaultAdomain in interface Bid<BidAvro>public String getLurl()
Bidpublic boolean isDefaultLurl()
isDefaultLurl in interface Bid<BidAvro>public String getCid()
Bidpublic boolean isDefaultCid()
isDefaultCid in interface Bid<BidAvro>public String getCrid()
Bidpublic boolean isDefaultCrid()
isDefaultCrid in interface Bid<BidAvro>public List<Integer> getAttr()
Bidpublic boolean isDefaultAttr()
isDefaultAttr in interface Bid<BidAvro>public String getDealid()
Bidpublic boolean isDefaultDealid()
isDefaultDealid in interface Bid<BidAvro>public int getW()
Bidpublic boolean isDefaultW()
isDefaultW in interface Bid<BidAvro>public int getH()
Bidpublic boolean isDefaultH()
isDefaultH in interface Bid<BidAvro>public Bid.Avro encoded()
public static Bid<BidAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.