Class ContextualTargeting (0.62.0)

public final class ContextualTargeting extends GeneratedMessage implements ContextualTargetingOrBuilder

Contextual Targeting

Protobuf type google.ads.admanager.v1.ContextualTargeting

Static Fields

EXCLUDED_CONTENT_LABELS_FIELD_NUMBER

public static final int EXCLUDED_CONTENT_LABELS_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_VERTICALS_FIELD_NUMBER

public static final int EXCLUDED_VERTICALS_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_VERTICALS_FIELD_NUMBER

public static final int TARGETED_VERTICALS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContextualTargeting getDefaultInstance()
Returns
Type Description
ContextualTargeting

getDescriptor()

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

newBuilder()

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

newBuilder(ContextualTargeting prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ContextualTargeting getDefaultInstanceForType()
Returns
Type Description
ContextualTargeting

getExcludedContentLabels(int index)

public String getExcludedContentLabels(int index)

Optional. A list of content labels that should be excluded.

repeated string excluded_content_labels = 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 excludedContentLabels at the given index.

getExcludedContentLabelsBytes(int index)

public ByteString getExcludedContentLabelsBytes(int index)

Optional. A list of content labels that should be excluded.

repeated string excluded_content_labels = 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 excludedContentLabels at the given index.

getExcludedContentLabelsCount()

public int getExcludedContentLabelsCount()

Optional. A list of content labels that should be excluded.

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

Returns
Type Description
int

The count of excludedContentLabels.

getExcludedContentLabelsList()

public ProtocolStringList getExcludedContentLabelsList()

Optional. A list of content labels that should be excluded.

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

Returns
Type Description
ProtocolStringList

A list containing the excludedContentLabels.

getExcludedVerticals(int index)

public String getExcludedVerticals(int index)

Optional. A list of verticals that should be excluded. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

repeated string excluded_verticals = 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 excludedVerticals at the given index.

getExcludedVerticalsBytes(int index)

public ByteString getExcludedVerticalsBytes(int index)

Optional. A list of verticals that should be excluded. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

repeated string excluded_verticals = 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 excludedVerticals at the given index.

getExcludedVerticalsCount()

public int getExcludedVerticalsCount()

Optional. A list of verticals that should be excluded. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Returns
Type Description
int

The count of excludedVerticals.

getExcludedVerticalsList()

public ProtocolStringList getExcludedVerticalsList()

Optional. A list of verticals that should be excluded. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Returns
Type Description
ProtocolStringList

A list containing the excludedVerticals.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetedVerticals(int index)

public String getTargetedVerticals(int index)

Optional. A list of verticals that should be targeted/included. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

repeated string targeted_verticals = 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 targetedVerticals at the given index.

getTargetedVerticalsBytes(int index)

public ByteString getTargetedVerticalsBytes(int index)

Optional. A list of verticals that should be targeted/included. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

repeated string targeted_verticals = 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 targetedVerticals at the given index.

getTargetedVerticalsCount()

public int getTargetedVerticalsCount()

Optional. A list of verticals that should be targeted/included. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Returns
Type Description
int

The count of targetedVerticals.

getTargetedVerticalsList()

public ProtocolStringList getTargetedVerticalsList()

Optional. A list of verticals that should be targeted/included. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Returns
Type Description
ProtocolStringList

A list containing the targetedVerticals.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ContextualTargeting.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContextualTargeting.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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