Class OpenRtb.NativeRequest.Asset.Image.Builder

    • 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.Asset.Image.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.Asset.Image.Builder>
      • getDefaultInstanceForType

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

        public OpenRtb.NativeRequest.Asset.Image 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.Asset.Image buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • hasType

        public boolean hasType()
         Type ID of the image element supported by the publisher.
         The publisher can display this information in an appropriate format.
         
        optional .com.google.openrtb.ImageAssetType type = 1;
        Specified by:
        hasType in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Returns:
        Whether the type field is set.
      • setType

        public OpenRtb.NativeRequest.Asset.Image.Builder setType​(OpenRtb.ImageAssetType value)
         Type ID of the image element supported by the publisher.
         The publisher can display this information in an appropriate format.
         
        optional .com.google.openrtb.ImageAssetType type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public OpenRtb.NativeRequest.Asset.Image.Builder clearType()
         Type ID of the image element supported by the publisher.
         The publisher can display this information in an appropriate format.
         
        optional .com.google.openrtb.ImageAssetType type = 1;
        Returns:
        This builder for chaining.
      • hasWmin

        public boolean hasWmin()
         The minimum requested width of the image in pixels. This option should
         be used for any rescaling of images by the client. Either w or wmin
         should be transmitted. If only w is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 wmin = 4;
        Specified by:
        hasWmin in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Returns:
        Whether the wmin field is set.
      • getWmin

        public int getWmin()
         The minimum requested width of the image in pixels. This option should
         be used for any rescaling of images by the client. Either w or wmin
         should be transmitted. If only w is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 wmin = 4;
        Specified by:
        getWmin in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Returns:
        The wmin.
      • setWmin

        public OpenRtb.NativeRequest.Asset.Image.Builder setWmin​(int value)
         The minimum requested width of the image in pixels. This option should
         be used for any rescaling of images by the client. Either w or wmin
         should be transmitted. If only w is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 wmin = 4;
        Parameters:
        value - The wmin to set.
        Returns:
        This builder for chaining.
      • clearWmin

        public OpenRtb.NativeRequest.Asset.Image.Builder clearWmin()
         The minimum requested width of the image in pixels. This option should
         be used for any rescaling of images by the client. Either w or wmin
         should be transmitted. If only w is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 wmin = 4;
        Returns:
        This builder for chaining.
      • hasHmin

        public boolean hasHmin()
         The minimum requested height of the image in pixels. This option should
         be used for any rescaling of images by the client. Either h or hmin
         should be transmitted. If only h is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 hmin = 5;
        Specified by:
        hasHmin in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Returns:
        Whether the hmin field is set.
      • getHmin

        public int getHmin()
         The minimum requested height of the image in pixels. This option should
         be used for any rescaling of images by the client. Either h or hmin
         should be transmitted. If only h is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 hmin = 5;
        Specified by:
        getHmin in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Returns:
        The hmin.
      • setHmin

        public OpenRtb.NativeRequest.Asset.Image.Builder setHmin​(int value)
         The minimum requested height of the image in pixels. This option should
         be used for any rescaling of images by the client. Either h or hmin
         should be transmitted. If only h is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 hmin = 5;
        Parameters:
        value - The hmin to set.
        Returns:
        This builder for chaining.
      • clearHmin

        public OpenRtb.NativeRequest.Asset.Image.Builder clearHmin()
         The minimum requested height of the image in pixels. This option should
         be used for any rescaling of images by the client. Either h or hmin
         should be transmitted. If only h is included, it should be considered
         an exact requirement.
         RECOMMENDED by the OpenRTB Native specification.
         
        optional int32 hmin = 5;
        Returns:
        This builder for chaining.
      • getMimesList

        public com.google.protobuf.ProtocolStringList getMimesList()
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Specified by:
        getMimesList in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Returns:
        A list containing the mimes.
      • getMimesCount

        public int getMimesCount()
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Specified by:
        getMimesCount in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Returns:
        The count of mimes.
      • getMimes

        public String getMimes​(int index)
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Specified by:
        getMimes in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        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)
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Specified by:
        getMimesBytes in interface OpenRtb.NativeRequest.Asset.ImageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mimes at the given index.
      • setMimes

        public OpenRtb.NativeRequest.Asset.Image.Builder setMimes​(int index,
                                                                  String value)
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Parameters:
        index - The index to set the value at.
        value - The mimes to set.
        Returns:
        This builder for chaining.
      • addMimes

        public OpenRtb.NativeRequest.Asset.Image.Builder addMimes​(String value)
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Parameters:
        value - The mimes to add.
        Returns:
        This builder for chaining.
      • addAllMimes

        public OpenRtb.NativeRequest.Asset.Image.Builder addAllMimes​(Iterable<String> values)
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Parameters:
        values - The mimes to add.
        Returns:
        This builder for chaining.
      • clearMimes

        public OpenRtb.NativeRequest.Asset.Image.Builder clearMimes()
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Returns:
        This builder for chaining.
      • addMimesBytes

        public OpenRtb.NativeRequest.Asset.Image.Builder addMimesBytes​(com.google.protobuf.ByteString value)
         Allowlist of content MIME types supported. Popular MIME types include,
         but are not limited to "image/jpg" and "image/gif". Each implementing
         Exchange should have their own list of supported types in the
         integration docs. See Wikipedia's MIME page for more information and
         links to all IETF RFCs. If blank, assume all types are allowed.
         
        repeated string mimes = 6;
        Parameters:
        value - The bytes of the mimes to add.
        Returns:
        This builder for chaining.