public static class User.Avro extends Object implements User<UserAvro>
User.Avro, User.AvroBuilder, User.Builder<T>, User.Comparator, User.NativeImpl, User.Protobuf, User.ProtobufBuilder, User.Thrift, User.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 |
|---|---|
User.Avro |
encoded() |
boolean |
equals(Object other) |
static User<UserAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
UserAvro |
get()
Returns underlying object.
|
String |
getBuyeruid()
Buyer’s user ID for this user as mapped by exchange for the buyer.
|
String |
getCustomdata()
If supported by the exchange, this is custom data that the bidder had stored in the exchange’s cookie.
|
List<Data<?>> |
getData()
See Data Object.
|
String |
getGender()
Gender as “M” male, “F” female, “O” Other.
|
Geo<?> |
getGeo()
Home geo for the user (e.g., based off of registration data); this is different from the current location of the access device (that is defined by the geo object embedded in the Device Object); see Geo Object.
|
String |
getId()
Unique consumer ID of this user on the exchange.
|
String |
getKeywords()
Comma separated list of keywords of consumer interests or intent.
|
int |
getYob()
Year of birth as a 4-digit integer.
|
int |
hashCode() |
boolean |
isDefaultBuyeruid() |
boolean |
isDefaultCustomdata() |
boolean |
isDefaultData() |
boolean |
isDefaultGender() |
boolean |
isDefaultGeo() |
boolean |
isDefaultId() |
boolean |
isDefaultKeywords() |
boolean |
isDefaultYob() |
User.Builder<UserAvro> |
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 User.Builder<UserAvro> newBuilder()
UsernewBuilder in interface User<UserAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public String getId()
Userpublic boolean isDefaultId()
isDefaultId in interface User<UserAvro>public String getBuyeruid()
UsergetBuyeruid in interface User<UserAvro>public boolean isDefaultBuyeruid()
isDefaultBuyeruid in interface User<UserAvro>public int getYob()
Userpublic boolean isDefaultYob()
isDefaultYob in interface User<UserAvro>public String getGender()
Userpublic boolean isDefaultGender()
isDefaultGender in interface User<UserAvro>public String getKeywords()
UsergetKeywords in interface User<UserAvro>public boolean isDefaultKeywords()
isDefaultKeywords in interface User<UserAvro>public String getCustomdata()
UsergetCustomdata in interface User<UserAvro>public boolean isDefaultCustomdata()
isDefaultCustomdata in interface User<UserAvro>public Geo<?> getGeo()
Userpublic boolean isDefaultGeo()
isDefaultGeo in interface User<UserAvro>public boolean isDefaultData()
isDefaultData in interface User<UserAvro>public User.Avro encoded()
public static User<UserAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.