Class RequestPlatformTargeting.Builder (0.35.0)
public static final class RequestPlatformTargeting.Builder extends GeneratedMessageV3.Builder<RequestPlatformTargeting.Builder> implements RequestPlatformTargetingOrBuilder
Represents a list of targeted request platforms.
Protobuf type google.ads.admanager.v1.RequestPlatformTargeting
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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.
|
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.
|
public RequestPlatformTargeting.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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.
|
public RequestPlatformTargeting build()
public RequestPlatformTargeting buildPartial()
public RequestPlatformTargeting.Builder clear()
Overrides
public RequestPlatformTargeting.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public RequestPlatformTargeting.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public RequestPlatformTargeting.Builder clone()
Overrides
public RequestPlatformTargeting getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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];
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RequestPlatformTargeting.Builder mergeFrom(RequestPlatformTargeting other)
public RequestPlatformTargeting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RequestPlatformTargeting.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RequestPlatformTargeting.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RequestPlatformTargeting.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RequestPlatformTargeting.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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.
|
public final RequestPlatformTargeting.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]