Class AccountSummary.Builder (0.57.0)

public static final class AccountSummary.Builder extends GeneratedMessageV3.Builder<AccountSummary.Builder> implements AccountSummaryOrBuilder

A virtual resource representing an overview of an account and all its child GA4 properties.

Protobuf type google.analytics.admin.v1alpha.AccountSummary

Static Methods

getDescriptor()

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

Methods

addAllPropertySummaries(Iterable<? extends PropertySummary> values)

public AccountSummary.Builder addAllPropertySummaries(Iterable<? extends PropertySummary> values)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
values Iterable<? extends com.google.analytics.admin.v1alpha.PropertySummary>
Returns
Type Description
AccountSummary.Builder

addPropertySummaries(PropertySummary value)

public AccountSummary.Builder addPropertySummaries(PropertySummary value)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
value PropertySummary
Returns
Type Description
AccountSummary.Builder

addPropertySummaries(PropertySummary.Builder builderForValue)

public AccountSummary.Builder addPropertySummaries(PropertySummary.Builder builderForValue)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
builderForValue PropertySummary.Builder
Returns
Type Description
AccountSummary.Builder

addPropertySummaries(int index, PropertySummary value)

public AccountSummary.Builder addPropertySummaries(int index, PropertySummary value)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameters
Name Description
index int
value PropertySummary
Returns
Type Description
AccountSummary.Builder

addPropertySummaries(int index, PropertySummary.Builder builderForValue)

public AccountSummary.Builder addPropertySummaries(int index, PropertySummary.Builder builderForValue)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameters
Name Description
index int
builderForValue PropertySummary.Builder
Returns
Type Description
AccountSummary.Builder

addPropertySummariesBuilder()

public PropertySummary.Builder addPropertySummariesBuilder()

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Returns
Type Description
PropertySummary.Builder

addPropertySummariesBuilder(int index)

public PropertySummary.Builder addPropertySummariesBuilder(int index)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
index int
Returns
Type Description
PropertySummary.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccountSummary build()
Returns
Type Description
AccountSummary

buildPartial()

public AccountSummary buildPartial()
Returns
Type Description
AccountSummary

clear()

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

clearAccount()

public AccountSummary.Builder clearAccount()

Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000"

string account = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

clearDisplayName()

public AccountSummary.Builder clearDisplayName()

Display name for the account referred to in this account summary.

string display_name = 3;

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AccountSummary.Builder clearName()

Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000"

string name = 1;

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertySummaries()

public AccountSummary.Builder clearPropertySummaries()

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Returns
Type Description
AccountSummary.Builder

clone()

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

getAccount()

public String getAccount()

Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000"

string account = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The account.

getAccountBytes()

public ByteString getAccountBytes()

Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000"

string account = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for account.

getDefaultInstanceForType()

public AccountSummary getDefaultInstanceForType()
Returns
Type Description
AccountSummary

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Display name for the account referred to in this account summary.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name for the account referred to in this account summary.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000"

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000"

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPropertySummaries(int index)

public PropertySummary getPropertySummaries(int index)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
index int
Returns
Type Description
PropertySummary

getPropertySummariesBuilder(int index)

public PropertySummary.Builder getPropertySummariesBuilder(int index)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
index int
Returns
Type Description
PropertySummary.Builder

getPropertySummariesBuilderList()

public List<PropertySummary.Builder> getPropertySummariesBuilderList()

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Returns
Type Description
List<Builder>

getPropertySummariesCount()

public int getPropertySummariesCount()

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Returns
Type Description
int

getPropertySummariesList()

public List<PropertySummary> getPropertySummariesList()

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Returns
Type Description
List<PropertySummary>

getPropertySummariesOrBuilder(int index)

public PropertySummaryOrBuilder getPropertySummariesOrBuilder(int index)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
index int
Returns
Type Description
PropertySummaryOrBuilder

getPropertySummariesOrBuilderList()

public List<? extends PropertySummaryOrBuilder> getPropertySummariesOrBuilderList()

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Returns
Type Description
List<? extends com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccountSummary other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePropertySummaries(int index)

public AccountSummary.Builder removePropertySummaries(int index)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameter
Name Description
index int
Returns
Type Description
AccountSummary.Builder

setAccount(String value)

public AccountSummary.Builder setAccount(String value)

Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000"

string account = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The account to set.

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

setAccountBytes(ByteString value)

public AccountSummary.Builder setAccountBytes(ByteString value)

Resource name of account referred to by this account summary Format: accounts/{account_id} Example: "accounts/1000"

string account = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for account to set.

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

setDisplayName(String value)

public AccountSummary.Builder setDisplayName(String value)

Display name for the account referred to in this account summary.

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AccountSummary.Builder setDisplayNameBytes(ByteString value)

Display name for the account referred to in this account summary.

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AccountSummary.Builder setName(String value)

Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000"

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccountSummary.Builder setNameBytes(ByteString value)

Resource name for this account summary. Format: accountSummaries/{account_id} Example: "accountSummaries/1000"

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AccountSummary.Builder

This builder for chaining.

setPropertySummaries(int index, PropertySummary value)

public AccountSummary.Builder setPropertySummaries(int index, PropertySummary value)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameters
Name Description
index int
value PropertySummary
Returns
Type Description
AccountSummary.Builder

setPropertySummaries(int index, PropertySummary.Builder builderForValue)

public AccountSummary.Builder setPropertySummaries(int index, PropertySummary.Builder builderForValue)

List of summaries for child accounts of this account.

repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;

Parameters
Name Description
index int
builderForValue PropertySummary.Builder
Returns
Type Description
AccountSummary.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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