public static final class RequestPlatformTargeting.Builder extends GeneratedMessage.Builder<RequestPlatformTargeting.Builder> implements RequestPlatformTargetingOrBuilderRepresents a list of targeted request platforms.
Protobuf type google.ads.admanager.v1.RequestPlatformTargeting
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RequestPlatformTargeting.BuilderImplements
RequestPlatformTargetingOrBuilderStatic 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.RequestPlatformThe 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 |
intThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RequestPlatformTargeting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RequestPlatformTargeting.Builder |
|
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 |
intThe index to set the value at. |
value |
RequestPlatformEnum.RequestPlatformThe 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 |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for requestPlatforms to set. |
| Returns | |
|---|---|
| Type | Description |
RequestPlatformTargeting.Builder |
This builder for chaining. |