Class MobileCarrierTargeting (0.39.0)

public final class MobileCarrierTargeting extends GeneratedMessageV3 implements MobileCarrierTargetingOrBuilder

Mobile Carrier Targeting.

Can be used to target/exclude a variety of mobile carriers, such as AT&T, Verizon, or T-Mobile.

Protobuf type google.ads.admanager.v1.MobileCarrierTargeting

Static Fields

EXCLUDED_MOBILE_CARRIERS_FIELD_NUMBER

public static final int EXCLUDED_MOBILE_CARRIERS_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_MOBILE_CARRIERS_FIELD_NUMBER

public static final int TARGETED_MOBILE_CARRIERS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MobileCarrierTargeting getDefaultInstance()
Returns
Type Description
MobileCarrierTargeting

getDescriptor()

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

newBuilder()

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

newBuilder(MobileCarrierTargeting prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MobileCarrierTargeting getDefaultInstanceForType()
Returns
Type Description
MobileCarrierTargeting

getExcludedMobileCarriers(int index)

public String getExcludedMobileCarriers(int index)

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

repeated string excluded_mobile_carriers = 4 [(.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 excludedMobileCarriers at the given index.

getExcludedMobileCarriersBytes(int index)

public ByteString getExcludedMobileCarriersBytes(int index)

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

repeated string excluded_mobile_carriers = 4 [(.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 excludedMobileCarriers at the given index.

getExcludedMobileCarriersCount()

public int getExcludedMobileCarriersCount()

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

repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of excludedMobileCarriers.

getExcludedMobileCarriersList()

public ProtocolStringList getExcludedMobileCarriersList()

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

repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the excludedMobileCarriers.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetedMobileCarriers(int index)

public String getTargetedMobileCarriers(int index)

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

repeated string targeted_mobile_carriers = 3 [(.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 targetedMobileCarriers at the given index.

getTargetedMobileCarriersBytes(int index)

public ByteString getTargetedMobileCarriersBytes(int index)

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

repeated string targeted_mobile_carriers = 3 [(.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 targetedMobileCarriers at the given index.

getTargetedMobileCarriersCount()

public int getTargetedMobileCarriersCount()

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

repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of targetedMobileCarriers.

getTargetedMobileCarriersList()

public ProtocolStringList getTargetedMobileCarriersList()

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

repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the targetedMobileCarriers.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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