Class AdUnitParent (0.12.0)

public final class AdUnitParent extends GeneratedMessageV3 implements AdUnitParentOrBuilder

The summary of a parent AdUnit.

Protobuf type google.ads.admanager.v1.AdUnitParent

Static Fields

AD_UNIT_CODE_FIELD_NUMBER

public static final int AD_UNIT_CODE_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

PARENT_AD_UNIT_FIELD_NUMBER

public static final int PARENT_AD_UNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdUnitParent getDefaultInstance()
Returns
Type Description
AdUnitParent

getDescriptor()

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

newBuilder()

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

newBuilder(AdUnitParent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdUnitCode()

public String getAdUnitCode()

Output only. A string used to uniquely identify the ad unit for the purposes of serving the ad.

string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The adUnitCode.

getAdUnitCodeBytes()

public ByteString getAdUnitCodeBytes()

Output only. A string used to uniquely identify the ad unit for the purposes of serving the ad.

string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for adUnitCode.

getDefaultInstanceForType()

public AdUnitParent getDefaultInstanceForType()
Returns
Type Description
AdUnitParent

getDisplayName()

public String getDisplayName()

Output only. The display name of the parent AdUnit.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the parent AdUnit.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getParentAdUnit()

public String getParentAdUnit()

Output only. The parent of the current AdUnit Format: networks/{network_code}/adUnits/{ad_unit_id}

string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parentAdUnit.

getParentAdUnitBytes()

public ByteString getParentAdUnitBytes()

Output only. The parent of the current AdUnit Format: networks/{network_code}/adUnits/{ad_unit_id}

string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parentAdUnit.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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