Interface CreativeTemplateVariable.ListStringCreativeTemplateVariableOrBuilder (0.39.0)

public static interface CreativeTemplateVariable.ListStringCreativeTemplateVariableOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowOtherChoice()

public abstract boolean getAllowOtherChoice()

Optional. True if a user can specify an 'other' value. For example, if a variable called backgroundColor is defined as a list with values: red, green, blue, this boolean can be set to allow a user to enter a value not on the list such as purple.

optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The allowOtherChoice.

getChoices(int index)

public abstract CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice getChoices(int index)

Optional. The selectable values that the user can choose from.

repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice

getChoicesCount()

public abstract int getChoicesCount()

Optional. The selectable values that the user can choose from.

repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getChoicesList()

public abstract List<CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice> getChoicesList()

Optional. The selectable values that the user can choose from.

repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<VariableChoice>

getChoicesOrBuilder(int index)

public abstract CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoiceOrBuilder getChoicesOrBuilder(int index)

Optional. The selectable values that the user can choose from.

repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoiceOrBuilder

getChoicesOrBuilderList()

public abstract List<? extends CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoiceOrBuilder> getChoicesOrBuilderList()

Optional. The selectable values that the user can choose from.

repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoiceOrBuilder>

getDefaultValue()

public abstract String getDefaultValue()

Optional. Default value to be filled in when creating creatives from the creative template.

optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The defaultValue.

getDefaultValueBytes()

public abstract ByteString getDefaultValueBytes()

Optional. Default value to be filled in when creating creatives from the creative template.

optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for defaultValue.

getSampleValue()

public abstract String getSampleValue()

Optional. Sample value that is used when previewing the template in the UI.

optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sampleValue.

getSampleValueBytes()

public abstract ByteString getSampleValueBytes()

Optional. Sample value that is used when previewing the template in the UI.

optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sampleValue.

hasAllowOtherChoice()

public abstract boolean hasAllowOtherChoice()

Optional. True if a user can specify an 'other' value. For example, if a variable called backgroundColor is defined as a list with values: red, green, blue, this boolean can be set to allow a user to enter a value not on the list such as purple.

optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the allowOtherChoice field is set.

hasDefaultValue()

public abstract boolean hasDefaultValue()

Optional. Default value to be filled in when creating creatives from the creative template.

optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the defaultValue field is set.

hasSampleValue()

public abstract boolean hasSampleValue()

Optional. Sample value that is used when previewing the template in the UI.

optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sampleValue field is set.