public static final class ClickTag.Builder extends GeneratedMessage.Builder<ClickTag.Builder> implements ClickTagOrBuilderClick 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ClickTag.BuilderImplements
ClickTagOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ClickTag.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ClickTag.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
ClickTag.Builder |
This builder for chaining. |