Class ContentLabel.Builder (0.39.0)

public static final class ContentLabel.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContentLabel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContentLabel.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public ContentLabel.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContentLabel.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContentLabel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContentLabel.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContentLabel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public ContentLabel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContentLabel.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ContentLabel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContentLabel.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ContentLabel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContentLabel.Builder
Overrides