Class ContentTargeting (0.39.0)

public final class ContentTargeting extends GeneratedMessageV3 implements ContentTargetingOrBuilder

Content Targeting

Targeted/excluded content entities and bundles.

Protobuf type google.ads.admanager.v1.ContentTargeting

Static Fields

EXCLUDED_CONTENT_BUNDLES_FIELD_NUMBER

public static final int EXCLUDED_CONTENT_BUNDLES_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_CONTENT_FIELD_NUMBER

public static final int EXCLUDED_CONTENT_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_CONTENT_BUNDLES_FIELD_NUMBER

public static final int TARGETED_CONTENT_BUNDLES_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_CONTENT_FIELD_NUMBER

public static final int TARGETED_CONTENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContentTargeting getDefaultInstance()
Returns
Type Description
ContentTargeting

getDescriptor()

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

newBuilder()

public static ContentTargeting.Builder newBuilder()
Returns
Type Description
ContentTargeting.Builder

newBuilder(ContentTargeting prototype)

public static ContentTargeting.Builder newBuilder(ContentTargeting prototype)
Parameter
Name Description
prototype ContentTargeting
Returns
Type Description
ContentTargeting.Builder

parseDelimitedFrom(InputStream input)

public static ContentTargeting parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContentTargeting
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentTargeting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentTargeting
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ContentTargeting parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ContentTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContentTargeting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContentTargeting parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ContentTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContentTargeting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContentTargeting parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ContentTargeting
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentTargeting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentTargeting
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ContentTargeting parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContentTargeting
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentTargeting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentTargeting
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ContentTargeting parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ContentTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContentTargeting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ContentTargeting> parser()
Returns
Type Description
Parser<ContentTargeting>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ContentTargeting getDefaultInstanceForType()
Returns
Type Description
ContentTargeting

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.

getParserForType()

public Parser<ContentTargeting> getParserForType()
Returns
Type Description
Parser<ContentTargeting>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ContentTargeting.Builder newBuilderForType()
Returns
Type Description
ContentTargeting.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContentTargeting.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContentTargeting.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ContentTargeting.Builder toBuilder()
Returns
Type Description
ContentTargeting.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException