Class ClickTag (0.62.0)

public final class ClickTag extends GeneratedMessage implements ClickTagOrBuilder

Click tags define click-through URLs for each exit on an HTML5 creative. An exit is any area that can be clicked that directs the browser to a landing page. Each click tag defines the click-through URL for a different exit. In Ad Manager, tracking pixels are attached to the click tags if URLs are valid.

Protobuf type google.ads.admanager.v1.ClickTag

Implements

ClickTagOrBuilder

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ClickTag getDefaultInstance()
Returns
Type Description
ClickTag

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ClickTag.Builder newBuilder()
Returns
Type Description
ClickTag.Builder

newBuilder(ClickTag prototype)

public static ClickTag.Builder newBuilder(ClickTag prototype)
Parameter
Name Description
prototype ClickTag
Returns
Type Description
ClickTag.Builder

parseDelimitedFrom(InputStream input)

public static ClickTag parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ClickTag
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClickTag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClickTag
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ClickTag parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ClickTag
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClickTag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClickTag
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClickTag parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ClickTag
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClickTag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClickTag
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClickTag parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ClickTag
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClickTag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClickTag
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ClickTag parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ClickTag
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClickTag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClickTag
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ClickTag parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ClickTag
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClickTag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClickTag
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ClickTag> parser()
Returns
Type Description
Parser<ClickTag>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ClickTag getDefaultInstanceForType()
Returns
Type Description
ClickTag

getDisplayName()

public String getDisplayName()

Optional. Name of the click tag. Must match the regular expression clickTag\d*.

optional string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Name of the click tag. Must match the regular expression clickTag\d*.

optional string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getParserForType()

public Parser<ClickTag> getParserForType()
Returns
Type Description
Parser<ClickTag>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUrl()

public String getUrl()

Optional. URL of the click tag.

optional string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Optional. URL of the click tag.

optional string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for url.

hasDisplayName()

public boolean hasDisplayName()

Optional. Name of the click tag. Must match the regular expression clickTag\d*.

optional string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the displayName field is set.

hasUrl()

public boolean hasUrl()

Optional. URL of the click tag.

optional string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the url field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ClickTag.Builder newBuilderForType()
Returns
Type Description
ClickTag.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ClickTag.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ClickTag.Builder
Overrides

toBuilder()

public ClickTag.Builder toBuilder()
Returns
Type Description
ClickTag.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException