Class BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder (0.62.0)

public static final class BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder extends GeneratedMessage.Builder<BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder> implements BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelActionOrBuilder

Actions to perform on custom labels for batch updates.

Protobuf type google.ads.admanager.v1.BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

Static Methods

getDescriptor()

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

Methods

addAllLabelIds(Iterable<String> values)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder addAllLabelIds(Iterable<String> values)

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The labelIds to add.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

addAllNames(Iterable<String> values)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder addAllNames(Iterable<String> values)

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Parameter
Name Description
values Iterable<String>

The names to add.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

addLabelIds(String value)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder addLabelIds(String value)

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The labelIds to add.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

addLabelIdsBytes(ByteString value)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder addLabelIdsBytes(ByteString value)

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the labelIds to add.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

addNames(String value)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder addNames(String value)

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Parameter
Name Description
value String

The names to add.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

addNamesBytes(ByteString value)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder addNamesBytes(ByteString value)

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Parameter
Name Description
value ByteString

The bytes of the names to add.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

build()

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction build()
Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction

buildPartial()

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction buildPartial()
Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction

clear()

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder clear()
Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder
Overrides

clearLabelIds()

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder clearLabelIds()

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

clearNames()

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder clearNames()

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

getDefaultInstanceForType()

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction getDefaultInstanceForType()
Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction

getDescriptorForType()

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

getLabelIds(int index)

public String getLabelIds(int index)

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The labelIds at the given index.

getLabelIdsBytes(int index)

public ByteString getLabelIdsBytes(int index)

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the labelIds at the given index.

getLabelIdsCount()

public int getLabelIdsCount()

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of labelIds.

getLabelIdsList()

public ProtocolStringList getLabelIdsList()

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the labelIds.

getNames(int index)

public String getNames(int index)

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The names at the given index.

getNamesBytes(int index)

public ByteString getNamesBytes(int index)

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the names at the given index.

getNamesCount()

public int getNamesCount()

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Returns
Type Description
int

The count of names.

getNamesList()

public ProtocolStringList getNamesList()

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Returns
Type Description
ProtocolStringList

A list containing the names.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setLabelIds(int index, String value)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder setLabelIds(int index, String value)

Required. The labelId to add or remove.

repeated string label_ids = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The labelIds to set.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.

setNames(int index, String value)

public BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder setNames(int index, String value)

Required. The resource names of the AdReviewCenterAds to update. Format: networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}

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

Parameters
Name Description
index int

The index to set the value at.

value String

The names to set.

Returns
Type Description
BatchApplyAdReviewCenterCustomLabelsRequest.BatchLabelAction.Builder

This builder for chaining.