Class OpenRtb.NativeRequest.Asset.Image

    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeRequest.Asset.Image>
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static OpenRtb.NativeRequest.Asset.Image parseFrom​(ByteBuffer data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.NativeRequest.Asset.Image parseFrom​(com.google.protobuf.ByteString data)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.NativeRequest.Asset.Image parseFrom​(com.google.protobuf.ByteString data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.NativeRequest.Asset.Image parseFrom​(byte[] data)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OpenRtb.NativeRequest.Asset.Image parseFrom​(byte[] data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public OpenRtb.NativeRequest.Asset.Image.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public OpenRtb.NativeRequest.Asset.Image.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected OpenRtb.NativeRequest.Asset.Image.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<OpenRtb.NativeRequest.Asset.Image> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public 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