Class BatchCreateContactsRequest.Builder (0.44.0)

public static final class BatchCreateContactsRequest.Builder extends GeneratedMessage.Builder<BatchCreateContactsRequest.Builder> implements BatchCreateContactsRequestOrBuilder

Request object for BatchCreateContacts method.

Protobuf type google.ads.admanager.v1.BatchCreateContactsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateContactRequest> values)

public BatchCreateContactsRequest.Builder addAllRequests(Iterable<? extends CreateContactRequest> values)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

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

addRequests(CreateContactRequest value)

public BatchCreateContactsRequest.Builder addRequests(CreateContactRequest value)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameter
Name Description
value CreateContactRequest
Returns
Type Description
BatchCreateContactsRequest.Builder

addRequests(CreateContactRequest.Builder builderForValue)

public BatchCreateContactsRequest.Builder addRequests(CreateContactRequest.Builder builderForValue)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameter
Name Description
builderForValue CreateContactRequest.Builder
Returns
Type Description
BatchCreateContactsRequest.Builder

addRequests(int index, CreateContactRequest value)

public BatchCreateContactsRequest.Builder addRequests(int index, CreateContactRequest value)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameters
Name Description
index int
value CreateContactRequest
Returns
Type Description
BatchCreateContactsRequest.Builder

addRequests(int index, CreateContactRequest.Builder builderForValue)

public BatchCreateContactsRequest.Builder addRequests(int index, CreateContactRequest.Builder builderForValue)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameters
Name Description
index int
builderForValue CreateContactRequest.Builder
Returns
Type Description
BatchCreateContactsRequest.Builder

addRequestsBuilder()

public CreateContactRequest.Builder addRequestsBuilder()

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Returns
Type Description
CreateContactRequest.Builder

addRequestsBuilder(int index)

public CreateContactRequest.Builder addRequestsBuilder(int index)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
CreateContactRequest.Builder

build()

public BatchCreateContactsRequest build()
Returns
Type Description
BatchCreateContactsRequest

buildPartial()

public BatchCreateContactsRequest buildPartial()
Returns
Type Description
BatchCreateContactsRequest

clear()

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

clearParent()

public BatchCreateContactsRequest.Builder clearParent()

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

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

Returns
Type Description
BatchCreateContactsRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateContactsRequest.Builder clearRequests()

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Returns
Type Description
BatchCreateContactsRequest.Builder

getDefaultInstanceForType()

public BatchCreateContactsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateContactsRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
CreateContactRequest

getRequestsBuilder(int index)

public CreateContactRequest.Builder getRequestsBuilder(int index)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
CreateContactRequest.Builder

getRequestsBuilderList()

public List<CreateContactRequest.Builder> getRequestsBuilderList()

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Returns
Type Description
int

getRequestsList()

public List<CreateContactRequest> getRequestsList()

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Returns
Type Description
List<CreateContactRequest>

getRequestsOrBuilder(int index)

public CreateContactRequestOrBuilder getRequestsOrBuilder(int index)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
CreateContactRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateContactRequestOrBuilder> getRequestsOrBuilderList()

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateContactsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchCreateContactsRequest.Builder removeRequests(int index)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameter
Name Description
index int
Returns
Type Description
BatchCreateContactsRequest.Builder

setParent(String value)

public BatchCreateContactsRequest.Builder setParent(String value)

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

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateContactsRequest.Builder setParentBytes(ByteString value)

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

This builder for chaining.

setRequests(int index, CreateContactRequest value)

public BatchCreateContactsRequest.Builder setRequests(int index, CreateContactRequest value)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameters
Name Description
index int
value CreateContactRequest
Returns
Type Description
BatchCreateContactsRequest.Builder

setRequests(int index, CreateContactRequest.Builder builderForValue)

public BatchCreateContactsRequest.Builder setRequests(int index, CreateContactRequest.Builder builderForValue)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

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

Parameters
Name Description
index int
builderForValue CreateContactRequest.Builder
Returns
Type Description
BatchCreateContactsRequest.Builder