Class RequestFormatTargeting (0.54.0)

public final class RequestFormatTargeting extends GeneratedMessage implements RequestFormatTargetingOrBuilder

Request Format Targeting

This message specifies inclusion or exclusion of various request formats for targeting. Each optional boolean field controls the targeting of a specific request format:

  • If set to true, the corresponding format is included in targeting.
  • If set to false, the corresponding format is excluded from targeting.
  • If unset, the format is neither explicitly included nor excluded.

Protobuf type google.ads.admanager.v1.RequestFormatTargeting

Static Fields

ANCHOR_ENABLED_FIELD_NUMBER

public static final int ANCHOR_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

APP_OPEN_ENABLED_FIELD_NUMBER

public static final int APP_OPEN_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

BANNER_ENABLED_FIELD_NUMBER

public static final int BANNER_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

INSTREAM_AUDIO_ENABLED_FIELD_NUMBER

public static final int INSTREAM_AUDIO_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

INSTREAM_VIDEO_ENABLED_FIELD_NUMBER

public static final int INSTREAM_VIDEO_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

INTERSTITIAL_ENABLED_FIELD_NUMBER

public static final int INTERSTITIAL_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

NATIVE_ADVANCED_ENABLED_FIELD_NUMBER

public static final int NATIVE_ADVANCED_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

REWARDED_ENABLED_FIELD_NUMBER

public static final int REWARDED_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

REWARDED_INTERSTITIAL_ENABLED_FIELD_NUMBER

public static final int REWARDED_INTERSTITIAL_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RequestFormatTargeting getDefaultInstance()
Returns
Type Description
RequestFormatTargeting

getDescriptor()

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

newBuilder()

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

newBuilder(RequestFormatTargeting prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAnchorEnabled()

public boolean getAnchorEnabled()

Optional. Controls anchor format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool anchor_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The anchorEnabled.

getAppOpenEnabled()

public boolean getAppOpenEnabled()

Optional. Controls app open format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool app_open_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The appOpenEnabled.

getBannerEnabled()

public boolean getBannerEnabled()

Optional. Controls banner format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool banner_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The bannerEnabled.

getDefaultInstanceForType()

public RequestFormatTargeting getDefaultInstanceForType()
Returns
Type Description
RequestFormatTargeting

getInstreamAudioEnabled()

public boolean getInstreamAudioEnabled()

Optional. Controls instream audio format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool instream_audio_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The instreamAudioEnabled.

getInstreamVideoEnabled()

public boolean getInstreamVideoEnabled()

Optional. Controls instream video format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool instream_video_enabled = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The instreamVideoEnabled.

getInterstitialEnabled()

public boolean getInterstitialEnabled()

Optional. Controls interstitial format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool interstitial_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The interstitialEnabled.

getNativeAdvancedEnabled()

public boolean getNativeAdvancedEnabled()

Optional. Controls native advanced format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool native_advanced_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The nativeAdvancedEnabled.

getParserForType()

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

getRewardedEnabled()

public boolean getRewardedEnabled()

Optional. Controls rewarded format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool rewarded_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The rewardedEnabled.

getRewardedInterstitialEnabled()

public boolean getRewardedInterstitialEnabled()

Optional. Controls rewarded interstitial format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool rewarded_interstitial_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The rewardedInterstitialEnabled.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAnchorEnabled()

public boolean hasAnchorEnabled()

Optional. Controls anchor format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool anchor_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the anchorEnabled field is set.

hasAppOpenEnabled()

public boolean hasAppOpenEnabled()

Optional. Controls app open format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool app_open_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the appOpenEnabled field is set.

hasBannerEnabled()

public boolean hasBannerEnabled()

Optional. Controls banner format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool banner_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the bannerEnabled field is set.

hasInstreamAudioEnabled()

public boolean hasInstreamAudioEnabled()

Optional. Controls instream audio format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool instream_audio_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the instreamAudioEnabled field is set.

hasInstreamVideoEnabled()

public boolean hasInstreamVideoEnabled()

Optional. Controls instream video format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool instream_video_enabled = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the instreamVideoEnabled field is set.

hasInterstitialEnabled()

public boolean hasInterstitialEnabled()

Optional. Controls interstitial format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool interstitial_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the interstitialEnabled field is set.

hasNativeAdvancedEnabled()

public boolean hasNativeAdvancedEnabled()

Optional. Controls native advanced format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool native_advanced_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the nativeAdvancedEnabled field is set.

hasRewardedEnabled()

public boolean hasRewardedEnabled()

Optional. Controls rewarded format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool rewarded_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rewardedEnabled field is set.

hasRewardedInterstitialEnabled()

public boolean hasRewardedInterstitialEnabled()

Optional. Controls rewarded interstitial format targeting. Set to true to include, false to exclude, or leave unset for neither.

optional bool rewarded_interstitial_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rewardedInterstitialEnabled field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RequestFormatTargeting.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RequestFormatTargeting.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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