Class AnalyticsAccountLink.Builder (0.4.0)

public static final class AnalyticsAccountLink.Builder extends GeneratedMessageV3.Builder<AnalyticsAccountLink.Builder> 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 Methods

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

public AnalyticsAccountLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public AnalyticsAccountLink build()
Returns
Type Description
AnalyticsAccountLink
public AnalyticsAccountLink buildPartial()
Returns
Type Description
AnalyticsAccountLink
public AnalyticsAccountLink.Builder clear()
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public AnalyticsAccountLink.Builder clearAnalyticsAccount()

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
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder clearDisplayName()

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

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

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public AnalyticsAccountLink.Builder clearLinkVerificationState()

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
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder clearName()

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
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public AnalyticsAccountLink.Builder clone()
Returns
Type Description
AnalyticsAccountLink.Builder
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 Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
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.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public AnalyticsAccountLink.Builder mergeFrom(AnalyticsAccountLink other)
Parameter
Name Description
other AnalyticsAccountLink
Returns
Type Description
AnalyticsAccountLink.Builder
public AnalyticsAccountLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
Exceptions
Type Description
IOException
public AnalyticsAccountLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public final AnalyticsAccountLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public AnalyticsAccountLink.Builder setAnalyticsAccount(String value)

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) = { ... }

Parameter
Name Description
value String

The analyticsAccount to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setAnalyticsAccountBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for analyticsAccount to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setDisplayName(String value)

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

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setDisplayNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public AnalyticsAccountLink.Builder setLinkVerificationState(LinkVerificationState value)

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];

Parameter
Name Description
value LinkVerificationState

The linkVerificationState to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setLinkVerificationStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for linkVerificationState to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AnalyticsAccountLink.Builder

This builder for chaining.

public AnalyticsAccountLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides
public final AnalyticsAccountLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyticsAccountLink.Builder
Overrides