Class Account.Builder (0.5.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
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Long>

The automaticLabelIds to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Long>

The labelIds to add.

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

The automaticLabelIds to add.

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

The labelIds to add.

Returns
TypeDescription
Account.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Account build()
Returns
TypeDescription
Account

buildPartial()

public Account buildPartial()
Returns
TypeDescription
Account

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearName()

public Account.Builder clearName()

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

string name = 1;

Returns
TypeDescription
Account.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Account.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Account.Builder

This builder for chaining.

clone()

public Account.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<Long>

A list containing the automaticLabelIds.

getDefaultInstanceForType()

public Account getDefaultInstanceForType()
Returns
TypeDescription
Account

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The CSS/MC account's short display name.

optional string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The CSS/MC account's short display name.

optional string display_name = 3;

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

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<Long>

A list containing the labelIds.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

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

The bytes for parent.

hasDisplayName()

public boolean hasDisplayName()

The CSS/MC account's short display name.

optional string display_name = 3;

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

Whether the parent field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Account other)

public Account.Builder mergeFrom(Account other)
Parameter
NameDescription
otherAccount
Returns
TypeDescription
Account.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Account.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAccount.AccountType

The accountType to set.

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

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

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

The index to set the value at.

valuelong

The automaticLabelIds to set.

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

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
Account.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The fullName to set.

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

The bytes for fullName to set.

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

The homepageUri to set.

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

The bytes for homepageUri to set.

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

The index to set the value at.

valuelong

The labelIds to set.

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

The name to set.

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

The bytes for name to set.

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Account.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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