Class BatchCreateAdSpotsResponse.Builder (0.54.0)

public static final class BatchCreateAdSpotsResponse.Builder extends GeneratedMessage.Builder<BatchCreateAdSpotsResponse.Builder> implements BatchCreateAdSpotsResponseOrBuilder

Response object for BatchCreateAdSpots method.

Protobuf type google.ads.admanager.v1.BatchCreateAdSpotsResponse

Static Methods

getDescriptor()

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

Methods

addAdSpots(AdSpot value)

public BatchCreateAdSpotsResponse.Builder addAdSpots(AdSpot value)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameter
Name Description
value AdSpot
Returns
Type Description
BatchCreateAdSpotsResponse.Builder

addAdSpots(AdSpot.Builder builderForValue)

public BatchCreateAdSpotsResponse.Builder addAdSpots(AdSpot.Builder builderForValue)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameter
Name Description
builderForValue AdSpot.Builder
Returns
Type Description
BatchCreateAdSpotsResponse.Builder

addAdSpots(int index, AdSpot value)

public BatchCreateAdSpotsResponse.Builder addAdSpots(int index, AdSpot value)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameters
Name Description
index int
value AdSpot
Returns
Type Description
BatchCreateAdSpotsResponse.Builder

addAdSpots(int index, AdSpot.Builder builderForValue)

public BatchCreateAdSpotsResponse.Builder addAdSpots(int index, AdSpot.Builder builderForValue)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameters
Name Description
index int
builderForValue AdSpot.Builder
Returns
Type Description
BatchCreateAdSpotsResponse.Builder

addAdSpotsBuilder()

public AdSpot.Builder addAdSpotsBuilder()

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Returns
Type Description
AdSpot.Builder

addAdSpotsBuilder(int index)

public AdSpot.Builder addAdSpotsBuilder(int index)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameter
Name Description
index int
Returns
Type Description
AdSpot.Builder

addAllAdSpots(Iterable<? extends AdSpot> values)

public BatchCreateAdSpotsResponse.Builder addAllAdSpots(Iterable<? extends AdSpot> values)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

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

build()

public BatchCreateAdSpotsResponse build()
Returns
Type Description
BatchCreateAdSpotsResponse

buildPartial()

public BatchCreateAdSpotsResponse buildPartial()
Returns
Type Description
BatchCreateAdSpotsResponse

clear()

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

clearAdSpots()

public BatchCreateAdSpotsResponse.Builder clearAdSpots()

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Returns
Type Description
BatchCreateAdSpotsResponse.Builder

getAdSpots(int index)

public AdSpot getAdSpots(int index)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameter
Name Description
index int
Returns
Type Description
AdSpot

getAdSpotsBuilder(int index)

public AdSpot.Builder getAdSpotsBuilder(int index)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameter
Name Description
index int
Returns
Type Description
AdSpot.Builder

getAdSpotsBuilderList()

public List<AdSpot.Builder> getAdSpotsBuilderList()

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Returns
Type Description
List<Builder>

getAdSpotsCount()

public int getAdSpotsCount()

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Returns
Type Description
int

getAdSpotsList()

public List<AdSpot> getAdSpotsList()

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Returns
Type Description
List<AdSpot>

getAdSpotsOrBuilder(int index)

public AdSpotOrBuilder getAdSpotsOrBuilder(int index)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameter
Name Description
index int
Returns
Type Description
AdSpotOrBuilder

getAdSpotsOrBuilderList()

public List<? extends AdSpotOrBuilder> getAdSpotsOrBuilderList()

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

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

getDefaultInstanceForType()

public BatchCreateAdSpotsResponse getDefaultInstanceForType()
Returns
Type Description
BatchCreateAdSpotsResponse

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateAdSpotsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAdSpots(int index)

public BatchCreateAdSpotsResponse.Builder removeAdSpots(int index)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchCreateAdSpotsResponse.Builder

setAdSpots(int index, AdSpot value)

public BatchCreateAdSpotsResponse.Builder setAdSpots(int index, AdSpot value)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameters
Name Description
index int
value AdSpot
Returns
Type Description
BatchCreateAdSpotsResponse.Builder

setAdSpots(int index, AdSpot.Builder builderForValue)

public BatchCreateAdSpotsResponse.Builder setAdSpots(int index, AdSpot.Builder builderForValue)

The AdSpot objects created.

repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;

Parameters
Name Description
index int
builderForValue AdSpot.Builder
Returns
Type Description
BatchCreateAdSpotsResponse.Builder