public static final class BandwidthTargeting.Builder extends GeneratedMessageV3.Builder<BandwidthTargeting.Builder> implements BandwidthTargetingOrBuilderBandwidth Targeting.
Reach users accessing the internet via various means of connection, such as cable, DSL, or dial-up. Can be useful to target campaigns using low-resolution creatives or text ads for users with low bandwidth.
Protobuf type google.ads.admanager.v1.BandwidthTargeting
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BandwidthTargeting.BuilderImplements
BandwidthTargetingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllExcludedBandwidthGroups(Iterable<String> values)
public BandwidthTargeting.Builder addAllExcludedBandwidthGroups(Iterable<String> values)Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The excludedBandwidthGroups to add. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
addAllTargetedBandwidthGroups(Iterable<String> values)
public BandwidthTargeting.Builder addAllTargetedBandwidthGroups(Iterable<String> values)Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The targetedBandwidthGroups to add. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
addExcludedBandwidthGroups(String value)
public BandwidthTargeting.Builder addExcludedBandwidthGroups(String value)Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe excludedBandwidthGroups to add. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
addExcludedBandwidthGroupsBytes(ByteString value)
public BandwidthTargeting.Builder addExcludedBandwidthGroupsBytes(ByteString value)Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the excludedBandwidthGroups to add. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BandwidthTargeting.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
addTargetedBandwidthGroups(String value)
public BandwidthTargeting.Builder addTargetedBandwidthGroups(String value)Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetedBandwidthGroups to add. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
addTargetedBandwidthGroupsBytes(ByteString value)
public BandwidthTargeting.Builder addTargetedBandwidthGroupsBytes(ByteString value)Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the targetedBandwidthGroups to add. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
build()
public BandwidthTargeting build()| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting |
|
buildPartial()
public BandwidthTargeting buildPartial()| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting |
|
clear()
public BandwidthTargeting.Builder clear()| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
clearExcludedBandwidthGroups()
public BandwidthTargeting.Builder clearExcludedBandwidthGroups()Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BandwidthTargeting.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public BandwidthTargeting.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
clearTargetedBandwidthGroups()
public BandwidthTargeting.Builder clearTargetedBandwidthGroups()Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
clone()
public BandwidthTargeting.Builder clone()| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
getDefaultInstanceForType()
public BandwidthTargeting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExcludedBandwidthGroups(int index)
public String getExcludedBandwidthGroups(int index)Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 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 excludedBandwidthGroups at the given index. |
getExcludedBandwidthGroupsBytes(int index)
public ByteString getExcludedBandwidthGroupsBytes(int index)Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 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 excludedBandwidthGroups at the given index. |
getExcludedBandwidthGroupsCount()
public int getExcludedBandwidthGroupsCount()Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of excludedBandwidthGroups. |
getExcludedBandwidthGroupsList()
public ProtocolStringList getExcludedBandwidthGroupsList()Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the excludedBandwidthGroups. |
getTargetedBandwidthGroups(int index)
public String getTargetedBandwidthGroups(int index)Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 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 targetedBandwidthGroups at the given index. |
getTargetedBandwidthGroupsBytes(int index)
public ByteString getTargetedBandwidthGroupsBytes(int index)Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 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 targetedBandwidthGroups at the given index. |
getTargetedBandwidthGroupsCount()
public int getTargetedBandwidthGroupsCount()Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of targetedBandwidthGroups. |
getTargetedBandwidthGroupsList()
public ProtocolStringList getTargetedBandwidthGroupsList()Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the targetedBandwidthGroups. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BandwidthTargeting other)
public BandwidthTargeting.Builder mergeFrom(BandwidthTargeting other)| Parameter | |
|---|---|
| Name | Description |
other |
BandwidthTargeting |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BandwidthTargeting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BandwidthTargeting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BandwidthTargeting.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
setExcludedBandwidthGroups(int index, String value)
public BandwidthTargeting.Builder setExcludedBandwidthGroups(int index, String value)Optional. A list of resource names of the bandwidth groups that should be excluded.
repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe excludedBandwidthGroups to set. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BandwidthTargeting.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BandwidthTargeting.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|
setTargetedBandwidthGroups(int index, String value)
public BandwidthTargeting.Builder setTargetedBandwidthGroups(int index, String value)Optional. A list of resource names of the bandwidth groups that should be targeted/included.
repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe targetedBandwidthGroups to set. |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BandwidthTargeting.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
BandwidthTargeting.Builder |
|