Class OpenRtb.BidRequest.Device

  • All Implemented Interfaces:
    OpenRtb.BidRequest.DeviceOrBuilder, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Device>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    OpenRtb.BidRequest

    public static final class OpenRtb.BidRequest.Device
    extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.BidRequest.Device>
    implements OpenRtb.BidRequest.DeviceOrBuilder
     OpenRTB 2.0: This object provides information pertaining to the device
     through which the user is interacting. Device information includes its
     hardware, platform, location, and carrier data. The device can refer to a
     mobile handset, a desktop computer, set top box, or other digital device.
     
    Protobuf type com.google.openrtb.BidRequest.Device
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OpenRtb.BidRequest.Device.Builder
      OpenRTB 2.0: This object provides information pertaining to the device through which the user is interacting.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage

        com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      String getCarrier()
      Carrier or ISP (e.g., "VERIZON") using exchange curated string names which should be published to bidders a priori.
      com.google.protobuf.ByteString getCarrierBytes()
      Carrier or ISP (e.g., "VERIZON") using exchange curated string names which should be published to bidders a priori.
      OpenRtb.ConnectionType getConnectiontype()
      Network connection type.
      static OpenRtb.BidRequest.Device getDefaultInstance()  
      OpenRtb.BidRequest.Device getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      OpenRtb.DeviceType getDevicetype()
      The general type of device.
      String getDidmd5()
      Hardware device ID (e.g., IMEI); hashed via MD5.
      com.google.protobuf.ByteString getDidmd5Bytes()
      Hardware device ID (e.g., IMEI); hashed via MD5.
      String getDidsha1()
      Hardware device ID (e.g., IMEI); hashed via SHA1.
      com.google.protobuf.ByteString getDidsha1Bytes()
      Hardware device ID (e.g., IMEI); hashed via SHA1.
      boolean getDnt()
      Standard "Do Not Track" flag as set in the header by the browser, where false = tracking is unrestricted, true = do not track.
      String getDpidmd5()
      Platform device ID (e.g., Android ID); hashed via MD5.
      com.google.protobuf.ByteString getDpidmd5Bytes()
      Platform device ID (e.g., Android ID); hashed via MD5.
      String getDpidsha1()
      Platform device ID (e.g., Android ID); hashed via SHA1.
      com.google.protobuf.ByteString getDpidsha1Bytes()
      Platform device ID (e.g., Android ID); hashed via SHA1.
      String getFlashver()
      Version of Flash supported by the browser.
      com.google.protobuf.ByteString getFlashverBytes()
      Version of Flash supported by the browser.
      OpenRtb.BidRequest.Geo getGeo()
      Location of the device assumed to be the user's current location defined by a Geo object (Section 3.2.12).
      boolean getGeofetch()
      Indicates if the geolocation API will be available to JavaScript code running in the banner.
      OpenRtb.BidRequest.GeoOrBuilder getGeoOrBuilder()
      Location of the device assumed to be the user's current location defined by a Geo object (Section 3.2.12).
      int getH()
      Physical height of the screen in pixels.
      String getHwv()
      Hardware version of the device (e.g., "5S" for iPhone 5S).
      com.google.protobuf.ByteString getHwvBytes()
      Hardware version of the device (e.g., "5S" for iPhone 5S).
      String getIfa()
      ID sanctioned for advertiser use in the clear (i.e., not hashed).
      com.google.protobuf.ByteString getIfaBytes()
      ID sanctioned for advertiser use in the clear (i.e., not hashed).
      String getIp()
      IPv4 address closest to device.
      com.google.protobuf.ByteString getIpBytes()
      IPv4 address closest to device.
      String getIpv6()
      IPv6 address closest to device.
      com.google.protobuf.ByteString getIpv6Bytes()
      IPv6 address closest to device.
      boolean getJs()
      Support for JavaScript.
      String getLanguage()
      Browser language using ISO-639-1-alpha-2.
      com.google.protobuf.ByteString getLanguageBytes()
      Browser language using ISO-639-1-alpha-2.
      boolean getLmt()
      "Limit Ad Tracking" signal commercially endorsed (e.g., iOS, Android), where false = tracking is unrestricted, true = tracking must be limited per commercial guidelines.
      String getMacmd5()
      MAC address of the device; hashed via MD5.
      com.google.protobuf.ByteString getMacmd5Bytes()
      MAC address of the device; hashed via MD5.
      String getMacsha1()
      MAC address of the device; hashed via SHA1.
      com.google.protobuf.ByteString getMacsha1Bytes()
      MAC address of the device; hashed via SHA1.
      String getMake()
      Device make (e.g., "Apple").
      com.google.protobuf.ByteString getMakeBytes()
      Device make (e.g., "Apple").
      String getMccmnc()
      Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
      com.google.protobuf.ByteString getMccmncBytes()
      Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
      String getModel()
      Device model (e.g., "iPhone").
      com.google.protobuf.ByteString getModelBytes()
      Device model (e.g., "iPhone").
      String getOs()
      Device operating system (e.g., "iOS").
      com.google.protobuf.ByteString getOsBytes()
      Device operating system (e.g., "iOS").
      String getOsv()
      Device operating system version (e.g., "3.1.2").
      com.google.protobuf.ByteString getOsvBytes()
      Device operating system version (e.g., "3.1.2").
      com.google.protobuf.Parser<OpenRtb.BidRequest.Device> getParserForType()  
      int getPpi()
      Screen size as pixels per linear inch.
      double getPxratio()
      The ratio of physical pixels to device independent pixels.
      int getSerializedSize()  
      String getUa()
      Browser user agent string.
      com.google.protobuf.ByteString getUaBytes()
      Browser user agent string.
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      int getW()
      Physical width of the screen in pixels.
      boolean hasCarrier()
      Carrier or ISP (e.g., "VERIZON") using exchange curated string names which should be published to bidders a priori.
      boolean hasConnectiontype()
      Network connection type.
      boolean hasDevicetype()
      The general type of device.
      boolean hasDidmd5()
      Hardware device ID (e.g., IMEI); hashed via MD5.
      boolean hasDidsha1()
      Hardware device ID (e.g., IMEI); hashed via SHA1.
      boolean hasDnt()
      Standard "Do Not Track" flag as set in the header by the browser, where false = tracking is unrestricted, true = do not track.
      boolean hasDpidmd5()
      Platform device ID (e.g., Android ID); hashed via MD5.
      boolean hasDpidsha1()
      Platform device ID (e.g., Android ID); hashed via SHA1.
      boolean hasFlashver()
      Version of Flash supported by the browser.
      boolean hasGeo()
      Location of the device assumed to be the user's current location defined by a Geo object (Section 3.2.12).
      boolean hasGeofetch()
      Indicates if the geolocation API will be available to JavaScript code running in the banner.
      boolean hasH()
      Physical height of the screen in pixels.
      int hashCode()  
      boolean hasHwv()
      Hardware version of the device (e.g., "5S" for iPhone 5S).
      boolean hasIfa()
      ID sanctioned for advertiser use in the clear (i.e., not hashed).
      boolean hasIp()
      IPv4 address closest to device.
      boolean hasIpv6()
      IPv6 address closest to device.
      boolean hasJs()
      Support for JavaScript.
      boolean hasLanguage()
      Browser language using ISO-639-1-alpha-2.
      boolean hasLmt()
      "Limit Ad Tracking" signal commercially endorsed (e.g., iOS, Android), where false = tracking is unrestricted, true = tracking must be limited per commercial guidelines.
      boolean hasMacmd5()
      MAC address of the device; hashed via MD5.
      boolean hasMacsha1()
      MAC address of the device; hashed via SHA1.
      boolean hasMake()
      Device make (e.g., "Apple").
      boolean hasMccmnc()
      Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
      boolean hasModel()
      Device model (e.g., "iPhone").
      boolean hasOs()
      Device operating system (e.g., "iOS").
      boolean hasOsv()
      Device operating system version (e.g., "3.1.2").
      boolean hasPpi()
      Screen size as pixels per linear inch.
      boolean hasPxratio()
      The ratio of physical pixels to device independent pixels.
      boolean hasUa()
      Browser user agent string.
      boolean hasW()
      Physical width of the screen in pixels.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static OpenRtb.BidRequest.Device.Builder newBuilder()  
      static OpenRtb.BidRequest.Device.Builder newBuilder​(OpenRtb.BidRequest.Device prototype)  
      OpenRtb.BidRequest.Device.Builder newBuilderForType()  
      protected OpenRtb.BidRequest.Device.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static OpenRtb.BidRequest.Device parseDelimitedFrom​(InputStream input)  
      static OpenRtb.BidRequest.Device parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static OpenRtb.BidRequest.Device parseFrom​(byte[] data)  
      static OpenRtb.BidRequest.Device parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static OpenRtb.BidRequest.Device parseFrom​(com.google.protobuf.ByteString data)  
      static OpenRtb.BidRequest.Device parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static OpenRtb.BidRequest.Device parseFrom​(com.google.protobuf.CodedInputStream input)  
      static OpenRtb.BidRequest.Device parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static OpenRtb.BidRequest.Device parseFrom​(InputStream input)  
      static OpenRtb.BidRequest.Device parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static OpenRtb.BidRequest.Device parseFrom​(ByteBuffer data)  
      static OpenRtb.BidRequest.Device parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<OpenRtb.BidRequest.Device> parser()  
      OpenRtb.BidRequest.Device.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage

        extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, isStringEmpty, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder

        getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasGeo

        public boolean hasGeo()
         Location of the device assumed to be the user's current location defined
         by a Geo object (Section 3.2.12).
         RECOMMENDED by the OpenRTB specification.
         
        optional .com.google.openrtb.BidRequest.Geo geo = 4;
        Specified by:
        hasGeo in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the geo field is set.
      • getGeo

        public OpenRtb.BidRequest.Geo getGeo()
         Location of the device assumed to be the user's current location defined
         by a Geo object (Section 3.2.12).
         RECOMMENDED by the OpenRTB specification.
         
        optional .com.google.openrtb.BidRequest.Geo geo = 4;
        Specified by:
        getGeo in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The geo.
      • hasDnt

        public boolean hasDnt()
         Standard "Do Not Track" flag as set in the header by the browser,
         where false = tracking is unrestricted, true = do not track.
         RECOMMENDED by the OpenRTB specification.
         
        optional bool dnt = 1;
        Specified by:
        hasDnt in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the dnt field is set.
      • getDnt

        public boolean getDnt()
         Standard "Do Not Track" flag as set in the header by the browser,
         where false = tracking is unrestricted, true = do not track.
         RECOMMENDED by the OpenRTB specification.
         
        optional bool dnt = 1;
        Specified by:
        getDnt in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The dnt.
      • hasLmt

        public boolean hasLmt()
         "Limit Ad Tracking" signal commercially endorsed (e.g., iOS, Android),
         where false = tracking is unrestricted, true = tracking must be limited
         per commercial guidelines.
         RECOMMENDED by the OpenRTB specification.
         
        optional bool lmt = 23;
        Specified by:
        hasLmt in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the lmt field is set.
      • getLmt

        public boolean getLmt()
         "Limit Ad Tracking" signal commercially endorsed (e.g., iOS, Android),
         where false = tracking is unrestricted, true = tracking must be limited
         per commercial guidelines.
         RECOMMENDED by the OpenRTB specification.
         
        optional bool lmt = 23;
        Specified by:
        getLmt in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The lmt.
      • hasUa

        public boolean hasUa()
         Browser user agent string. Certain data may be redacted or replaced.
         RECOMMENDED by the OpenRTB specification.
         
        optional string ua = 2;
        Specified by:
        hasUa in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the ua field is set.
      • getUa

        public String getUa()
         Browser user agent string. Certain data may be redacted or replaced.
         RECOMMENDED by the OpenRTB specification.
         
        optional string ua = 2;
        Specified by:
        getUa in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The ua.
      • getUaBytes

        public com.google.protobuf.ByteString getUaBytes()
         Browser user agent string. Certain data may be redacted or replaced.
         RECOMMENDED by the OpenRTB specification.
         
        optional string ua = 2;
        Specified by:
        getUaBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for ua.
      • hasIp

        public boolean hasIp()
         IPv4 address closest to device.
         RECOMMENDED by the OpenRTB specification.
         
        optional string ip = 3;
        Specified by:
        hasIp in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the ip field is set.
      • getIpBytes

        public com.google.protobuf.ByteString getIpBytes()
         IPv4 address closest to device.
         RECOMMENDED by the OpenRTB specification.
         
        optional string ip = 3;
        Specified by:
        getIpBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for ip.
      • hasIpv6

        public boolean hasIpv6()
         IPv6 address closest to device.
         
        optional string ipv6 = 9;
        Specified by:
        hasIpv6 in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the ipv6 field is set.
      • getIpv6Bytes

        public com.google.protobuf.ByteString getIpv6Bytes()
         IPv6 address closest to device.
         
        optional string ipv6 = 9;
        Specified by:
        getIpv6Bytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for ipv6.
      • hasDevicetype

        public boolean hasDevicetype()
         The general type of device.
         
        optional .com.google.openrtb.DeviceType devicetype = 18;
        Specified by:
        hasDevicetype in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the devicetype field is set.
      • getMakeBytes

        public com.google.protobuf.ByteString getMakeBytes()
         Device make (e.g., "Apple").
         
        optional string make = 12;
        Specified by:
        getMakeBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for make.
      • hasModel

        public boolean hasModel()
         Device model (e.g., "iPhone").
         
        optional string model = 13;
        Specified by:
        hasModel in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the model field is set.
      • getModelBytes

        public com.google.protobuf.ByteString getModelBytes()
         Device model (e.g., "iPhone").
         
        optional string model = 13;
        Specified by:
        getModelBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for model.
      • hasOs

        public boolean hasOs()
         Device operating system (e.g., "iOS").
         
        optional string os = 14;
        Specified by:
        hasOs in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the os field is set.
      • getOsBytes

        public com.google.protobuf.ByteString getOsBytes()
         Device operating system (e.g., "iOS").
         
        optional string os = 14;
        Specified by:
        getOsBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for os.
      • hasOsv

        public boolean hasOsv()
         Device operating system version (e.g., "3.1.2").
         
        optional string osv = 15;
        Specified by:
        hasOsv in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the osv field is set.
      • getOsvBytes

        public com.google.protobuf.ByteString getOsvBytes()
         Device operating system version (e.g., "3.1.2").
         
        optional string osv = 15;
        Specified by:
        getOsvBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for osv.
      • hasHwv

        public boolean hasHwv()
         Hardware version of the device (e.g., "5S" for iPhone 5S).
         
        optional string hwv = 24;
        Specified by:
        hasHwv in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the hwv field is set.
      • getHwvBytes

        public com.google.protobuf.ByteString getHwvBytes()
         Hardware version of the device (e.g., "5S" for iPhone 5S).
         
        optional string hwv = 24;
        Specified by:
        getHwvBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for hwv.
      • hasW

        public boolean hasW()
         Physical width of the screen in pixels.
         
        optional int32 w = 25;
        Specified by:
        hasW in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the w field is set.
      • hasH

        public boolean hasH()
         Physical height of the screen in pixels.
         
        optional int32 h = 26;
        Specified by:
        hasH in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the h field is set.
      • hasPpi

        public boolean hasPpi()
         Screen size as pixels per linear inch.
         
        optional int32 ppi = 27;
        Specified by:
        hasPpi in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the ppi field is set.
      • hasPxratio

        public boolean hasPxratio()
         The ratio of physical pixels to device independent pixels.
         
        optional double pxratio = 28;
        Specified by:
        hasPxratio in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the pxratio field is set.
      • getPxratio

        public double getPxratio()
         The ratio of physical pixels to device independent pixels.
         
        optional double pxratio = 28;
        Specified by:
        getPxratio in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The pxratio.
      • hasGeofetch

        public boolean hasGeofetch()
         Indicates if the geolocation API will be available to JavaScript
         code running in the banner.
         
        optional bool geofetch = 29;
        Specified by:
        hasGeofetch in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the geofetch field is set.
      • getGeofetch

        public boolean getGeofetch()
         Indicates if the geolocation API will be available to JavaScript
         code running in the banner.
         
        optional bool geofetch = 29;
        Specified by:
        getGeofetch in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The geofetch.
      • hasFlashver

        public boolean hasFlashver()
         Version of Flash supported by the browser.
         
        optional string flashver = 19;
        Specified by:
        hasFlashver in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the flashver field is set.
      • getFlashverBytes

        public com.google.protobuf.ByteString getFlashverBytes()
         Version of Flash supported by the browser.
         
        optional string flashver = 19;
        Specified by:
        getFlashverBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for flashver.
      • hasLanguage

        public boolean hasLanguage()
         Browser language using ISO-639-1-alpha-2.
         
        optional string language = 11;
        Specified by:
        hasLanguage in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the language field is set.
      • getLanguageBytes

        public com.google.protobuf.ByteString getLanguageBytes()
         Browser language using ISO-639-1-alpha-2.
         
        optional string language = 11;
        Specified by:
        getLanguageBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for language.
      • hasCarrier

        public boolean hasCarrier()
         Carrier or ISP (e.g., "VERIZON") using exchange curated string
         names which should be published to bidders a priori.
         
        optional string carrier = 10;
        Specified by:
        hasCarrier in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the carrier field is set.
      • getCarrier

        public String getCarrier()
         Carrier or ISP (e.g., "VERIZON") using exchange curated string
         names which should be published to bidders a priori.
         
        optional string carrier = 10;
        Specified by:
        getCarrier in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The carrier.
      • getCarrierBytes

        public com.google.protobuf.ByteString getCarrierBytes()
         Carrier or ISP (e.g., "VERIZON") using exchange curated string
         names which should be published to bidders a priori.
         
        optional string carrier = 10;
        Specified by:
        getCarrierBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for carrier.
      • hasMccmnc

        public boolean hasMccmnc()
         Mobile carrier as the concatenated MCC-MNC code (e.g.,
         "310-005" identifies Verizon Wireless CDMA in the USA).
         Refer to https://en.wikipedia.org/wiki/Mobile_country_code
         for further examples. Note that the dash between the MCC
         and MNC parts is required to remove parsing ambiguity.
         
        optional string mccmnc = 30;
        Specified by:
        hasMccmnc in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the mccmnc field is set.
      • getMccmnc

        public String getMccmnc()
         Mobile carrier as the concatenated MCC-MNC code (e.g.,
         "310-005" identifies Verizon Wireless CDMA in the USA).
         Refer to https://en.wikipedia.org/wiki/Mobile_country_code
         for further examples. Note that the dash between the MCC
         and MNC parts is required to remove parsing ambiguity.
         
        optional string mccmnc = 30;
        Specified by:
        getMccmnc in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The mccmnc.
      • getMccmncBytes

        public com.google.protobuf.ByteString getMccmncBytes()
         Mobile carrier as the concatenated MCC-MNC code (e.g.,
         "310-005" identifies Verizon Wireless CDMA in the USA).
         Refer to https://en.wikipedia.org/wiki/Mobile_country_code
         for further examples. Note that the dash between the MCC
         and MNC parts is required to remove parsing ambiguity.
         
        optional string mccmnc = 30;
        Specified by:
        getMccmncBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for mccmnc.
      • hasConnectiontype

        public boolean hasConnectiontype()
         Network connection type.
         
        optional .com.google.openrtb.ConnectionType connectiontype = 17;
        Specified by:
        hasConnectiontype in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the connectiontype field is set.
      • hasIfa

        public boolean hasIfa()
         ID sanctioned for advertiser use in the clear (i.e., not hashed).
         
        optional string ifa = 20;
        Specified by:
        hasIfa in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the ifa field is set.
      • getIfaBytes

        public com.google.protobuf.ByteString getIfaBytes()
         ID sanctioned for advertiser use in the clear (i.e., not hashed).
         
        optional string ifa = 20;
        Specified by:
        getIfaBytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for ifa.
      • hasDidsha1

        public boolean hasDidsha1()
         Hardware device ID (e.g., IMEI); hashed via SHA1.
         
        optional string didsha1 = 5;
        Specified by:
        hasDidsha1 in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the didsha1 field is set.
      • getDidsha1Bytes

        public com.google.protobuf.ByteString getDidsha1Bytes()
         Hardware device ID (e.g., IMEI); hashed via SHA1.
         
        optional string didsha1 = 5;
        Specified by:
        getDidsha1Bytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for didsha1.
      • hasDidmd5

        public boolean hasDidmd5()
         Hardware device ID (e.g., IMEI); hashed via MD5.
         
        optional string didmd5 = 6;
        Specified by:
        hasDidmd5 in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the didmd5 field is set.
      • getDidmd5Bytes

        public com.google.protobuf.ByteString getDidmd5Bytes()
         Hardware device ID (e.g., IMEI); hashed via MD5.
         
        optional string didmd5 = 6;
        Specified by:
        getDidmd5Bytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for didmd5.
      • hasDpidsha1

        public boolean hasDpidsha1()
         Platform device ID (e.g., Android ID); hashed via SHA1.
         
        optional string dpidsha1 = 7;
        Specified by:
        hasDpidsha1 in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the dpidsha1 field is set.
      • getDpidsha1Bytes

        public com.google.protobuf.ByteString getDpidsha1Bytes()
         Platform device ID (e.g., Android ID); hashed via SHA1.
         
        optional string dpidsha1 = 7;
        Specified by:
        getDpidsha1Bytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for dpidsha1.
      • hasDpidmd5

        public boolean hasDpidmd5()
         Platform device ID (e.g., Android ID); hashed via MD5.
         
        optional string dpidmd5 = 8;
        Specified by:
        hasDpidmd5 in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the dpidmd5 field is set.
      • getDpidmd5Bytes

        public com.google.protobuf.ByteString getDpidmd5Bytes()
         Platform device ID (e.g., Android ID); hashed via MD5.
         
        optional string dpidmd5 = 8;
        Specified by:
        getDpidmd5Bytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for dpidmd5.
      • hasMacsha1

        public boolean hasMacsha1()
         MAC address of the device; hashed via SHA1.
         
        optional string macsha1 = 21;
        Specified by:
        hasMacsha1 in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the macsha1 field is set.
      • getMacsha1Bytes

        public com.google.protobuf.ByteString getMacsha1Bytes()
         MAC address of the device; hashed via SHA1.
         
        optional string macsha1 = 21;
        Specified by:
        getMacsha1Bytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for macsha1.
      • hasMacmd5

        public boolean hasMacmd5()
         MAC address of the device; hashed via MD5.
         
        optional string macmd5 = 22;
        Specified by:
        hasMacmd5 in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        Whether the macmd5 field is set.
      • getMacmd5Bytes

        public com.google.protobuf.ByteString getMacmd5Bytes()
         MAC address of the device; hashed via MD5.
         
        optional string macmd5 = 22;
        Specified by:
        getMacmd5Bytes in interface OpenRtb.BidRequest.DeviceOrBuilder
        Returns:
        The bytes for macmd5.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.BidRequest.Device>
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static OpenRtb.BidRequest.Device parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.BidRequest.Device parseFrom​(ByteBuffer data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.BidRequest.Device parseFrom​(com.google.protobuf.ByteString data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.BidRequest.Device parseFrom​(com.google.protobuf.ByteString data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.BidRequest.Device parseFrom​(byte[] data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.BidRequest.Device parseFrom​(byte[] data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public OpenRtb.BidRequest.Device.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public OpenRtb.BidRequest.Device.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected OpenRtb.BidRequest.Device.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<OpenRtb.BidRequest.Device> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public OpenRtb.BidRequest.Device getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Device>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder