Class AdSenseLink (0.40.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
TypeDescription
int
public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

public static AdSenseLink getDefaultInstance()
Returns
TypeDescription
AdSenseLink
public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor
public static AdSenseLink.Builder newBuilder()
Returns
TypeDescription
AdSenseLink.Builder
public static AdSenseLink.Builder newBuilder(AdSenseLink prototype)
Parameter
NameDescription
prototypeAdSenseLink
Returns
TypeDescription
AdSenseLink.Builder
public static AdSenseLink parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
IOException
public static AdSenseLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
IOException
public static AdSenseLink parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AdSenseLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AdSenseLink parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AdSenseLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AdSenseLink parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
IOException
public static AdSenseLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
IOException
public static AdSenseLink parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
IOException
public static AdSenseLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
IOException
public static AdSenseLink parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static AdSenseLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdSenseLink
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Parser<AdSenseLink> parser()
Returns
TypeDescription
Parser<AdSenseLink>

Methods

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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 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.

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