Class BatchApproveSuggestedAdUnitsResponse.Builder (0.54.0)

public static final class BatchApproveSuggestedAdUnitsResponse.Builder extends GeneratedMessage.Builder<BatchApproveSuggestedAdUnitsResponse.Builder> implements BatchApproveSuggestedAdUnitsResponseOrBuilder

Response message for BatchApproveSuggestedAdUnits method.

Protobuf type google.ads.admanager.v1.BatchApproveSuggestedAdUnitsResponse

Static Methods

getDescriptor()

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

Methods

addAllCreatedAdUnits(Iterable<String> values)

public BatchApproveSuggestedAdUnitsResponse.Builder addAllCreatedAdUnits(Iterable<String> values)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The createdAdUnits to add.

Returns
Type Description
BatchApproveSuggestedAdUnitsResponse.Builder

This builder for chaining.

addCreatedAdUnits(String value)

public BatchApproveSuggestedAdUnitsResponse.Builder addCreatedAdUnits(String value)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The createdAdUnits to add.

Returns
Type Description
BatchApproveSuggestedAdUnitsResponse.Builder

This builder for chaining.

addCreatedAdUnitsBytes(ByteString value)

public BatchApproveSuggestedAdUnitsResponse.Builder addCreatedAdUnitsBytes(ByteString value)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the createdAdUnits to add.

Returns
Type Description
BatchApproveSuggestedAdUnitsResponse.Builder

This builder for chaining.

build()

public BatchApproveSuggestedAdUnitsResponse build()
Returns
Type Description
BatchApproveSuggestedAdUnitsResponse

buildPartial()

public BatchApproveSuggestedAdUnitsResponse buildPartial()
Returns
Type Description
BatchApproveSuggestedAdUnitsResponse

clear()

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

clearCreatedAdUnits()

public BatchApproveSuggestedAdUnitsResponse.Builder clearCreatedAdUnits()

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
BatchApproveSuggestedAdUnitsResponse.Builder

This builder for chaining.

getCreatedAdUnits(int index)

public String getCreatedAdUnits(int index)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The createdAdUnits at the given index.

getCreatedAdUnitsBytes(int index)

public ByteString getCreatedAdUnitsBytes(int index)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the createdAdUnits at the given index.

getCreatedAdUnitsCount()

public int getCreatedAdUnitsCount()

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of createdAdUnits.

getCreatedAdUnitsList()

public ProtocolStringList getCreatedAdUnitsList()

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the createdAdUnits.

getDefaultInstanceForType()

public BatchApproveSuggestedAdUnitsResponse getDefaultInstanceForType()
Returns
Type Description
BatchApproveSuggestedAdUnitsResponse

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(BatchApproveSuggestedAdUnitsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCreatedAdUnits(int index, String value)

public BatchApproveSuggestedAdUnitsResponse.Builder setCreatedAdUnits(int index, String value)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The createdAdUnits to set.

Returns
Type Description
BatchApproveSuggestedAdUnitsResponse.Builder

This builder for chaining.