Class BatchCreateCustomTargetingKeysRequest.Builder (0.44.0)

public static final class BatchCreateCustomTargetingKeysRequest.Builder extends GeneratedMessage.Builder<BatchCreateCustomTargetingKeysRequest.Builder> implements BatchCreateCustomTargetingKeysRequestOrBuilder

Request object for BatchCreateCustomTargetingKeys method.

Protobuf type google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateCustomTargetingKeyRequest> values)

public BatchCreateCustomTargetingKeysRequest.Builder addAllRequests(Iterable<? extends CreateCustomTargetingKeyRequest> values)

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

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

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

addRequests(CreateCustomTargetingKeyRequest value)

public BatchCreateCustomTargetingKeysRequest.Builder addRequests(CreateCustomTargetingKeyRequest value)

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

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

Parameter
Name Description
value CreateCustomTargetingKeyRequest
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

addRequests(CreateCustomTargetingKeyRequest.Builder builderForValue)

public BatchCreateCustomTargetingKeysRequest.Builder addRequests(CreateCustomTargetingKeyRequest.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue CreateCustomTargetingKeyRequest.Builder
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

addRequests(int index, CreateCustomTargetingKeyRequest value)

public BatchCreateCustomTargetingKeysRequest.Builder addRequests(int index, CreateCustomTargetingKeyRequest value)

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

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

Parameters
Name Description
index int
value CreateCustomTargetingKeyRequest
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

addRequests(int index, CreateCustomTargetingKeyRequest.Builder builderForValue)

public BatchCreateCustomTargetingKeysRequest.Builder addRequests(int index, CreateCustomTargetingKeyRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue CreateCustomTargetingKeyRequest.Builder
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

addRequestsBuilder()

public CreateCustomTargetingKeyRequest.Builder addRequestsBuilder()

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

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

Returns
Type Description
CreateCustomTargetingKeyRequest.Builder

addRequestsBuilder(int index)

public CreateCustomTargetingKeyRequest.Builder addRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateCustomTargetingKeyRequest.Builder

build()

public BatchCreateCustomTargetingKeysRequest build()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest

buildPartial()

public BatchCreateCustomTargetingKeysRequest buildPartial()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest

clear()

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

clearParent()

public BatchCreateCustomTargetingKeysRequest.Builder clearParent()

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

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

Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateCustomTargetingKeysRequest.Builder clearRequests()

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

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

Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

getDefaultInstanceForType()

public BatchCreateCustomTargetingKeysRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateCustomTargetingKeyRequest

getRequestsBuilder(int index)

public CreateCustomTargetingKeyRequest.Builder getRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateCustomTargetingKeyRequest.Builder

getRequestsBuilderList()

public List<CreateCustomTargetingKeyRequest.Builder> getRequestsBuilderList()

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

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

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

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

Returns
Type Description
int

getRequestsList()

public List<CreateCustomTargetingKeyRequest> getRequestsList()

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

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

Returns
Type Description
List<CreateCustomTargetingKeyRequest>

getRequestsOrBuilder(int index)

public CreateCustomTargetingKeyRequestOrBuilder getRequestsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateCustomTargetingKeyRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateCustomTargetingKeyRequestOrBuilder> getRequestsOrBuilderList()

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

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateCustomTargetingKeysRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchCreateCustomTargetingKeysRequest.Builder removeRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

setParent(String value)

public BatchCreateCustomTargetingKeysRequest.Builder setParent(String value)

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

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateCustomTargetingKeysRequest.Builder setParentBytes(ByteString value)

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

This builder for chaining.

setRequests(int index, CreateCustomTargetingKeyRequest value)

public BatchCreateCustomTargetingKeysRequest.Builder setRequests(int index, CreateCustomTargetingKeyRequest value)

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

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

Parameters
Name Description
index int
value CreateCustomTargetingKeyRequest
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

setRequests(int index, CreateCustomTargetingKeyRequest.Builder builderForValue)

public BatchCreateCustomTargetingKeysRequest.Builder setRequests(int index, CreateCustomTargetingKeyRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue CreateCustomTargetingKeyRequest.Builder
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder