Class Content.Builder (0.39.0)

public static final class Content.Builder extends GeneratedMessageV3.Builder<Content.Builder> implements ContentOrBuilder

A piece of content from a Publisher's CMS.

Protobuf type google.ads.admanager.v1.Content

Implements

ContentOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Content build()
Returns
Type Description
Content

buildPartial()

public Content buildPartial()
Returns
Type Description
Content

clear()

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

clearDisplayName()

public Content.Builder clearDisplayName()

Output only. The name of the Content.

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

Returns
Type Description
Content.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Content.Builder clearName()

Identifier. The resource name of the Content. Format: networks/{network_code}/content/{content_id}

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

Returns
Type Description
Content.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Content getDefaultInstanceForType()
Returns
Type Description
Content

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The name of the Content.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The name of the Content.

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

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the Content. Format: networks/{network_code}/content/{content_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 Content. Format: networks/{network_code}/content/{content_id}

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

Returns
Type Description
ByteString

The bytes for name.

hasDisplayName()

public boolean hasDisplayName()

Output only. The name of the Content.

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

Returns
Type Description
boolean

Whether the displayName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Content other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Content.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Content.Builder
Overrides

setDisplayName(String value)

public Content.Builder setDisplayName(String value)

Output only. The name of the Content.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Content.Builder setDisplayNameBytes(ByteString value)

Output only. The name of the Content.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Content.Builder setName(String value)

Identifier. The resource name of the Content. Format: networks/{network_code}/content/{content_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Content.Builder setNameBytes(ByteString value)

Identifier. The resource name of the Content. Format: networks/{network_code}/content/{content_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Content.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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