Class AdSenseLink (0.63.0)

public final class AdSenseLink extends GeneratedMessageV3 implements AdSenseLinkOrBuilder

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

Protobuf type google.analytics.admin.v1alpha.AdSenseLink

Static Fields

public static final int AD_CLIENT_CODE_FIELD_NUMBER
Field Value
Type Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

public static AdSenseLink getDefaultInstance()
Returns
Type Description
AdSenseLink
public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor
public static AdSenseLink.Builder newBuilder()
Returns
Type Description
AdSenseLink.Builder
public static AdSenseLink.Builder newBuilder(AdSenseLink prototype)
Parameter
Name Description
prototype AdSenseLink
Returns
Type Description
AdSenseLink.Builder
public static AdSenseLink parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdSenseLink
Exceptions
Type Description
IOException
public static AdSenseLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseLink
Exceptions
Type Description
IOException
public static AdSenseLink parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AdSenseLink
Exceptions
Type Description
InvalidProtocolBufferException
public static AdSenseLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseLink
Exceptions
Type Description
InvalidProtocolBufferException
public static AdSenseLink parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AdSenseLink
Exceptions
Type Description
InvalidProtocolBufferException
public static AdSenseLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseLink
Exceptions
Type Description
InvalidProtocolBufferException
public static AdSenseLink parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AdSenseLink
Exceptions
Type Description
IOException
public static AdSenseLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseLink
Exceptions
Type Description
IOException
public static AdSenseLink parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdSenseLink
Exceptions
Type Description
IOException
public static AdSenseLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseLink
Exceptions
Type Description
IOException
public static AdSenseLink parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AdSenseLink
Exceptions
Type Description
InvalidProtocolBufferException
public static AdSenseLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdSenseLink
Exceptions
Type Description
InvalidProtocolBufferException
public static Parser<AdSenseLink> parser()
Returns
Type Description
Parser<AdSenseLink>

Methods

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
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
Type Description
ByteString

The bytes for adClientCode.

public AdSenseLink getDefaultInstanceForType()
Returns
Type Description
AdSenseLink
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.

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.

public Parser<AdSenseLink> getParserForType()
Returns
Type Description
Parser<AdSenseLink>
Overrides
public int getSerializedSize()
Returns
Type Description
int
Overrides
public int hashCode()
Returns
Type Description
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public AdSenseLink.Builder newBuilderForType()
Returns
Type Description
AdSenseLink.Builder
protected AdSenseLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AdSenseLink.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public AdSenseLink.Builder toBuilder()
Returns
Type Description
AdSenseLink.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException