Class AdxExt.DeviceExt.UserAgent

  • All Implemented Interfaces:
    AdxExt.DeviceExt.UserAgentOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    AdxExt.DeviceExt

    public static final class AdxExt.DeviceExt.UserAgent
    extends com.google.protobuf.GeneratedMessageV3
    implements AdxExt.DeviceExt.UserAgentOrBuilder
     Structured user agent information, which can be used when a client
     supports User-Agent Client Hints: https://wicg.github.io/ua-client-hints/
     Note: When available, fields are sourced from Client Hints HTTP headers
     or equivalent JavaScript accessors from the NavigatorUAData interface.
     For agents that have no support for User-Agent Client Hints, an exchange
     can also extract information from the parsed User-Agent header, so this
     object can always be used as the source of the user agent information.
     
    Protobuf type com.google.doubleclick.DeviceExt.UserAgent
    See Also:
    Serialized Form
    • 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
      • hasDEPRECATEDBrowser

        @Deprecated
        public boolean hasDEPRECATEDBrowser()
        Deprecated.
        com.google.doubleclick.DeviceExt.UserAgent.DEPRECATED_browser is deprecated. See openrtb-adx.proto;l=950
         Identifies the browser. Use the new field browsers.
         
        optional .com.google.doubleclick.DeviceExt.UserAgent.BrandVersion DEPRECATED_browser = 1 [deprecated = true];
        Specified by:
        hasDEPRECATEDBrowser in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        Whether the dEPRECATEDBrowser field is set.
      • getBrowsersCount

        public int getBrowsersCount()
         Each BrandVersion object identifies a browser or similar software
         component. Exchanges should send brands and versions derived from
         the Sec-CH-UA-Full-Version-List header.
         
        repeated .com.google.doubleclick.DeviceExt.UserAgent.BrandVersion browsers = 8;
        Specified by:
        getBrowsersCount in interface AdxExt.DeviceExt.UserAgentOrBuilder
      • hasPlatform

        public boolean hasPlatform()
         Identifies the user agent's execution platform / OS. Exchanges should
         send a brand derived from the Sec-CH-UA-Platform header, and version
         derived from the Sec-CH-UAPlatform-Version header.
         
        optional .com.google.doubleclick.DeviceExt.UserAgent.BrandVersion platform = 2;
        Specified by:
        hasPlatform in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        Whether the platform field is set.
      • getPlatform

        public AdxExt.DeviceExt.UserAgent.BrandVersion getPlatform()
         Identifies the user agent's execution platform / OS. Exchanges should
         send a brand derived from the Sec-CH-UA-Platform header, and version
         derived from the Sec-CH-UAPlatform-Version header.
         
        optional .com.google.doubleclick.DeviceExt.UserAgent.BrandVersion platform = 2;
        Specified by:
        getPlatform in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        The platform.
      • hasMobile

        public boolean hasMobile()
         True if the agent prefers a "mobile" version of the content if
         available, i.e. optimized for small screens or touch input. False if
         the agent prefers the "desktop" or "full" content. Exchanges should
         derive this value from the Sec-CH-UAMobile header.
         
        optional bool mobile = 3;
        Specified by:
        hasMobile in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        Whether the mobile field is set.
      • getMobile

        public boolean getMobile()
         True if the agent prefers a "mobile" version of the content if
         available, i.e. optimized for small screens or touch input. False if
         the agent prefers the "desktop" or "full" content. Exchanges should
         derive this value from the Sec-CH-UAMobile header.
         
        optional bool mobile = 3;
        Specified by:
        getMobile in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        The mobile.
      • hasArchitecture

        public boolean hasArchitecture()
         Device's major binary architecture, e.g. "x86" or "arm". Exchanges
         should retrieve this value from the Sec-CH-UA-Arch header.
         
        optional string architecture = 4;
        Specified by:
        hasArchitecture in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        Whether the architecture field is set.
      • getArchitecture

        public String getArchitecture()
         Device's major binary architecture, e.g. "x86" or "arm". Exchanges
         should retrieve this value from the Sec-CH-UA-Arch header.
         
        optional string architecture = 4;
        Specified by:
        getArchitecture in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        The architecture.
      • getArchitectureBytes

        public com.google.protobuf.ByteString getArchitectureBytes()
         Device's major binary architecture, e.g. "x86" or "arm". Exchanges
         should retrieve this value from the Sec-CH-UA-Arch header.
         
        optional string architecture = 4;
        Specified by:
        getArchitectureBytes in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        The bytes for architecture.
      • hasBitness

        public boolean hasBitness()
         Device's bitness, e.g. "64" for 64-bit architecture. Exchanges should
         retrieve this value from the Sec-CH-UA-Bitness header.
         
        optional string bitness = 9;
        Specified by:
        hasBitness in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        Whether the bitness field is set.
      • getBitness

        public String getBitness()
         Device's bitness, e.g. "64" for 64-bit architecture. Exchanges should
         retrieve this value from the Sec-CH-UA-Bitness header.
         
        optional string bitness = 9;
        Specified by:
        getBitness in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        The bitness.
      • getBitnessBytes

        public com.google.protobuf.ByteString getBitnessBytes()
         Device's bitness, e.g. "64" for 64-bit architecture. Exchanges should
         retrieve this value from the Sec-CH-UA-Bitness header.
         
        optional string bitness = 9;
        Specified by:
        getBitnessBytes in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        The bytes for bitness.
      • hasModel

        public boolean hasModel()
         Device model. Exchanges should retrieve this value from the
         Sec-CH-UAModel header.
         
        optional string model = 5;
        Specified by:
        hasModel in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        Whether the model field is set.
      • getModelBytes

        public com.google.protobuf.ByteString getModelBytes()
         Device model. Exchanges should retrieve this value from the
         Sec-CH-UAModel header.
         
        optional string model = 5;
        Specified by:
        getModelBytes in interface AdxExt.DeviceExt.UserAgentOrBuilder
        Returns:
        The bytes for model.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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 AdxExt.DeviceExt.UserAgent parseFrom​(ByteBuffer data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AdxExt.DeviceExt.UserAgent parseFrom​(ByteBuffer data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AdxExt.DeviceExt.UserAgent parseFrom​(com.google.protobuf.ByteString data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AdxExt.DeviceExt.UserAgent parseFrom​(com.google.protobuf.ByteString data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AdxExt.DeviceExt.UserAgent parseFrom​(byte[] data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AdxExt.DeviceExt.UserAgent parseFrom​(byte[] data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public AdxExt.DeviceExt.UserAgent.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AdxExt.DeviceExt.UserAgent.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AdxExt.DeviceExt.UserAgent.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AdxExt.DeviceExt.UserAgent> 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 AdxExt.DeviceExt.UserAgent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder