Class BatchDeactivateCustomTargetingValuesRequest.Builder (0.54.0)

public static final class BatchDeactivateCustomTargetingValuesRequest.Builder extends GeneratedMessage.Builder<BatchDeactivateCustomTargetingValuesRequest.Builder> implements BatchDeactivateCustomTargetingValuesRequestOrBuilder

Request message for BatchDeactivateCustomTargetingValues method.

Protobuf type google.ads.admanager.v1.BatchDeactivateCustomTargetingValuesRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends DeactivateCustomTargetingValueRequest> values)

public BatchDeactivateCustomTargetingValuesRequest.Builder addAllRequests(Iterable<? extends DeactivateCustomTargetingValueRequest> values)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.DeactivateCustomTargetingValueRequest>
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

addRequests(DeactivateCustomTargetingValueRequest value)

public BatchDeactivateCustomTargetingValuesRequest.Builder addRequests(DeactivateCustomTargetingValueRequest value)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeactivateCustomTargetingValueRequest
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

addRequests(DeactivateCustomTargetingValueRequest.Builder builderForValue)

public BatchDeactivateCustomTargetingValuesRequest.Builder addRequests(DeactivateCustomTargetingValueRequest.Builder builderForValue)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DeactivateCustomTargetingValueRequest.Builder
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

addRequests(int index, DeactivateCustomTargetingValueRequest value)

public BatchDeactivateCustomTargetingValuesRequest.Builder addRequests(int index, DeactivateCustomTargetingValueRequest value)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DeactivateCustomTargetingValueRequest
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

addRequests(int index, DeactivateCustomTargetingValueRequest.Builder builderForValue)

public BatchDeactivateCustomTargetingValuesRequest.Builder addRequests(int index, DeactivateCustomTargetingValueRequest.Builder builderForValue)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DeactivateCustomTargetingValueRequest.Builder
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

addRequestsBuilder()

public DeactivateCustomTargetingValueRequest.Builder addRequestsBuilder()

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeactivateCustomTargetingValueRequest.Builder

addRequestsBuilder(int index)

public DeactivateCustomTargetingValueRequest.Builder addRequestsBuilder(int index)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DeactivateCustomTargetingValueRequest.Builder

build()

public BatchDeactivateCustomTargetingValuesRequest build()
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest

buildPartial()

public BatchDeactivateCustomTargetingValuesRequest buildPartial()
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest

clear()

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

clearParent()

public BatchDeactivateCustomTargetingValuesRequest.Builder clearParent()

Required. The parent, which owns this collection of CustomTargetingValues. Format: networks/{network_code}/

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

Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

This builder for chaining.

clearRequests()

public BatchDeactivateCustomTargetingValuesRequest.Builder clearRequests()

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

getDefaultInstanceForType()

public BatchDeactivateCustomTargetingValuesRequest getDefaultInstanceForType()
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent, which owns this collection of CustomTargetingValues. Format: networks/{network_code}/

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent, which owns this collection of CustomTargetingValues. Format: networks/{network_code}/

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

Returns
Type Description
ByteString

The bytes for parent.

getRequests(int index)

public DeactivateCustomTargetingValueRequest getRequests(int index)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DeactivateCustomTargetingValueRequest

getRequestsBuilder(int index)

public DeactivateCustomTargetingValueRequest.Builder getRequestsBuilder(int index)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DeactivateCustomTargetingValueRequest.Builder

getRequestsBuilderList()

public List<DeactivateCustomTargetingValueRequest.Builder> getRequestsBuilderList()

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<DeactivateCustomTargetingValueRequest> getRequestsList()

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<DeactivateCustomTargetingValueRequest>

getRequestsOrBuilder(int index)

public DeactivateCustomTargetingValueRequestOrBuilder getRequestsOrBuilder(int index)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DeactivateCustomTargetingValueRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends DeactivateCustomTargetingValueRequestOrBuilder> getRequestsOrBuilderList()

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.DeactivateCustomTargetingValueRequestOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchDeactivateCustomTargetingValuesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchDeactivateCustomTargetingValuesRequest.Builder removeRequests(int index)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

setParent(String value)

public BatchDeactivateCustomTargetingValuesRequest.Builder setParent(String value)

Required. The parent, which owns this collection of CustomTargetingValues. Format: networks/{network_code}/

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchDeactivateCustomTargetingValuesRequest.Builder setParentBytes(ByteString value)

Required. The parent, which owns this collection of CustomTargetingValues. Format: networks/{network_code}/

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

This builder for chaining.

setRequests(int index, DeactivateCustomTargetingValueRequest value)

public BatchDeactivateCustomTargetingValuesRequest.Builder setRequests(int index, DeactivateCustomTargetingValueRequest value)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DeactivateCustomTargetingValueRequest
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder

setRequests(int index, DeactivateCustomTargetingValueRequest.Builder builderForValue)

public BatchDeactivateCustomTargetingValuesRequest.Builder setRequests(int index, DeactivateCustomTargetingValueRequest.Builder builderForValue)

Required. The CustomTargetingValue objects to deactivate.

repeated .google.ads.admanager.v1.DeactivateCustomTargetingValueRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DeactivateCustomTargetingValueRequest.Builder
Returns
Type Description
BatchDeactivateCustomTargetingValuesRequest.Builder