public static final class DeviceCategoryTargeting.Builder extends GeneratedMessageV3.Builder<DeviceCategoryTargeting.Builder> implements DeviceCategoryTargetingOrBuilderRepresents a list of targeted and excluded device categories.
 Protobuf type google.ads.admanager.v1.DeviceCategoryTargeting
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DeviceCategoryTargeting.BuilderImplements
DeviceCategoryTargetingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addAllExcludedCategories(Iterable<String> values)
public DeviceCategoryTargeting.Builder addAllExcludedCategories(Iterable<String> values)Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<String>The excludedCategories to add. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
addAllTargetedCategories(Iterable<String> values)
public DeviceCategoryTargeting.Builder addAllTargetedCategories(Iterable<String> values)Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<String>The targetedCategories to add. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
addExcludedCategories(String value)
public DeviceCategoryTargeting.Builder addExcludedCategories(String value)Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe excludedCategories to add. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
addExcludedCategoriesBytes(ByteString value)
public DeviceCategoryTargeting.Builder addExcludedCategoriesBytes(ByteString value)Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes of the excludedCategories to add. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceCategoryTargeting.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
addTargetedCategories(String value)
public DeviceCategoryTargeting.Builder addTargetedCategories(String value)Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe targetedCategories to add. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
addTargetedCategoriesBytes(ByteString value)
public DeviceCategoryTargeting.Builder addTargetedCategoriesBytes(ByteString value)Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes of the targetedCategories to add. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
build()
public DeviceCategoryTargeting build()| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting | |
buildPartial()
public DeviceCategoryTargeting buildPartial()| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting | |
clear()
public DeviceCategoryTargeting.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
clearExcludedCategories()
public DeviceCategoryTargeting.Builder clearExcludedCategories()Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
clearField(Descriptors.FieldDescriptor field)
public DeviceCategoryTargeting.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceCategoryTargeting.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
clearTargetedCategories()
public DeviceCategoryTargeting.Builder clearTargetedCategories()Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
clone()
public DeviceCategoryTargeting.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
getDefaultInstanceForType()
public DeviceCategoryTargeting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getExcludedCategories(int index)
public String getExcludedCategories(int index)Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 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 excludedCategories at the given index. | 
getExcludedCategoriesBytes(int index)
public ByteString getExcludedCategoriesBytes(int index)Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 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 excludedCategories at the given index. | 
getExcludedCategoriesCount()
public int getExcludedCategoriesCount()Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| int | The count of excludedCategories. | 
getExcludedCategoriesList()
public ProtocolStringList getExcludedCategoriesList()Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| ProtocolStringList | A list containing the excludedCategories. | 
getTargetedCategories(int index)
public String getTargetedCategories(int index)Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 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 targetedCategories at the given index. | 
getTargetedCategoriesBytes(int index)
public ByteString getTargetedCategoriesBytes(int index)Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 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 targetedCategories at the given index. | 
getTargetedCategoriesCount()
public int getTargetedCategoriesCount()Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| int | The count of targetedCategories. | 
getTargetedCategoriesList()
public ProtocolStringList getTargetedCategoriesList()Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| ProtocolStringList | A list containing the targetedCategories. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeFrom(DeviceCategoryTargeting other)
public DeviceCategoryTargeting.Builder mergeFrom(DeviceCategoryTargeting other)| Parameter | |
|---|---|
| Name | Description | 
| other | DeviceCategoryTargeting | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeviceCategoryTargeting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public DeviceCategoryTargeting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceCategoryTargeting.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
setExcludedCategories(int index, String value)
public DeviceCategoryTargeting.Builder setExcludedCategories(int index, String value)Optional. A list of device category resource names that should be excluded.
 
 repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameters | |
|---|---|
| Name | Description | 
| index | intThe index to set the value at. | 
| value | StringThe excludedCategories to set. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceCategoryTargeting.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceCategoryTargeting.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |
setTargetedCategories(int index, String value)
public DeviceCategoryTargeting.Builder setTargetedCategories(int index, String value)Optional. A list of device category resource names that should be targeted/included.
 
 repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameters | |
|---|---|
| Name | Description | 
| index | intThe index to set the value at. | 
| value | StringThe targetedCategories to set. | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | This builder for chaining. | 
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceCategoryTargeting.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| DeviceCategoryTargeting.Builder | |