public static final class ContentLabel.Builder extends GeneratedMessage.Builder<ContentLabel.Builder> implements ContentLabelOrBuilderA content label.
Protobuf type google.ads.admanager.v1.ContentLabel
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ContentLabel.BuilderImplements
ContentLabelOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ContentLabel.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ContentLabel.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ContentLabel.Builder |
This builder for chaining. |