Class InventoryUrlTargeting.Builder (0.62.0)

public static final class InventoryUrlTargeting.Builder extends GeneratedMessage.Builder<InventoryUrlTargeting.Builder> implements InventoryUrlTargetingOrBuilder

Represents a list of targeted and excluded inventory URLs and Sites.

Protobuf type google.ads.admanager.v1.InventoryUrlTargeting

Static Methods

getDescriptor()

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

Methods

addAllExcludedInventoryUrls(Iterable<String> values)

public InventoryUrlTargeting.Builder addAllExcludedInventoryUrls(Iterable<String> values)

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The excludedInventoryUrls to add.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

addAllTargetedInventoryUrls(Iterable<String> values)

public InventoryUrlTargeting.Builder addAllTargetedInventoryUrls(Iterable<String> values)

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The targetedInventoryUrls to add.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

addExcludedInventoryUrls(String value)

public InventoryUrlTargeting.Builder addExcludedInventoryUrls(String value)

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The excludedInventoryUrls to add.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

addExcludedInventoryUrlsBytes(ByteString value)

public InventoryUrlTargeting.Builder addExcludedInventoryUrlsBytes(ByteString value)

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the excludedInventoryUrls to add.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

addTargetedInventoryUrls(String value)

public InventoryUrlTargeting.Builder addTargetedInventoryUrls(String value)

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The targetedInventoryUrls to add.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

addTargetedInventoryUrlsBytes(ByteString value)

public InventoryUrlTargeting.Builder addTargetedInventoryUrlsBytes(ByteString value)

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the targetedInventoryUrls to add.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

build()

public InventoryUrlTargeting build()
Returns
Type Description
InventoryUrlTargeting

buildPartial()

public InventoryUrlTargeting buildPartial()
Returns
Type Description
InventoryUrlTargeting

clear()

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

clearExcludedInventoryUrls()

public InventoryUrlTargeting.Builder clearExcludedInventoryUrls()

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

clearTargetedInventoryUrls()

public InventoryUrlTargeting.Builder clearTargetedInventoryUrls()

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

getDefaultInstanceForType()

public InventoryUrlTargeting getDefaultInstanceForType()
Returns
Type Description
InventoryUrlTargeting

getDescriptorForType()

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

getExcludedInventoryUrls(int index)

public String getExcludedInventoryUrls(int index)

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedInventoryUrls at the given index.

getExcludedInventoryUrlsBytes(int index)

public ByteString getExcludedInventoryUrlsBytes(int index)

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedInventoryUrls at the given index.

getExcludedInventoryUrlsCount()

public int getExcludedInventoryUrlsCount()

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of excludedInventoryUrls.

getExcludedInventoryUrlsList()

public ProtocolStringList getExcludedInventoryUrlsList()

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the excludedInventoryUrls.

getTargetedInventoryUrls(int index)

public String getTargetedInventoryUrls(int index)

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetedInventoryUrls at the given index.

getTargetedInventoryUrlsBytes(int index)

public ByteString getTargetedInventoryUrlsBytes(int index)

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetedInventoryUrls at the given index.

getTargetedInventoryUrlsCount()

public int getTargetedInventoryUrlsCount()

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedInventoryUrls.

getTargetedInventoryUrlsList()

public ProtocolStringList getTargetedInventoryUrlsList()

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedInventoryUrls.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InventoryUrlTargeting other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setExcludedInventoryUrls(int index, String value)

public InventoryUrlTargeting.Builder setExcludedInventoryUrls(int index, String value)

Optional. A list of inventory URL resource names that should be excluded.

repeated string excluded_inventory_urls = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The excludedInventoryUrls to set.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.

setTargetedInventoryUrls(int index, String value)

public InventoryUrlTargeting.Builder setTargetedInventoryUrls(int index, String value)

Optional. A list of inventory URL resource names that should be targeted/included.

repeated string targeted_inventory_urls = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The targetedInventoryUrls to set.

Returns
Type Description
InventoryUrlTargeting.Builder

This builder for chaining.