public interface Device<T> extends Supplier<T>, Comparable<Device<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Device.Avro |
static class |
Device.AvroBuilder |
static interface |
Device.Builder<T> |
static class |
Device.Comparator |
static class |
Device.NativeImpl |
static class |
Device.Protobuf |
static class |
Device.ProtobufBuilder |
static class |
Device.Thrift |
static class |
Device.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Device.Avro |
avro(Device<?> instance)
Returns a wrapped Avro record based on an instance of Device.
|
static Device.Avro |
avro(DeviceAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Device<?> other) |
T |
get()
Returns underlying object.
|
static Class<DeviceAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
String |
getCarrier()
Carrier or ISP derived from the IP address.
|
static Comparator<Device<?>> |
getComparator()
Returns comparator instance for Device objects.
|
int |
getConnectiontype()
Return the detected data connection type for the device.
|
int |
getDevicetype()
Return the device type being used.
|
String |
getDidmd5()
MD5 hashed device ID; IMEI when available, else MEID or ESN.
|
String |
getDidsha1()
SHA1 hashed device ID; IMEI when available, else MEID or ESN.
|
int |
getDnt()
If “0”, then do not track Is set to false, if “1”, then do no track is set to true in browser.
|
String |
getDpidmd5()
MD5 hashed platform-specific ID (e.g., Android ID or UDID for iOS).
|
String |
getDpidsha1()
SHA1 hashed platform-specific ID (e.g., Android ID or UDID for iOS).
|
String |
getFlashver()
Return the Flash version detected.
|
Geo<?> |
getGeo()
Geography as derived from the device’s location services (e.g., cell tower triangulation, GPS) or IP address.
|
String |
getIfa()
Native identifier for advertisers; an opaque ID assigned by the device or browser for use as an advertising identifier.
|
String |
getIp()
IPv4 address closest to device.
|
String |
getIpv6()
IP address in IPv6.
|
int |
getJs()
“1” if the device supports JavaScript; else “0”.
|
String |
getLanguage()
Browser language; use alpha-2/ISO 639-1 codes.
|
String |
getMacmd5()
MD5 hashed MAC address of the device.
|
String |
getMacsha1()
SHA1 hashed MAC address of the device.
|
String |
getMake()
Device make (e.g., “Apple”).
|
String |
getModel()
Device model (e.g., “iPhone”).
|
String |
getOs()
Device operating system (e.g., “iOS”).
|
String |
getOsv()
Device operating system version (e.g., “3.1.2”).
|
static Class<OpenRtbProtobuf.Device> |
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<DeviceThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<DeviceThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
String |
getUa()
Browser user agent string.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultCarrier() |
boolean |
isDefaultConnectiontype() |
boolean |
isDefaultDevicetype() |
boolean |
isDefaultDidmd5() |
boolean |
isDefaultDidsha1() |
boolean |
isDefaultDnt() |
boolean |
isDefaultDpidmd5() |
boolean |
isDefaultDpidsha1() |
boolean |
isDefaultFlashver() |
boolean |
isDefaultGeo() |
boolean |
isDefaultIfa() |
boolean |
isDefaultIp() |
boolean |
isDefaultIpv6() |
boolean |
isDefaultJs() |
boolean |
isDefaultLanguage() |
boolean |
isDefaultMacmd5() |
boolean |
isDefaultMacsha1() |
boolean |
isDefaultMake() |
boolean |
isDefaultModel() |
boolean |
isDefaultOs() |
boolean |
isDefaultOsv() |
boolean |
isDefaultUa() |
static Device.NativeImpl |
nativeImpl(Device<?> instance)
Returns a POJO based on an instance of Device.
|
static Device.Builder<DeviceAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Device.Builder<DeviceAvro> |
newAvroBuilder(Device<?> other)
Returns new Avro builder instance based on existing prototype Device.
|
static Device.Builder<DeviceAvro> |
newAvroBuilder(DeviceAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Device.Builder<DeviceAvro> |
newAvroBuilder(DeviceAvro other)
Returns new Avro builder instance based on existing prototype.
|
Device.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Device.Builder<Device.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Device.Builder<Device.NativeImpl> |
newNativeImplBuilder(Device<?> other)
Returns a POJO builder instance based on existing prototype Device.
|
static Device.Builder<OpenRtbProtobuf.Device> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Device.Builder<OpenRtbProtobuf.Device> |
newProtobufBuilder(Device<?> other)
Returns new Protobuf builder instance based on existing prototype Device.
|
static Device.Builder<OpenRtbProtobuf.Device> |
newProtobufBuilder(OpenRtbProtobuf.Device other)
Returns new Protobuf builder instance based on existing prototype.
|
static Device.Builder<DeviceThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Device.Builder<DeviceThrift> |
newThriftBuilder(Device<?> other)
Returns new Thrift builder instance based on existing prototype Device.
|
static Device.Builder<DeviceThrift> |
newThriftBuilder(DeviceThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Device.Protobuf |
protobuf(Device<?> instance)
Returns a wrapped Protobuf message based on an instance of Device.
|
static Device.Protobuf |
protobuf(OpenRtbProtobuf.Device wrapped)
Wraps an existing Protobuf message.
|
static Device.Thrift |
thrift(Device<?> instance)
Returns a wrapped Thrift struct based on an instance of Device.
|
static Device.Thrift |
thrift(DeviceThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Device.Builder<T> newBuilder()
int getDnt()
boolean isDefaultDnt()
String getUa()
boolean isDefaultUa()
String getIp()
boolean isDefaultIp()
Geo<?> getGeo()
boolean isDefaultGeo()
String getDidsha1()
boolean isDefaultDidsha1()
String getDidmd5()
boolean isDefaultDidmd5()
String getDpidsha1()
boolean isDefaultDpidsha1()
String getDpidmd5()
boolean isDefaultDpidmd5()
String getMacsha1()
boolean isDefaultMacsha1()
String getMacmd5()
boolean isDefaultMacmd5()
String getIpv6()
boolean isDefaultIpv6()
String getCarrier()
boolean isDefaultCarrier()
String getLanguage()
boolean isDefaultLanguage()
String getMake()
boolean isDefaultMake()
String getModel()
boolean isDefaultModel()
String getOs()
boolean isDefaultOs()
String getOsv()
boolean isDefaultOsv()
int getJs()
boolean isDefaultJs()
int getConnectiontype()
boolean isDefaultConnectiontype()
int getDevicetype()
boolean isDefaultDevicetype()
String getFlashver()
boolean isDefaultFlashver()
String getIfa()
boolean isDefaultIfa()
static Comparator<Device<?>> getComparator()
default int compareTo(Device<?> other)
compareTo in interface Comparable<Device<?>>static Device.Builder<Device.NativeImpl> newNativeImplBuilder()
static Device.Builder<Device.NativeImpl> newNativeImplBuilder(Device<?> other)
static Device.NativeImpl nativeImpl(Device<?> instance)
static Device.Builder<DeviceAvro> newAvroBuilder()
static Device.Builder<DeviceAvro> newAvroBuilder(DeviceAvro other)
static Device.Builder<DeviceAvro> newAvroBuilder(DeviceAvro.Builder other)
static Device.Builder<DeviceAvro> newAvroBuilder(Device<?> other)
static Device.Avro avro(Device<?> instance)
static Device.Avro avro(DeviceAvro wrapped)
static Class<DeviceAvro> getAvroClass()
static Schema getAvroSchema()
static Device.Builder<OpenRtbProtobuf.Device> newProtobufBuilder()
static Device.Builder<OpenRtbProtobuf.Device> newProtobufBuilder(OpenRtbProtobuf.Device other)
static Device.Builder<OpenRtbProtobuf.Device> newProtobufBuilder(Device<?> other)
static Device.Protobuf protobuf(Device<?> instance)
static Device.Protobuf protobuf(OpenRtbProtobuf.Device wrapped)
static Class<OpenRtbProtobuf.Device> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Device.Builder<DeviceThrift> newThriftBuilder()
static Device.Builder<DeviceThrift> newThriftBuilder(DeviceThrift other)
static Device.Builder<DeviceThrift> newThriftBuilder(Device<?> other)
static Device.Thrift thrift(Device<?> instance)
static Device.Thrift thrift(DeviceThrift instance)
static Class<DeviceThrift> getThriftClass()
static Map<DeviceThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.