public static final class AdSenseLink.Builder extends GeneratedMessage.Builder<AdSenseLink.Builder> implements AdSenseLinkOrBuilderA link between a Google Analytics property and an AdSense for Content ad client.
Protobuf type google.analytics.admin.v1alpha.AdSenseLink
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdSenseLink.BuilderImplements
AdSenseLinkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AdSenseLink build()| Returns | |
|---|---|
| Type | Description |
AdSenseLink |
|
buildPartial()
public AdSenseLink buildPartial()| Returns | |
|---|---|
| Type | Description |
AdSenseLink |
|
clear()
public AdSenseLink.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
|
clearAdClientCode()
public AdSenseLink.Builder clearAdClientCode()Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890"
string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
This builder for chaining. |
clearName()
public AdSenseLink.Builder clearName()Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
This builder for chaining. |
getAdClientCode()
public String getAdClientCode()Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890"
string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The adClientCode. |
getAdClientCodeBytes()
public ByteString getAdClientCodeBytes()Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890"
string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for adClientCode. |
getDefaultInstanceForType()
public AdSenseLink getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdSenseLink |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdSenseLink other)
public AdSenseLink.Builder mergeFrom(AdSenseLink other)| Parameter | |
|---|---|
| Name | Description |
other |
AdSenseLink |
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdSenseLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdSenseLink.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
|
setAdClientCode(String value)
public AdSenseLink.Builder setAdClientCode(String value)Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890"
string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe adClientCode to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
This builder for chaining. |
setAdClientCodeBytes(ByteString value)
public AdSenseLink.Builder setAdClientCodeBytes(ByteString value)Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890"
string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for adClientCode to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
This builder for chaining. |
setName(String value)
public AdSenseLink.Builder setName(String value)Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AdSenseLink.Builder setNameBytes(ByteString value)Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AdSenseLink.Builder |
This builder for chaining. |