Class AccountLabel.Builder (0.3.0)

public static final class AccountLabel.Builder extends GeneratedMessageV3.Builder<AccountLabel.Builder> implements AccountLabelOrBuilder

Label assigned by CSS domain or CSS group to one of its sub-accounts.

Protobuf type google.shopping.css.v1.AccountLabel

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccountLabel build()
Returns
TypeDescription
AccountLabel

buildPartial()

public AccountLabel buildPartial()
Returns
TypeDescription
AccountLabel

clear()

public AccountLabel.Builder clear()
Returns
TypeDescription
AccountLabel.Builder
Overrides

clearAccountId()

public AccountLabel.Builder clearAccountId()

Output only. The ID of account this label belongs to.

int64 account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

clearDescription()

public AccountLabel.Builder clearDescription()

The description of this label.

optional string description = 5;

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

clearDisplayName()

public AccountLabel.Builder clearDisplayName()

The display name of this label.

optional string display_name = 4;

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AccountLabel.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AccountLabel.Builder
Overrides

clearLabelId()

public AccountLabel.Builder clearLabelId()

Output only. The ID of the label.

int64 label_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

clearLabelType()

public AccountLabel.Builder clearLabelType()

Output only. The type of this label.

.google.shopping.css.v1.AccountLabel.LabelType label_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

clearName()

public AccountLabel.Builder clearName()

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

string name = 1;

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AccountLabel.Builder clone()
Returns
TypeDescription
AccountLabel.Builder
Overrides

getAccountId()

public long getAccountId()

Output only. The ID of account this label belongs to.

int64 account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The accountId.

getDefaultInstanceForType()

public AccountLabel getDefaultInstanceForType()
Returns
TypeDescription
AccountLabel

getDescription()

public String getDescription()

The description of this label.

optional string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of this label.

optional string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of this label.

optional string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of this label.

optional string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLabelId()

public long getLabelId()

Output only. The ID of the label.

int64 label_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The labelId.

getLabelType()

public AccountLabel.LabelType getLabelType()

Output only. The type of this label.

.google.shopping.css.v1.AccountLabel.LabelType label_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AccountLabel.LabelType

The labelType.

getLabelTypeValue()

public int getLabelTypeValue()

Output only. The type of this label.

.google.shopping.css.v1.AccountLabel.LabelType label_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for labelType.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasDescription()

public boolean hasDescription()

The description of this label.

optional string description = 5;

Returns
TypeDescription
boolean

Whether the description field is set.

hasDisplayName()

public boolean hasDisplayName()

The display name of this label.

optional string display_name = 4;

Returns
TypeDescription
boolean

Whether the displayName 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 AccountLabel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccountLabel.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(AccountLabel other)

public AccountLabel.Builder mergeFrom(AccountLabel other)
Parameter
NameDescription
otherAccountLabel
Returns
TypeDescription
AccountLabel.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccountLabel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccountLabel.Builder
Overrides

setAccountId(long value)

public AccountLabel.Builder setAccountId(long value)

Output only. The ID of account this label belongs to.

int64 account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuelong

The accountId to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setDescription(String value)

public AccountLabel.Builder setDescription(String value)

The description of this label.

optional string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AccountLabel.Builder setDescriptionBytes(ByteString value)

The description of this label.

optional string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setDisplayName(String value)

public AccountLabel.Builder setDisplayName(String value)

The display name of this label.

optional string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AccountLabel.Builder setDisplayNameBytes(ByteString value)

The display name of this label.

optional string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabelId(long value)

public AccountLabel.Builder setLabelId(long value)

Output only. The ID of the label.

int64 label_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuelong

The labelId to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setLabelType(AccountLabel.LabelType value)

public AccountLabel.Builder setLabelType(AccountLabel.LabelType value)

Output only. The type of this label.

.google.shopping.css.v1.AccountLabel.LabelType label_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAccountLabel.LabelType

The labelType to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setLabelTypeValue(int value)

public AccountLabel.Builder setLabelTypeValue(int value)

Output only. The type of this label.

.google.shopping.css.v1.AccountLabel.LabelType label_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setName(String value)

public AccountLabel.Builder setName(String value)

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

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccountLabel.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AccountLabel.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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