public static final class CmsMetadataTargeting.Builder extends GeneratedMessage.Builder<CmsMetadataTargeting.Builder> implements CmsMetadataTargetingOrBuilderRepresents targeting for CMS metadata. The values are ORed together.
Protobuf type google.ads.admanager.v1.CmsMetadataTargeting
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CmsMetadataTargeting.BuilderImplements
CmsMetadataTargetingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllCmsMetadataValues(Iterable<String> values)
public CmsMetadataTargeting.Builder addAllCmsMetadataValues(Iterable<String> values)Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The cmsMetadataValues to add. |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
This builder for chaining. |
addCmsMetadataValues(String value)
public CmsMetadataTargeting.Builder addCmsMetadataValues(String value)Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cmsMetadataValues to add. |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
This builder for chaining. |
addCmsMetadataValuesBytes(ByteString value)
public CmsMetadataTargeting.Builder addCmsMetadataValuesBytes(ByteString value)Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the cmsMetadataValues to add. |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
This builder for chaining. |
build()
public CmsMetadataTargeting build()| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting |
|
buildPartial()
public CmsMetadataTargeting buildPartial()| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting |
|
clear()
public CmsMetadataTargeting.Builder clear()| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
|
clearCmsMetadataValues()
public CmsMetadataTargeting.Builder clearCmsMetadataValues()Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
This builder for chaining. |
clearNegative()
public CmsMetadataTargeting.Builder clearNegative()Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
optional bool negative = 1;
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
This builder for chaining. |
getCmsMetadataValues(int index)
public String getCmsMetadataValues(int index)Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 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 cmsMetadataValues at the given index. |
getCmsMetadataValuesBytes(int index)
public ByteString getCmsMetadataValuesBytes(int index)Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 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 cmsMetadataValues at the given index. |
getCmsMetadataValuesCount()
public int getCmsMetadataValuesCount()Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of cmsMetadataValues. |
getCmsMetadataValuesList()
public ProtocolStringList getCmsMetadataValuesList()Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the cmsMetadataValues. |
getDefaultInstanceForType()
public CmsMetadataTargeting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNegative()
public boolean getNegative()Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
optional bool negative = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The negative. |
hasNegative()
public boolean hasNegative()Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
optional bool negative = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the negative field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CmsMetadataTargeting other)
public CmsMetadataTargeting.Builder mergeFrom(CmsMetadataTargeting other)| Parameter | |
|---|---|
| Name | Description |
other |
CmsMetadataTargeting |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CmsMetadataTargeting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CmsMetadataTargeting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
|
setCmsMetadataValues(int index, String value)
public CmsMetadataTargeting.Builder setCmsMetadataValues(int index, String value)Optional. The resource names of the targeted CMS metadata values.
repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe cmsMetadataValues to set. |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
This builder for chaining. |
setNegative(boolean value)
public CmsMetadataTargeting.Builder setNegative(boolean value)Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
optional bool negative = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe negative to set. |
| Returns | |
|---|---|
| Type | Description |
CmsMetadataTargeting.Builder |
This builder for chaining. |