Package com.google.openrtb
Class OpenRtb.BidRequest.Imp.Native.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
- com.google.openrtb.OpenRtb.BidRequest.Imp.Native.Builder
-
- All Implemented Interfaces:
OpenRtb.BidRequest.Imp.NativeOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Imp.Native>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OpenRtb.BidRequest.Imp.Native
public static final class OpenRtb.BidRequest.Imp.Native.Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder> 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenRtb.BidRequest.Imp.Native.BuilderaddAllApi(Iterable<? extends OpenRtb.APIFramework> values)List of supported API frameworks for this impression.OpenRtb.BidRequest.Imp.Native.BuilderaddAllBattr(Iterable<? extends OpenRtb.CreativeAttribute> values)Blocked creative attributes.OpenRtb.BidRequest.Imp.Native.BuilderaddApi(OpenRtb.APIFramework value)List of supported API frameworks for this impression.OpenRtb.BidRequest.Imp.Native.BuilderaddBattr(OpenRtb.CreativeAttribute value)Blocked creative attributes.<Type> OpenRtb.BidRequest.Imp.Native.BuilderaddExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,List<Type>> extension, Type value)OpenRtb.BidRequest.Imp.Native.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OpenRtb.BidRequest.Imp.Nativebuild()OpenRtb.BidRequest.Imp.NativebuildPartial()OpenRtb.BidRequest.Imp.Native.Builderclear()OpenRtb.BidRequest.Imp.Native.BuilderclearApi()List of supported API frameworks for this impression.OpenRtb.BidRequest.Imp.Native.BuilderclearBattr()Blocked creative attributes.<Type> OpenRtb.BidRequest.Imp.Native.BuilderclearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,?> extension)OpenRtb.BidRequest.Imp.Native.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OpenRtb.BidRequest.Imp.Native.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OpenRtb.BidRequest.Imp.Native.BuilderclearRequest()Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.BuilderclearRequestNative()Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.BuilderclearRequestOneof()OpenRtb.BidRequest.Imp.Native.BuilderclearVer()Version of the Native Ad Specification to which request complies.OpenRtb.BidRequest.Imp.Native.Builderclone()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.OpenRtb.BidRequest.Imp.NativegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.NativeRequest.BuildergetRequestNativeBuilder()Request payload complying with the Native Ad Specification.OpenRtb.NativeRequestOrBuildergetRequestNativeOrBuilder()Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.RequestOneofCasegetRequestOneofCase()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.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()OpenRtb.BidRequest.Imp.Native.BuildermergeFrom(OpenRtb.BidRequest.Imp.Native other)OpenRtb.BidRequest.Imp.Native.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OpenRtb.BidRequest.Imp.Native.BuildermergeFrom(com.google.protobuf.Message other)OpenRtb.BidRequest.Imp.Native.BuildermergeRequestNative(OpenRtb.NativeRequest value)Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OpenRtb.BidRequest.Imp.Native.BuildersetApi(int index, OpenRtb.APIFramework value)List of supported API frameworks for this impression.OpenRtb.BidRequest.Imp.Native.BuildersetBattr(int index, OpenRtb.CreativeAttribute value)Blocked creative attributes.<Type> OpenRtb.BidRequest.Imp.Native.BuildersetExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,List<Type>> extension, int index, Type value)<Type> OpenRtb.BidRequest.Imp.Native.BuildersetExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,Type> extension, Type value)OpenRtb.BidRequest.Imp.Native.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OpenRtb.BidRequest.Imp.Native.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OpenRtb.BidRequest.Imp.Native.BuildersetRequest(String value)Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.BuildersetRequestBytes(com.google.protobuf.ByteString value)Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.BuildersetRequestNative(OpenRtb.NativeRequest value)Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.BuildersetRequestNative(OpenRtb.NativeRequest.Builder builderForValue)Request payload complying with the Native Ad Specification.OpenRtb.BidRequest.Imp.Native.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OpenRtb.BidRequest.Imp.Native.BuildersetVer(String value)Version of the Native Ad Specification to which request complies.OpenRtb.BidRequest.Imp.Native.BuildersetVerBytes(com.google.protobuf.ByteString value)Version of the Native Ad Specification to which request complies.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, newBuilderForField, setExtension, setExtension, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, 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
-
-
-
-
Method Detail
-
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.Builder<OpenRtb.BidRequest.Imp.Native.Builder>
-
clear
public OpenRtb.BidRequest.Imp.Native.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Imp.Native.Builder>
-
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
-
build
public OpenRtb.BidRequest.Imp.Native build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OpenRtb.BidRequest.Imp.Native buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OpenRtb.BidRequest.Imp.Native.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Imp.Native.Builder>
-
setField
public OpenRtb.BidRequest.Imp.Native.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
clearField
public OpenRtb.BidRequest.Imp.Native.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
clearOneof
public OpenRtb.BidRequest.Imp.Native.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Imp.Native.Builder>
-
setRepeatedField
public OpenRtb.BidRequest.Imp.Native.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
addRepeatedField
public OpenRtb.BidRequest.Imp.Native.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
setExtension
public <Type> OpenRtb.BidRequest.Imp.Native.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,Type> extension, Type value)
- Overrides:
setExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
setExtension
public <Type> OpenRtb.BidRequest.Imp.Native.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,List<Type>> extension, int index, Type value)
- Overrides:
setExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
addExtension
public <Type> OpenRtb.BidRequest.Imp.Native.Builder addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,List<Type>> extension, Type value)
- Overrides:
addExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
clearExtension
public <Type> OpenRtb.BidRequest.Imp.Native.Builder clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Imp.Native,?> extension)
- Overrides:
clearExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
mergeFrom
public OpenRtb.BidRequest.Imp.Native.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpenRtb.BidRequest.Imp.Native.Builder>
-
mergeFrom
public OpenRtb.BidRequest.Imp.Native.Builder mergeFrom(OpenRtb.BidRequest.Imp.Native other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Imp.Native,OpenRtb.BidRequest.Imp.Native.Builder>
-
mergeFrom
public OpenRtb.BidRequest.Imp.Native.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpenRtb.BidRequest.Imp.Native.Builder>- Throws:
IOException
-
getRequestOneofCase
public OpenRtb.BidRequest.Imp.Native.RequestOneofCase getRequestOneofCase()
- Specified by:
getRequestOneofCasein interfaceOpenRtb.BidRequest.Imp.NativeOrBuilder
-
clearRequestOneof
public OpenRtb.BidRequest.Imp.Native.Builder clearRequestOneof()
-
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.
-
setRequest
public OpenRtb.BidRequest.Imp.Native.Builder setRequest(String value)
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;- Parameters:
value- The request to set.- Returns:
- This builder for chaining.
-
clearRequest
public OpenRtb.BidRequest.Imp.Native.Builder clearRequest()
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;- Returns:
- This builder for chaining.
-
setRequestBytes
public OpenRtb.BidRequest.Imp.Native.Builder setRequestBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for request to set.- Returns:
- This builder for chaining.
-
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.
-
setRequestNative
public OpenRtb.BidRequest.Imp.Native.Builder setRequestNative(OpenRtb.NativeRequest value)
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;
-
setRequestNative
public OpenRtb.BidRequest.Imp.Native.Builder setRequestNative(OpenRtb.NativeRequest.Builder builderForValue)
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;
-
mergeRequestNative
public OpenRtb.BidRequest.Imp.Native.Builder mergeRequestNative(OpenRtb.NativeRequest value)
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;
-
clearRequestNative
public OpenRtb.BidRequest.Imp.Native.Builder clearRequestNative()
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;
-
getRequestNativeBuilder
public OpenRtb.NativeRequest.Builder getRequestNativeBuilder()
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;
-
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.
-
setVer
public OpenRtb.BidRequest.Imp.Native.Builder setVer(String value)
Version of the Native Ad Specification to which request complies. RECOMMENDED by the OpenRTB specification.
optional string ver = 2;- Parameters:
value- The ver to set.- Returns:
- This builder for chaining.
-
clearVer
public OpenRtb.BidRequest.Imp.Native.Builder clearVer()
Version of the Native Ad Specification to which request complies. RECOMMENDED by the OpenRTB specification.
optional string ver = 2;- Returns:
- This builder for chaining.
-
setVerBytes
public OpenRtb.BidRequest.Imp.Native.Builder setVerBytes(com.google.protobuf.ByteString value)
Version of the Native Ad Specification to which request complies. RECOMMENDED by the OpenRTB specification.
optional string ver = 2;- Parameters:
value- The bytes for ver to set.- Returns:
- This builder for chaining.
-
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.
-
setApi
public OpenRtb.BidRequest.Imp.Native.Builder setApi(int index, OpenRtb.APIFramework value)
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];- Parameters:
index- The index to set the value at.value- The api to set.- Returns:
- This builder for chaining.
-
addApi
public OpenRtb.BidRequest.Imp.Native.Builder addApi(OpenRtb.APIFramework value)
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];- Parameters:
value- The api to add.- Returns:
- This builder for chaining.
-
addAllApi
public OpenRtb.BidRequest.Imp.Native.Builder addAllApi(Iterable<? extends OpenRtb.APIFramework> values)
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];- Parameters:
values- The api to add.- Returns:
- This builder for chaining.
-
clearApi
public OpenRtb.BidRequest.Imp.Native.Builder clearApi()
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];- Returns:
- This builder for chaining.
-
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.
-
setBattr
public OpenRtb.BidRequest.Imp.Native.Builder setBattr(int index, OpenRtb.CreativeAttribute value)
Blocked creative attributes.
repeated .com.google.openrtb.CreativeAttribute battr = 4 [packed = true];- Parameters:
index- The index to set the value at.value- The battr to set.- Returns:
- This builder for chaining.
-
addBattr
public OpenRtb.BidRequest.Imp.Native.Builder addBattr(OpenRtb.CreativeAttribute value)
Blocked creative attributes.
repeated .com.google.openrtb.CreativeAttribute battr = 4 [packed = true];- Parameters:
value- The battr to add.- Returns:
- This builder for chaining.
-
addAllBattr
public OpenRtb.BidRequest.Imp.Native.Builder addAllBattr(Iterable<? extends OpenRtb.CreativeAttribute> values)
Blocked creative attributes.
repeated .com.google.openrtb.CreativeAttribute battr = 4 [packed = true];- Parameters:
values- The battr to add.- Returns:
- This builder for chaining.
-
clearBattr
public OpenRtb.BidRequest.Imp.Native.Builder clearBattr()
Blocked creative attributes.
repeated .com.google.openrtb.CreativeAttribute battr = 4 [packed = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final OpenRtb.BidRequest.Imp.Native.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Imp.Native.Builder>
-
mergeUnknownFields
public final OpenRtb.BidRequest.Imp.Native.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Imp.Native.Builder>
-
-