public static final class AdUnitParent.Builder extends GeneratedMessageV3.Builder<AdUnitParent.Builder> implements AdUnitParentOrBuilderThe summary of a parent AdUnit.
 Protobuf type google.ads.admanager.v1.AdUnitParent
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AdUnitParent.BuilderImplements
AdUnitParentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdUnitParent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
build()
public AdUnitParent build()| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent | |
buildPartial()
public AdUnitParent buildPartial()| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent | |
clear()
public AdUnitParent.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
clearAdUnitCode()
public AdUnitParent.Builder clearAdUnitCode()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 | 
| AdUnitParent.Builder | This builder for chaining. | 
clearDisplayName()
public AdUnitParent.Builder clearDisplayName()Output only. The display name of the parent AdUnit.
 string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | This builder for chaining. | 
clearField(Descriptors.FieldDescriptor field)
public AdUnitParent.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
clearOneof(Descriptors.OneofDescriptor oneof)
public AdUnitParent.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
clearParentAdUnit()
public AdUnitParent.Builder clearParentAdUnit() 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 | 
| AdUnitParent.Builder | This builder for chaining. | 
clone()
public AdUnitParent.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
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 | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
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. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeFrom(AdUnitParent other)
public AdUnitParent.Builder mergeFrom(AdUnitParent other)| Parameter | |
|---|---|
| Name | Description | 
| other | AdUnitParent | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdUnitParent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public AdUnitParent.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdUnitParent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
setAdUnitCode(String value)
public AdUnitParent.Builder setAdUnitCode(String value)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];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe adUnitCode to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | This builder for chaining. | 
setAdUnitCodeBytes(ByteString value)
public AdUnitParent.Builder setAdUnitCodeBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for adUnitCode to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | This builder for chaining. | 
setDisplayName(String value)
public AdUnitParent.Builder setDisplayName(String value)Output only. The display name of the parent AdUnit.
 string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | This builder for chaining. | 
setDisplayNameBytes(ByteString value)
public AdUnitParent.Builder setDisplayNameBytes(ByteString value)Output only. The display name of the parent AdUnit.
 string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | This builder for chaining. | 
setField(Descriptors.FieldDescriptor field, Object value)
public AdUnitParent.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
setParentAdUnit(String value)
public AdUnitParent.Builder setParentAdUnit(String value) 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) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe parentAdUnit to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | This builder for chaining. | 
setParentAdUnitBytes(ByteString value)
public AdUnitParent.Builder setParentAdUnitBytes(ByteString value) 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) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for parentAdUnit to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdUnitParent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |
setUnknownFields(UnknownFieldSet unknownFields)
public final AdUnitParent.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| AdUnitParent.Builder | |