Class BatchUpdateAdUnitsRequest.Builder (0.44.0)

public static final class BatchUpdateAdUnitsRequest.Builder extends GeneratedMessage.Builder<BatchUpdateAdUnitsRequest.Builder> implements BatchUpdateAdUnitsRequestOrBuilder

Request object for BatchUpdateAdUnits method.

Protobuf type google.ads.admanager.v1.BatchUpdateAdUnitsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends UpdateAdUnitRequest> values)

public BatchUpdateAdUnitsRequest.Builder addAllRequests(Iterable<? extends UpdateAdUnitRequest> values)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

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

addRequests(UpdateAdUnitRequest value)

public BatchUpdateAdUnitsRequest.Builder addRequests(UpdateAdUnitRequest value)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameter
Name Description
value UpdateAdUnitRequest
Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

addRequests(UpdateAdUnitRequest.Builder builderForValue)

public BatchUpdateAdUnitsRequest.Builder addRequests(UpdateAdUnitRequest.Builder builderForValue)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameter
Name Description
builderForValue UpdateAdUnitRequest.Builder
Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

addRequests(int index, UpdateAdUnitRequest value)

public BatchUpdateAdUnitsRequest.Builder addRequests(int index, UpdateAdUnitRequest value)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameters
Name Description
index int
value UpdateAdUnitRequest
Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

addRequests(int index, UpdateAdUnitRequest.Builder builderForValue)

public BatchUpdateAdUnitsRequest.Builder addRequests(int index, UpdateAdUnitRequest.Builder builderForValue)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameters
Name Description
index int
builderForValue UpdateAdUnitRequest.Builder
Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

addRequestsBuilder()

public UpdateAdUnitRequest.Builder addRequestsBuilder()

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Returns
Type Description
UpdateAdUnitRequest.Builder

addRequestsBuilder(int index)

public UpdateAdUnitRequest.Builder addRequestsBuilder(int index)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdUnitRequest.Builder

build()

public BatchUpdateAdUnitsRequest build()
Returns
Type Description
BatchUpdateAdUnitsRequest

buildPartial()

public BatchUpdateAdUnitsRequest buildPartial()
Returns
Type Description
BatchUpdateAdUnitsRequest

clear()

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

clearParent()

public BatchUpdateAdUnitsRequest.Builder clearParent()

Required. The parent resource where AdUnits will be updated. Format: networks/{network_code} The parent field in the UpdateAdUnitRequest must match this field.

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

Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

This builder for chaining.

clearRequests()

public BatchUpdateAdUnitsRequest.Builder clearRequests()

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

getDefaultInstanceForType()

public BatchUpdateAdUnitsRequest getDefaultInstanceForType()
Returns
Type Description
BatchUpdateAdUnitsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where AdUnits will be updated. Format: networks/{network_code} The parent field in the UpdateAdUnitRequest must match this field.

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 resource where AdUnits will be updated. Format: networks/{network_code} The parent field in the UpdateAdUnitRequest must match this field.

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

Returns
Type Description
ByteString

The bytes for parent.

getRequests(int index)

public UpdateAdUnitRequest getRequests(int index)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdUnitRequest

getRequestsBuilder(int index)

public UpdateAdUnitRequest.Builder getRequestsBuilder(int index)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdUnitRequest.Builder

getRequestsBuilderList()

public List<UpdateAdUnitRequest.Builder> getRequestsBuilderList()

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Returns
Type Description
int

getRequestsList()

public List<UpdateAdUnitRequest> getRequestsList()

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Returns
Type Description
List<UpdateAdUnitRequest>

getRequestsOrBuilder(int index)

public UpdateAdUnitRequestOrBuilder getRequestsOrBuilder(int index)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdUnitRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends UpdateAdUnitRequestOrBuilder> getRequestsOrBuilderList()

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchUpdateAdUnitsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchUpdateAdUnitsRequest.Builder removeRequests(int index)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

setParent(String value)

public BatchUpdateAdUnitsRequest.Builder setParent(String value)

Required. The parent resource where AdUnits will be updated. Format: networks/{network_code} The parent field in the UpdateAdUnitRequest must match this field.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchUpdateAdUnitsRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where AdUnits will be updated. Format: networks/{network_code} The parent field in the UpdateAdUnitRequest must match this field.

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
BatchUpdateAdUnitsRequest.Builder

This builder for chaining.

setRequests(int index, UpdateAdUnitRequest value)

public BatchUpdateAdUnitsRequest.Builder setRequests(int index, UpdateAdUnitRequest value)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameters
Name Description
index int
value UpdateAdUnitRequest
Returns
Type Description
BatchUpdateAdUnitsRequest.Builder

setRequests(int index, UpdateAdUnitRequest.Builder builderForValue)

public BatchUpdateAdUnitsRequest.Builder setRequests(int index, UpdateAdUnitRequest.Builder builderForValue)

Required. The AdUnit objects to update. A maximum of 100 objects can be updated in a batch.

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

Parameters
Name Description
index int
builderForValue UpdateAdUnitRequest.Builder
Returns
Type Description
BatchUpdateAdUnitsRequest.Builder