Class AdxExt.DeviceExt.UserAgent.Builder

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

    public static final class AdxExt.DeviceExt.UserAgent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AdxExt.DeviceExt.UserAgent.Builder>
    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
    • Method Detail

      • 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.Builder<AdxExt.DeviceExt.UserAgent.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AdxExt.DeviceExt.UserAgent.Builder>
      • getDefaultInstanceForType

        public AdxExt.DeviceExt.UserAgent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdxExt.DeviceExt.UserAgent.Builder>
      • mergeFrom

        public AdxExt.DeviceExt.UserAgent.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdxExt.DeviceExt.UserAgent.Builder>
        Throws:
        IOException
      • 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.
      • clearDEPRECATEDBrowser

        @Deprecated
        public AdxExt.DeviceExt.UserAgent.Builder clearDEPRECATEDBrowser()
        Deprecated.
         Identifies the browser. Use the new field browsers.
         
        optional .com.google.doubleclick.DeviceExt.UserAgent.BrandVersion DEPRECATED_browser = 1 [deprecated = true];
      • getDEPRECATEDBrowserBuilder

        @Deprecated
        public AdxExt.DeviceExt.UserAgent.BrandVersion.Builder getDEPRECATEDBrowserBuilder()
        Deprecated.
         Identifies the browser. Use the new field browsers.
         
        optional .com.google.doubleclick.DeviceExt.UserAgent.BrandVersion DEPRECATED_browser = 1 [deprecated = true];
      • 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
      • setBrowsers

        public AdxExt.DeviceExt.UserAgent.Builder setBrowsers​(int index,
                                                              AdxExt.DeviceExt.UserAgent.BrandVersion value)
         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;
      • addBrowsers

        public AdxExt.DeviceExt.UserAgent.Builder addBrowsers​(AdxExt.DeviceExt.UserAgent.BrandVersion value)
         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;
      • addBrowsers

        public AdxExt.DeviceExt.UserAgent.Builder addBrowsers​(int index,
                                                              AdxExt.DeviceExt.UserAgent.BrandVersion value)
         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;
      • clearBrowsers

        public AdxExt.DeviceExt.UserAgent.Builder clearBrowsers()
         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;
      • removeBrowsers

        public AdxExt.DeviceExt.UserAgent.Builder removeBrowsers​(int index)
         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;
      • getBrowsersBuilder

        public AdxExt.DeviceExt.UserAgent.BrandVersion.Builder getBrowsersBuilder​(int index)
         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;
      • addBrowsersBuilder

        public AdxExt.DeviceExt.UserAgent.BrandVersion.Builder addBrowsersBuilder()
         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;
      • addBrowsersBuilder

        public AdxExt.DeviceExt.UserAgent.BrandVersion.Builder addBrowsersBuilder​(int index)
         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;
      • getBrowsersBuilderList

        public List<AdxExt.DeviceExt.UserAgent.BrandVersion.Builder> getBrowsersBuilderList()
         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;
      • 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.
      • setPlatform

        public AdxExt.DeviceExt.UserAgent.Builder setPlatform​(AdxExt.DeviceExt.UserAgent.BrandVersion value)
         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;
      • setPlatform

        public AdxExt.DeviceExt.UserAgent.Builder setPlatform​(AdxExt.DeviceExt.UserAgent.BrandVersion.Builder builderForValue)
         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;
      • mergePlatform

        public AdxExt.DeviceExt.UserAgent.Builder mergePlatform​(AdxExt.DeviceExt.UserAgent.BrandVersion value)
         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;
      • clearPlatform

        public AdxExt.DeviceExt.UserAgent.Builder clearPlatform()
         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;
      • getPlatformBuilder

        public AdxExt.DeviceExt.UserAgent.BrandVersion.Builder getPlatformBuilder()
         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;
      • 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.
      • setMobile

        public AdxExt.DeviceExt.UserAgent.Builder setMobile​(boolean value)
         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;
        Parameters:
        value - The mobile to set.
        Returns:
        This builder for chaining.
      • clearMobile

        public AdxExt.DeviceExt.UserAgent.Builder clearMobile()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setArchitecture

        public AdxExt.DeviceExt.UserAgent.Builder setArchitecture​(String value)
         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;
        Parameters:
        value - The architecture to set.
        Returns:
        This builder for chaining.
      • clearArchitecture

        public AdxExt.DeviceExt.UserAgent.Builder clearArchitecture()
         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;
        Returns:
        This builder for chaining.
      • setArchitectureBytes

        public AdxExt.DeviceExt.UserAgent.Builder setArchitectureBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for architecture to set.
        Returns:
        This builder for chaining.
      • 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.
      • setBitness

        public AdxExt.DeviceExt.UserAgent.Builder setBitness​(String value)
         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;
        Parameters:
        value - The bitness to set.
        Returns:
        This builder for chaining.
      • clearBitness

        public AdxExt.DeviceExt.UserAgent.Builder clearBitness()
         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;
        Returns:
        This builder for chaining.
      • setBitnessBytes

        public AdxExt.DeviceExt.UserAgent.Builder setBitnessBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for bitness to set.
        Returns:
        This builder for chaining.
      • 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.
      • setModel

        public AdxExt.DeviceExt.UserAgent.Builder setModel​(String value)
         Device model. Exchanges should retrieve this value from the
         Sec-CH-UAModel header.
         
        optional string model = 5;
        Parameters:
        value - The model to set.
        Returns:
        This builder for chaining.
      • clearModel

        public AdxExt.DeviceExt.UserAgent.Builder clearModel()
         Device model. Exchanges should retrieve this value from the
         Sec-CH-UAModel header.
         
        optional string model = 5;
        Returns:
        This builder for chaining.
      • setModelBytes

        public AdxExt.DeviceExt.UserAgent.Builder setModelBytes​(com.google.protobuf.ByteString value)
         Device model. Exchanges should retrieve this value from the
         Sec-CH-UAModel header.
         
        optional string model = 5;
        Parameters:
        value - The bytes for model to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AdxExt.DeviceExt.UserAgent.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdxExt.DeviceExt.UserAgent.Builder>
      • mergeUnknownFields

        public final AdxExt.DeviceExt.UserAgent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdxExt.DeviceExt.UserAgent.Builder>