public static final class InventoryUrlTargeting.Builder extends GeneratedMessage.Builder<InventoryUrlTargeting.Builder> implements InventoryUrlTargetingOrBuilderRepresents a list of targeted and excluded inventory URLs and Sites.
Protobuf type google.ads.admanager.v1.InventoryUrlTargeting
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InventoryUrlTargeting.BuilderImplements
InventoryUrlTargetingOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InventoryUrlTargeting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InventoryUrlTargeting.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe 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 |
intThe index to set the value at. |
value |
StringThe targetedInventoryUrls to set. |
| Returns | |
|---|---|
| Type | Description |
InventoryUrlTargeting.Builder |
This builder for chaining. |