public interface User<T> extends Supplier<T>, Comparable<User<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
User.Avro |
static class |
User.AvroBuilder |
static interface |
User.Builder<T> |
static class |
User.Comparator |
static class |
User.NativeImpl |
static class |
User.Protobuf |
static class |
User.ProtobufBuilder |
static class |
User.Thrift |
static class |
User.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static User.Avro |
avro(User<?> instance)
Returns a wrapped Avro record based on an instance of User.
|
static User.Avro |
avro(UserAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(User<?> other) |
T |
get()
Returns underlying object.
|
static Class<UserAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
String |
getBuyeruid()
Buyer’s user ID for this user as mapped by exchange for the buyer.
|
static Comparator<User<?>> |
getComparator()
Returns comparator instance for User objects.
|
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.
|
static Class<OpenRtbProtobuf.User> |
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.
|
static Class<UserThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<UserThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
int |
getYob()
Year of birth as a 4-digit integer.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultBuyeruid() |
boolean |
isDefaultCustomdata() |
boolean |
isDefaultData() |
boolean |
isDefaultGender() |
boolean |
isDefaultGeo() |
boolean |
isDefaultId() |
boolean |
isDefaultKeywords() |
boolean |
isDefaultYob() |
static User.NativeImpl |
nativeImpl(User<?> instance)
Returns a POJO based on an instance of User.
|
static User.Builder<UserAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static User.Builder<UserAvro> |
newAvroBuilder(User<?> other)
Returns new Avro builder instance based on existing prototype User.
|
static User.Builder<UserAvro> |
newAvroBuilder(UserAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static User.Builder<UserAvro> |
newAvroBuilder(UserAvro other)
Returns new Avro builder instance based on existing prototype.
|
User.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static User.Builder<User.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static User.Builder<User.NativeImpl> |
newNativeImplBuilder(User<?> other)
Returns a POJO builder instance based on existing prototype User.
|
static User.Builder<OpenRtbProtobuf.User> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static User.Builder<OpenRtbProtobuf.User> |
newProtobufBuilder(OpenRtbProtobuf.User other)
Returns new Protobuf builder instance based on existing prototype.
|
static User.Builder<OpenRtbProtobuf.User> |
newProtobufBuilder(User<?> other)
Returns new Protobuf builder instance based on existing prototype User.
|
static User.Builder<UserThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static User.Builder<UserThrift> |
newThriftBuilder(User<?> other)
Returns new Thrift builder instance based on existing prototype User.
|
static User.Builder<UserThrift> |
newThriftBuilder(UserThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static User.Protobuf |
protobuf(OpenRtbProtobuf.User wrapped)
Wraps an existing Protobuf message.
|
static User.Protobuf |
protobuf(User<?> instance)
Returns a wrapped Protobuf message based on an instance of User.
|
static User.Thrift |
thrift(User<?> instance)
Returns a wrapped Thrift struct based on an instance of User.
|
static User.Thrift |
thrift(UserThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
User.Builder<T> newBuilder()
String getId()
boolean isDefaultId()
String getBuyeruid()
boolean isDefaultBuyeruid()
int getYob()
boolean isDefaultYob()
String getGender()
boolean isDefaultGender()
String getKeywords()
boolean isDefaultKeywords()
String getCustomdata()
boolean isDefaultCustomdata()
Geo<?> getGeo()
boolean isDefaultGeo()
boolean isDefaultData()
static Comparator<User<?>> getComparator()
default int compareTo(User<?> other)
compareTo in interface Comparable<User<?>>static User.Builder<User.NativeImpl> newNativeImplBuilder()
static User.Builder<User.NativeImpl> newNativeImplBuilder(User<?> other)
static User.NativeImpl nativeImpl(User<?> instance)
static User.Builder<UserAvro> newAvroBuilder()
static User.Builder<UserAvro> newAvroBuilder(UserAvro other)
static User.Builder<UserAvro> newAvroBuilder(UserAvro.Builder other)
static User.Builder<UserAvro> newAvroBuilder(User<?> other)
static User.Avro avro(User<?> instance)
static Schema getAvroSchema()
static User.Builder<OpenRtbProtobuf.User> newProtobufBuilder()
static User.Builder<OpenRtbProtobuf.User> newProtobufBuilder(OpenRtbProtobuf.User other)
static User.Builder<OpenRtbProtobuf.User> newProtobufBuilder(User<?> other)
static User.Protobuf protobuf(User<?> instance)
static User.Protobuf protobuf(OpenRtbProtobuf.User wrapped)
static Class<OpenRtbProtobuf.User> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static User.Builder<UserThrift> newThriftBuilder()
static User.Builder<UserThrift> newThriftBuilder(UserThrift other)
static User.Builder<UserThrift> newThriftBuilder(User<?> other)
static User.Thrift thrift(User<?> instance)
static User.Thrift thrift(UserThrift instance)
static Class<UserThrift> getThriftClass()
static Map<UserThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.