Class ContentBundle.Builder (0.39.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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