Class RequestPlatformTargeting (0.27.0)

public final class RequestPlatformTargeting extends GeneratedMessageV3 implements RequestPlatformTargetingOrBuilder

Represents a list of targeted request platforms.

Protobuf type google.ads.admanager.v1.RequestPlatformTargeting

Static Fields

REQUEST_PLATFORMS_FIELD_NUMBER

public static final int REQUEST_PLATFORMS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RequestPlatformTargeting getDefaultInstance()
Returns
Type Description
RequestPlatformTargeting

getDescriptor()

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

newBuilder()

public static RequestPlatformTargeting.Builder newBuilder()
Returns
Type Description
RequestPlatformTargeting.Builder

newBuilder(RequestPlatformTargeting prototype)

public static RequestPlatformTargeting.Builder newBuilder(RequestPlatformTargeting prototype)
Parameter
Name Description
prototype RequestPlatformTargeting
Returns
Type Description
RequestPlatformTargeting.Builder

parseDelimitedFrom(InputStream input)

public static RequestPlatformTargeting parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestPlatformTargeting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RequestPlatformTargeting parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RequestPlatformTargeting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RequestPlatformTargeting parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RequestPlatformTargeting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RequestPlatformTargeting parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestPlatformTargeting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RequestPlatformTargeting parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestPlatformTargeting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RequestPlatformTargeting parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RequestPlatformTargeting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestPlatformTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RequestPlatformTargeting> parser()
Returns
Type Description
Parser<RequestPlatformTargeting>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RequestPlatformTargeting getDefaultInstanceForType()
Returns
Type Description
RequestPlatformTargeting

getParserForType()

public Parser<RequestPlatformTargeting> getParserForType()
Returns
Type Description
Parser<RequestPlatformTargeting>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RequestPlatformTargeting.Builder newBuilderForType()
Returns
Type Description
RequestPlatformTargeting.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RequestPlatformTargeting.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RequestPlatformTargeting.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RequestPlatformTargeting.Builder toBuilder()
Returns
Type Description
RequestPlatformTargeting.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException