Class OpenRtb.NativeResponse.Asset.Image

  • All Implemented Interfaces:
    OpenRtb.NativeResponse.Asset.ImageOrBuilder, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Asset.Image>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    OpenRtb.NativeResponse.Asset

    public static final class OpenRtb.NativeResponse.Asset.Image
    extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Asset.Image>
    implements OpenRtb.NativeResponse.Asset.ImageOrBuilder
     OpenRTB Native 1.0: Corresponds to the Image Object in the request.
     The Image object to be used for all image elements of the Native ad
     such as Icons, Main Image, etc.
     It is recommended that if assetsurl/dcourl is being used rather than
     embbedded assets, that an image of each recommended aspect ratio
     (per ImageType enum) be provided for image type 3 (MAIN_IMAGE).
     
    Protobuf type com.google.openrtb.NativeResponse.Asset.Image
    See Also:
    Serialized Form
    • 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()
         The type of image element being submitted from the ImageType enum.
         REQUIRED for assetsurl or dcourl responses,
         not required to embedded asset responses.
         
        optional .com.google.openrtb.ImageAssetType type = 4;
        Specified by:
        hasType in interface OpenRtb.NativeResponse.Asset.ImageOrBuilder
        Returns:
        Whether the type field is set.
      • hasUrl

        public boolean hasUrl()
         URL of the image asset.
         REQUIRED by the OpenRTB Native specification.
         
        required string url = 1;
        Specified by:
        hasUrl in interface OpenRtb.NativeResponse.Asset.ImageOrBuilder
        Returns:
        Whether the url field is set.
      • getUrlBytes

        public com.google.protobuf.ByteString getUrlBytes()
         URL of the image asset.
         REQUIRED by the OpenRTB Native specification.
         
        required string url = 1;
        Specified by:
        getUrlBytes in interface OpenRtb.NativeResponse.Asset.ImageOrBuilder
        Returns:
        The bytes for url.
      • hasW

        public boolean hasW()
         Width of the image in pixels.
         RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses.
         REQUIRED in 1.2 for assetsurl or dcourl if multiple assets
         of the same type submitted.
         
        optional int32 w = 2;
        Specified by:
        hasW in interface OpenRtb.NativeResponse.Asset.ImageOrBuilder
        Returns:
        Whether the w field is set.
      • getW

        public int getW()
         Width of the image in pixels.
         RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses.
         REQUIRED in 1.2 for assetsurl or dcourl if multiple assets
         of the same type submitted.
         
        optional int32 w = 2;
        Specified by:
        getW in interface OpenRtb.NativeResponse.Asset.ImageOrBuilder
        Returns:
        The w.
      • hasH

        public boolean hasH()
         Height of the image in pixels.
         RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses.
         REQUIRED in 1.2 for assetsurl or dcourl if multiple assets
         of the same type submitted.
         
        optional int32 h = 3;
        Specified by:
        hasH in interface OpenRtb.NativeResponse.Asset.ImageOrBuilder
        Returns:
        Whether the h field is set.
      • getH

        public int getH()
         Height of the image in pixels.
         RECOMMENDED in 1.0, 1.1, or in 1.2 for embedded asset responses.
         REQUIRED in 1.2 for assetsurl or dcourl if multiple assets
         of the same type submitted.
         
        optional int32 h = 3;
        Specified by:
        getH in interface OpenRtb.NativeResponse.Asset.ImageOrBuilder
        Returns:
        The h.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.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.NativeResponse.Asset.Image parseFrom​(ByteBuffer data,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static OpenRtb.NativeResponse.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.NativeResponse.Asset.Image parseFrom​(byte[] data)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public OpenRtb.NativeResponse.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.NativeResponse.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.NativeResponse.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.NativeResponse.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.NativeResponse.Asset.Image getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Asset.Image>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder