Class RequestPlatformTargeting.Builder (0.44.0)

public static final class RequestPlatformTargeting.Builder extends GeneratedMessage.Builder<RequestPlatformTargeting.Builder> implements RequestPlatformTargetingOrBuilder

Represents a list of targeted request platforms.

Protobuf type google.ads.admanager.v1.RequestPlatformTargeting

Static Methods

getDescriptor()

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

Methods

addAllRequestPlatforms(Iterable<? extends RequestPlatformEnum.RequestPlatform> values)

public RequestPlatformTargeting.Builder addAllRequestPlatforms(Iterable<? extends RequestPlatformEnum.RequestPlatform> values)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform>

The requestPlatforms to add.

Returns
Type Description
RequestPlatformTargeting.Builder

This builder for chaining.

addAllRequestPlatformsValue(Iterable<Integer> values)

public RequestPlatformTargeting.Builder addAllRequestPlatformsValue(Iterable<Integer> values)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for requestPlatforms to add.

Returns
Type Description
RequestPlatformTargeting.Builder

This builder for chaining.

addRequestPlatforms(RequestPlatformEnum.RequestPlatform value)

public RequestPlatformTargeting.Builder addRequestPlatforms(RequestPlatformEnum.RequestPlatform value)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RequestPlatformEnum.RequestPlatform

The requestPlatforms to add.

Returns
Type Description
RequestPlatformTargeting.Builder

This builder for chaining.

addRequestPlatformsValue(int value)

public RequestPlatformTargeting.Builder addRequestPlatformsValue(int value)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for requestPlatforms to add.

Returns
Type Description
RequestPlatformTargeting.Builder

This builder for chaining.

build()

public RequestPlatformTargeting build()
Returns
Type Description
RequestPlatformTargeting

buildPartial()

public RequestPlatformTargeting buildPartial()
Returns
Type Description
RequestPlatformTargeting

clear()

public RequestPlatformTargeting.Builder clear()
Returns
Type Description
RequestPlatformTargeting.Builder
Overrides

clearRequestPlatforms()

public RequestPlatformTargeting.Builder clearRequestPlatforms()

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RequestPlatformTargeting.Builder

This builder for chaining.

getDefaultInstanceForType()

public RequestPlatformTargeting getDefaultInstanceForType()
Returns
Type Description
RequestPlatformTargeting

getDescriptorForType()

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

getRequestPlatforms(int index)

public RequestPlatformEnum.RequestPlatform getRequestPlatforms(int index)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
RequestPlatformEnum.RequestPlatform

The requestPlatforms at the given index.

getRequestPlatformsCount()

public int getRequestPlatformsCount()

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of requestPlatforms.

getRequestPlatformsList()

public List<RequestPlatformEnum.RequestPlatform> getRequestPlatformsList()

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RequestPlatform>

A list containing the requestPlatforms.

getRequestPlatformsValue(int index)

public int getRequestPlatformsValue(int index)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of requestPlatforms at the given index.

getRequestPlatformsValueList()

public List<Integer> getRequestPlatformsValueList()

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for requestPlatforms.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RequestPlatformTargeting other)

public RequestPlatformTargeting.Builder mergeFrom(RequestPlatformTargeting other)
Parameter
Name Description
other RequestPlatformTargeting
Returns
Type Description
RequestPlatformTargeting.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RequestPlatformTargeting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestPlatformTargeting.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setRequestPlatforms(int index, RequestPlatformEnum.RequestPlatform value)

public RequestPlatformTargeting.Builder setRequestPlatforms(int index, RequestPlatformEnum.RequestPlatform value)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value RequestPlatformEnum.RequestPlatform

The requestPlatforms to set.

Returns
Type Description
RequestPlatformTargeting.Builder

This builder for chaining.

setRequestPlatformsValue(int index, int value)

public RequestPlatformTargeting.Builder setRequestPlatformsValue(int index, int value)

Optional. The list of request platforms that should be targeted.

repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for requestPlatforms to set.

Returns
Type Description
RequestPlatformTargeting.Builder

This builder for chaining.