Class ClickTag.Builder (0.62.0)

public static final class ClickTag.Builder extends GeneratedMessage.Builder<ClickTag.Builder> 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 Methods

getDescriptor()

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

Methods

build()

public ClickTag build()
Returns
Type Description
ClickTag

buildPartial()

public ClickTag buildPartial()
Returns
Type Description
ClickTag

clear()

public ClickTag.Builder clear()
Returns
Type Description
ClickTag.Builder
Overrides

clearDisplayName()

public ClickTag.Builder clearDisplayName()

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
ClickTag.Builder

This builder for chaining.

clearUrl()

public ClickTag.Builder clearUrl()

Optional. URL of the click tag.

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

Returns
Type Description
ClickTag.Builder

This builder for chaining.

getDefaultInstanceForType()

public ClickTag getDefaultInstanceForType()
Returns
Type Description
ClickTag

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClickTag other)

public ClickTag.Builder mergeFrom(ClickTag other)
Parameter
Name Description
other ClickTag
Returns
Type Description
ClickTag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClickTag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClickTag.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClickTag.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClickTag.Builder
Overrides

setDisplayName(String value)

public ClickTag.Builder setDisplayName(String value)

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

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ClickTag.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ClickTag.Builder setDisplayNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ClickTag.Builder

This builder for chaining.

setUrl(String value)

public ClickTag.Builder setUrl(String value)

Optional. URL of the click tag.

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

Parameter
Name Description
value String

The url to set.

Returns
Type Description
ClickTag.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public ClickTag.Builder setUrlBytes(ByteString value)

Optional. URL of the click tag.

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

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
ClickTag.Builder

This builder for chaining.