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

The labelIds to add.

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

The labelIds to add.

Returns
TypeDescription
UpdateAccountLabelsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAccountLabelsRequest build()
Returns
TypeDescription
UpdateAccountLabelsRequest

buildPartial()

public UpdateAccountLabelsRequest buildPartial()
Returns
TypeDescription
UpdateAccountLabelsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateAccountLabelsRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateAccountLabelsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

mergeFrom(Message other)

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

mergeFrom(UpdateAccountLabelsRequest other)

public UpdateAccountLabelsRequest.Builder mergeFrom(UpdateAccountLabelsRequest other)
Parameter
NameDescription
otherUpdateAccountLabelsRequest
Returns
TypeDescription
UpdateAccountLabelsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valuelong

The labelIds to set.

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

The name to set.

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

The bytes for name to set.

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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