Class ContentBundle.Builder (0.44.0)

public static final class ContentBundle.Builder extends GeneratedMessage.Builder<ContentBundle.Builder> implements ContentBundleOrBuilder

A ContentBundle is a grouping of individual Content. A ContentBundle is defined as including the Content that match certain filter rules along with the option to explicitly include or exclude certain Content IDs.

Protobuf type google.ads.admanager.v1.ContentBundle

Static Methods

getDescriptor()

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

Methods

build()

public ContentBundle build()
Returns
Type Description
ContentBundle

buildPartial()

public ContentBundle buildPartial()
Returns
Type Description
ContentBundle

clear()

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

clearDisplayName()

public ContentBundle.Builder clearDisplayName()

Required. The name of the ContentBundle. This attribute is required and has a maximum length of 255 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

clearName()

public ContentBundle.Builder clearName()

Identifier. The resource name of the ContentBundle. Format: networks/{network_code}/contentBundles/{content_bundle_id}

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

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

getDefaultInstanceForType()

public ContentBundle getDefaultInstanceForType()
Returns
Type Description
ContentBundle

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The name of the ContentBundle. This attribute is required and has a maximum length of 255 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The name of the ContentBundle. This attribute is required and has a maximum length of 255 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the ContentBundle. Format: networks/{network_code}/contentBundles/{content_bundle_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 ContentBundle. Format: networks/{network_code}/contentBundles/{content_bundle_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(ContentBundle other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public ContentBundle.Builder setDisplayName(String value)

Required. The name of the ContentBundle. This attribute is required and has a maximum length of 255 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ContentBundle.Builder setDisplayNameBytes(ByteString value)

Required. The name of the ContentBundle. This attribute is required and has a maximum length of 255 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

setName(String value)

public ContentBundle.Builder setName(String value)

Identifier. The resource name of the ContentBundle. Format: networks/{network_code}/contentBundles/{content_bundle_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ContentBundle.Builder setNameBytes(ByteString value)

Identifier. The resource name of the ContentBundle. Format: networks/{network_code}/contentBundles/{content_bundle_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ContentBundle.Builder

This builder for chaining.