Class Account.Builder (0.64.0)

public static final class Account.Builder extends GeneratedMessageV3.Builder<Account.Builder> implements AccountOrBuilder

A resource message representing a Google Analytics account.

Protobuf type google.analytics.admin.v1alpha.Account

Implements

AccountOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Account.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Account.Builder
Overrides

build()

public Account build()
Returns
Type Description
Account

buildPartial()

public Account buildPartial()
Returns
Type Description
Account

clear()

public Account.Builder clear()
Returns
Type Description
Account.Builder
Overrides

clearCreateTime()

public Account.Builder clearCreateTime()

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Account.Builder

clearDeleted()

public Account.Builder clearDeleted()

Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.

bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Account.Builder

This builder for chaining.

clearDisplayName()

public Account.Builder clearDisplayName()

Required. Human-readable display name for this account.

string display_name = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Account.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGmpOrganization()

public Account.Builder clearGmpOrganization()

Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}

string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Account.Builder

This builder for chaining.

clearName()

public Account.Builder clearName()

Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"

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

Returns
Type Description
Account.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Account.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Account.Builder
Overrides

clearRegionCode()

public Account.Builder clearRegionCode()

Country of business. Must be a Unicode CLDR region code.

string region_code = 5;

Returns
Type Description
Account.Builder

This builder for chaining.

clearUpdateTime()

public Account.Builder clearUpdateTime()

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Account.Builder

clone()

public Account.Builder clone()
Returns
Type Description
Account.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Account getDefaultInstanceForType()
Returns
Type Description
Account

getDeleted()

public boolean getDeleted()

Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.

bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The deleted.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. Human-readable display name for this account.

string display_name = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Human-readable display name for this account.

string display_name = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getGmpOrganization()

public String getGmpOrganization()

Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}

string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The gmpOrganization.

getGmpOrganizationBytes()

public ByteString getGmpOrganizationBytes()

Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}

string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for gmpOrganization.

getName()

public String getName()

Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"

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

Returns
Type Description
ByteString

The bytes for name.

getRegionCode()

public String getRegionCode()

Country of business. Must be a Unicode CLDR region code.

string region_code = 5;

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Country of business. Must be a Unicode CLDR region code.

string region_code = 5;

Returns
Type Description
ByteString

The bytes for regionCode.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Account.Builder mergeCreateTime(Timestamp value)

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Account.Builder

mergeFrom(Account other)

public Account.Builder mergeFrom(Account other)
Parameter
Name Description
other Account
Returns
Type Description
Account.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Account.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Account.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Account.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Account.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Account.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Account.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Account.Builder mergeUpdateTime(Timestamp value)

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Account.Builder

setCreateTime(Timestamp value)

public Account.Builder setCreateTime(Timestamp value)

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Account.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Account.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when this account was originally created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Account.Builder

setDeleted(boolean value)

public Account.Builder setDeleted(boolean value)

Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.

bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The deleted to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setDisplayName(String value)

public Account.Builder setDisplayName(String value)

Required. Human-readable display name for this account.

string display_name = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Account.Builder setDisplayNameBytes(ByteString value)

Required. Human-readable display name for this account.

string display_name = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGmpOrganization(String value)

public Account.Builder setGmpOrganization(String value)

Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}

string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The gmpOrganization to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setGmpOrganizationBytes(ByteString value)

public Account.Builder setGmpOrganizationBytes(ByteString value)

Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}

string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for gmpOrganization to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setName(String value)

public Account.Builder setName(String value)

Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Account.Builder setNameBytes(ByteString value)

Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setRegionCode(String value)

public Account.Builder setRegionCode(String value)

Country of business. Must be a Unicode CLDR region code.

string region_code = 5;

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public Account.Builder setRegionCodeBytes(ByteString value)

Country of business. Must be a Unicode CLDR region code.

string region_code = 5;

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Account.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Account.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Account.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Account.Builder
Overrides

setUpdateTime(Timestamp value)

public Account.Builder setUpdateTime(Timestamp value)

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Account.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Account.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when account payload fields were last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Account.Builder