Class BandwidthTargeting.Builder (0.27.0)

public static final class BandwidthTargeting.Builder extends GeneratedMessageV3.Builder<BandwidthTargeting.Builder> implements BandwidthTargetingOrBuilder

Bandwidth 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

Static 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 String

The 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 ByteString

The 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
Overrides

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 String

The 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 ByteString

The 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
Overrides

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
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BandwidthTargeting.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BandwidthTargeting.Builder
Overrides

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
Overrides

getDefaultInstanceForType()

public BandwidthTargeting getDefaultInstanceForType()
Returns
Type Description
BandwidthTargeting

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 int

The 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 int

The 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 int

The 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 int

The 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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BandwidthTargeting.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BandwidthTargeting.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BandwidthTargeting.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BandwidthTargeting.Builder
Overrides

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 int

The index to set the value at.

value String

The 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
Overrides

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
Overrides

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 int

The index to set the value at.

value String

The 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
Overrides