Class BrowserLanguageTargeting (0.39.0)

public final class BrowserLanguageTargeting extends GeneratedMessageV3 implements BrowserLanguageTargetingOrBuilder

Browser Language Targeting.

For ads targeting mobile apps and their associated WebViews, the language used is based on the language specified by the user in their mobile device settings. If a browser has more than one language assigned to it, each language generates an impression.

Protobuf type google.ads.admanager.v1.BrowserLanguageTargeting

Static Fields

EXCLUDED_BROWSER_LANGUAGES_FIELD_NUMBER

public static final int EXCLUDED_BROWSER_LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_BROWSER_LANGUAGES_FIELD_NUMBER

public static final int TARGETED_BROWSER_LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BrowserLanguageTargeting getDefaultInstance()
Returns
Type Description
BrowserLanguageTargeting

getDescriptor()

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

newBuilder()

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

newBuilder(BrowserLanguageTargeting prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public BrowserLanguageTargeting getDefaultInstanceForType()
Returns
Type Description
BrowserLanguageTargeting

getExcludedBrowserLanguages(int index)

public String getExcludedBrowserLanguages(int index)

Optional. A list of browser language resource names that should be excluded.

repeated string excluded_browser_languages = 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 excludedBrowserLanguages at the given index.

getExcludedBrowserLanguagesBytes(int index)

public ByteString getExcludedBrowserLanguagesBytes(int index)

Optional. A list of browser language resource names that should be excluded.

repeated string excluded_browser_languages = 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 excludedBrowserLanguages at the given index.

getExcludedBrowserLanguagesCount()

public int getExcludedBrowserLanguagesCount()

Optional. A list of browser language resource names that should be excluded.

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

Returns
Type Description
int

The count of excludedBrowserLanguages.

getExcludedBrowserLanguagesList()

public ProtocolStringList getExcludedBrowserLanguagesList()

Optional. A list of browser language resource names that should be excluded.

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

Returns
Type Description
ProtocolStringList

A list containing the excludedBrowserLanguages.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetedBrowserLanguages(int index)

public String getTargetedBrowserLanguages(int index)

Optional. A list of browser language resource names that should be targeted/included.

repeated string targeted_browser_languages = 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 targetedBrowserLanguages at the given index.

getTargetedBrowserLanguagesBytes(int index)

public ByteString getTargetedBrowserLanguagesBytes(int index)

Optional. A list of browser language resource names that should be targeted/included.

repeated string targeted_browser_languages = 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 targetedBrowserLanguages at the given index.

getTargetedBrowserLanguagesCount()

public int getTargetedBrowserLanguagesCount()

Optional. A list of browser language resource names that should be targeted/included.

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

Returns
Type Description
int

The count of targetedBrowserLanguages.

getTargetedBrowserLanguagesList()

public ProtocolStringList getTargetedBrowserLanguagesList()

Optional. A list of browser language resource names that should be targeted/included.

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

Returns
Type Description
ProtocolStringList

A list containing the targetedBrowserLanguages.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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