Class BatchCreateAdSpotsRequest.Builder (0.54.0)

public static final class BatchCreateAdSpotsRequest.Builder extends GeneratedMessage.Builder<BatchCreateAdSpotsRequest.Builder> implements BatchCreateAdSpotsRequestOrBuilder

Request object for BatchCreateAdSpots method.

Protobuf type google.ads.admanager.v1.BatchCreateAdSpotsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateAdSpotRequest> values)

public BatchCreateAdSpotsRequest.Builder addAllRequests(Iterable<? extends CreateAdSpotRequest> values)

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

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

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

addRequests(CreateAdSpotRequest value)

public BatchCreateAdSpotsRequest.Builder addRequests(CreateAdSpotRequest value)

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

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

Parameter
Name Description
value CreateAdSpotRequest
Returns
Type Description
BatchCreateAdSpotsRequest.Builder

addRequests(CreateAdSpotRequest.Builder builderForValue)

public BatchCreateAdSpotsRequest.Builder addRequests(CreateAdSpotRequest.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue CreateAdSpotRequest.Builder
Returns
Type Description
BatchCreateAdSpotsRequest.Builder

addRequests(int index, CreateAdSpotRequest value)

public BatchCreateAdSpotsRequest.Builder addRequests(int index, CreateAdSpotRequest value)

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

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

Parameters
Name Description
index int
value CreateAdSpotRequest
Returns
Type Description
BatchCreateAdSpotsRequest.Builder

addRequests(int index, CreateAdSpotRequest.Builder builderForValue)

public BatchCreateAdSpotsRequest.Builder addRequests(int index, CreateAdSpotRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue CreateAdSpotRequest.Builder
Returns
Type Description
BatchCreateAdSpotsRequest.Builder

addRequestsBuilder()

public CreateAdSpotRequest.Builder addRequestsBuilder()

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

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

Returns
Type Description
CreateAdSpotRequest.Builder

addRequestsBuilder(int index)

public CreateAdSpotRequest.Builder addRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateAdSpotRequest.Builder

build()

public BatchCreateAdSpotsRequest build()
Returns
Type Description
BatchCreateAdSpotsRequest

buildPartial()

public BatchCreateAdSpotsRequest buildPartial()
Returns
Type Description
BatchCreateAdSpotsRequest

clear()

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

clearParent()

public BatchCreateAdSpotsRequest.Builder clearParent()

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

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

Returns
Type Description
BatchCreateAdSpotsRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateAdSpotsRequest.Builder clearRequests()

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

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

Returns
Type Description
BatchCreateAdSpotsRequest.Builder

getDefaultInstanceForType()

public BatchCreateAdSpotsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateAdSpotsRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateAdSpotRequest

getRequestsBuilder(int index)

public CreateAdSpotRequest.Builder getRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateAdSpotRequest.Builder

getRequestsBuilderList()

public List<CreateAdSpotRequest.Builder> getRequestsBuilderList()

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

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

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

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

Returns
Type Description
int

getRequestsList()

public List<CreateAdSpotRequest> getRequestsList()

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

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

Returns
Type Description
List<CreateAdSpotRequest>

getRequestsOrBuilder(int index)

public CreateAdSpotRequestOrBuilder getRequestsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateAdSpotRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateAdSpotRequestOrBuilder> getRequestsOrBuilderList()

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

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateAdSpotsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchCreateAdSpotsRequest.Builder removeRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BatchCreateAdSpotsRequest.Builder

setParent(String value)

public BatchCreateAdSpotsRequest.Builder setParent(String value)

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

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateAdSpotsRequest.Builder setParentBytes(ByteString value)

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

This builder for chaining.

setRequests(int index, CreateAdSpotRequest value)

public BatchCreateAdSpotsRequest.Builder setRequests(int index, CreateAdSpotRequest value)

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

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

Parameters
Name Description
index int
value CreateAdSpotRequest
Returns
Type Description
BatchCreateAdSpotsRequest.Builder

setRequests(int index, CreateAdSpotRequest.Builder builderForValue)

public BatchCreateAdSpotsRequest.Builder setRequests(int index, CreateAdSpotRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue CreateAdSpotRequest.Builder
Returns
Type Description
BatchCreateAdSpotsRequest.Builder