Class BatchUpdateAdRulesRequest.Builder (0.54.0)

public static final class BatchUpdateAdRulesRequest.Builder extends GeneratedMessage.Builder<BatchUpdateAdRulesRequest.Builder> implements BatchUpdateAdRulesRequestOrBuilder

Request object for BatchUpdateAdRules method.

Protobuf type google.ads.admanager.v1.BatchUpdateAdRulesRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends UpdateAdRuleRequest> values)

public BatchUpdateAdRulesRequest.Builder addAllRequests(Iterable<? extends UpdateAdRuleRequest> values)

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

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

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

addRequests(UpdateAdRuleRequest value)

public BatchUpdateAdRulesRequest.Builder addRequests(UpdateAdRuleRequest value)

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

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

Parameter
Name Description
value UpdateAdRuleRequest
Returns
Type Description
BatchUpdateAdRulesRequest.Builder

addRequests(UpdateAdRuleRequest.Builder builderForValue)

public BatchUpdateAdRulesRequest.Builder addRequests(UpdateAdRuleRequest.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue UpdateAdRuleRequest.Builder
Returns
Type Description
BatchUpdateAdRulesRequest.Builder

addRequests(int index, UpdateAdRuleRequest value)

public BatchUpdateAdRulesRequest.Builder addRequests(int index, UpdateAdRuleRequest value)

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

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

Parameters
Name Description
index int
value UpdateAdRuleRequest
Returns
Type Description
BatchUpdateAdRulesRequest.Builder

addRequests(int index, UpdateAdRuleRequest.Builder builderForValue)

public BatchUpdateAdRulesRequest.Builder addRequests(int index, UpdateAdRuleRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue UpdateAdRuleRequest.Builder
Returns
Type Description
BatchUpdateAdRulesRequest.Builder

addRequestsBuilder()

public UpdateAdRuleRequest.Builder addRequestsBuilder()

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

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

Returns
Type Description
UpdateAdRuleRequest.Builder

addRequestsBuilder(int index)

public UpdateAdRuleRequest.Builder addRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdRuleRequest.Builder

build()

public BatchUpdateAdRulesRequest build()
Returns
Type Description
BatchUpdateAdRulesRequest

buildPartial()

public BatchUpdateAdRulesRequest buildPartial()
Returns
Type Description
BatchUpdateAdRulesRequest

clear()

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

clearParent()

public BatchUpdateAdRulesRequest.Builder clearParent()

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

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

Returns
Type Description
BatchUpdateAdRulesRequest.Builder

This builder for chaining.

clearRequests()

public BatchUpdateAdRulesRequest.Builder clearRequests()

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

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

Returns
Type Description
BatchUpdateAdRulesRequest.Builder

getDefaultInstanceForType()

public BatchUpdateAdRulesRequest getDefaultInstanceForType()
Returns
Type Description
BatchUpdateAdRulesRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where AdRules will be updated. Format: networks/{network_code} The parent field in the UpdateAdRuleRequest 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 AdRules will be updated. Format: networks/{network_code} The parent field in the UpdateAdRuleRequest 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 UpdateAdRuleRequest getRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdRuleRequest

getRequestsBuilder(int index)

public UpdateAdRuleRequest.Builder getRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdRuleRequest.Builder

getRequestsBuilderList()

public List<UpdateAdRuleRequest.Builder> getRequestsBuilderList()

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

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

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

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

Returns
Type Description
int

getRequestsList()

public List<UpdateAdRuleRequest> getRequestsList()

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

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

Returns
Type Description
List<UpdateAdRuleRequest>

getRequestsOrBuilder(int index)

public UpdateAdRuleRequestOrBuilder getRequestsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateAdRuleRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends UpdateAdRuleRequestOrBuilder> getRequestsOrBuilderList()

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

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchUpdateAdRulesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchUpdateAdRulesRequest.Builder removeRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BatchUpdateAdRulesRequest.Builder

setParent(String value)

public BatchUpdateAdRulesRequest.Builder setParent(String value)

Required. The parent resource where AdRules will be updated. Format: networks/{network_code} The parent field in the UpdateAdRuleRequest 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
BatchUpdateAdRulesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchUpdateAdRulesRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where AdRules will be updated. Format: networks/{network_code} The parent field in the UpdateAdRuleRequest 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
BatchUpdateAdRulesRequest.Builder

This builder for chaining.

setRequests(int index, UpdateAdRuleRequest value)

public BatchUpdateAdRulesRequest.Builder setRequests(int index, UpdateAdRuleRequest value)

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

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

Parameters
Name Description
index int
value UpdateAdRuleRequest
Returns
Type Description
BatchUpdateAdRulesRequest.Builder

setRequests(int index, UpdateAdRuleRequest.Builder builderForValue)

public BatchUpdateAdRulesRequest.Builder setRequests(int index, UpdateAdRuleRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue UpdateAdRuleRequest.Builder
Returns
Type Description
BatchUpdateAdRulesRequest.Builder