Class AnalyticsAccountLink (0.1.0)

public final class AnalyticsAccountLink extends GeneratedMessageV3 implements AnalyticsAccountLinkOrBuilder

A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization.

Protobuf type google.marketingplatform.admin.v1alpha.AnalyticsAccountLink

Static Fields

public static final int ANALYTICS_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int
public static final int LINK_VERIFICATION_STATE_FIELD_NUMBER
Field Value
Type Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

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

Methods

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides
public String getAnalyticsAccount()

Required. Immutable. The resource name of the AnalyticsAdmin API account. The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name.

Format: analyticsadmin.googleapis.com/accounts/{account_id}

string analytics_account = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The analyticsAccount.

public ByteString getAnalyticsAccountBytes()

Required. Immutable. The resource name of the AnalyticsAdmin API account. The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name.

Format: analyticsadmin.googleapis.com/accounts/{account_id}

string analytics_account = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for analyticsAccount.

public AnalyticsAccountLink getDefaultInstanceForType()
Returns
Type Description
AnalyticsAccountLink
public String getDisplayName()

Output only. The human-readable name for the Analytics account.

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

public ByteString getDisplayNameBytes()

Output only. The human-readable name for the Analytics account.

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

public LinkVerificationState getLinkVerificationState()

Output only. The verification state of the link between the Analytics account and the parent organization.

.google.marketingplatform.admin.v1alpha.LinkVerificationState link_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LinkVerificationState

The linkVerificationState.

public int getLinkVerificationStateValue()

Output only. The verification state of the link between the Analytics account and the parent organization.

.google.marketingplatform.admin.v1alpha.LinkVerificationState link_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for linkVerificationState.

public String getName()

Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account.

Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

public ByteString getNameBytes()

Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account.

Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

public Parser<AnalyticsAccountLink> getParserForType()
Returns
Type Description
Parser<AnalyticsAccountLink>
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 AnalyticsAccountLink.Builder newBuilderForType()
Returns
Type Description
AnalyticsAccountLink.Builder
protected AnalyticsAccountLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public AnalyticsAccountLink.Builder toBuilder()
Returns
Type Description
AnalyticsAccountLink.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException