Package com.google.openrtb
Class OpenRtb.BidRequest.Imp.Native
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.BidRequest.Imp.Native>
-
- com.google.openrtb.OpenRtb.BidRequest.Imp.Native
-
- All Implemented Interfaces:
OpenRtb.BidRequest.Imp.NativeOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Imp.Native>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OpenRtb.BidRequest.Imp
public static final class OpenRtb.BidRequest.Imp.Native extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.BidRequest.Imp.Native> implements OpenRtb.BidRequest.Imp.NativeOrBuilder
OpenRTB 2.3: This object represents a native type impression. Native ad units are intended to blend seamlessly into the surrounding content (e.g., a sponsored Twitter or Facebook post). As such, the response must be well-structured to afford the publisher fine-grained control over rendering. The Native Subcommittee has developed a companion specification to OpenRTB called the Native Ad Specification. It defines the request parameters and response markup structure of native ad units. This object provides the means of transporting request parameters as an opaque string so that the specific parameters can evolve separately under the auspices of the Native Ad Specification. Similarly, the ad markup served will be structured according to that specification. The presence of a Native as a subordinate of the Imp object indicates that this impression is offered as a native type impression. At the publisher's discretion, that same impression may also be offered as banner and/or video by also including as Imp subordinates the Banner and/or Video objects, respectively. However, any given bid for the impression must conform to one of the offered types.
Protobuf typecom.google.openrtb.BidRequest.Imp.Native- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenRtb.BidRequest.Imp.Native.BuilderOpenRTB 2.3: This object represents a native type impression.static classOpenRtb.BidRequest.Imp.Native.RequestOneofCase-
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 intAPI_FIELD_NUMBERstatic intBATTR_FIELD_NUMBERstatic com.google.protobuf.Parser<OpenRtb.BidRequest.Imp.Native>PARSERDeprecated.static intREQUEST_FIELD_NUMBERstatic intREQUEST_NATIVE_FIELD_NUMBERstatic intVER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)OpenRtb.APIFrameworkgetApi(int index)List of supported API frameworks for this impression.intgetApiCount()List of supported API frameworks for this impression.List<OpenRtb.APIFramework>getApiList()List of supported API frameworks for this impression.OpenRtb.CreativeAttributegetBattr(int index)Blocked creative attributes.intgetBattrCount()Blocked creative attributes.List<OpenRtb.CreativeAttribute>getBattrList()Blocked creative attributes.static OpenRtb.BidRequest.Imp.NativegetDefaultInstance()OpenRtb.BidRequest.Imp.NativegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<OpenRtb.BidRequest.Imp.Native>getParserForType()StringgetRequest()Request payload complying with the Native Ad Specification.com.google.protobuf.ByteStringgetRequestBytes()Request payload complying with the Native Ad Specification.OpenRtb.NativeRequestgetRequestNative()Request payload complying with the Native Ad Specification.OpenRtb.NativeRequestOrBuildergetRequestNativeOrBuilder()Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.RequestOneofCasegetRequestOneofCase()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetVer()Version of the Native Ad Specification to which request complies.com.google.protobuf.ByteStringgetVerBytes()Version of the Native Ad Specification to which request complies.inthashCode()booleanhasRequest()Request payload complying with the Native Ad Specification.booleanhasRequestNative()Request payload complying with the Native Ad Specification.booleanhasVer()Version of the Native Ad Specification to which request complies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OpenRtb.BidRequest.Imp.Native.BuildernewBuilder()static OpenRtb.BidRequest.Imp.Native.BuildernewBuilder(OpenRtb.BidRequest.Imp.Native prototype)OpenRtb.BidRequest.Imp.Native.BuildernewBuilderForType()protected OpenRtb.BidRequest.Imp.Native.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OpenRtb.BidRequest.Imp.NativeparseDelimitedFrom(InputStream input)static OpenRtb.BidRequest.Imp.NativeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.BidRequest.Imp.NativeparseFrom(byte[] data)static OpenRtb.BidRequest.Imp.NativeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.BidRequest.Imp.NativeparseFrom(com.google.protobuf.ByteString data)static OpenRtb.BidRequest.Imp.NativeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.BidRequest.Imp.NativeparseFrom(com.google.protobuf.CodedInputStream input)static OpenRtb.BidRequest.Imp.NativeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.BidRequest.Imp.NativeparseFrom(InputStream input)static OpenRtb.BidRequest.Imp.NativeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.BidRequest.Imp.NativeparseFrom(ByteBuffer data)static OpenRtb.BidRequest.Imp.NativeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OpenRtb.BidRequest.Imp.Native>parser()OpenRtb.BidRequest.Imp.Native.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
-
REQUEST_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_NATIVE_FIELD_NUMBER
public static final int REQUEST_NATIVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VER_FIELD_NUMBER
public static final int VER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
API_FIELD_NUMBER
public static final int API_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BATTR_FIELD_NUMBER
public static final int BATTR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OpenRtb.BidRequest.Imp.Native> 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
-
getRequestOneofCase
public OpenRtb.BidRequest.Imp.Native.RequestOneofCase getRequestOneofCase()
- Specified by:
getRequestOneofCasein interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder
-
hasRequest
public boolean hasRequest()
Request payload complying with the Native Ad Specification. Exactly one of {request, request_native} should be used; this is the OpenRTB-compliant field for JSON serialization.string request = 1;- Specified by:
hasRequestin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- Whether the request field is set.
-
getRequest
public String getRequest()
Request payload complying with the Native Ad Specification. Exactly one of {request, request_native} should be used; this is the OpenRTB-compliant field for JSON serialization.string request = 1;- Specified by:
getRequestin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- The request.
-
getRequestBytes
public com.google.protobuf.ByteString getRequestBytes()
Request payload complying with the Native Ad Specification. Exactly one of {request, request_native} should be used; this is the OpenRTB-compliant field for JSON serialization.string request = 1;- Specified by:
getRequestBytesin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- The bytes for request.
-
hasRequestNative
public boolean hasRequestNative()
Request payload complying with the Native Ad Specification. Exactly one of {request, request_native} should be used; this is an alternate field preferred for Protobuf serialization..com.google.openrtb.NativeRequest request_native = 50;- Specified by:
hasRequestNativein interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- Whether the requestNative field is set.
-
getRequestNative
public OpenRtb.NativeRequest getRequestNative()
Request payload complying with the Native Ad Specification. Exactly one of {request, request_native} should be used; this is an alternate field preferred for Protobuf serialization..com.google.openrtb.NativeRequest request_native = 50;- Specified by:
getRequestNativein interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- The requestNative.
-
getRequestNativeOrBuilder
public OpenRtb.NativeRequestOrBuilder getRequestNativeOrBuilder()
Request payload complying with the Native Ad Specification. Exactly one of {request, request_native} should be used; this is an alternate field preferred for Protobuf serialization..com.google.openrtb.NativeRequest request_native = 50;- Specified by:
getRequestNativeOrBuilderin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder
-
hasVer
public boolean hasVer()
Version of the Native Ad Specification to which request complies. RECOMMENDED by the OpenRTB specification.
optional string ver = 2;- Specified by:
hasVerin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- Whether the ver field is set.
-
getVer
public String getVer()
Version of the Native Ad Specification to which request complies. RECOMMENDED by the OpenRTB specification.
optional string ver = 2;- Specified by:
getVerin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- The ver.
-
getVerBytes
public com.google.protobuf.ByteString getVerBytes()
Version of the Native Ad Specification to which request complies. RECOMMENDED by the OpenRTB specification.
optional string ver = 2;- Specified by:
getVerBytesin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- The bytes for ver.
-
getApiList
public List<OpenRtb.APIFramework> getApiList()
List of supported API frameworks for this impression. If an API is not explicitly listed, it is assumed not to be supported.
repeated .com.google.openrtb.APIFramework api = 3 [packed = true];- Specified by:
getApiListin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- A list containing the api.
-
getApiCount
public int getApiCount()
List of supported API frameworks for this impression. If an API is not explicitly listed, it is assumed not to be supported.
repeated .com.google.openrtb.APIFramework api = 3 [packed = true];- Specified by:
getApiCountin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- The count of api.
-
getApi
public OpenRtb.APIFramework getApi(int index)
List of supported API frameworks for this impression. If an API is not explicitly listed, it is assumed not to be supported.
repeated .com.google.openrtb.APIFramework api = 3 [packed = true];- Specified by:
getApiin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The api at the given index.
-
getBattrList
public List<OpenRtb.CreativeAttribute> getBattrList()
Blocked creative attributes.
repeated .com.google.openrtb.CreativeAttribute battr = 4 [packed = true];- Specified by:
getBattrListin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- A list containing the battr.
-
getBattrCount
public int getBattrCount()
Blocked creative attributes.
repeated .com.google.openrtb.CreativeAttribute battr = 4 [packed = true];- Specified by:
getBattrCountin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Returns:
- The count of battr.
-
getBattr
public OpenRtb.CreativeAttribute getBattr(int index)
Blocked creative attributes.
repeated .com.google.openrtb.CreativeAttribute battr = 4 [packed = true];- Specified by:
getBattrin interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The battr at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.BidRequest.Imp.Native>
-
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.BidRequest.Imp.Native parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native 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.BidRequest.Imp.Native parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.BidRequest.Imp.Native parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.BidRequest.Imp.Native parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.BidRequest.Imp.Native parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OpenRtb.BidRequest.Imp.Native.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpenRtb.BidRequest.Imp.Native.Builder newBuilder()
-
newBuilder
public static OpenRtb.BidRequest.Imp.Native.Builder newBuilder(OpenRtb.BidRequest.Imp.Native prototype)
-
toBuilder
public OpenRtb.BidRequest.Imp.Native.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpenRtb.BidRequest.Imp.Native.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpenRtb.BidRequest.Imp.Native getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpenRtb.BidRequest.Imp.Native> parser()
-
getParserForType
public com.google.protobuf.Parser<OpenRtb.BidRequest.Imp.Native> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OpenRtb.BidRequest.Imp.Native getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Imp.Native>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-