Class OpenRtb.NativeRequest.Builder

  • All Implemented Interfaces:
    OpenRtb.NativeRequestOrBuilder, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeRequest>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    OpenRtb.NativeRequest

    public static final class OpenRtb.NativeRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.NativeRequest,​OpenRtb.NativeRequest.Builder>
    implements OpenRtb.NativeRequestOrBuilder
     OpenRTB Native 1.0: The Native Object defines the native advertising
     opportunity available for bid via this bid request. It must be included
     directly in the impression object if the impression offered for auction
     is a native ad format.
     
    Protobuf type com.google.openrtb.NativeRequest
    • 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<OpenRtb.NativeRequest.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<OpenRtb.NativeRequest.Builder>
      • getDefaultInstanceForType

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

        public OpenRtb.NativeRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public OpenRtb.NativeRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public OpenRtb.NativeRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.NativeRequest.Builder>
      • clearOneof

        public OpenRtb.NativeRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.NativeRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.NativeRequest,​OpenRtb.NativeRequest.Builder>
      • mergeFrom

        public OpenRtb.NativeRequest.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<OpenRtb.NativeRequest.Builder>
        Throws:
        IOException
      • hasVer

        public boolean hasVer()
         Version of the Native Markup version in use.
         
        optional string ver = 1;
        Specified by:
        hasVer in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the ver field is set.
      • getVerBytes

        public com.google.protobuf.ByteString getVerBytes()
         Version of the Native Markup version in use.
         
        optional string ver = 1;
        Specified by:
        getVerBytes in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The bytes for ver.
      • setVer

        public OpenRtb.NativeRequest.Builder setVer​(String value)
         Version of the Native Markup version in use.
         
        optional string ver = 1;
        Parameters:
        value - The ver to set.
        Returns:
        This builder for chaining.
      • clearVer

        public OpenRtb.NativeRequest.Builder clearVer()
         Version of the Native Markup version in use.
         
        optional string ver = 1;
        Returns:
        This builder for chaining.
      • setVerBytes

        public OpenRtb.NativeRequest.Builder setVerBytes​(com.google.protobuf.ByteString value)
         Version of the Native Markup version in use.
         
        optional string ver = 1;
        Parameters:
        value - The bytes for ver to set.
        Returns:
        This builder for chaining.
      • hasContext

        public boolean hasContext()
         The context in which the ad appears.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional .com.google.openrtb.ContextType context = 7;
        Specified by:
        hasContext in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the context field is set.
      • setContext

        public OpenRtb.NativeRequest.Builder setContext​(OpenRtb.ContextType value)
         The context in which the ad appears.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional .com.google.openrtb.ContextType context = 7;
        Parameters:
        value - The context to set.
        Returns:
        This builder for chaining.
      • clearContext

        public OpenRtb.NativeRequest.Builder clearContext()
         The context in which the ad appears.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional .com.google.openrtb.ContextType context = 7;
        Returns:
        This builder for chaining.
      • hasContextsubtype

        public boolean hasContextsubtype()
         A more detailed context in which the ad appears.
         
        optional .com.google.openrtb.ContextSubtype contextsubtype = 8;
        Specified by:
        hasContextsubtype in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the contextsubtype field is set.
      • setContextsubtype

        public OpenRtb.NativeRequest.Builder setContextsubtype​(OpenRtb.ContextSubtype value)
         A more detailed context in which the ad appears.
         
        optional .com.google.openrtb.ContextSubtype contextsubtype = 8;
        Parameters:
        value - The contextsubtype to set.
        Returns:
        This builder for chaining.
      • clearContextsubtype

        public OpenRtb.NativeRequest.Builder clearContextsubtype()
         A more detailed context in which the ad appears.
         
        optional .com.google.openrtb.ContextSubtype contextsubtype = 8;
        Returns:
        This builder for chaining.
      • hasPlcmttype

        public boolean hasPlcmttype()
         The design/format/layout of the ad unit being offered.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional .com.google.openrtb.PlacementType plcmttype = 9;
        Specified by:
        hasPlcmttype in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the plcmttype field is set.
      • getPlcmttype

        public OpenRtb.PlacementType getPlcmttype()
         The design/format/layout of the ad unit being offered.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional .com.google.openrtb.PlacementType plcmttype = 9;
        Specified by:
        getPlcmttype in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The plcmttype.
      • setPlcmttype

        public OpenRtb.NativeRequest.Builder setPlcmttype​(OpenRtb.PlacementType value)
         The design/format/layout of the ad unit being offered.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional .com.google.openrtb.PlacementType plcmttype = 9;
        Parameters:
        value - The plcmttype to set.
        Returns:
        This builder for chaining.
      • clearPlcmttype

        public OpenRtb.NativeRequest.Builder clearPlcmttype()
         The design/format/layout of the ad unit being offered.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional .com.google.openrtb.PlacementType plcmttype = 9;
        Returns:
        This builder for chaining.
      • hasPlcmtcnt

        public boolean hasPlcmtcnt()
         The number of identical placements in this Layout.
         
        optional int32 plcmtcnt = 4 [default = 1];
        Specified by:
        hasPlcmtcnt in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the plcmtcnt field is set.
      • getPlcmtcnt

        public int getPlcmtcnt()
         The number of identical placements in this Layout.
         
        optional int32 plcmtcnt = 4 [default = 1];
        Specified by:
        getPlcmtcnt in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The plcmtcnt.
      • setPlcmtcnt

        public OpenRtb.NativeRequest.Builder setPlcmtcnt​(int value)
         The number of identical placements in this Layout.
         
        optional int32 plcmtcnt = 4 [default = 1];
        Parameters:
        value - The plcmtcnt to set.
        Returns:
        This builder for chaining.
      • clearPlcmtcnt

        public OpenRtb.NativeRequest.Builder clearPlcmtcnt()
         The number of identical placements in this Layout.
         
        optional int32 plcmtcnt = 4 [default = 1];
        Returns:
        This builder for chaining.
      • hasSeq

        public boolean hasSeq()
         0 for the first ad, 1 for the second ad, and so on. Note this would
         generally NOT be used in combination with plcmtcnt - either you are
         auctioning multiple identical placements (in which case
         plcmtcnt>1, seq=0) or you are holding separate auctions for distinct
         items in the feed (in which case plcmtcnt=1, seq>=1).
         
        optional int32 seq = 5 [default = 0];
        Specified by:
        hasSeq in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the seq field is set.
      • getSeq

        public int getSeq()
         0 for the first ad, 1 for the second ad, and so on. Note this would
         generally NOT be used in combination with plcmtcnt - either you are
         auctioning multiple identical placements (in which case
         plcmtcnt>1, seq=0) or you are holding separate auctions for distinct
         items in the feed (in which case plcmtcnt=1, seq>=1).
         
        optional int32 seq = 5 [default = 0];
        Specified by:
        getSeq in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The seq.
      • setSeq

        public OpenRtb.NativeRequest.Builder setSeq​(int value)
         0 for the first ad, 1 for the second ad, and so on. Note this would
         generally NOT be used in combination with plcmtcnt - either you are
         auctioning multiple identical placements (in which case
         plcmtcnt>1, seq=0) or you are holding separate auctions for distinct
         items in the feed (in which case plcmtcnt=1, seq>=1).
         
        optional int32 seq = 5 [default = 0];
        Parameters:
        value - The seq to set.
        Returns:
        This builder for chaining.
      • clearSeq

        public OpenRtb.NativeRequest.Builder clearSeq()
         0 for the first ad, 1 for the second ad, and so on. Note this would
         generally NOT be used in combination with plcmtcnt - either you are
         auctioning multiple identical placements (in which case
         plcmtcnt>1, seq=0) or you are holding separate auctions for distinct
         items in the feed (in which case plcmtcnt=1, seq>=1).
         
        optional int32 seq = 5 [default = 0];
        Returns:
        This builder for chaining.
      • getAssetsCount

        public int getAssetsCount()
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
        Specified by:
        getAssetsCount in interface OpenRtb.NativeRequestOrBuilder
      • getAssets

        public OpenRtb.NativeRequest.Asset getAssets​(int index)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
        Specified by:
        getAssets in interface OpenRtb.NativeRequestOrBuilder
      • setAssets

        public OpenRtb.NativeRequest.Builder setAssets​(int index,
                                                       OpenRtb.NativeRequest.Asset value)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • setAssets

        public OpenRtb.NativeRequest.Builder setAssets​(int index,
                                                       OpenRtb.NativeRequest.Asset.Builder builderForValue)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • addAssets

        public OpenRtb.NativeRequest.Builder addAssets​(OpenRtb.NativeRequest.Asset value)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • addAssets

        public OpenRtb.NativeRequest.Builder addAssets​(int index,
                                                       OpenRtb.NativeRequest.Asset value)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • addAssets

        public OpenRtb.NativeRequest.Builder addAssets​(int index,
                                                       OpenRtb.NativeRequest.Asset.Builder builderForValue)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • addAllAssets

        public OpenRtb.NativeRequest.Builder addAllAssets​(Iterable<? extends OpenRtb.NativeRequest.Asset> values)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • clearAssets

        public OpenRtb.NativeRequest.Builder clearAssets()
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • removeAssets

        public OpenRtb.NativeRequest.Builder removeAssets​(int index)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • getAssetsBuilder

        public OpenRtb.NativeRequest.Asset.Builder getAssetsBuilder​(int index)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • addAssetsBuilder

        public OpenRtb.NativeRequest.Asset.Builder addAssetsBuilder()
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • addAssetsBuilder

        public OpenRtb.NativeRequest.Asset.Builder addAssetsBuilder​(int index)
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • getAssetsBuilderList

        public List<OpenRtb.NativeRequest.Asset.Builder> getAssetsBuilderList()
         Any bid must comply with the array of elements expressed by the Exchange.
         REQUIRED by the OpenRTB Native specification: at least 1 element.
         
        repeated .com.google.openrtb.NativeRequest.Asset assets = 6;
      • hasAurlsupport

        public boolean hasAurlsupport()
         Whether the supply source / impression supports returning an assetsurl
         instead of an asset object. false or the absence of the field indicates no
         such support.
         
        optional bool aurlsupport = 11;
        Specified by:
        hasAurlsupport in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the aurlsupport field is set.
      • getAurlsupport

        public boolean getAurlsupport()
         Whether the supply source / impression supports returning an assetsurl
         instead of an asset object. false or the absence of the field indicates no
         such support.
         
        optional bool aurlsupport = 11;
        Specified by:
        getAurlsupport in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The aurlsupport.
      • setAurlsupport

        public OpenRtb.NativeRequest.Builder setAurlsupport​(boolean value)
         Whether the supply source / impression supports returning an assetsurl
         instead of an asset object. false or the absence of the field indicates no
         such support.
         
        optional bool aurlsupport = 11;
        Parameters:
        value - The aurlsupport to set.
        Returns:
        This builder for chaining.
      • clearAurlsupport

        public OpenRtb.NativeRequest.Builder clearAurlsupport()
         Whether the supply source / impression supports returning an assetsurl
         instead of an asset object. false or the absence of the field indicates no
         such support.
         
        optional bool aurlsupport = 11;
        Returns:
        This builder for chaining.
      • hasDurlsupport

        public boolean hasDurlsupport()
         Whether the supply source / impression supports returning a DCO URL
         instead of an asset object. false or the absence of the field indicates no
         such support. Beta feature.
         
        optional bool durlsupport = 12;
        Specified by:
        hasDurlsupport in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the durlsupport field is set.
      • getDurlsupport

        public boolean getDurlsupport()
         Whether the supply source / impression supports returning a DCO URL
         instead of an asset object. false or the absence of the field indicates no
         such support. Beta feature.
         
        optional bool durlsupport = 12;
        Specified by:
        getDurlsupport in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The durlsupport.
      • setDurlsupport

        public OpenRtb.NativeRequest.Builder setDurlsupport​(boolean value)
         Whether the supply source / impression supports returning a DCO URL
         instead of an asset object. false or the absence of the field indicates no
         such support. Beta feature.
         
        optional bool durlsupport = 12;
        Parameters:
        value - The durlsupport to set.
        Returns:
        This builder for chaining.
      • clearDurlsupport

        public OpenRtb.NativeRequest.Builder clearDurlsupport()
         Whether the supply source / impression supports returning a DCO URL
         instead of an asset object. false or the absence of the field indicates no
         such support. Beta feature.
         
        optional bool durlsupport = 12;
        Returns:
        This builder for chaining.
      • getEventtrackersCount

        public int getEventtrackersCount()
         Specifies what type of event tracking is supported.
         
        repeated .com.google.openrtb.NativeRequest.EventTrackers eventtrackers = 13;
        Specified by:
        getEventtrackersCount in interface OpenRtb.NativeRequestOrBuilder
      • clearEventtrackers

        public OpenRtb.NativeRequest.Builder clearEventtrackers()
         Specifies what type of event tracking is supported.
         
        repeated .com.google.openrtb.NativeRequest.EventTrackers eventtrackers = 13;
      • removeEventtrackers

        public OpenRtb.NativeRequest.Builder removeEventtrackers​(int index)
         Specifies what type of event tracking is supported.
         
        repeated .com.google.openrtb.NativeRequest.EventTrackers eventtrackers = 13;
      • getEventtrackersBuilder

        public OpenRtb.NativeRequest.EventTrackers.Builder getEventtrackersBuilder​(int index)
         Specifies what type of event tracking is supported.
         
        repeated .com.google.openrtb.NativeRequest.EventTrackers eventtrackers = 13;
      • addEventtrackersBuilder

        public OpenRtb.NativeRequest.EventTrackers.Builder addEventtrackersBuilder()
         Specifies what type of event tracking is supported.
         
        repeated .com.google.openrtb.NativeRequest.EventTrackers eventtrackers = 13;
      • addEventtrackersBuilder

        public OpenRtb.NativeRequest.EventTrackers.Builder addEventtrackersBuilder​(int index)
         Specifies what type of event tracking is supported.
         
        repeated .com.google.openrtb.NativeRequest.EventTrackers eventtrackers = 13;
      • getEventtrackersBuilderList

        public List<OpenRtb.NativeRequest.EventTrackers.Builder> getEventtrackersBuilderList()
         Specifies what type of event tracking is supported.
         
        repeated .com.google.openrtb.NativeRequest.EventTrackers eventtrackers = 13;
      • hasPrivacy

        public boolean hasPrivacy()
         Set to true when the native ad supports buyer-specific privacy notice.
         Set to false (or field absent) when the native ad doesn't support custom
         privacy links or if support is unknown.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional bool privacy = 14;
        Specified by:
        hasPrivacy in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the privacy field is set.
      • getPrivacy

        public boolean getPrivacy()
         Set to true when the native ad supports buyer-specific privacy notice.
         Set to false (or field absent) when the native ad doesn't support custom
         privacy links or if support is unknown.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional bool privacy = 14;
        Specified by:
        getPrivacy in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The privacy.
      • setPrivacy

        public OpenRtb.NativeRequest.Builder setPrivacy​(boolean value)
         Set to true when the native ad supports buyer-specific privacy notice.
         Set to false (or field absent) when the native ad doesn't support custom
         privacy links or if support is unknown.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional bool privacy = 14;
        Parameters:
        value - The privacy to set.
        Returns:
        This builder for chaining.
      • clearPrivacy

        public OpenRtb.NativeRequest.Builder clearPrivacy()
         Set to true when the native ad supports buyer-specific privacy notice.
         Set to false (or field absent) when the native ad doesn't support custom
         privacy links or if support is unknown.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional bool privacy = 14;
        Returns:
        This builder for chaining.
      • hasLayout

        @Deprecated
        public boolean hasLayout()
        Deprecated.
        com.google.openrtb.NativeRequest.layout is deprecated. See openrtb.proto;l=1518
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use field <code>plcmttype</code>.
         
        optional .com.google.openrtb.LayoutId layout = 2 [deprecated = true];
        Specified by:
        hasLayout in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the layout field is set.
      • getLayout

        @Deprecated
        public OpenRtb.LayoutId getLayout()
        Deprecated.
        com.google.openrtb.NativeRequest.layout is deprecated. See openrtb.proto;l=1518
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use field <code>plcmttype</code>.
         
        optional .com.google.openrtb.LayoutId layout = 2 [deprecated = true];
        Specified by:
        getLayout in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The layout.
      • setLayout

        @Deprecated
        public OpenRtb.NativeRequest.Builder setLayout​(OpenRtb.LayoutId value)
        Deprecated.
        com.google.openrtb.NativeRequest.layout is deprecated. See openrtb.proto;l=1518
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use field <code>plcmttype</code>.
         
        optional .com.google.openrtb.LayoutId layout = 2 [deprecated = true];
        Parameters:
        value - The layout to set.
        Returns:
        This builder for chaining.
      • clearLayout

        @Deprecated
        public OpenRtb.NativeRequest.Builder clearLayout()
        Deprecated.
        com.google.openrtb.NativeRequest.layout is deprecated. See openrtb.proto;l=1518
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use field <code>plcmttype</code>.
         
        optional .com.google.openrtb.LayoutId layout = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • hasAdunit

        @Deprecated
        public boolean hasAdunit()
        Deprecated.
        com.google.openrtb.NativeRequest.adunit is deprecated. See openrtb.proto;l=1522
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use fields <code>context</code> and <code>contextsubtype</code>.
         
        optional .com.google.openrtb.AdUnitId adunit = 3 [deprecated = true];
        Specified by:
        hasAdunit in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        Whether the adunit field is set.
      • getAdunit

        @Deprecated
        public OpenRtb.AdUnitId getAdunit()
        Deprecated.
        com.google.openrtb.NativeRequest.adunit is deprecated. See openrtb.proto;l=1522
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use fields <code>context</code> and <code>contextsubtype</code>.
         
        optional .com.google.openrtb.AdUnitId adunit = 3 [deprecated = true];
        Specified by:
        getAdunit in interface OpenRtb.NativeRequestOrBuilder
        Returns:
        The adunit.
      • setAdunit

        @Deprecated
        public OpenRtb.NativeRequest.Builder setAdunit​(OpenRtb.AdUnitId value)
        Deprecated.
        com.google.openrtb.NativeRequest.adunit is deprecated. See openrtb.proto;l=1522
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use fields <code>context</code> and <code>contextsubtype</code>.
         
        optional .com.google.openrtb.AdUnitId adunit = 3 [deprecated = true];
        Parameters:
        value - The adunit to set.
        Returns:
        This builder for chaining.
      • clearAdunit

        @Deprecated
        public OpenRtb.NativeRequest.Builder clearAdunit()
        Deprecated.
        com.google.openrtb.NativeRequest.adunit is deprecated. See openrtb.proto;l=1522
         DEPRECATED in OpenRTB Native 1.1, REMOVED in 1.2+.
         Use fields <code>context</code> and <code>contextsubtype</code>.
         
        optional .com.google.openrtb.AdUnitId adunit = 3 [deprecated = true];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final OpenRtb.NativeRequest.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<OpenRtb.NativeRequest.Builder>
      • mergeUnknownFields

        public final OpenRtb.NativeRequest.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<OpenRtb.NativeRequest.Builder>