public final class AdUnitTargeting extends GeneratedMessage implements AdUnitTargetingOrBuilderSpecifies an ad unit and (optionally) its descendants.
Protobuf type google.ads.admanager.v1.AdUnitTargeting
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AdUnitTargetingImplements
AdUnitTargetingOrBuilderStatic Fields
AD_UNIT_FIELD_NUMBER
public static final int AD_UNIT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INCLUDE_DESCENDANTS_FIELD_NUMBER
public static final int INCLUDE_DESCENDANTS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AdUnitTargeting getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AdUnitTargeting.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting.Builder |
|
newBuilder(AdUnitTargeting prototype)
public static AdUnitTargeting.Builder newBuilder(AdUnitTargeting prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AdUnitTargeting |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting.Builder |
|
parseDelimitedFrom(InputStream input)
public static AdUnitTargeting parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AdUnitTargeting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AdUnitTargeting parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdUnitTargeting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AdUnitTargeting parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdUnitTargeting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AdUnitTargeting parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AdUnitTargeting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AdUnitTargeting parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AdUnitTargeting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AdUnitTargeting parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdUnitTargeting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AdUnitTargeting> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AdUnitTargeting> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAdUnit()
public String getAdUnit()Optional. The resource name of this ad unit.
optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The adUnit. |
getAdUnitBytes()
public ByteString getAdUnitBytes()Optional. The resource name of this ad unit.
optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for adUnit. |
getDefaultInstanceForType()
public AdUnitTargeting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting |
|
getIncludeDescendants()
public boolean getIncludeDescendants()Whether this ad unit's children should be targeted/excluded as well.
optional bool include_descendants = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The includeDescendants. |
getParserForType()
public Parser<AdUnitTargeting> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AdUnitTargeting> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasAdUnit()
public boolean hasAdUnit()Optional. The resource name of this ad unit.
optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the adUnit field is set. |
hasIncludeDescendants()
public boolean hasIncludeDescendants()Whether this ad unit's children should be targeted/excluded as well.
optional bool include_descendants = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the includeDescendants field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public AdUnitTargeting.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AdUnitTargeting.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting.Builder |
|
toBuilder()
public AdUnitTargeting.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AdUnitTargeting.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|