Package com.google.openrtb
Class OpenRtb.NativeResponse.Link
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Link>
-
- com.google.openrtb.OpenRtb.NativeResponse.Link
-
- All Implemented Interfaces:
OpenRtb.NativeResponse.LinkOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Link>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OpenRtb.NativeResponse
public static final class OpenRtb.NativeResponse.Link extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Link> implements OpenRtb.NativeResponse.LinkOrBuilder
OpenRTB Native 1.0: Used for "call to action" assets, or other links from the Native ad. This Object should be associated to its peer object in the parent Asset Object or as the primary link in the top level NativeResponse object. When that peer object is activated (clicked) the action should take the user to the location of the link.
Protobuf typecom.google.openrtb.NativeResponse.Link- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenRtb.NativeResponse.Link.BuilderOpenRTB Native 1.0: Used for "call to action" assets, or other links from the Native ad.-
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 intCLICKTRACKERS_FIELD_NUMBERstatic intFALLBACK_FIELD_NUMBERstatic com.google.protobuf.Parser<OpenRtb.NativeResponse.Link>PARSERDeprecated.static intURL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetClicktrackers(int index)List of third-party tracker URLs to be fired on click of the URL.com.google.protobuf.ByteStringgetClicktrackersBytes(int index)List of third-party tracker URLs to be fired on click of the URL.intgetClicktrackersCount()List of third-party tracker URLs to be fired on click of the URL.com.google.protobuf.ProtocolStringListgetClicktrackersList()List of third-party tracker URLs to be fired on click of the URL.static OpenRtb.NativeResponse.LinkgetDefaultInstance()OpenRtb.NativeResponse.LinkgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetFallback()Fallback URL for deeplink.com.google.protobuf.ByteStringgetFallbackBytes()Fallback URL for deeplink.com.google.protobuf.Parser<OpenRtb.NativeResponse.Link>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetUrl()Landing URL of the clickable link.com.google.protobuf.ByteStringgetUrlBytes()Landing URL of the clickable link.booleanhasFallback()Fallback URL for deeplink.inthashCode()booleanhasUrl()Landing URL of the clickable link.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OpenRtb.NativeResponse.Link.BuildernewBuilder()static OpenRtb.NativeResponse.Link.BuildernewBuilder(OpenRtb.NativeResponse.Link prototype)OpenRtb.NativeResponse.Link.BuildernewBuilderForType()protected OpenRtb.NativeResponse.Link.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OpenRtb.NativeResponse.LinkparseDelimitedFrom(InputStream input)static OpenRtb.NativeResponse.LinkparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.LinkparseFrom(byte[] data)static OpenRtb.NativeResponse.LinkparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.LinkparseFrom(com.google.protobuf.ByteString data)static OpenRtb.NativeResponse.LinkparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.LinkparseFrom(com.google.protobuf.CodedInputStream input)static OpenRtb.NativeResponse.LinkparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.LinkparseFrom(InputStream input)static OpenRtb.NativeResponse.LinkparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenRtb.NativeResponse.LinkparseFrom(ByteBuffer data)static OpenRtb.NativeResponse.LinkparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OpenRtb.NativeResponse.Link>parser()OpenRtb.NativeResponse.Link.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
-
URL_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLICKTRACKERS_FIELD_NUMBER
public static final int CLICKTRACKERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FALLBACK_FIELD_NUMBER
public static final int FALLBACK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OpenRtb.NativeResponse.Link> 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
-
hasUrl
public boolean hasUrl()
Landing URL of the clickable link. REQUIRED by the OpenRTB Native specification.
required string url = 1;- Specified by:
hasUrlin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- Whether the url field is set.
-
getUrl
public String getUrl()
Landing URL of the clickable link. REQUIRED by the OpenRTB Native specification.
required string url = 1;- Specified by:
getUrlin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
Landing URL of the clickable link. REQUIRED by the OpenRTB Native specification.
required string url = 1;- Specified by:
getUrlBytesin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- The bytes for url.
-
getClicktrackersList
public com.google.protobuf.ProtocolStringList getClicktrackersList()
List of third-party tracker URLs to be fired on click of the URL.
repeated string clicktrackers = 2;- Specified by:
getClicktrackersListin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- A list containing the clicktrackers.
-
getClicktrackersCount
public int getClicktrackersCount()
List of third-party tracker URLs to be fired on click of the URL.
repeated string clicktrackers = 2;- Specified by:
getClicktrackersCountin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- The count of clicktrackers.
-
getClicktrackers
public String getClicktrackers(int index)
List of third-party tracker URLs to be fired on click of the URL.
repeated string clicktrackers = 2;- Specified by:
getClicktrackersin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The clicktrackers at the given index.
-
getClicktrackersBytes
public com.google.protobuf.ByteString getClicktrackersBytes(int index)
List of third-party tracker URLs to be fired on click of the URL.
repeated string clicktrackers = 2;- Specified by:
getClicktrackersBytesin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the clicktrackers at the given index.
-
hasFallback
public boolean hasFallback()
Fallback URL for deeplink. To be used if the URL given in url is not supported by the device.
optional string fallback = 3;- Specified by:
hasFallbackin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- Whether the fallback field is set.
-
getFallback
public String getFallback()
Fallback URL for deeplink. To be used if the URL given in url is not supported by the device.
optional string fallback = 3;- Specified by:
getFallbackin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- The fallback.
-
getFallbackBytes
public com.google.protobuf.ByteString getFallbackBytes()
Fallback URL for deeplink. To be used if the URL given in url is not supported by the device.
optional string fallback = 3;- Specified by:
getFallbackBytesin interfaceOpenRtb.NativeResponse.LinkOrBuilder- Returns:
- The bytes for fallback.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<OpenRtb.NativeResponse.Link>
-
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.Link parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Link parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Link parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Link 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.Link parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Link parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenRtb.NativeResponse.Link parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Link parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeResponse.Link parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenRtb.NativeResponse.Link parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Link parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenRtb.NativeResponse.Link parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OpenRtb.NativeResponse.Link.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpenRtb.NativeResponse.Link.Builder newBuilder()
-
newBuilder
public static OpenRtb.NativeResponse.Link.Builder newBuilder(OpenRtb.NativeResponse.Link prototype)
-
toBuilder
public OpenRtb.NativeResponse.Link.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpenRtb.NativeResponse.Link.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpenRtb.NativeResponse.Link getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpenRtb.NativeResponse.Link> parser()
-
getParserForType
public com.google.protobuf.Parser<OpenRtb.NativeResponse.Link> 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.Link getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.NativeResponse.Link>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-