public static final class RequestFormatTargeting.Builder extends GeneratedMessage.Builder<RequestFormatTargeting.Builder> implements RequestFormatTargetingOrBuilderRequest 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RequestFormatTargeting.BuilderImplements
RequestFormatTargetingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RequestFormatTargeting build()| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting |
|
buildPartial()
public RequestFormatTargeting buildPartial()| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting |
|
clear()
public RequestFormatTargeting.Builder clear()| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
|
clearAnchorEnabled()
public RequestFormatTargeting.Builder clearAnchorEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearAppOpenEnabled()
public RequestFormatTargeting.Builder clearAppOpenEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearBannerEnabled()
public RequestFormatTargeting.Builder clearBannerEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearInstreamAudioEnabled()
public RequestFormatTargeting.Builder clearInstreamAudioEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearInstreamVideoEnabled()
public RequestFormatTargeting.Builder clearInstreamVideoEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearInterstitialEnabled()
public RequestFormatTargeting.Builder clearInterstitialEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearNativeAdvancedEnabled()
public RequestFormatTargeting.Builder clearNativeAdvancedEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearRewardedEnabled()
public RequestFormatTargeting.Builder clearRewardedEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
clearRewardedInterstitialEnabled()
public RequestFormatTargeting.Builder clearRewardedInterstitialEnabled() 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 |
RequestFormatTargeting.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RequestFormatTargeting other)
public RequestFormatTargeting.Builder mergeFrom(RequestFormatTargeting other)| Parameter | |
|---|---|
| Name | Description |
other |
RequestFormatTargeting |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RequestFormatTargeting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RequestFormatTargeting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
|
setAnchorEnabled(boolean value)
public RequestFormatTargeting.Builder setAnchorEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe anchorEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setAppOpenEnabled(boolean value)
public RequestFormatTargeting.Builder setAppOpenEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe appOpenEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setBannerEnabled(boolean value)
public RequestFormatTargeting.Builder setBannerEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe bannerEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setInstreamAudioEnabled(boolean value)
public RequestFormatTargeting.Builder setInstreamAudioEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe instreamAudioEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setInstreamVideoEnabled(boolean value)
public RequestFormatTargeting.Builder setInstreamVideoEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe instreamVideoEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setInterstitialEnabled(boolean value)
public RequestFormatTargeting.Builder setInterstitialEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe interstitialEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setNativeAdvancedEnabled(boolean value)
public RequestFormatTargeting.Builder setNativeAdvancedEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe nativeAdvancedEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setRewardedEnabled(boolean value)
public RequestFormatTargeting.Builder setRewardedEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe rewardedEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |
setRewardedInterstitialEnabled(boolean value)
public RequestFormatTargeting.Builder setRewardedInterstitialEnabled(boolean value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe rewardedInterstitialEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
RequestFormatTargeting.Builder |
This builder for chaining. |