Class OpenRtb.BidRequest.Imp.Audio.Builder

  • All Implemented Interfaces:
    OpenRtb.BidRequest.Imp.AudioOrBuilder, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Imp.Audio>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    OpenRtb.BidRequest.Imp.Audio

    public static final class OpenRtb.BidRequest.Imp.Audio.Builder
    extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Audio,​OpenRtb.BidRequest.Imp.Audio.Builder>
    implements OpenRtb.BidRequest.Imp.AudioOrBuilder
     This object represents an audio type impression. Many of the fields
     are non-essential for minimally viable transactions, but are included
     to offer fine control when needed. Audio in OpenRTB generally assumes
     compliance with the DAAST standard. As such, the notion of companion
     ads is supported by optionally including an array of Banner objects
     that define these companion ads.
     The presence of a Audio as a subordinate of the Imp object indicates
     that this impression is offered as an audio type impression.
     At the publisher's discretion, that same impression may also be offered
     as banner, video, and/or native by also including as Imp subordinates
     objects of those types. However, any given bid for the impression must
     conform to one of the offered types.
     
    Protobuf type com.google.openrtb.BidRequest.Imp.Audio
    • 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.BidRequest.Imp.Audio.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.BidRequest.Imp.Audio.Builder>
      • getDefaultInstanceForType

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

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

        public OpenRtb.BidRequest.Imp.Audio buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public OpenRtb.BidRequest.Imp.Audio.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.BidRequest.Imp.Audio.Builder>
        Throws:
        IOException
      • getMimesList

        public com.google.protobuf.ProtocolStringList getMimesList()
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Specified by:
        getMimesList in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        A list containing the mimes.
      • getMimesCount

        public int getMimesCount()
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Specified by:
        getMimesCount in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The count of mimes.
      • getMimes

        public String getMimes​(int index)
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Specified by:
        getMimes in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The mimes at the given index.
      • getMimesBytes

        public com.google.protobuf.ByteString getMimesBytes​(int index)
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Specified by:
        getMimesBytes in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mimes at the given index.
      • setMimes

        public OpenRtb.BidRequest.Imp.Audio.Builder setMimes​(int index,
                                                             String value)
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Parameters:
        index - The index to set the value at.
        value - The mimes to set.
        Returns:
        This builder for chaining.
      • addMimes

        public OpenRtb.BidRequest.Imp.Audio.Builder addMimes​(String value)
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Parameters:
        value - The mimes to add.
        Returns:
        This builder for chaining.
      • addAllMimes

        public OpenRtb.BidRequest.Imp.Audio.Builder addAllMimes​(Iterable<String> values)
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Parameters:
        values - The mimes to add.
        Returns:
        This builder for chaining.
      • clearMimes

        public OpenRtb.BidRequest.Imp.Audio.Builder clearMimes()
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Returns:
        This builder for chaining.
      • addMimesBytes

        public OpenRtb.BidRequest.Imp.Audio.Builder addMimesBytes​(com.google.protobuf.ByteString value)
         Content MIME types supported (e.g., "audio/mp4").
         REQUIRED by the OpenRTB specification: at least 1 element.
         
        repeated string mimes = 1;
        Parameters:
        value - The bytes of the mimes to add.
        Returns:
        This builder for chaining.
      • hasMinduration

        public boolean hasMinduration()
         Minimum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 minduration = 2 [default = 0];
        Specified by:
        hasMinduration in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the minduration field is set.
      • getMinduration

        public int getMinduration()
         Minimum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 minduration = 2 [default = 0];
        Specified by:
        getMinduration in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The minduration.
      • setMinduration

        public OpenRtb.BidRequest.Imp.Audio.Builder setMinduration​(int value)
         Minimum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 minduration = 2 [default = 0];
        Parameters:
        value - The minduration to set.
        Returns:
        This builder for chaining.
      • clearMinduration

        public OpenRtb.BidRequest.Imp.Audio.Builder clearMinduration()
         Minimum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 minduration = 2 [default = 0];
        Returns:
        This builder for chaining.
      • hasMaxduration

        public boolean hasMaxduration()
         Maximum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 maxduration = 3;
        Specified by:
        hasMaxduration in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the maxduration field is set.
      • getMaxduration

        public int getMaxduration()
         Maximum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 maxduration = 3;
        Specified by:
        getMaxduration in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The maxduration.
      • setMaxduration

        public OpenRtb.BidRequest.Imp.Audio.Builder setMaxduration​(int value)
         Maximum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 maxduration = 3;
        Parameters:
        value - The maxduration to set.
        Returns:
        This builder for chaining.
      • clearMaxduration

        public OpenRtb.BidRequest.Imp.Audio.Builder clearMaxduration()
         Maximum audio ad duration in seconds.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 maxduration = 3;
        Returns:
        This builder for chaining.
      • getProtocolsCount

        public int getProtocolsCount()
         Array of supported audio protocols.
         RECOMMENDED by the OpenRTB specification.
         
        repeated .com.google.openrtb.Protocol protocols = 4 [packed = true];
        Specified by:
        getProtocolsCount in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The count of protocols.
      • getProtocols

        public OpenRtb.Protocol getProtocols​(int index)
         Array of supported audio protocols.
         RECOMMENDED by the OpenRTB specification.
         
        repeated .com.google.openrtb.Protocol protocols = 4 [packed = true];
        Specified by:
        getProtocols in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The protocols at the given index.
      • setProtocols

        public OpenRtb.BidRequest.Imp.Audio.Builder setProtocols​(int index,
                                                                 OpenRtb.Protocol value)
         Array of supported audio protocols.
         RECOMMENDED by the OpenRTB specification.
         
        repeated .com.google.openrtb.Protocol protocols = 4 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The protocols to set.
        Returns:
        This builder for chaining.
      • addProtocols

        public OpenRtb.BidRequest.Imp.Audio.Builder addProtocols​(OpenRtb.Protocol value)
         Array of supported audio protocols.
         RECOMMENDED by the OpenRTB specification.
         
        repeated .com.google.openrtb.Protocol protocols = 4 [packed = true];
        Parameters:
        value - The protocols to add.
        Returns:
        This builder for chaining.
      • addAllProtocols

        public OpenRtb.BidRequest.Imp.Audio.Builder addAllProtocols​(Iterable<? extends OpenRtb.Protocol> values)
         Array of supported audio protocols.
         RECOMMENDED by the OpenRTB specification.
         
        repeated .com.google.openrtb.Protocol protocols = 4 [packed = true];
        Parameters:
        values - The protocols to add.
        Returns:
        This builder for chaining.
      • clearProtocols

        public OpenRtb.BidRequest.Imp.Audio.Builder clearProtocols()
         Array of supported audio protocols.
         RECOMMENDED by the OpenRTB specification.
         
        repeated .com.google.openrtb.Protocol protocols = 4 [packed = true];
        Returns:
        This builder for chaining.
      • hasStartdelay

        public boolean hasStartdelay()
         Indicates the start delay in seconds for pre-roll, mid-roll, or
         post-roll ad placements.
         Refer to enum StartDelay for generic values.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 startdelay = 5;
        Specified by:
        hasStartdelay in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the startdelay field is set.
      • getStartdelay

        public int getStartdelay()
         Indicates the start delay in seconds for pre-roll, mid-roll, or
         post-roll ad placements.
         Refer to enum StartDelay for generic values.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 startdelay = 5;
        Specified by:
        getStartdelay in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The startdelay.
      • setStartdelay

        public OpenRtb.BidRequest.Imp.Audio.Builder setStartdelay​(int value)
         Indicates the start delay in seconds for pre-roll, mid-roll, or
         post-roll ad placements.
         Refer to enum StartDelay for generic values.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 startdelay = 5;
        Parameters:
        value - The startdelay to set.
        Returns:
        This builder for chaining.
      • clearStartdelay

        public OpenRtb.BidRequest.Imp.Audio.Builder clearStartdelay()
         Indicates the start delay in seconds for pre-roll, mid-roll, or
         post-roll ad placements.
         Refer to enum StartDelay for generic values.
         RECOMMENDED by the OpenRTB specification.
         
        optional int32 startdelay = 5;
        Returns:
        This builder for chaining.
      • hasSequence

        public boolean hasSequence()
         If multiple ad impressions are offered in the same bid request,
         the sequence number will allow for the coordinated delivery of
         multiple creatives.
         
        optional int32 sequence = 6 [default = 1];
        Specified by:
        hasSequence in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the sequence field is set.
      • getSequence

        public int getSequence()
         If multiple ad impressions are offered in the same bid request,
         the sequence number will allow for the coordinated delivery of
         multiple creatives.
         
        optional int32 sequence = 6 [default = 1];
        Specified by:
        getSequence in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The sequence.
      • setSequence

        public OpenRtb.BidRequest.Imp.Audio.Builder setSequence​(int value)
         If multiple ad impressions are offered in the same bid request,
         the sequence number will allow for the coordinated delivery of
         multiple creatives.
         
        optional int32 sequence = 6 [default = 1];
        Parameters:
        value - The sequence to set.
        Returns:
        This builder for chaining.
      • clearSequence

        public OpenRtb.BidRequest.Imp.Audio.Builder clearSequence()
         If multiple ad impressions are offered in the same bid request,
         the sequence number will allow for the coordinated delivery of
         multiple creatives.
         
        optional int32 sequence = 6 [default = 1];
        Returns:
        This builder for chaining.
      • getBattrCount

        public int getBattrCount()
         Blocked creative attributes.
         
        repeated .com.google.openrtb.CreativeAttribute battr = 7 [packed = true];
        Specified by:
        getBattrCount in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The count of battr.
      • setBattr

        public OpenRtb.BidRequest.Imp.Audio.Builder setBattr​(int index,
                                                             OpenRtb.CreativeAttribute value)
         Blocked creative attributes.
         
        repeated .com.google.openrtb.CreativeAttribute battr = 7 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The battr to set.
        Returns:
        This builder for chaining.
      • clearBattr

        public OpenRtb.BidRequest.Imp.Audio.Builder clearBattr()
         Blocked creative attributes.
         
        repeated .com.google.openrtb.CreativeAttribute battr = 7 [packed = true];
        Returns:
        This builder for chaining.
      • hasMaxextended

        public boolean hasMaxextended()
         Maximum extended video ad duration, if extension is allowed.
         If blank or 0, extension is not allowed. If -1, extension is allowed,
         and there is no time limit imposed. If greater than 0, then the value
         represents the number of seconds of extended play supported beyond
         the maxduration value.
         
        optional int32 maxextended = 8;
        Specified by:
        hasMaxextended in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the maxextended field is set.
      • getMaxextended

        public int getMaxextended()
         Maximum extended video ad duration, if extension is allowed.
         If blank or 0, extension is not allowed. If -1, extension is allowed,
         and there is no time limit imposed. If greater than 0, then the value
         represents the number of seconds of extended play supported beyond
         the maxduration value.
         
        optional int32 maxextended = 8;
        Specified by:
        getMaxextended in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The maxextended.
      • setMaxextended

        public OpenRtb.BidRequest.Imp.Audio.Builder setMaxextended​(int value)
         Maximum extended video ad duration, if extension is allowed.
         If blank or 0, extension is not allowed. If -1, extension is allowed,
         and there is no time limit imposed. If greater than 0, then the value
         represents the number of seconds of extended play supported beyond
         the maxduration value.
         
        optional int32 maxextended = 8;
        Parameters:
        value - The maxextended to set.
        Returns:
        This builder for chaining.
      • clearMaxextended

        public OpenRtb.BidRequest.Imp.Audio.Builder clearMaxextended()
         Maximum extended video ad duration, if extension is allowed.
         If blank or 0, extension is not allowed. If -1, extension is allowed,
         and there is no time limit imposed. If greater than 0, then the value
         represents the number of seconds of extended play supported beyond
         the maxduration value.
         
        optional int32 maxextended = 8;
        Returns:
        This builder for chaining.
      • setMinbitrate

        public OpenRtb.BidRequest.Imp.Audio.Builder setMinbitrate​(int value)
         Minimum bit rate in Kbps.
         
        optional int32 minbitrate = 9;
        Parameters:
        value - The minbitrate to set.
        Returns:
        This builder for chaining.
      • setMaxbitrate

        public OpenRtb.BidRequest.Imp.Audio.Builder setMaxbitrate​(int value)
         Maximum bit rate in Kbps.
         
        optional int32 maxbitrate = 10;
        Parameters:
        value - The maxbitrate to set.
        Returns:
        This builder for chaining.
      • getDeliveryCount

        public int getDeliveryCount()
         Supported delivery methods (e.g., streaming, progressive).
         If none specified, assume all are supported.
         
        repeated .com.google.openrtb.ContentDeliveryMethod delivery = 11 [packed = true];
        Specified by:
        getDeliveryCount in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The count of delivery.
      • getDelivery

        public OpenRtb.ContentDeliveryMethod getDelivery​(int index)
         Supported delivery methods (e.g., streaming, progressive).
         If none specified, assume all are supported.
         
        repeated .com.google.openrtb.ContentDeliveryMethod delivery = 11 [packed = true];
        Specified by:
        getDelivery in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The delivery at the given index.
      • setDelivery

        public OpenRtb.BidRequest.Imp.Audio.Builder setDelivery​(int index,
                                                                OpenRtb.ContentDeliveryMethod value)
         Supported delivery methods (e.g., streaming, progressive).
         If none specified, assume all are supported.
         
        repeated .com.google.openrtb.ContentDeliveryMethod delivery = 11 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The delivery to set.
        Returns:
        This builder for chaining.
      • addDelivery

        public OpenRtb.BidRequest.Imp.Audio.Builder addDelivery​(OpenRtb.ContentDeliveryMethod value)
         Supported delivery methods (e.g., streaming, progressive).
         If none specified, assume all are supported.
         
        repeated .com.google.openrtb.ContentDeliveryMethod delivery = 11 [packed = true];
        Parameters:
        value - The delivery to add.
        Returns:
        This builder for chaining.
      • addAllDelivery

        public OpenRtb.BidRequest.Imp.Audio.Builder addAllDelivery​(Iterable<? extends OpenRtb.ContentDeliveryMethod> values)
         Supported delivery methods (e.g., streaming, progressive).
         If none specified, assume all are supported.
         
        repeated .com.google.openrtb.ContentDeliveryMethod delivery = 11 [packed = true];
        Parameters:
        values - The delivery to add.
        Returns:
        This builder for chaining.
      • clearDelivery

        public OpenRtb.BidRequest.Imp.Audio.Builder clearDelivery()
         Supported delivery methods (e.g., streaming, progressive).
         If none specified, assume all are supported.
         
        repeated .com.google.openrtb.ContentDeliveryMethod delivery = 11 [packed = true];
        Returns:
        This builder for chaining.
      • clearCompanionad

        public OpenRtb.BidRequest.Imp.Audio.Builder clearCompanionad()
         Array of Banner objects if companion ads are available.
         
        repeated .com.google.openrtb.BidRequest.Imp.Banner companionad = 12;
      • removeCompanionad

        public OpenRtb.BidRequest.Imp.Audio.Builder removeCompanionad​(int index)
         Array of Banner objects if companion ads are available.
         
        repeated .com.google.openrtb.BidRequest.Imp.Banner companionad = 12;
      • getCompanionadBuilder

        public OpenRtb.BidRequest.Imp.Banner.Builder getCompanionadBuilder​(int index)
         Array of Banner objects if companion ads are available.
         
        repeated .com.google.openrtb.BidRequest.Imp.Banner companionad = 12;
      • addCompanionadBuilder

        public OpenRtb.BidRequest.Imp.Banner.Builder addCompanionadBuilder()
         Array of Banner objects if companion ads are available.
         
        repeated .com.google.openrtb.BidRequest.Imp.Banner companionad = 12;
      • addCompanionadBuilder

        public OpenRtb.BidRequest.Imp.Banner.Builder addCompanionadBuilder​(int index)
         Array of Banner objects if companion ads are available.
         
        repeated .com.google.openrtb.BidRequest.Imp.Banner companionad = 12;
      • getCompanionadBuilderList

        public List<OpenRtb.BidRequest.Imp.Banner.Builder> getCompanionadBuilderList()
         Array of Banner objects if companion ads are available.
         
        repeated .com.google.openrtb.BidRequest.Imp.Banner companionad = 12;
      • getApiList

        public List<OpenRtb.APIFramework> getApiList()
         List of supported API frameworks for this impression.
         If an API is not explicitly listed, it is assumed not to be supported.
         
        repeated .com.google.openrtb.APIFramework api = 13 [packed = true];
        Specified by:
        getApiList in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        A list containing the api.
      • getApiCount

        public int getApiCount()
         List of supported API frameworks for this impression.
         If an API is not explicitly listed, it is assumed not to be supported.
         
        repeated .com.google.openrtb.APIFramework api = 13 [packed = true];
        Specified by:
        getApiCount in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The count of api.
      • getApi

        public OpenRtb.APIFramework getApi​(int index)
         List of supported API frameworks for this impression.
         If an API is not explicitly listed, it is assumed not to be supported.
         
        repeated .com.google.openrtb.APIFramework api = 13 [packed = true];
        Specified by:
        getApi in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The api at the given index.
      • setApi

        public OpenRtb.BidRequest.Imp.Audio.Builder setApi​(int index,
                                                           OpenRtb.APIFramework value)
         List of supported API frameworks for this impression.
         If an API is not explicitly listed, it is assumed not to be supported.
         
        repeated .com.google.openrtb.APIFramework api = 13 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The api to set.
        Returns:
        This builder for chaining.
      • addApi

        public OpenRtb.BidRequest.Imp.Audio.Builder addApi​(OpenRtb.APIFramework value)
         List of supported API frameworks for this impression.
         If an API is not explicitly listed, it is assumed not to be supported.
         
        repeated .com.google.openrtb.APIFramework api = 13 [packed = true];
        Parameters:
        value - The api to add.
        Returns:
        This builder for chaining.
      • addAllApi

        public OpenRtb.BidRequest.Imp.Audio.Builder addAllApi​(Iterable<? extends OpenRtb.APIFramework> values)
         List of supported API frameworks for this impression.
         If an API is not explicitly listed, it is assumed not to be supported.
         
        repeated .com.google.openrtb.APIFramework api = 13 [packed = true];
        Parameters:
        values - The api to add.
        Returns:
        This builder for chaining.
      • clearApi

        public OpenRtb.BidRequest.Imp.Audio.Builder clearApi()
         List of supported API frameworks for this impression.
         If an API is not explicitly listed, it is assumed not to be supported.
         
        repeated .com.google.openrtb.APIFramework api = 13 [packed = true];
        Returns:
        This builder for chaining.
      • getCompaniontypeList

        public List<OpenRtb.CompanionType> getCompaniontypeList()
         Supported DAAST companion ad types.  Recommended if companion Banner
         objects are included via the companionad array.
         
        repeated .com.google.openrtb.CompanionType companiontype = 20 [packed = true];
        Specified by:
        getCompaniontypeList in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        A list containing the companiontype.
      • getCompaniontypeCount

        public int getCompaniontypeCount()
         Supported DAAST companion ad types.  Recommended if companion Banner
         objects are included via the companionad array.
         
        repeated .com.google.openrtb.CompanionType companiontype = 20 [packed = true];
        Specified by:
        getCompaniontypeCount in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The count of companiontype.
      • getCompaniontype

        public OpenRtb.CompanionType getCompaniontype​(int index)
         Supported DAAST companion ad types.  Recommended if companion Banner
         objects are included via the companionad array.
         
        repeated .com.google.openrtb.CompanionType companiontype = 20 [packed = true];
        Specified by:
        getCompaniontype in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The companiontype at the given index.
      • setCompaniontype

        public OpenRtb.BidRequest.Imp.Audio.Builder setCompaniontype​(int index,
                                                                     OpenRtb.CompanionType value)
         Supported DAAST companion ad types.  Recommended if companion Banner
         objects are included via the companionad array.
         
        repeated .com.google.openrtb.CompanionType companiontype = 20 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The companiontype to set.
        Returns:
        This builder for chaining.
      • addCompaniontype

        public OpenRtb.BidRequest.Imp.Audio.Builder addCompaniontype​(OpenRtb.CompanionType value)
         Supported DAAST companion ad types.  Recommended if companion Banner
         objects are included via the companionad array.
         
        repeated .com.google.openrtb.CompanionType companiontype = 20 [packed = true];
        Parameters:
        value - The companiontype to add.
        Returns:
        This builder for chaining.
      • addAllCompaniontype

        public OpenRtb.BidRequest.Imp.Audio.Builder addAllCompaniontype​(Iterable<? extends OpenRtb.CompanionType> values)
         Supported DAAST companion ad types.  Recommended if companion Banner
         objects are included via the companionad array.
         
        repeated .com.google.openrtb.CompanionType companiontype = 20 [packed = true];
        Parameters:
        values - The companiontype to add.
        Returns:
        This builder for chaining.
      • clearCompaniontype

        public OpenRtb.BidRequest.Imp.Audio.Builder clearCompaniontype()
         Supported DAAST companion ad types.  Recommended if companion Banner
         objects are included via the companionad array.
         
        repeated .com.google.openrtb.CompanionType companiontype = 20 [packed = true];
        Returns:
        This builder for chaining.
      • hasMaxseq

        public boolean hasMaxseq()
         The maximum number of ads that can be played in an ad pod.
         
        optional int32 maxseq = 21;
        Specified by:
        hasMaxseq in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the maxseq field is set.
      • setMaxseq

        public OpenRtb.BidRequest.Imp.Audio.Builder setMaxseq​(int value)
         The maximum number of ads that can be played in an ad pod.
         
        optional int32 maxseq = 21;
        Parameters:
        value - The maxseq to set.
        Returns:
        This builder for chaining.
      • clearMaxseq

        public OpenRtb.BidRequest.Imp.Audio.Builder clearMaxseq()
         The maximum number of ads that can be played in an ad pod.
         
        optional int32 maxseq = 21;
        Returns:
        This builder for chaining.
      • hasFeed

        public boolean hasFeed()
         Type of audio feed.
         
        optional .com.google.openrtb.FeedType feed = 22;
        Specified by:
        hasFeed in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the feed field is set.
      • hasStitched

        public boolean hasStitched()
         Indicates if the ad is stitched with audio content or delivered
         independently.
         
        optional bool stitched = 23;
        Specified by:
        hasStitched in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the stitched field is set.
      • getStitched

        public boolean getStitched()
         Indicates if the ad is stitched with audio content or delivered
         independently.
         
        optional bool stitched = 23;
        Specified by:
        getStitched in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        The stitched.
      • setStitched

        public OpenRtb.BidRequest.Imp.Audio.Builder setStitched​(boolean value)
         Indicates if the ad is stitched with audio content or delivered
         independently.
         
        optional bool stitched = 23;
        Parameters:
        value - The stitched to set.
        Returns:
        This builder for chaining.
      • clearStitched

        public OpenRtb.BidRequest.Imp.Audio.Builder clearStitched()
         Indicates if the ad is stitched with audio content or delivered
         independently.
         
        optional bool stitched = 23;
        Returns:
        This builder for chaining.
      • hasNvol

        public boolean hasNvol()
         Volume normalization mode.
         
        optional .com.google.openrtb.VolumeNormalizationMode nvol = 24;
        Specified by:
        hasNvol in interface OpenRtb.BidRequest.Imp.AudioOrBuilder
        Returns:
        Whether the nvol field is set.
      • clearNvol

        public OpenRtb.BidRequest.Imp.Audio.Builder clearNvol()
         Volume normalization mode.
         
        optional .com.google.openrtb.VolumeNormalizationMode nvol = 24;
        Returns:
        This builder for chaining.