Package com.google.openrtb
Class OpenRtb.NativeResponse.Asset.Data
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Asset.Data>
-
- com.google.openrtb.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 typecom.google.openrtb.NativeResponse.Asset.Data- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenRtb.NativeResponse.Asset.Data.BuilderOpenRTB Native 1.0: Corresponds to the Data Object in the request, with the value filled in.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intLABEL_FIELD_NUMBERstatic intLEN_FIELD_NUMBERstatic com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Data>PARSERDeprecated.static intTYPE_FIELD_NUMBERstatic intVALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)static OpenRtb.NativeResponse.Asset.DatagetDefaultInstance()OpenRtb.NativeResponse.Asset.DatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetLabel()Deprecated.com.google.openrtb.NativeResponse.Asset.Data.label is deprecated.com.google.protobuf.ByteStringgetLabelBytes()Deprecated.com.google.openrtb.NativeResponse.Asset.Data.label is deprecated.intgetLen()The length of the data element being submitted.com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Data>getParserForType()intgetSerializedSize()OpenRtb.DataAssetTypegetType()The type of data element being submitted from the DataAssetTypes enum.com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetValue()The formatted string of data to be displayed.com.google.protobuf.ByteStringgetValueBytes()The formatted string of data to be displayed.inthashCode()booleanhasLabel()Deprecated.com.google.openrtb.NativeResponse.Asset.Data.label is deprecated.booleanhasLen()The length of the data element being submitted.booleanhasType()The type of data element being submitted from the DataAssetTypes enum.booleanhasValue()The formatted string of data to be displayed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OpenRtb.NativeResponse.Asset.Data.BuildernewBuilder()static OpenRtb.NativeResponse.Asset.Data.BuildernewBuilder(OpenRtb.NativeResponse.Asset.Data prototype)OpenRtb.NativeResponse.Asset.Data.BuildernewBuilderForType()protected OpenRtb.NativeResponse.Asset.Data.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OpenRtb.NativeResponse.Asset.DataparseDelimitedFrom(InputStream input)static OpenRtb.NativeResponse.Asset.DataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.DataparseFrom(byte[] data)static OpenRtb.NativeResponse.Asset.DataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.DataparseFrom(com.google.protobuf.ByteString data)static OpenRtb.NativeResponse.Asset.DataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.DataparseFrom(com.google.protobuf.CodedInputStream input)static OpenRtb.NativeResponse.Asset.DataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.DataparseFrom(InputStream input)static OpenRtb.NativeResponse.Asset.DataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.Asset.DataparseFrom(ByteBuffer data)static OpenRtb.NativeResponse.Asset.DataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Data>parser()OpenRtb.NativeResponse.Asset.Data.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, isStringEmpty, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
-
-
-
-
Field Detail
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEN_FIELD_NUMBER
public static final int LEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Data> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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:
hasTypein interfaceOpenRtb.NativeResponse.Asset.DataOrBuilder- Returns:
- Whether the type field is set.
-
getType
public OpenRtb.DataAssetType getType()
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:
getTypein interfaceOpenRtb.NativeResponse.Asset.DataOrBuilder- Returns:
- The type.
-
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:
hasLenin interfaceOpenRtb.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:
getLenin interfaceOpenRtb.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=1838DEPRECATED 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:
hasLabelin interfaceOpenRtb.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=1838DEPRECATED 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:
getLabelin interfaceOpenRtb.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=1838DEPRECATED 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:
getLabelBytesin interfaceOpenRtb.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:
hasValuein interfaceOpenRtb.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:
getValuein interfaceOpenRtb.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:
getValueBytesin interfaceOpenRtb.NativeResponse.Asset.DataOrBuilder- Returns:
- The bytes for value.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Asset.Data>
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Data parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
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
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Data parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Data parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeResponse.Asset.Data parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeResponse.Asset.Data parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Data parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Asset.Data parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OpenRtb.NativeResponse.Asset.Data.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpenRtb.NativeResponse.Asset.Data.Builder newBuilder()
-
newBuilder
public static OpenRtb.NativeResponse.Asset.Data.Builder newBuilder(OpenRtb.NativeResponse.Asset.Data prototype)
-
toBuilder
public OpenRtb.NativeResponse.Asset.Data.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpenRtb.NativeResponse.Asset.Data.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpenRtb.NativeResponse.Asset.Data getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Data> parser()
-
getParserForType
public com.google.protobuf.Parser<OpenRtb.NativeResponse.Asset.Data> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OpenRtb.NativeResponse.Asset.Data getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Asset.Data>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-