Class DeviceManufacturerTargeting (0.39.0)

public final class DeviceManufacturerTargeting extends GeneratedMessageV3 implements DeviceManufacturerTargetingOrBuilder

Device Manufacturer Targeting.

Can be used to target/exclude users on devices made by specific brands or companies, such as Apple, Google, Samsung and others. For more information, see https://support.google.com/admanager/answer/2884033 ("Targeting types > Device manufacturer").

Protobuf type google.ads.admanager.v1.DeviceManufacturerTargeting

Static Fields

EXCLUDED_DEVICE_MANUFACTURERS_FIELD_NUMBER

public static final int EXCLUDED_DEVICE_MANUFACTURERS_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_MOBILE_DEVICES_FIELD_NUMBER

public static final int EXCLUDED_MOBILE_DEVICES_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER

public static final int EXCLUDED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_DEVICE_MANUFACTURERS_FIELD_NUMBER

public static final int TARGETED_DEVICE_MANUFACTURERS_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_MOBILE_DEVICES_FIELD_NUMBER

public static final int TARGETED_MOBILE_DEVICES_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER

public static final int TARGETED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeviceManufacturerTargeting getDefaultInstance()
Returns
Type Description
DeviceManufacturerTargeting

getDescriptor()

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

newBuilder()

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

newBuilder(DeviceManufacturerTargeting prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DeviceManufacturerTargeting getDefaultInstanceForType()
Returns
Type Description
DeviceManufacturerTargeting

getExcludedDeviceManufacturers(int index)

public String getExcludedDeviceManufacturers(int index)

Optional. A list of device manufacturer resource names that should be excluded.

repeated string excluded_device_manufacturers = 8 [(.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 excludedDeviceManufacturers at the given index.

getExcludedDeviceManufacturersBytes(int index)

public ByteString getExcludedDeviceManufacturersBytes(int index)

Optional. A list of device manufacturer resource names that should be excluded.

repeated string excluded_device_manufacturers = 8 [(.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 excludedDeviceManufacturers at the given index.

getExcludedDeviceManufacturersCount()

public int getExcludedDeviceManufacturersCount()

Optional. A list of device manufacturer resource names that should be excluded.

repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of excludedDeviceManufacturers.

getExcludedDeviceManufacturersList()

public ProtocolStringList getExcludedDeviceManufacturersList()

Optional. A list of device manufacturer resource names that should be excluded.

repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the excludedDeviceManufacturers.

getExcludedMobileDeviceSubmodels(int index)

public String getExcludedMobileDeviceSubmodels(int index)

Optional. A list of mobile device submodel resource names that should be excluded.

repeated string excluded_mobile_device_submodels = 12 [(.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 excludedMobileDeviceSubmodels at the given index.

getExcludedMobileDeviceSubmodelsBytes(int index)

public ByteString getExcludedMobileDeviceSubmodelsBytes(int index)

Optional. A list of mobile device submodel resource names that should be excluded.

repeated string excluded_mobile_device_submodels = 12 [(.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 excludedMobileDeviceSubmodels at the given index.

getExcludedMobileDeviceSubmodelsCount()

public int getExcludedMobileDeviceSubmodelsCount()

Optional. A list of mobile device submodel resource names that should be excluded.

repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of excludedMobileDeviceSubmodels.

getExcludedMobileDeviceSubmodelsList()

public ProtocolStringList getExcludedMobileDeviceSubmodelsList()

Optional. A list of mobile device submodel resource names that should be excluded.

repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the excludedMobileDeviceSubmodels.

getExcludedMobileDevices(int index)

public String getExcludedMobileDevices(int index)

Optional. A list of mobile device resource names that should be excluded.

repeated string excluded_mobile_devices = 10 [(.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 excludedMobileDevices at the given index.

getExcludedMobileDevicesBytes(int index)

public ByteString getExcludedMobileDevicesBytes(int index)

Optional. A list of mobile device resource names that should be excluded.

repeated string excluded_mobile_devices = 10 [(.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 excludedMobileDevices at the given index.

getExcludedMobileDevicesCount()

public int getExcludedMobileDevicesCount()

Optional. A list of mobile device resource names that should be excluded.

repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of excludedMobileDevices.

getExcludedMobileDevicesList()

public ProtocolStringList getExcludedMobileDevicesList()

Optional. A list of mobile device resource names that should be excluded.

repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the excludedMobileDevices.

getParserForType()

public Parser<DeviceManufacturerTargeting> getParserForType()
Returns
Type Description
Parser<DeviceManufacturerTargeting>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetedDeviceManufacturers(int index)

public String getTargetedDeviceManufacturers(int index)

Optional. A list of device manufacturer resource names that should be targeted/included.

repeated string targeted_device_manufacturers = 7 [(.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 targetedDeviceManufacturers at the given index.

getTargetedDeviceManufacturersBytes(int index)

public ByteString getTargetedDeviceManufacturersBytes(int index)

Optional. A list of device manufacturer resource names that should be targeted/included.

repeated string targeted_device_manufacturers = 7 [(.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 targetedDeviceManufacturers at the given index.

getTargetedDeviceManufacturersCount()

public int getTargetedDeviceManufacturersCount()

Optional. A list of device manufacturer resource names that should be targeted/included.

repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedDeviceManufacturers.

getTargetedDeviceManufacturersList()

public ProtocolStringList getTargetedDeviceManufacturersList()

Optional. A list of device manufacturer resource names that should be targeted/included.

repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedDeviceManufacturers.

getTargetedMobileDeviceSubmodels(int index)

public String getTargetedMobileDeviceSubmodels(int index)

Optional. A list of mobile device submodel resource names that should be targeted/included.

repeated string targeted_mobile_device_submodels = 11 [(.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 targetedMobileDeviceSubmodels at the given index.

getTargetedMobileDeviceSubmodelsBytes(int index)

public ByteString getTargetedMobileDeviceSubmodelsBytes(int index)

Optional. A list of mobile device submodel resource names that should be targeted/included.

repeated string targeted_mobile_device_submodels = 11 [(.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 targetedMobileDeviceSubmodels at the given index.

getTargetedMobileDeviceSubmodelsCount()

public int getTargetedMobileDeviceSubmodelsCount()

Optional. A list of mobile device submodel resource names that should be targeted/included.

repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedMobileDeviceSubmodels.

getTargetedMobileDeviceSubmodelsList()

public ProtocolStringList getTargetedMobileDeviceSubmodelsList()

Optional. A list of mobile device submodel resource names that should be targeted/included.

repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedMobileDeviceSubmodels.

getTargetedMobileDevices(int index)

public String getTargetedMobileDevices(int index)

Optional. A list of mobile device resource names that should be targeted/included.

repeated string targeted_mobile_devices = 9 [(.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 targetedMobileDevices at the given index.

getTargetedMobileDevicesBytes(int index)

public ByteString getTargetedMobileDevicesBytes(int index)

Optional. A list of mobile device resource names that should be targeted/included.

repeated string targeted_mobile_devices = 9 [(.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 targetedMobileDevices at the given index.

getTargetedMobileDevicesCount()

public int getTargetedMobileDevicesCount()

Optional. A list of mobile device resource names that should be targeted/included.

repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedMobileDevices.

getTargetedMobileDevicesList()

public ProtocolStringList getTargetedMobileDevicesList()

Optional. A list of mobile device resource names that should be targeted/included.

repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedMobileDevices.

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 DeviceManufacturerTargeting.Builder newBuilderForType()
Returns
Type Description
DeviceManufacturerTargeting.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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