Class FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder (0.62.0)

public static final class FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder extends GeneratedMessage.Builder<FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder> implements FetchAdReviewCenterCustomLabelsResponse.CustomLabelOrBuilder

A custom label for an Ad Review Center ad. Custom labels can help you filter and find creatives with the associated label. For more information, see https://support.google.com/admanager/answer/13812863.

Protobuf type google.ads.admanager.v1.FetchAdReviewCenterCustomLabelsResponse.CustomLabel

Static Methods

getDescriptor()

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

Methods

build()

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel build()
Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel

buildPartial()

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel buildPartial()
Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel

clear()

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder clear()
Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder
Overrides

clearDisplayName()

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder clearDisplayName()

Output only. The user-defined display name of the custom label.

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

Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder

This builder for chaining.

clearLabelId()

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder clearLabelId()

Output only. The unique identifier of the custom label.

string label_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel getDefaultInstanceForType()
Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Output only. The user-defined display name of the custom label.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The user-defined display name of the custom label.

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

Returns
Type Description
ByteString

The bytes for displayName.

getLabelId()

public String getLabelId()

Output only. The unique identifier of the custom label.

string label_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The labelId.

getLabelIdBytes()

public ByteString getLabelIdBytes()

Output only. The unique identifier of the custom label.

string label_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for labelId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchAdReviewCenterCustomLabelsResponse.CustomLabel other)

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder mergeFrom(FetchAdReviewCenterCustomLabelsResponse.CustomLabel other)
Parameter
Name Description
other FetchAdReviewCenterCustomLabelsResponse.CustomLabel
Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder
Overrides

setDisplayName(String value)

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder setDisplayName(String value)

Output only. The user-defined display name of the custom label.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder setDisplayNameBytes(ByteString value)

Output only. The user-defined display name of the custom label.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder

This builder for chaining.

setLabelId(String value)

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder setLabelId(String value)

Output only. The unique identifier of the custom label.

string label_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The labelId to set.

Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder

This builder for chaining.

setLabelIdBytes(ByteString value)

public FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder setLabelIdBytes(ByteString value)

Output only. The unique identifier of the custom label.

string label_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for labelId to set.

Returns
Type Description
FetchAdReviewCenterCustomLabelsResponse.CustomLabel.Builder

This builder for chaining.