Class ContentTargeting.Builder (0.39.0)

public static final class ContentTargeting.Builder extends GeneratedMessageV3.Builder<ContentTargeting.Builder> implements ContentTargetingOrBuilder

Content Targeting

Targeted/excluded content entities and bundles.

Protobuf type google.ads.admanager.v1.ContentTargeting

Static Methods

getDescriptor()

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

Methods

addAllExcludedContent(Iterable<String> values)

public ContentTargeting.Builder addAllExcludedContent(Iterable<String> values)

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The excludedContent to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addAllExcludedContentBundles(Iterable<String> values)

public ContentTargeting.Builder addAllExcludedContentBundles(Iterable<String> values)

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The excludedContentBundles to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addAllTargetedContent(Iterable<String> values)

public ContentTargeting.Builder addAllTargetedContent(Iterable<String> values)

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The targetedContent to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addAllTargetedContentBundles(Iterable<String> values)

public ContentTargeting.Builder addAllTargetedContentBundles(Iterable<String> values)

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The targetedContentBundles to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addExcludedContent(String value)

public ContentTargeting.Builder addExcludedContent(String value)

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The excludedContent to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addExcludedContentBundles(String value)

public ContentTargeting.Builder addExcludedContentBundles(String value)

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The excludedContentBundles to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addExcludedContentBundlesBytes(ByteString value)

public ContentTargeting.Builder addExcludedContentBundlesBytes(ByteString value)

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the excludedContentBundles to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addExcludedContentBytes(ByteString value)

public ContentTargeting.Builder addExcludedContentBytes(ByteString value)

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the excludedContent to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContentTargeting.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContentTargeting.Builder
Overrides

addTargetedContent(String value)

public ContentTargeting.Builder addTargetedContent(String value)

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The targetedContent to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addTargetedContentBundles(String value)

public ContentTargeting.Builder addTargetedContentBundles(String value)

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The targetedContentBundles to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addTargetedContentBundlesBytes(ByteString value)

public ContentTargeting.Builder addTargetedContentBundlesBytes(ByteString value)

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the targetedContentBundles to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

addTargetedContentBytes(ByteString value)

public ContentTargeting.Builder addTargetedContentBytes(ByteString value)

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the targetedContent to add.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

build()

public ContentTargeting build()
Returns
Type Description
ContentTargeting

buildPartial()

public ContentTargeting buildPartial()
Returns
Type Description
ContentTargeting

clear()

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

clearExcludedContent()

public ContentTargeting.Builder clearExcludedContent()

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

clearExcludedContentBundles()

public ContentTargeting.Builder clearExcludedContentBundles()

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ContentTargeting.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContentTargeting.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ContentTargeting.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContentTargeting.Builder
Overrides

clearTargetedContent()

public ContentTargeting.Builder clearTargetedContent()

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

clearTargetedContentBundles()

public ContentTargeting.Builder clearTargetedContentBundles()

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

clone()

public ContentTargeting.Builder clone()
Returns
Type Description
ContentTargeting.Builder
Overrides

getDefaultInstanceForType()

public ContentTargeting getDefaultInstanceForType()
Returns
Type Description
ContentTargeting

getDescriptorForType()

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

getExcludedContent(int index)

public String getExcludedContent(int index)

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.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 excludedContent at the given index.

getExcludedContentBundles(int index)

public String getExcludedContentBundles(int index)

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.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 excludedContentBundles at the given index.

getExcludedContentBundlesBytes(int index)

public ByteString getExcludedContentBundlesBytes(int index)

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.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 excludedContentBundles at the given index.

getExcludedContentBundlesCount()

public int getExcludedContentBundlesCount()

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of excludedContentBundles.

getExcludedContentBundlesList()

public ProtocolStringList getExcludedContentBundlesList()

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the excludedContentBundles.

getExcludedContentBytes(int index)

public ByteString getExcludedContentBytes(int index)

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.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 excludedContent at the given index.

getExcludedContentCount()

public int getExcludedContentCount()

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of excludedContent.

getExcludedContentList()

public ProtocolStringList getExcludedContentList()

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the excludedContent.

getTargetedContent(int index)

public String getTargetedContent(int index)

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.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 targetedContent at the given index.

getTargetedContentBundles(int index)

public String getTargetedContentBundles(int index)

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.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 targetedContentBundles at the given index.

getTargetedContentBundlesBytes(int index)

public ByteString getTargetedContentBundlesBytes(int index)

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.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 targetedContentBundles at the given index.

getTargetedContentBundlesCount()

public int getTargetedContentBundlesCount()

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedContentBundles.

getTargetedContentBundlesList()

public ProtocolStringList getTargetedContentBundlesList()

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedContentBundles.

getTargetedContentBytes(int index)

public ByteString getTargetedContentBytes(int index)

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.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 targetedContent at the given index.

getTargetedContentCount()

public int getTargetedContentCount()

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedContent.

getTargetedContentList()

public ProtocolStringList getTargetedContentList()

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedContent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContentTargeting other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContentTargeting.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContentTargeting.Builder
Overrides

setExcludedContent(int index, String value)

public ContentTargeting.Builder setExcludedContent(int index, String value)

Optional. The resource names of the Content that should be excluded.

repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The excludedContent to set.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

setExcludedContentBundles(int index, String value)

public ContentTargeting.Builder setExcludedContentBundles(int index, String value)

Optional. The resource names of the ContentBundles that should be excluded.

repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The excludedContentBundles to set.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ContentTargeting.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContentTargeting.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ContentTargeting.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContentTargeting.Builder
Overrides

setTargetedContent(int index, String value)

public ContentTargeting.Builder setTargetedContent(int index, String value)

Optional. The resource names of the Content that should be targeted/included.

repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The targetedContent to set.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

setTargetedContentBundles(int index, String value)

public ContentTargeting.Builder setTargetedContentBundles(int index, String value)

Optional. The resource names of the ContentBundles that should be targeted/included.

repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The targetedContentBundles to set.

Returns
Type Description
ContentTargeting.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ContentTargeting.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContentTargeting.Builder
Overrides