Class BatchUpdateCompaniesRequest.Builder (0.58.0)

public static final class BatchUpdateCompaniesRequest.Builder extends GeneratedMessage.Builder<BatchUpdateCompaniesRequest.Builder> implements BatchUpdateCompaniesRequestOrBuilder

Request object for [BatchUpdateCompanies][] method.

Protobuf type google.ads.admanager.v1.BatchUpdateCompaniesRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends UpdateCompanyRequest> values)

public BatchUpdateCompaniesRequest.Builder addAllRequests(Iterable<? extends UpdateCompanyRequest> values)

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

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

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

addRequests(UpdateCompanyRequest value)

public BatchUpdateCompaniesRequest.Builder addRequests(UpdateCompanyRequest value)

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

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

Parameter
Name Description
value UpdateCompanyRequest
Returns
Type Description
BatchUpdateCompaniesRequest.Builder

addRequests(UpdateCompanyRequest.Builder builderForValue)

public BatchUpdateCompaniesRequest.Builder addRequests(UpdateCompanyRequest.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue UpdateCompanyRequest.Builder
Returns
Type Description
BatchUpdateCompaniesRequest.Builder

addRequests(int index, UpdateCompanyRequest value)

public BatchUpdateCompaniesRequest.Builder addRequests(int index, UpdateCompanyRequest value)

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

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

Parameters
Name Description
index int
value UpdateCompanyRequest
Returns
Type Description
BatchUpdateCompaniesRequest.Builder

addRequests(int index, UpdateCompanyRequest.Builder builderForValue)

public BatchUpdateCompaniesRequest.Builder addRequests(int index, UpdateCompanyRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue UpdateCompanyRequest.Builder
Returns
Type Description
BatchUpdateCompaniesRequest.Builder

addRequestsBuilder()

public UpdateCompanyRequest.Builder addRequestsBuilder()

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

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

Returns
Type Description
UpdateCompanyRequest.Builder

addRequestsBuilder(int index)

public UpdateCompanyRequest.Builder addRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateCompanyRequest.Builder

build()

public BatchUpdateCompaniesRequest build()
Returns
Type Description
BatchUpdateCompaniesRequest

buildPartial()

public BatchUpdateCompaniesRequest buildPartial()
Returns
Type Description
BatchUpdateCompaniesRequest

clear()

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

clearParent()

public BatchUpdateCompaniesRequest.Builder clearParent()

Required. The parent resource where [Companies][] will be updated. Format: networks/{network_code} The parent field in the UpdateCompanyRequest must match this field.

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

Returns
Type Description
BatchUpdateCompaniesRequest.Builder

This builder for chaining.

clearRequests()

public BatchUpdateCompaniesRequest.Builder clearRequests()

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

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

Returns
Type Description
BatchUpdateCompaniesRequest.Builder

getDefaultInstanceForType()

public BatchUpdateCompaniesRequest getDefaultInstanceForType()
Returns
Type Description
BatchUpdateCompaniesRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateCompanyRequest

getRequestsBuilder(int index)

public UpdateCompanyRequest.Builder getRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateCompanyRequest.Builder

getRequestsBuilderList()

public List<UpdateCompanyRequest.Builder> getRequestsBuilderList()

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

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

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

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

Returns
Type Description
int

getRequestsList()

public List<UpdateCompanyRequest> getRequestsList()

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

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

Returns
Type Description
List<UpdateCompanyRequest>

getRequestsOrBuilder(int index)

public UpdateCompanyRequestOrBuilder getRequestsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateCompanyRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends UpdateCompanyRequestOrBuilder> getRequestsOrBuilderList()

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

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchUpdateCompaniesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchUpdateCompaniesRequest.Builder removeRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BatchUpdateCompaniesRequest.Builder

setParent(String value)

public BatchUpdateCompaniesRequest.Builder setParent(String value)

Required. The parent resource where [Companies][] will be updated. Format: networks/{network_code} The parent field in the UpdateCompanyRequest 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
BatchUpdateCompaniesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchUpdateCompaniesRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where [Companies][] will be updated. Format: networks/{network_code} The parent field in the UpdateCompanyRequest 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
BatchUpdateCompaniesRequest.Builder

This builder for chaining.

setRequests(int index, UpdateCompanyRequest value)

public BatchUpdateCompaniesRequest.Builder setRequests(int index, UpdateCompanyRequest value)

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

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

Parameters
Name Description
index int
value UpdateCompanyRequest
Returns
Type Description
BatchUpdateCompaniesRequest.Builder

setRequests(int index, UpdateCompanyRequest.Builder builderForValue)

public BatchUpdateCompaniesRequest.Builder setRequests(int index, UpdateCompanyRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue UpdateCompanyRequest.Builder
Returns
Type Description
BatchUpdateCompaniesRequest.Builder