Class OpenRtb.NativeResponse.Asset.Data

  • All Implemented Interfaces:
    OpenRtb.NativeResponse.Asset.DataOrBuilder, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Asset.Data>, 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.Data
    extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Asset.Data>
    implements OpenRtb.NativeResponse.Asset.DataOrBuilder
     OpenRTB Native 1.0: Corresponds to the Data Object in the request, with
     the value filled in. The Data Object is to be used for all miscellaneous
     elements of the native unit such as Brand Name, Ratings, Review Count,
     Stars, Downloads, etc. It is also generic for future of native elements
     not contemplated at the time of the writing of this document.
     
    Protobuf type com.google.openrtb.NativeResponse.Asset.Data
    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 data element being submitted from the DataAssetTypes enum.
         REQUIRED in 1.2 for assetsurl or dcourl responses.
         
        optional .com.google.openrtb.DataAssetType type = 3;
        Specified by:
        hasType in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        Whether the type field is set.
      • hasLen

        public boolean hasLen()
         The length of the data element being submitted. Where applicable, must
         comply with the recommended maximum lengths in the DataAssetType enum.
         REQUIRED in 1.2 for assetsurl or dcourl responses.
         
        optional int32 len = 4;
        Specified by:
        hasLen in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        Whether the len field is set.
      • getLen

        public int getLen()
         The length of the data element being submitted. Where applicable, must
         comply with the recommended maximum lengths in the DataAssetType enum.
         REQUIRED in 1.2 for assetsurl or dcourl responses.
         
        optional int32 len = 4;
        Specified by:
        getLen in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        The len.
      • hasLabel

        @Deprecated
        public boolean hasLabel()
        Deprecated.
        com.google.openrtb.NativeResponse.Asset.Data.label is deprecated. See openrtb.proto;l=1838
         DEPRECATED in OpenRTB Native 1.2+. No replacement.
         The optional formatted string name of the data type to be displayed.
         
        optional string label = 1 [deprecated = true];
        Specified by:
        hasLabel in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        Whether the label field is set.
      • getLabel

        @Deprecated
        public String getLabel()
        Deprecated.
        com.google.openrtb.NativeResponse.Asset.Data.label is deprecated. See openrtb.proto;l=1838
         DEPRECATED in OpenRTB Native 1.2+. No replacement.
         The optional formatted string name of the data type to be displayed.
         
        optional string label = 1 [deprecated = true];
        Specified by:
        getLabel in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        The label.
      • getLabelBytes

        @Deprecated
        public com.google.protobuf.ByteString getLabelBytes()
        Deprecated.
        com.google.openrtb.NativeResponse.Asset.Data.label is deprecated. See openrtb.proto;l=1838
         DEPRECATED in OpenRTB Native 1.2+. No replacement.
         The optional formatted string name of the data type to be displayed.
         
        optional string label = 1 [deprecated = true];
        Specified by:
        getLabelBytes in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        The bytes for label.
      • hasValue

        public boolean hasValue()
         The formatted string of data to be displayed. Can contain a formatted
         value such as "5 stars" or "$10" or "3.4 stars out of 5".
         REQUIRED by the OpenRTB Native specification.
         
        required string value = 2;
        Specified by:
        hasValue in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public String getValue()
         The formatted string of data to be displayed. Can contain a formatted
         value such as "5 stars" or "$10" or "3.4 stars out of 5".
         REQUIRED by the OpenRTB Native specification.
         
        required string value = 2;
        Specified by:
        getValue in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        The value.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes()
         The formatted string of data to be displayed. Can contain a formatted
         value such as "5 stars" or "$10" or "3.4 stars out of 5".
         REQUIRED by the OpenRTB Native specification.
         
        required string value = 2;
        Specified by:
        getValueBytes in interface OpenRtb.NativeResponse.Asset.DataOrBuilder
        Returns:
        The bytes for value.
      • 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.Data>
      • 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.Data parseFrom​(ByteBuffer data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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