Class UpdateAccountLabelsRequest.Builder (0.21.0)

public static final class UpdateAccountLabelsRequest.Builder extends GeneratedMessageV3.Builder<UpdateAccountLabelsRequest.Builder> implements UpdateAccountLabelsRequestOrBuilder

The request message for the UpdateLabels method.

Protobuf type google.shopping.css.v1.UpdateAccountLabelsRequest

Static Methods

getDescriptor()

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

Methods

addAllLabelIds(Iterable<? extends Long> values)

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

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.

repeated int64 label_ids = 2;

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

The labelIds to add.

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

addLabelIds(long value)

public UpdateAccountLabelsRequest.Builder addLabelIds(long value)

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.

repeated int64 label_ids = 2;

Parameter
Name Description
value long

The labelIds to add.

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateAccountLabelsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides

build()

public UpdateAccountLabelsRequest build()
Returns
Type Description
UpdateAccountLabelsRequest

buildPartial()

public UpdateAccountLabelsRequest buildPartial()
Returns
Type Description
UpdateAccountLabelsRequest

clear()

public UpdateAccountLabelsRequest.Builder clear()
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateAccountLabelsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides

clearLabelIds()

public UpdateAccountLabelsRequest.Builder clearLabelIds()

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.

repeated int64 label_ids = 2;

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

clearName()

public UpdateAccountLabelsRequest.Builder clearName()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateAccountLabelsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides

clearParent()

public UpdateAccountLabelsRequest.Builder clearParent()

Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

optional string parent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateAccountLabelsRequest getDefaultInstanceForType()
Returns
Type Description
UpdateAccountLabelsRequest

getDescriptorForType()

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

getLabelIds(int index)

public long getLabelIds(int index)

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.

repeated int64 label_ids = 2;

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()

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.

repeated int64 label_ids = 2;

Returns
Type Description
int

The count of labelIds.

getLabelIdsList()

public List<Long> getLabelIdsList()

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.

repeated int64 label_ids = 2;

Returns
Type Description
List<Long>

A list containing the labelIds.

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getParent()

public String getParent()

Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

optional string parent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

optional string parent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasParent()

public boolean hasParent()

Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

optional string parent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

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 UpdateAccountLabelsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateAccountLabelsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides

mergeFrom(UpdateAccountLabelsRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateAccountLabelsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides

setLabelIds(int index, long value)

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

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.

repeated int64 label_ids = 2;

Parameters
Name Description
index int

The index to set the value at.

value long

The labelIds to set.

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

setName(String value)

public UpdateAccountLabelsRequest.Builder setName(String value)

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

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateAccountLabelsRequest.Builder setNameBytes(ByteString value)

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

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

setParent(String value)

public UpdateAccountLabelsRequest.Builder setParent(String value)

Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

optional string parent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public UpdateAccountLabelsRequest.Builder setParentBytes(ByteString value)

Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

optional string parent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
UpdateAccountLabelsRequest.Builder

This builder for chaining.

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

public UpdateAccountLabelsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAccountLabelsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateAccountLabelsRequest.Builder
Overrides