public static final class CreativeSet.Builder extends GeneratedMessage.Builder<CreativeSet.Builder> implements CreativeSetOrBuilder A CreativeSet is comprised of a master Creative and its companion
Creatives.
Protobuf type google.ads.admanager.v1.CreativeSet
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreativeSet.BuilderImplements
CreativeSetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllCompanionCreatives(Iterable<String> values)
public CreativeSet.Builder addAllCompanionCreatives(Iterable<String> values) Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The companionCreatives to add. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
addCompanionCreatives(String value)
public CreativeSet.Builder addCompanionCreatives(String value) Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe companionCreatives to add. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
addCompanionCreativesBytes(ByteString value)
public CreativeSet.Builder addCompanionCreativesBytes(ByteString value) Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the companionCreatives to add. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
build()
public CreativeSet build()| Returns | |
|---|---|
| Type | Description |
CreativeSet |
|
buildPartial()
public CreativeSet buildPartial()| Returns | |
|---|---|
| Type | Description |
CreativeSet |
|
clear()
public CreativeSet.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|
clearCompanionCreatives()
public CreativeSet.Builder clearCompanionCreatives() Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
clearDisplayName()
public CreativeSet.Builder clearDisplayName() Required. The name of the CreativeSet. This attribute has a maximum
length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
clearMasterCreative()
public CreativeSet.Builder clearMasterCreative() Required. Immutable. The master
Creative to which the CreativeSet is
associated.
optional string master_creative = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
clearName()
public CreativeSet.Builder clearName() Identifier. The resource name of the CreativeSet.
Format: networks/{network_code}/creativeSets/{creative_set_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
clearUpdateTime()
public CreativeSet.Builder clearUpdateTime() Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|
getCompanionCreatives(int index)
public String getCompanionCreatives(int index) Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The companionCreatives at the given index. |
getCompanionCreativesBytes(int index)
public ByteString getCompanionCreativesBytes(int index) Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the companionCreatives at the given index. |
getCompanionCreativesCount()
public int getCompanionCreativesCount() Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of companionCreatives. |
getCompanionCreativesList()
public ProtocolStringList getCompanionCreativesList() Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the companionCreatives. |
getDefaultInstanceForType()
public CreativeSet getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreativeSet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName() Required. The name of the CreativeSet. This attribute has a maximum
length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes() Required. The name of the CreativeSet. This attribute has a maximum
length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getMasterCreative()
public String getMasterCreative() Required. Immutable. The master
Creative to which the CreativeSet is
associated.
optional string master_creative = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The masterCreative. |
getMasterCreativeBytes()
public ByteString getMasterCreativeBytes() Required. Immutable. The master
Creative to which the CreativeSet is
associated.
optional string master_creative = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for masterCreative. |
getName()
public String getName() Identifier. The resource name of the CreativeSet.
Format: networks/{network_code}/creativeSets/{creative_set_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 CreativeSet.
Format: networks/{network_code}/creativeSets/{creative_set_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUpdateTime()
public Timestamp getUpdateTime() Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder() Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder() Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasDisplayName()
public boolean hasDisplayName() Required. The name of the CreativeSet. This attribute has a maximum
length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
hasMasterCreative()
public boolean hasMasterCreative() Required. Immutable. The master
Creative to which the CreativeSet is
associated.
optional string master_creative = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the masterCreative field is set. |
hasUpdateTime()
public boolean hasUpdateTime() Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreativeSet other)
public CreativeSet.Builder mergeFrom(CreativeSet other)| Parameter | |
|---|---|
| Name | Description |
other |
CreativeSet |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreativeSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreativeSet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|
mergeUpdateTime(Timestamp value)
public CreativeSet.Builder mergeUpdateTime(Timestamp value) Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|
setCompanionCreatives(int index, String value)
public CreativeSet.Builder setCompanionCreatives(int index, String value) Required. The resource names of the companion Creatives associated with
this CreativeSet. Format: networks/{network_code}/creatives/{creative}
repeated string companion_creatives = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe companionCreatives to set. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
setDisplayName(String value)
public CreativeSet.Builder setDisplayName(String value) Required. The name of the CreativeSet. This attribute has a maximum
length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public CreativeSet.Builder setDisplayNameBytes(ByteString value) Required. The name of the CreativeSet. This attribute has a maximum
length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
setMasterCreative(String value)
public CreativeSet.Builder setMasterCreative(String value) Required. Immutable. The master
Creative to which the CreativeSet is
associated.
optional string master_creative = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe masterCreative to set. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
setMasterCreativeBytes(ByteString value)
public CreativeSet.Builder setMasterCreativeBytes(ByteString value) Required. Immutable. The master
Creative to which the CreativeSet is
associated.
optional string master_creative = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for masterCreative to set. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
setName(String value)
public CreativeSet.Builder setName(String value) Identifier. The resource name of the CreativeSet.
Format: networks/{network_code}/creativeSets/{creative_set_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public CreativeSet.Builder setNameBytes(ByteString value) Identifier. The resource name of the CreativeSet.
Format: networks/{network_code}/creativeSets/{creative_set_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public CreativeSet.Builder setUpdateTime(Timestamp value) Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public CreativeSet.Builder setUpdateTime(Timestamp.Builder builderForValue) Output only. The time this CreativeSet was last modified.
optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CreativeSet.Builder |
|