Class AdSenseLink.Builder (0.32.0)

public static final class AdSenseLink.Builder extends GeneratedMessageV3.Builder<AdSenseLink.Builder> implements AdSenseLinkOrBuilder

A link between a GA4 Property and an AdSense for Content ad client.

Protobuf type google.analytics.admin.v1alpha.AdSenseLink

Static Methods

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

public AdSenseLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AdSenseLink.Builder
Overrides
public AdSenseLink build()
Returns
TypeDescription
AdSenseLink
public AdSenseLink buildPartial()
Returns
TypeDescription
AdSenseLink
public AdSenseLink.Builder clear()
Returns
TypeDescription
AdSenseLink.Builder
Overrides
public AdSenseLink.Builder clearAdClientCode()

Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"

string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
AdSenseLink.Builder

This builder for chaining.

public AdSenseLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AdSenseLink.Builder
Overrides
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
TypeDescription
AdSenseLink.Builder

This builder for chaining.

public AdSenseLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AdSenseLink.Builder
Overrides
public AdSenseLink.Builder clone()
Returns
TypeDescription
AdSenseLink.Builder
Overrides
public String getAdClientCode()

Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"

string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The adClientCode.

public ByteString getAdClientCodeBytes()

Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"

string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for adClientCode.

public AdSenseLink getDefaultInstanceForType()
Returns
TypeDescription
AdSenseLink
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
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
TypeDescription
String

The name.

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
TypeDescription
ByteString

The bytes for name.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public AdSenseLink.Builder mergeFrom(AdSenseLink other)
Parameter
NameDescription
otherAdSenseLink
Returns
TypeDescription
AdSenseLink.Builder
public AdSenseLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdSenseLink.Builder
Overrides
Exceptions
TypeDescription
IOException
public AdSenseLink.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AdSenseLink.Builder
Overrides
public final AdSenseLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AdSenseLink.Builder
Overrides
public AdSenseLink.Builder setAdClientCode(String value)

Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"

string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The adClientCode to set.

Returns
TypeDescription
AdSenseLink.Builder

This builder for chaining.

public AdSenseLink.Builder setAdClientCodeBytes(ByteString value)

Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"

string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for adClientCode to set.

Returns
TypeDescription
AdSenseLink.Builder

This builder for chaining.

public AdSenseLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AdSenseLink.Builder
Overrides
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
AdSenseLink.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AdSenseLink.Builder

This builder for chaining.

public AdSenseLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AdSenseLink.Builder
Overrides
public final AdSenseLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AdSenseLink.Builder
Overrides