Class SelectMultiple

  • SelectMultiple contains information for the config and determines how the select multiple is displayed in Data Studio.

  • Key methods include adding options, setting override capabilities, help text, unique IDs, dynamic status, and display names.

  • TheaddOption method adds a new select option using anOptionBuilder.

  • ThesetAllowOverride method enables or disables overriding for the config entry.

  • ThesetId method sets the unique identifier for the configuration entry.

  • ThesetIsDynamic method sets the dynamic status, clearing subsequent entries if modified.

SelectMultiple

Contains select multiple information for the config. Its properties determine how the selectmultiple is displayed in Data Studio.

Usage:

constcc=DataStudioApp.createCommunityConnector();constconfig=cc.getConfig();constoption1=config.newOptionBuilder().setLabel('option label').setValue('option_value');constoption2=config.newOptionBuilder().setLabel('second option label').setValue('option_value_2');constinfo1=config.newSelectMultiple().setId('api_endpoint').setName('Data Type').setHelpText('Select the data type you\'re interested in.').setAllowOverride(true).addOption(option1).addOption(option2);

Methods

MethodReturn typeBrief description
addOption(optionBuilder)SelectMultipleAdds a new select option.
setAllowOverride(allowOverride)SelectMultipleEnables overriding for this config entry.
setHelpText(helpText)SelectMultipleSets the help text for this configuration entry.
setId(id)SelectMultipleSets the unique ID for this configuration entry.
setIsDynamic(isDynamic)SelectMultipleSets the dynamic status for this configuration entry.
setName(name)SelectMultipleSets the display name for this configuration entry.

Detailed documentation

addOption(optionBuilder)

Adds a new select option.

Parameters

NameTypeDescription
optionBuilderOptionBuilderA builder for an option.

Return

SelectMultiple — This builder, for chaining.


setAllowOverride(allowOverride)

Enables overriding for this config entry. If set totrue, data source creators have theoption to enable this for report editors.

Parameters

NameTypeDescription
allowOverrideBooleanWhether or not this config entry can be overridden in reports.

Return

SelectMultiple — This builder, for chaining.


setHelpText(helpText)

Sets the help text for this configuration entry.

Parameters

NameTypeDescription
helpTextStringThe help text to set.

Return

SelectMultiple — This builder, for chaining.


setId(id)

Sets the unique ID for this configuration entry.

Parameters

NameTypeDescription
idStringThe ID to set.

Return

SelectMultiple — This builder, for chaining.


setIsDynamic(isDynamic)

Sets the dynamic status for this configuration entry.

If a dynamic configuration entry is modified, subsequent configuration entries are cleared.

Parameters

NameTypeDescription
isDynamicBooleanThe dynamic status to set.

Return

SelectMultiple — This builder, for chaining.


setName(name)

Sets the display name for this configuration entry.

Parameters

NameTypeDescription
nameStringThe name to set.

Return

SelectMultiple — This builder, for chaining.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.