Class ContentBundle.Builder (0.54.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.

clearStatus()

public ContentBundle.Builder clearStatus()

Output only. The ContentBundleStatus of the ContentBundle. This attribute is read-only and defaults to [ContentBundleStatus.INACTIVE][].

.google.ads.admanager.v1.ContentBundleStatusEnum.ContentBundleStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

clearUpdateTime()

public ContentBundle.Builder clearUpdateTime()

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContentBundle.Builder

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.

getStatus()

public ContentBundleStatusEnum.ContentBundleStatus getStatus()

Output only. The ContentBundleStatus of the ContentBundle. This attribute is read-only and defaults to [ContentBundleStatus.INACTIVE][].

.google.ads.admanager.v1.ContentBundleStatusEnum.ContentBundleStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContentBundleStatusEnum.ContentBundleStatus

The status.

getStatusValue()

public int getStatusValue()

Output only. The ContentBundleStatus of the ContentBundle. This attribute is read-only and defaults to [ContentBundleStatus.INACTIVE][].

.google.ads.admanager.v1.ContentBundleStatusEnum.ContentBundleStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

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

mergeUpdateTime(Timestamp value)

public ContentBundle.Builder mergeUpdateTime(Timestamp value)

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentBundle.Builder

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.

setStatus(ContentBundleStatusEnum.ContentBundleStatus value)

public ContentBundle.Builder setStatus(ContentBundleStatusEnum.ContentBundleStatus value)

Output only. The ContentBundleStatus of the ContentBundle. This attribute is read-only and defaults to [ContentBundleStatus.INACTIVE][].

.google.ads.admanager.v1.ContentBundleStatusEnum.ContentBundleStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ContentBundleStatusEnum.ContentBundleStatus

The status to set.

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

setStatusValue(int value)

public ContentBundle.Builder setStatusValue(int value)

Output only. The ContentBundleStatus of the ContentBundle. This attribute is read-only and defaults to [ContentBundleStatus.INACTIVE][].

.google.ads.admanager.v1.ContentBundleStatusEnum.ContentBundleStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
ContentBundle.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public ContentBundle.Builder setUpdateTime(Timestamp value)

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentBundle.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ContentBundle.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the ContentBundle was last modified.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ContentBundle.Builder