public static class Device.Protobuf extends Object implements Device<OpenRtbProtobuf.Device>
Device.Avro, Device.AvroBuilder, Device.Builder<T>, Device.Comparator, Device.NativeImpl, Device.Protobuf, Device.ProtobufBuilder, Device.Thrift, Device.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Protobuf(byte[] binaryEncoding)
Constructs a new Protobuf instance based on a message's binary encoding.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static Device<OpenRtbProtobuf.Device> |
from(byte[] binaryEncoding)
Decodes a Protobuf message.
|
OpenRtbProtobuf.Device |
get()
Returns underlying object.
|
String |
getCarrier()
Carrier or ISP derived from the IP address.
|
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”).
|
String |
getUa()
Browser user agent string.
|
int |
hashCode() |
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() |
Device.Builder<OpenRtbProtobuf.Device> |
newBuilder()
Creates a new builder based on this object.
|
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 Protobuf(byte[] binaryEncoding)
public OpenRtbProtobuf.Device get()
Deviceget in interface Supplier<OpenRtbProtobuf.Device>get in interface Device<OpenRtbProtobuf.Device>public Device.Builder<OpenRtbProtobuf.Device> newBuilder()
DevicenewBuilder in interface Device<OpenRtbProtobuf.Device>public int getDnt()
DevicegetDnt in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultDnt()
isDefaultDnt in interface Device<OpenRtbProtobuf.Device>public String getUa()
DevicegetUa in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultUa()
isDefaultUa in interface Device<OpenRtbProtobuf.Device>public String getIp()
DevicegetIp in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultIp()
isDefaultIp in interface Device<OpenRtbProtobuf.Device>public Geo<?> getGeo()
DevicegetGeo in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultGeo()
isDefaultGeo in interface Device<OpenRtbProtobuf.Device>public String getDidsha1()
DevicegetDidsha1 in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultDidsha1()
isDefaultDidsha1 in interface Device<OpenRtbProtobuf.Device>public String getDidmd5()
DevicegetDidmd5 in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultDidmd5()
isDefaultDidmd5 in interface Device<OpenRtbProtobuf.Device>public String getDpidsha1()
DevicegetDpidsha1 in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultDpidsha1()
isDefaultDpidsha1 in interface Device<OpenRtbProtobuf.Device>public String getDpidmd5()
DevicegetDpidmd5 in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultDpidmd5()
isDefaultDpidmd5 in interface Device<OpenRtbProtobuf.Device>public String getMacsha1()
DevicegetMacsha1 in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultMacsha1()
isDefaultMacsha1 in interface Device<OpenRtbProtobuf.Device>public String getMacmd5()
DevicegetMacmd5 in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultMacmd5()
isDefaultMacmd5 in interface Device<OpenRtbProtobuf.Device>public String getIpv6()
DevicegetIpv6 in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultIpv6()
isDefaultIpv6 in interface Device<OpenRtbProtobuf.Device>public String getCarrier()
DevicegetCarrier in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultCarrier()
isDefaultCarrier in interface Device<OpenRtbProtobuf.Device>public String getLanguage()
DevicegetLanguage in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultLanguage()
isDefaultLanguage in interface Device<OpenRtbProtobuf.Device>public String getMake()
DevicegetMake in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultMake()
isDefaultMake in interface Device<OpenRtbProtobuf.Device>public String getModel()
DevicegetModel in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultModel()
isDefaultModel in interface Device<OpenRtbProtobuf.Device>public String getOs()
DevicegetOs in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultOs()
isDefaultOs in interface Device<OpenRtbProtobuf.Device>public String getOsv()
DevicegetOsv in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultOsv()
isDefaultOsv in interface Device<OpenRtbProtobuf.Device>public int getJs()
DevicegetJs in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultJs()
isDefaultJs in interface Device<OpenRtbProtobuf.Device>public int getConnectiontype()
DevicegetConnectiontype in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultConnectiontype()
isDefaultConnectiontype in interface Device<OpenRtbProtobuf.Device>public int getDevicetype()
DevicegetDevicetype in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultDevicetype()
isDefaultDevicetype in interface Device<OpenRtbProtobuf.Device>public String getFlashver()
DevicegetFlashver in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultFlashver()
isDefaultFlashver in interface Device<OpenRtbProtobuf.Device>public String getIfa()
DevicegetIfa in interface Device<OpenRtbProtobuf.Device>public boolean isDefaultIfa()
isDefaultIfa in interface Device<OpenRtbProtobuf.Device>public static Device<OpenRtbProtobuf.Device> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.