Class BatchUpdateContactsRequest.Builder (0.39.0)

public static final class BatchUpdateContactsRequest.Builder extends GeneratedMessageV3.Builder<BatchUpdateContactsRequest.Builder> implements BatchUpdateContactsRequestOrBuilder

Request object for BatchUpdateContacts method.

Protobuf type google.ads.admanager.v1.BatchUpdateContactsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends UpdateContactRequest> values)

public BatchUpdateContactsRequest.Builder addAllRequests(Iterable<? extends UpdateContactRequest> values)

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

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchUpdateContactsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides

addRequests(UpdateContactRequest value)

public BatchUpdateContactsRequest.Builder addRequests(UpdateContactRequest value)

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

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

Parameter
Name Description
value UpdateContactRequest
Returns
Type Description
BatchUpdateContactsRequest.Builder

addRequests(UpdateContactRequest.Builder builderForValue)

public BatchUpdateContactsRequest.Builder addRequests(UpdateContactRequest.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue UpdateContactRequest.Builder
Returns
Type Description
BatchUpdateContactsRequest.Builder

addRequests(int index, UpdateContactRequest value)

public BatchUpdateContactsRequest.Builder addRequests(int index, UpdateContactRequest value)

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

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

Parameters
Name Description
index int
value UpdateContactRequest
Returns
Type Description
BatchUpdateContactsRequest.Builder

addRequests(int index, UpdateContactRequest.Builder builderForValue)

public BatchUpdateContactsRequest.Builder addRequests(int index, UpdateContactRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue UpdateContactRequest.Builder
Returns
Type Description
BatchUpdateContactsRequest.Builder

addRequestsBuilder()

public UpdateContactRequest.Builder addRequestsBuilder()

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

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

Returns
Type Description
UpdateContactRequest.Builder

addRequestsBuilder(int index)

public UpdateContactRequest.Builder addRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateContactRequest.Builder

build()

public BatchUpdateContactsRequest build()
Returns
Type Description
BatchUpdateContactsRequest

buildPartial()

public BatchUpdateContactsRequest buildPartial()
Returns
Type Description
BatchUpdateContactsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public BatchUpdateContactsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchUpdateContactsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides

clearParent()

public BatchUpdateContactsRequest.Builder clearParent()

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

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

Returns
Type Description
BatchUpdateContactsRequest.Builder

This builder for chaining.

clearRequests()

public BatchUpdateContactsRequest.Builder clearRequests()

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

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

Returns
Type Description
BatchUpdateContactsRequest.Builder

clone()

public BatchUpdateContactsRequest.Builder clone()
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchUpdateContactsRequest getDefaultInstanceForType()
Returns
Type Description
BatchUpdateContactsRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateContactRequest

getRequestsBuilder(int index)

public UpdateContactRequest.Builder getRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateContactRequest.Builder

getRequestsBuilderList()

public List<UpdateContactRequest.Builder> getRequestsBuilderList()

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

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

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

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

Returns
Type Description
int

getRequestsList()

public List<UpdateContactRequest> getRequestsList()

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

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

Returns
Type Description
List<UpdateContactRequest>

getRequestsOrBuilder(int index)

public UpdateContactRequestOrBuilder getRequestsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
UpdateContactRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends UpdateContactRequestOrBuilder> getRequestsOrBuilderList()

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

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchUpdateContactsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchUpdateContactsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides

removeRequests(int index)

public BatchUpdateContactsRequest.Builder removeRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BatchUpdateContactsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchUpdateContactsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides

setParent(String value)

public BatchUpdateContactsRequest.Builder setParent(String value)

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

This builder for chaining.

setParentBytes(ByteString value)

public BatchUpdateContactsRequest.Builder setParentBytes(ByteString value)

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

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchUpdateContactsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides

setRequests(int index, UpdateContactRequest value)

public BatchUpdateContactsRequest.Builder setRequests(int index, UpdateContactRequest value)

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

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

Parameters
Name Description
index int
value UpdateContactRequest
Returns
Type Description
BatchUpdateContactsRequest.Builder

setRequests(int index, UpdateContactRequest.Builder builderForValue)

public BatchUpdateContactsRequest.Builder setRequests(int index, UpdateContactRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue UpdateContactRequest.Builder
Returns
Type Description
BatchUpdateContactsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchUpdateContactsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchUpdateContactsRequest.Builder
Overrides