Class Account.Builder (0.10.0)

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

Information about CSS/MC account.

Protobuf type google.shopping.css.v1.Account

Implements

AccountOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAutomaticLabelIds(Iterable<? extends Long> values)

public Account.Builder addAllAutomaticLabelIds(Iterable<? extends Long> values)

Automatically created label IDs assigned to the MC account by CSS Center.

repeated int64 automatic_label_ids = 7;

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The automaticLabelIds to add.

Returns
Type Description
Account.Builder

This builder for chaining.

addAllLabelIds(Iterable<? extends Long> values)

public Account.Builder addAllLabelIds(Iterable<? extends Long> values)

Manually created label IDs assigned to the CSS/MC account by a CSS parent account.

repeated int64 label_ids = 6;

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The labelIds to add.

Returns
Type Description
Account.Builder

This builder for chaining.

addAutomaticLabelIds(long value)

public Account.Builder addAutomaticLabelIds(long value)

Automatically created label IDs assigned to the MC account by CSS Center.

repeated int64 automatic_label_ids = 7;

Parameter
Name Description
value long

The automaticLabelIds to add.

Returns
Type Description
Account.Builder

This builder for chaining.

addLabelIds(long value)

public Account.Builder addLabelIds(long value)

Manually created label IDs assigned to the CSS/MC account by a CSS parent account.

repeated int64 label_ids = 6;

Parameter
Name Description
value long

The labelIds to add.

Returns
Type Description
Account.Builder

This builder for chaining.

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

clearAccountType()

public Account.Builder clearAccountType()

Output only. The type of this account.

.google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Account.Builder

This builder for chaining.

clearAutomaticLabelIds()

public Account.Builder clearAutomaticLabelIds()

Automatically created label IDs assigned to the MC account by CSS Center.

repeated int64 automatic_label_ids = 7;

Returns
Type Description
Account.Builder

This builder for chaining.

clearDisplayName()

public Account.Builder clearDisplayName()

The CSS/MC account's short display name.

optional string display_name = 3;

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

clearFullName()

public Account.Builder clearFullName()

Output only. Immutable. The CSS/MC account's full name.

string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Account.Builder

This builder for chaining.

clearHomepageUri()

public Account.Builder clearHomepageUri()

Output only. Immutable. The CSS/MC account's homepage.

optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Account.Builder

This builder for chaining.

clearLabelIds()

public Account.Builder clearLabelIds()

Manually created label IDs assigned to the CSS/MC account by a CSS parent account.

repeated int64 label_ids = 6;

Returns
Type Description
Account.Builder

This builder for chaining.

clearName()

public Account.Builder clearName()

The label resource name. Format: accounts/{account}

string name = 1;

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

clearParent()

public Account.Builder clearParent()

The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.

optional string parent = 5;

Returns
Type Description
Account.Builder

This builder for chaining.

clone()

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

getAccountType()

public Account.AccountType getAccountType()

Output only. The type of this account.

.google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Account.AccountType

The accountType.

getAccountTypeValue()

public int getAccountTypeValue()

Output only. The type of this account.

.google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for accountType.

getAutomaticLabelIds(int index)

public long getAutomaticLabelIds(int index)

Automatically created label IDs assigned to the MC account by CSS Center.

repeated int64 automatic_label_ids = 7;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The automaticLabelIds at the given index.

getAutomaticLabelIdsCount()

public int getAutomaticLabelIdsCount()

Automatically created label IDs assigned to the MC account by CSS Center.

repeated int64 automatic_label_ids = 7;

Returns
Type Description
int

The count of automaticLabelIds.

getAutomaticLabelIdsList()

public List<Long> getAutomaticLabelIdsList()

Automatically created label IDs assigned to the MC account by CSS Center.

repeated int64 automatic_label_ids = 7;

Returns
Type Description
List<Long>

A list containing the automaticLabelIds.

getDefaultInstanceForType()

public Account getDefaultInstanceForType()
Returns
Type Description
Account

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The CSS/MC account's short display name.

optional string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The CSS/MC account's short display name.

optional string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getFullName()

public String getFullName()

Output only. Immutable. The CSS/MC account's full name.

string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The fullName.

getFullNameBytes()

public ByteString getFullNameBytes()

Output only. Immutable. The CSS/MC account's full name.

string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for fullName.

getHomepageUri()

public String getHomepageUri()

Output only. Immutable. The CSS/MC account's homepage.

optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The homepageUri.

getHomepageUriBytes()

public ByteString getHomepageUriBytes()

Output only. Immutable. The CSS/MC account's homepage.

optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for homepageUri.

getLabelIds(int index)

public long getLabelIds(int index)

Manually created label IDs assigned to the CSS/MC account by a CSS parent account.

repeated int64 label_ids = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The labelIds at the given index.

getLabelIdsCount()

public int getLabelIdsCount()

Manually created label IDs assigned to the CSS/MC account by a CSS parent account.

repeated int64 label_ids = 6;

Returns
Type Description
int

The count of labelIds.

getLabelIdsList()

public List<Long> getLabelIdsList()

Manually created label IDs assigned to the CSS/MC account by a CSS parent account.

repeated int64 label_ids = 6;

Returns
Type Description
List<Long>

A list containing the labelIds.

getName()

public String getName()

The label resource name. Format: accounts/{account}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The label resource name. Format: accounts/{account}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParent()

public String getParent()

The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.

optional string parent = 5;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.

optional string parent = 5;

Returns
Type Description
ByteString

The bytes for parent.

hasDisplayName()

public boolean hasDisplayName()

The CSS/MC account's short display name.

optional string display_name = 3;

Returns
Type Description
boolean

Whether the displayName field is set.

hasHomepageUri()

public boolean hasHomepageUri()

Output only. Immutable. The CSS/MC account's homepage.

optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the homepageUri field is set.

hasParent()

public boolean hasParent()

The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.

optional string parent = 5;

Returns
Type Description
boolean

Whether the parent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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

mergeFrom(Account other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccountType(Account.AccountType value)

public Account.Builder setAccountType(Account.AccountType value)

Output only. The type of this account.

.google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Account.AccountType

The accountType to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setAccountTypeValue(int value)

public Account.Builder setAccountTypeValue(int value)

Output only. The type of this account.

.google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Account.Builder

This builder for chaining.

setAutomaticLabelIds(int index, long value)

public Account.Builder setAutomaticLabelIds(int index, long value)

Automatically created label IDs assigned to the MC account by CSS Center.

repeated int64 automatic_label_ids = 7;

Parameters
Name Description
index int

The index to set the value at.

value long

The automaticLabelIds to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setDisplayName(String value)

public Account.Builder setDisplayName(String value)

The CSS/MC account's short display name.

optional string display_name = 3;

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)

The CSS/MC account's short display name.

optional string display_name = 3;

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

setFullName(String value)

public Account.Builder setFullName(String value)

Output only. Immutable. The CSS/MC account's full name.

string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The fullName to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setFullNameBytes(ByteString value)

public Account.Builder setFullNameBytes(ByteString value)

Output only. Immutable. The CSS/MC account's full name.

string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for fullName to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setHomepageUri(String value)

public Account.Builder setHomepageUri(String value)

Output only. Immutable. The CSS/MC account's homepage.

optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The homepageUri to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setHomepageUriBytes(ByteString value)

public Account.Builder setHomepageUriBytes(ByteString value)

Output only. Immutable. The CSS/MC account's homepage.

optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for homepageUri to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setLabelIds(int index, long value)

public Account.Builder setLabelIds(int index, long value)

Manually created label IDs assigned to the CSS/MC account by a CSS parent account.

repeated int64 label_ids = 6;

Parameters
Name Description
index int

The index to set the value at.

value long

The labelIds to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setName(String value)

public Account.Builder setName(String value)

The label resource name. Format: accounts/{account}

string name = 1;

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)

The label resource name. Format: accounts/{account}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setParent(String value)

public Account.Builder setParent(String value)

The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.

optional string parent = 5;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
Account.Builder

This builder for chaining.

setParentBytes(ByteString value)

public Account.Builder setParentBytes(ByteString value)

The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.

optional string parent = 5;

Parameter
Name Description
value ByteString

The bytes for parent 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