Class ContentLabel.Builder (0.44.0)

public static final class ContentLabel.Builder extends GeneratedMessage.Builder<ContentLabel.Builder> implements ContentLabelOrBuilder

A content label.

Protobuf type google.ads.admanager.v1.ContentLabel

Static Methods

getDescriptor()

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

Methods

build()

public ContentLabel build()
Returns
Type Description
ContentLabel

buildPartial()

public ContentLabel buildPartial()
Returns
Type Description
ContentLabel

clear()

public ContentLabel.Builder clear()
Returns
Type Description
ContentLabel.Builder
Overrides

clearDisplayName()

public ContentLabel.Builder clearDisplayName()

Optional. The display name of the ContentLabel.

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

Returns
Type Description
ContentLabel.Builder

This builder for chaining.

clearName()

public ContentLabel.Builder clearName()

Identifier. The resource name of the ContentLabel. Format: networks/{network_code}/contentLabels/{content_label_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ContentLabel.Builder

This builder for chaining.

getDefaultInstanceForType()

public ContentLabel getDefaultInstanceForType()
Returns
Type Description
ContentLabel

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. The display name of the ContentLabel.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the ContentLabel.

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

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the ContentLabel. Format: networks/{network_code}/contentLabels/{content_label_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the ContentLabel. Format: networks/{network_code}/contentLabels/{content_label_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContentLabel other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public ContentLabel.Builder setDisplayName(String value)

Optional. The display name of the ContentLabel.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ContentLabel.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ContentLabel.Builder setDisplayNameBytes(ByteString value)

Optional. The display name of the ContentLabel.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ContentLabel.Builder

This builder for chaining.

setName(String value)

public ContentLabel.Builder setName(String value)

Identifier. The resource name of the ContentLabel. Format: networks/{network_code}/contentLabels/{content_label_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ContentLabel.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ContentLabel.Builder setNameBytes(ByteString value)

Identifier. The resource name of the ContentLabel. Format: networks/{network_code}/contentLabels/{content_label_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ContentLabel.Builder

This builder for chaining.