Class AccountSummary.Builder (0.18.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.v1beta.AccountSummary

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.admin.v1beta.PropertySummary>
Returns
TypeDescription
AccountSummary.Builder

addPropertySummaries(PropertySummary value)

public AccountSummary.Builder addPropertySummaries(PropertySummary value)

List of summaries for child accounts of this account.

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

Parameter
NameDescription
valuePropertySummary
Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameter
NameDescription
builderForValuePropertySummary.Builder
Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameters
NameDescription
indexint
valuePropertySummary
Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameters
NameDescription
indexint
builderForValuePropertySummary.Builder
Returns
TypeDescription
AccountSummary.Builder

addPropertySummariesBuilder()

public PropertySummary.Builder addPropertySummariesBuilder()

List of summaries for child accounts of this account.

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

Returns
TypeDescription
PropertySummary.Builder

addPropertySummariesBuilder(int index)

public PropertySummary.Builder addPropertySummariesBuilder(int index)

List of summaries for child accounts of this account.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertySummary.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccountSummary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AccountSummary.Builder
Overrides

build()

public AccountSummary build()
Returns
TypeDescription
AccountSummary

buildPartial()

public AccountSummary buildPartial()
Returns
TypeDescription
AccountSummary

clear()

public AccountSummary.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AccountSummary.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AccountSummary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AccountSummary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AccountSummary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AccountSummary.Builder
Overrides

clearPropertySummaries()

public AccountSummary.Builder clearPropertySummaries()

List of summaries for child accounts of this account.

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

Returns
TypeDescription
AccountSummary.Builder

clone()

public AccountSummary.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for account.

getDefaultInstanceForType()

public AccountSummary getDefaultInstanceForType()
Returns
TypeDescription
AccountSummary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

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

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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

string display_name = 3;

Returns
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertySummary

getPropertySummariesBuilder(int index)

public PropertySummary.Builder getPropertySummariesBuilder(int index)

List of summaries for child accounts of this account.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertySummary.Builder

getPropertySummariesBuilderList()

public List<PropertySummary.Builder> getPropertySummariesBuilderList()

List of summaries for child accounts of this account.

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

Returns
TypeDescription
List<Builder>

getPropertySummariesCount()

public int getPropertySummariesCount()

List of summaries for child accounts of this account.

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

Returns
TypeDescription
int

getPropertySummariesList()

public List<PropertySummary> getPropertySummariesList()

List of summaries for child accounts of this account.

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

Returns
TypeDescription
List<PropertySummary>

getPropertySummariesOrBuilder(int index)

public PropertySummaryOrBuilder getPropertySummariesOrBuilder(int index)

List of summaries for child accounts of this account.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertySummaryOrBuilder

getPropertySummariesOrBuilderList()

public List<? extends PropertySummaryOrBuilder> getPropertySummariesOrBuilderList()

List of summaries for child accounts of this account.

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

Returns
TypeDescription
List<? extends com.google.analytics.admin.v1beta.PropertySummaryOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AccountSummary other)

public AccountSummary.Builder mergeFrom(AccountSummary other)
Parameter
NameDescription
otherAccountSummary
Returns
TypeDescription
AccountSummary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccountSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccountSummary.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AccountSummary.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AccountSummary.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccountSummary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The account to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for account to set.

Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
AccountSummary.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AccountSummary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameters
NameDescription
indexint
valuePropertySummary
Returns
TypeDescription
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.v1beta.PropertySummary property_summaries = 4;

Parameters
NameDescription
indexint
builderForValuePropertySummary.Builder
Returns
TypeDescription
AccountSummary.Builder

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

public AccountSummary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AccountSummary.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AccountSummary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccountSummary.Builder
Overrides