public static final class AccountLabel.Builder extends GeneratedMessageV3.Builder<AccountLabel.Builder> implements AccountLabelOrBuilderLabel assigned by CSS domain or CSS group to one of its sub-accounts.
Protobuf type google.shopping.css.v1.AccountLabel
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AccountLabel.BuilderImplements
AccountLabelOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AccountLabel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
build()
public AccountLabel build()| Returns | |
|---|---|
| Type | Description |
AccountLabel |
|
buildPartial()
public AccountLabel buildPartial()| Returns | |
|---|---|
| Type | Description |
AccountLabel |
|
clear()
public AccountLabel.Builder clear()| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
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 | |
|---|---|
| Type | Description |
AccountLabel.Builder |
This builder for chaining. |
clearDescription()
public AccountLabel.Builder clearDescription()The description of this label.
optional string description = 5;
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
This builder for chaining. |
clearDisplayName()
public AccountLabel.Builder clearDisplayName()The display name of this label.
optional string display_name = 4;
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AccountLabel.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
clearLabelId()
public AccountLabel.Builder clearLabelId()Output only. The ID of the label.
int64 label_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
AccountLabel.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AccountLabel.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
clone()
public AccountLabel.Builder clone()| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
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 | |
|---|---|
| Type | Description |
long |
The accountId. |
getDefaultInstanceForType()
public AccountLabel getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AccountLabel |
|
getDescription()
public String getDescription()The description of this label.
optional string description = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()The description of this label.
optional string description = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()The display name of this label.
optional string display_name = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()The display name of this label.
optional string display_name = 4;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The resource name of the label. Format: accounts/{account}/labels/{label}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
hasDescription()
public boolean hasDescription()The description of this label.
optional string description = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
hasDisplayName()
public boolean hasDisplayName()The display name of this label.
optional string display_name = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AccountLabel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AccountLabel.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
mergeFrom(AccountLabel other)
public AccountLabel.Builder mergeFrom(AccountLabel other)| Parameter | |
|---|---|
| Name | Description |
other |
AccountLabel |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AccountLabel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
longThe accountId to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AccountLabel.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
longThe labelId to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
AccountLabel.LabelTypeThe labelType to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for labelType to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AccountLabel.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AccountLabel.Builder |
|